Locoswap Tool

Discussion in 'General Discussion' started by andy.malcolm, Nov 23, 2022.

  1. oldman777

    oldman777 New Member

    Joined:
    Dec 14, 2023
    Messages:
    8
    Likes Received:
    1
    Hi,

    At the first launch of LocoSwap, specify the path to the game.
    Then I close the LocoSwap and rename or delete the game folder.
    LocoSwap no longer runs at all. In order to run it again, need to delete:
    %userprofile%\AppData\Local\LocoSwap folder.

    System Windows 11. Is this happening only for me?
     
  2. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Not sure what you mean by "and rename or delete the game folder."

    I have no (and never have had any) issues running LocoSwap since it was first launched.
     
  3. oldman777

    oldman777 New Member

    Joined:
    Dec 14, 2023
    Messages:
    8
    Likes Received:
    1
    If I understood correctly, then now you have RailWorks folder specified in the LocoSwap and the LocoSwap works fine with it.
    When the LocoSwap is not running, rename "RailWorks" folder to "RailWorks+++" for a while and then run the LocoSwap.
    What happens after that in your case?
     
  4. oldman777

    oldman777 New Member

    Joined:
    Dec 14, 2023
    Messages:
    8
    Likes Received:
    1
    Hi,

    You need to create new file "Resources.nl.resx" here: https://github.com/flicard/LocoSwap/tree/master/LocoSwap.Language/Resources

    2024-01-02 002728.png 2024-01-02 002839.png 2024-01-02 003127.png
     
  5. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    I actually know of this bug, having moved my TS install myself ;) It's on the todo.

    A workaround would be to manually edit the C:\Users\<you>\AppData\Local\LocoSwap\LocoSwap.exe_Url_<custom string>\1.6.0.0\user.config (you'll find TS' path in the first lines.
    This way you don't loose all your replacement rules.
     
    • Helpful Helpful x 1
  6. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I don't make a habit of deleting or moving my TS install so would never have run into such an issue, my TS install is in the route directory of E drive which is a 2tb NVMe SSD if I ever need to increase the volume size I'd get a bigger drive and transfer TS to it and then rename that directory as E
     
  7. Sweppe

    Sweppe New Member

    Joined:
    Dec 31, 2023
    Messages:
    5
    Likes Received:
    1

    Attached Files:

  8. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Yes, you have to do just what it says ;) Fork it and then make a pull-request.
     
  9. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    I also have same non starting issue although I had to move my install. That file shows new path ok
     
  10. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Can you please have a look in the debug.log file?
     
  11. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    After unintstalling several times can get 1.5.0.0. to run again but no luck with 1.6.0.0 so will run with older version until there is a fix
     
  12. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    Looked at debug file and it says everything is not a valid route and no XML file although they are all there and 1.5.0.0 finds them fine..

    Suddenly worked although I changed nothing. Will see how I go trying both versions.
     
    Last edited: Jan 2, 2024
  13. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Beware that each new version creates a settings folder of its own under C:\Users\<you>\AppData\Local\LocoSwap\LocoSwap.exe_Url_<custom string>\<VERSION> so changes you now do in your 1.5 won't affect your 1.6 and vice-versa. A new version will initialize its settings with the data from the previous one though (hopefully). I don't know why that is, this comes from the original LocoSwap!
     
  14. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,083
    Likes Received:
    3,143
    I have had Locoswap for some time but I now have two TSC installs - the current and V72.
    When I install 1.6 can I point it at my v72 install or will it only work on the default version?
     
  15. oldman777

    oldman777 New Member

    Joined:
    Dec 14, 2023
    Messages:
    8
    Likes Received:
    1
    Oh, I forgot to clarify that I download "Resources.resx" first, and then open it in the Notepad++ and edit it (it's more convenient for me).
    2024-01-02_202120.png
    And after editing, I copy paste Notepad++ content to github as already described above.
     
  16. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    You can point it to whatever version you want.
     
    • Helpful Helpful x 1
  17. Sweppe

    Sweppe New Member

    Joined:
    Dec 31, 2023
    Messages:
    5
    Likes Received:
    1
    Hi Frankoi,

    I have made yesterday a LocoSwap fork on GitHub, uploaded the Dutch language file 'Resources.nl.resx' and made a pull-request.
    Please notify me as soon you have compiled LocoSwap included Dutch language so I can check translation in the context of the program and correct translation mismatches or to long translated strings.
     
  18. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Yeah I will take care of that, and the pending RU update by oldman777 ;)
     
  19. Sweppe

    Sweppe New Member

    Joined:
    Dec 31, 2023
    Messages:
    5
    Likes Received:
    1
    Great! I assume that many Dutch TSC users who use LocoSwap will be glad that they can select the language 'Nederlands' in the settings dialog.
    I consider to translate your English manual into Dutch language included the Dutch dialog windows.
    Perhaps that manual can be later implemented in the LocoSwap (ZIP) package.
    How will translators be informed about releases where new strings are appended?
     
  20. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Hello everybody,

    A quick post to follow up:

    - v1.6.1 will be finalized soon, probably on friday, with updated RU & new NL translations, along with a small but welcome improvement :)
    - I haven't really thought out how to deal with translations, I think I will publish new releases with automated translations in all supported languages, and then always make a new minor version incorporating the human-corrected strings.
     
    • Like Like x 2
    • Helpful Helpful x 2
  21. Sweppe

    Sweppe New Member

    Joined:
    Dec 31, 2023
    Messages:
    5
    Likes Received:
    1
    Hi Frankoi1337,

    Just a few minutes ago I have made some translation corrections on Github and I look forward to see LocoSwap v1.6.1
    in my native language.
    Thanks for your great work!:love:
     
    • Like Like x 1
  22. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    ** LocoSwap 1.6.1 available now ** :)

    https://github.com/flicard/LocoSwap/releases/tag/v1.6.1.0

    * When selecting a missing vehicle, automatically focus the closest matching asset folder
    * Add Dutch translation (thanks to Sweppe)
    * Improve Russian translation (thanks to oldman777)
    * Add titles to `Change number` and `List all vehicles` windows
     
    • Like Like x 8
  23. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Noice... :)
     
    • Like Like x 1
  24. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    Looks promising except same issue of not starting again after install. Pointing at correct install folder but will not start again. Debug file just says starting up and nothing else
     
    Last edited: Jan 6, 2024
  25. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    When you say "pointing at correct install folder", I understand that you checked the user.config file? Did you make sure to check the one that's in the 1.6.1.0 folder (not 1.6.0.0)?
     
  26. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    Yes I did,
     
  27. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Can you try to temporarily disable the option folder? (by renaming it)
     
  28. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    85
    Likes Received:
    12
    Ok thanks - which is the option folder? I think you mean the App Data folder it creates, if so deleted this and ran exe again so it creates a new one. This time it worked! I then pasted over the rules section from the old version config and it still works! So at present looking good for no reason that I can understand.. First impression is that the 'nearest match' lookup is a real winner. Thanks for your help
     
    Last edited: Jan 7, 2024
    • Like Like x 1
  29. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    OK, strange one... If you still have the old file, a strict comparision between the two (with WinMerge for example) would be helpful probably!
     
  30. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
  31. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,853
    Likes Received:
    1,324
    I took a quick look at ScenarioProperties for corruption and did not find any, so my likely reason for blame is out the window. I also sought stock from the Kuju category, which I know trying to swap within the app can crash the app as well. Is the app crashing trying to load the scenario, or when trying to change stock, or what exactly? Context is needed.
     
  32. 390001

    390001 Well-Known Member

    Joined:
    Jan 18, 2018
    Messages:
    2,352
    Likes Received:
    1,584
    Have had this happen before and was the sceneryini file. Where did you download the scenario from.
     
  33. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    Yes, LSW is crashing when trying to load this scenario, https://alanthomsonsim.com/downloads/1a33-1345-leeds-to-london-kings-cross/ i think it's probably this 1.
     
  34. 390001

    390001 Well-Known Member

    Joined:
    Jan 18, 2018
    Messages:
    2,352
    Likes Received:
    1,584
    Just downloaded the scenario and checked it in loco swap and it’s not crashing for me. What version of the route is it you have installed currently.

    edit swapped some stock around (I don’t own the ap 67 pack) was able to swap the stock. Saved the scenario closed loco swap restarted it and loaded same scenario again fine.
     
    Last edited: Feb 18, 2024
  35. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    ok,i have latest route version(23/11/2023,i reinstalled to update ATS common for ATS southwales route) perhaps i should reinstall the scenario/route?
     
  36. 390001

    390001 Well-Known Member

    Joined:
    Jan 18, 2018
    Messages:
    2,352
    Likes Received:
    1,584
    Yeah now you have reinstalled the assets reinstall the route. And check if it still does it reinstall the assets over the fresh copy of the route.
     
  37. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,853
    Likes Received:
    1,324
    Glad it seems to just be an issue with the route install and not the scenario itself.
     
  38. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Hi, thank you for providing all the needed files for debugging. The Scenario.bin file seems to be totally corrupted as the uncompressed .xml only has the first line.
    You simply need to redownload the scenario from ATS and reinstall it.
    No reinstall of the route is needed.
     
  39. pugsnotdrugs

    pugsnotdrugs New Member

    Joined:
    Jul 12, 2018
    Messages:
    22
    Likes Received:
    11
    seem to be haveing issues with the tool seems to crash a lot on TS2024
    debug below


    2024-05-24 22:45:57.240 +01:00 [DBG] LocoSwap version 1.6.1.0 starting up..
    2024-05-24 22:45:57.260 +01:00 [DBG] Set language to en
    2024-05-24 22:45:57.270 +01:00 [DBG] SwapPreset has 0 items
    2024-05-24 22:45:57.363 +01:00 [ERR] Route in directory 3a84ad90-ae0e-4a79-b416-60b6ab20bb57 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.365 +01:00 [ERR] Route in directory 451a3604-dcf3-462f-8df9-e7a79180212b is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.369 +01:00 [ERR] Route in directory 57268762-965a-4379-9837-3e39210b4cb6 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.374 +01:00 [ERR] Route in directory 7ee4ee6b-72c9-4608-9a6c-007fd1f30e16 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.383 +01:00 [ERR] Route in directory 904fe290-301f-4d9e-8b99-2e25425ce128 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.384 +01:00 [ERR] Route in directory 947c9afd-1109-43cd-87a4-d94d0654655b is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.385 +01:00 [ERR] Route in directory 99f753eb-7b33-46d8-ba69-c54fe61a50f9 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.387 +01:00 [ERR] Route in directory a599faf6-afa8-4fc2-a33e-7bce82cbd8c7 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.387 +01:00 [ERR] Route in directory a71edcc0-7d49-490b-9971-d995dec313b9 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.388 +01:00 [ERR] Route in directory a838f5d8-b98a-4848-a7b1-9409cb98f51f is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.404 +01:00 [ERR] Route in directory eb0e0920-d003-4bcf-821f-ca4bb212d366 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.404 +01:00 [ERR] Route in directory eb82f610-6fd8-4cff-a7ec-76242807979f is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.405 +01:00 [ERR] Route in directory f323de2c-cb6b-4a1c-b783-d51468eafbda is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.406 +01:00 [ERR] Route in directory f788fc1d-ca4f-4e13-8b13-5de0deb99886 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.406 +01:00 [ERR] Route in directory f8b64803-ddb6-47bd-9ee8-69e3ceba1bf3 is not a valid route: RouteProperties.xml not found for this route ID
    2024-05-24 22:45:57.437 +01:00 [DBG] ReadScenarioDb is about to invoke parallel read
    2024-05-24 22:45:57.438 +01:00 [DBG] ParseScenarioDb invoked
    2024-05-24 22:45:58.466 +01:00 [DBG] SDB has been read
    2024-05-24 22:45:58.466 +01:00 [DBG] SDB is read, refreshing scenarios list
     
  40. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,853
    Likes Received:
    1,324
    I still have the old version installed for a comparable, way back at 1.1. What are you doing that causes this crash?

    I should note I ought to update my game before trying anything, though.
     
  41. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    this usually means exactly as message says "RouteProperties.xml not found for this route ID. if you look in your Routes folder and search those long numbers,you will probaly see its just a few folder(s). Here;s a text file with some helpful info:https://pixeldrain.com/u/ZjEH7fpN pugsnotdrugs
    "
     
  42. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    I should point out that what you pasted is not representative of any crash, just route folders with no RouteProperties.xml in them (well, yeah, sometimes logs just mean what they say :D ). Maybe you use LS' archiving feature, in which case I must have forgotten to adjust these messages (which should just be warnings anyway, intead of errors).
    More generally, LocoSwap does not work "on" TSC, there is definitely no reason anything would change following a TSC update.
    When you have a crash, you should fetch the debug.log right away as it will be overwritten on the next LS launch.
     
  43. TinTin_57

    TinTin_57 Well-Known Member

    Joined:
    Aug 8, 2018
    Messages:
    2,378
    Likes Received:
    3,363
    Thanks for this excellent tool!
    Just one question which is more stock related than tool related and that is, trying to swap the stock 325 for the AP one in one of the standard scenarios in WCML North. Is there a way to know which equivilant AP piece of stock to choose from the right to replace the standard? They are named slightly differently. Thanks.
    Screenshot 2024-06-03 165315.png
     
  44. Spikee1975

    Spikee1975 Guest

    Don't have the AP 325, but it offers more variants. I'd make a free roam scenario and place all stock side by side for comparison.
     
    • Like Like x 1
  45. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,083
    Likes Received:
    3,143
    The DTPMV is replicated in the normal set up -

    Swap one DTPMV for the APEP DVT(A) and the other for APEP DVT(B)
    Swap the TPMV for the APEP TAV and swap the MPMV for the APEP PMV

    The (W2) and (W3) are just different weathering or paint jobs

    Peter
     
    • Like Like x 1
    • Helpful Helpful x 1
  46. TinTin_57

    TinTin_57 Well-Known Member

    Joined:
    Aug 8, 2018
    Messages:
    2,378
    Likes Received:
    3,363
    Thank you, I will give it a go
     
  47. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    728
    Likes Received:
    564
    A quick question. What i do is create advanced quick drives. And while TS_tools do have a few batch editing features for adding ai-consists to routes, there are things i wish it could do. And dear old Mike Simpson has retired years ago. Does locoswap have any functionality in regards to quick drive ai consists?
     
  48. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    No, LocoSwap does not support Quick Drives at the moment.
     
    • Like Like x 1
  49. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    728
    Likes Received:
    564
    If you ever plan on it, please contact me.
     
    • Like Like x 1
  50. Rob Jansen

    Rob Jansen Well-Known Member

    Joined:
    Dec 8, 2016
    Messages:
    438
    Likes Received:
    1,072
    Was it ever considered to include a darker style layout of the program, not like a full on black theme, but a gray scale one.
    It is harsh white and could make it easier on the eyes.
     
    • Like Like x 1

Share This Page