Locoswap Tool

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

  1. 390001

    390001 Well-Known Member

    Joined:
    Jan 18, 2018
    Messages:
    2,352
    Likes Received:
    1,584
    What i do is select the file in the program and it will show you the folder structure it is looking in
     
  2. tsme

    tsme New Member

    Joined:
    Dec 11, 2016
    Messages:
    23
    Likes Received:
    11
    Career scenarios causing problems, which I assume is known about? What I have been doing for them is clone, change to standard and swap. Very often the scenario will game over immediately due to out of fuel error, so has to be opened in scenario editor to fix. Is there a quiker easier way, or is it just problematic because its careeer?
     
  3. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    This is not related to the scenario beeing career, but is a property of some trains (I know swapping AP class 800's can do that. Is it the stock that's causing you trouble ?)
    I have started to look into this but this will not be fixed in the next release.
     
  4. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,206
    Likes Received:
    3,174
    Unless something has changed you were not able to change a Career Scenario as it might be considered cheating.
    The normal practice was to Clone the scenario the change the cloned version
     
  5. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    The above is correct. You have to edit and change a clone. You CAN edit the official one using third-party tools, but you will often have issues fixing something that might only be fixable in the editor, so you're better off cloning them.

    That said, you CAN replicate a Career scenario using a different one. This means you can "fix" scenarios, but you really have to know what you're doing to both fix and replicate it. Advanced file editing stuff. You also can't upload them to the Workshop. But it will let you fix timetable issues and still get your perfect score even on scenarios where it's not possible (Portsmouth Direct Line, I'm looking at you, and the SLN 455 third scenario with a maximum of 996 as well). Maybe one day I'll do a video on it, but I want to be sure there won't be any issues before I do so, and I'm not in any hurry to do it.
     
  6. tsme

    tsme New Member

    Joined:
    Dec 11, 2016
    Messages:
    23
    Likes Received:
    11
     
  7. eldomtom2

    eldomtom2 Well-Known Member

    Joined:
    Jul 31, 2022
    Messages:
    2,338
    Likes Received:
    2,503
    Is there a setting you have to turn on to have Locoswap rename the scenarios you edit with it?
     
  8. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Yes in settings (button bottom right), you can name it something custom, leave it as is, or leave it blank.
     
    • Like Like x 1
    • Helpful Helpful x 1
  9. Nick Y

    Nick Y Well-Known Member

    Joined:
    Nov 13, 2020
    Messages:
    2,381
    Likes Received:
    2,108
    Hi folks.
    I need some help with Locoswap.

    I'm trying to edit a scenario which fails to find the loco it is supposed to use.
    I am trying to find the correct loco for the scenario as when I check locoswap it is trying to use 37422 which is incorrect and should be 37425 in regional railways livery (Concrete Bob).

    The scenario is for Harrogate Loop V2 and was downloaded from ATS. The scenario depicts a real life event which occurred last year at York station (37425 dragging IC225 sets back to Leeds). The scenario is 0Z99 York - Leeds.

    I can find the AP listed class 37 pack01 but pack02 isn't showing in the list on the left

    locoswap1.png

    locoswap2.png

    Any ideas/help would be appreciated.
     
  10. Craigie-C

    Craigie-C Well-Known Member

    Joined:
    Oct 31, 2020
    Messages:
    1,514
    Likes Received:
    4,389
    For some strange reason all the pack02 variations can be found under AP/Class37/Pack01.
    If you scroll down to RR and select a weathered variation of your choosing you can then use the Change Number option to select 37425 good old concrete bob. Hope this helps.
    0Z99.jpg
     
    Last edited: Feb 20, 2023
  11. Nick Y

    Nick Y Well-Known Member

    Joined:
    Nov 13, 2020
    Messages:
    2,381
    Likes Received:
    2,108
    Craigie, did that scenario work for you straight away or did you have to change the loco too?
     
  12. Craigie-C

    Craigie-C Well-Known Member

    Joined:
    Oct 31, 2020
    Messages:
    1,514
    Likes Received:
    4,389
    I had never played that scenario but noticed I had it installed. I also had to change the loco as the default showed red in LS. I have just now tried to run said scenario but fail to get pathed out of the sidings at the start. Just to add I have just searched for 0Z99 on ATS and come up with a blank. I think we may both have come across a faulty scenario. :(
    EDIT: Should have read the briefing properly you have to wait over 10 mins to receive the road at the start "DOH"
     
    Last edited: Feb 20, 2023
  13. Nick Y

    Nick Y Well-Known Member

    Joined:
    Nov 13, 2020
    Messages:
    2,381
    Likes Received:
    2,108
  14. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    The bracketted "[JH]" seems to suggest this is some kind of reskin (or with nameplate added) unit.
     
  15. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    This is correct. The 319 does this too.
     
  16. 390001

    390001 Well-Known Member

    Joined:
    Jan 18, 2018
    Messages:
    2,352
    Likes Received:
    1,584
    All AP volume packs do this rather than having multiple asset folders clogging up the structure it’s nothing new
     
  17. USRailFan

    USRailFan Active Member

    Joined:
    Jul 2, 2018
    Messages:
    566
    Likes Received:
    157
    The Class 90 has separate folders
     
  18. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,206
    Likes Received:
    3,174
    Because it was released as three separate products
    Class 90 & DVT from AP
    Class 90 & DVT from Steam
    Freightliner Class 90 & wagons from AP

    The Class 37 packs one and two were designed to integrate
     
  19. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    LocoSwap 1.5 has landed [​IMG]

    Visit my Github to get it as is usual :
    https://github.com/flicard/LocoSwap/releases/tag/v1.5.0.0

    What's new you may ask?
    * Vehicule number now preserved by default if involved in couple/uncouple operations
    * Scenarios inside .ap files can now be viewed and edited
    * Filters now search on input words individually
    * Option to hide played scenarios added
    * Fix Assets directory tree scrolling to previously selected item
    * Scenario completion status now shown as `?` when SDBCache.bin is erroneous
    * Italian language added
    * Case now ignored when matching rolling stock paths

    Hope you will enjoy it, as always feel free to report on any issue!
     
    • Like Like x 7
  20. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    Can you preserve all vehicle numbers now if you choose by default? I have a habit of editing official scenario clones, so like to keep things matching,
     
  21. KeithG

    KeithG Active Member

    Joined:
    Jan 18, 2023
    Messages:
    153
    Likes Received:
    97
    Many Thanks.
     
  22. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    The advantage I can see in picking a number among these published by the vehicle blueprint is that you can get a realistic number (if the stock in question is using dynamic numbering).
    Some vehicle scripts may even not work at all if given a "wrong" number, although I'm not sure about that.
    But okay, I will consider adding such an option.
     
  23. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    doing searching,causes crashes now?https://easyupload.io/nea3zi frankoi1337
     
  24. USRailFan

    USRailFan Active Member

    Joined:
    Jul 2, 2018
    Messages:
    566
    Likes Received:
    157
    Click on any route in an .ap = insta-crash
     
    Last edited: Feb 23, 2023
  25. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,206
    Likes Received:
    3,174
  26. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    The scenario causing trouble is 2Z63 coming with AP's 314 on the WCML North.
    Could you send me your E:\Steam\steamapps\common\RailWorks\Content\Routes\00000011-0000-0000-0000-000000000000\Scenarios\687c862b-cdf0-4c8c-a244-8a4b3e0896fb\ScenarioProperties.xml file ? (or just have a look yourself at what sits at line 29, column 72 ?)
    I have the same scenario installed and no issue with LocoSwap.

    Could you send the debug.log file, found in the LocoSwap directory, after a crash occurred ?
     
  27. USRailFan

    USRailFan Active Member

    Joined:
    Jul 2, 2018
    Messages:
    566
    Likes Received:
    157
     

    Attached Files:

  28. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    sorry,it's what i use to share images with
     
  29. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Definitely not the right file ;) Check the path.
     
  30. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    upload_2023-2-23_19-29-1.png upload_2023-2-23_19-29-1.png oops.looks ok,it's still crashing when i search for scenarios frankoi1337
     
    Last edited: Feb 23, 2023
  31. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    OK so my own copy of this scenario has an & instead of the '&', which is definitely more compliant with standards!
    I believe if you redownload and reinstall the class 314 it will have been fixed in the meantime.
     
  32. Cyclone

    Cyclone Well-Known Member

    Joined:
    Feb 29, 2020
    Messages:
    3,895
    Likes Received:
    1,334
    It's up to the person doing swaps whether they want to preserve them. In this case, I'm talking things like stock trains included with DTG routes. I later change them afterwards to the new format, but I have found - using a 150/1 scenario as an example - a couple of trains whose numbers could not exist with those skins. We won't discuss the LAN file not letting you rename the train, meaning you either run without storyline or run with wrong numbers in the names.
     
  33. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    ok,edited it,searching fixed,but it does seem to randomly crash,if searching and it's wrong route-https://easyupload.io/hqi3b9
     
  34. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,206
    Likes Received:
    3,174
    Instead of posting a picture you posted a link to the site you use for them.
    Same in the post above - you expect people to download a file?

    Why not just post the picture you wish to share here?
     
  35. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Again you seem to have an invalid XML at \RailWorks\Content\Routes\00000087-a000-0000-0000-000000002020\Scenarios\b50b6aa9-25eb-4fd8-8577-a09213a006eg\ScenarioProperties.xml, ligne 1 column 16. Can you tell me what character it is ?
    I will plan to make the XML parser more robust to these illegal characters.
     
  36. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    upload_2023-2-24_13-36-47.png upload_2023-2-24_13-36-47.png
     
  37. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    #127 and #133 were debug files,to large to post.
     
  38. USRailFan

    USRailFan Active Member

    Joined:
    Jul 2, 2018
    Messages:
    566
    Likes Received:
    157
    No update on this? (I posted the requested file in the answer just below). This severely reduces the usability of the software.
     
  39. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    Thank you for bringing my attention to this.
    The bug is identified: it will affect routes that have no "Scenarios" directory in their folder.
    A fix will soon be released, in the meantime you can work around this by creating an empty "Scenarios" directory in routes that cause the issue.
     
  40. frankoi1337

    frankoi1337 Member

    Joined:
    Apr 20, 2021
    Messages:
    95
    Likes Received:
    89
    A new 1.5.1 release is available, addressing the aforementioned issues :)
    https://github.com/flicard/LocoSwap/releases/tag/v1.5.1.0
    -> Fixes crash when listing scenarios on a route that has no "Scenarios" subdirectory
    -> Scenarios with buggy ScenarioProperties.xml are now displayed with an error message. Do not try to edit scenarios in this case.
     
    • Like Like x 1
  41. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    143
    Likes Received:
    57
    Hi frankoi

    Thank you for taking this on and improving it, it is a great program when all you need to do is quickly swap some stock out or check if you have the required stock for a scenario.

    I would like to make a suggestion (which of course you can completely ignore if you wish)

    I have noticed that if the player train name is too long it will go past the end of the box and then you can not see the icon indicating it is the player train, is there a way the player train could be highlighted in a different way or maybe allow for the box to be resized?

    Example
    upload_2023-2-26_9-0-30.png

    Thanks again
    Bekns
     
  42. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    143
    Likes Received:
    57
    Hi All

    Does anyone know if there a way to know which is the driven loco in a consist like in a multiple unit or top and tail setup?
     
  43. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Yes if the whole window expanded when you dragged an edge that would be awesome, at present it rather uselessly (beyond a certain point) just expands the right hand portion.
    Image4.jpg Image6.jpg

    Agree with the sentiment with how useful this program is, it's definitely my goto swapper/checker tool now.
     
  44. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Look to see if Flipped is ticked, if not then it will be the top entry on the list, if ticked then it will be the one on the bottom.
     
  45. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    143
    Likes Received:
    57
    Doesnt that just refer to the direction of the individual loco though rather than which loco is driven? (not sure, happy to be advised otherwise).

    In a MU setup one loco will always be flipped otherwise it would be facing the wrong way in the sim is how I understand it to work, in a top and tail situation both locos could be flipped or not flipped given most have a cab at both ends (UK) where MU's do not but I am still confused as to which would be the driven loco.

    If each was a different livery or number then you would know once you went in game but this kind of defeats the purpose of using a program to ease the process. TS Tools let you know which is the driven loco in a consist by using a number with 0 being the top of the consist in the viewer and the number being higher as you went down the consist (counting only locos of course).

    TS Tools example - this number could be higher as well if there were more locos say like in a US freight setup
    upload_2023-2-26_11-34-56.png


    TS Tools example where the driven loco is at the bottom of the viewer
    upload_2023-2-26_11-39-3.png

    Maybe I am over thinking this but I think it plays an important part when getting the correct format for the loco numbering, specially when using options like in the AP setups
     
  46. PhÜnKî_Rø0sTā

    PhÜnKî_Rø0sTā Well-Known Member

    Joined:
    Nov 28, 2019
    Messages:
    658
    Likes Received:
    582
    Pardon my ignorance, but what does LocoSwap actually do? Does it also swap out rolling stock?
     
  47. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    Yes you can swap anything with anything in your library, loco, carriages, wagons the lot, it does what TSTools does in regards to swapping rolling stock but in a lot more straightforward and user friendly way, and of course it's still very much in active development and evolving all the time.
     
    • Helpful Helpful x 1
  48. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    It may be I who got the wrong end of the stick then, perhaps frankoi1337 can better advise and come up with a solution.
     
  49. inversnecky

    inversnecky Well-Known Member

    Joined:
    Dec 26, 2020
    Messages:
    2,252
    Likes Received:
    843
    I’m wondering about the differences between LocoSwap and TS Tools. Are there things the former can do that the latter can’t? I’ve just got used to TS Tools!

    With LocoSwap, do you still have to rebuild route and scenario XMLs on adding new items?
     
  50. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    It's very similar to the swap loco part of TSTools scenario editor as for the rebuild route and scenario XML's I don't know what you are on about, I've never had to do such things swapping rolling stock in TSTools?

    It's basically this part of the scenario editor in a much better UI and instant.
    Image15.jpg
     

Share This Page