Locoswap Producing Enormous Xml Files

Discussion in 'General Discussion' started by chrisreb, Oct 5, 2025.

  1. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
    Locoswap v 1.6.1.0 has suddenly started producing Temp xml files of over 2TB filling my disk in seconds. These are SDBcache files. There is a small bin file and an enormous xml file. Dont want to lose this very useful utility. Has anyone else seen this. Tried reinstalling it on a different drive
     
  2. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
  3. 21c164fightercommand

    21c164fightercommand Well-Known Member

    Joined:
    Nov 6, 2021
    Messages:
    1,018
    Likes Received:
    1,001
    What were you trying to achieve in LocoSwap?

    Looks like you have a corrupt scenario .bin file somewhere, perhaps the leftover of a faulty edit?

    What does the SDBCache.bin in your install's Content folder look like?
    My scenario database cache .bin is exactly the same size as the .bin in LocoSwap's temp folder. But then perhaps LocoSwap just copies it into its own temp directory?

    There is a dedicated thread on LocoSwap, perhaps you will find your answer there?
    https://forums.dovetailgames.com/threads/locoswap-tool.61882/

    PS: have you tried opening your scenario database cache .bin in TS-Tools, or tried dropping it on Serz.exe to get the .xml with all your scenarios?
     
    Last edited: Oct 5, 2025
  4. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
    My SDB cache in sim is pretty small at 10,12Kb. Finding a corrupt scenario would be impossible, I had done a fair few edits lately
     
  5. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
    Wonder if I would be best to delete my main SDB cache and let it rebuild
     
    • Like Like x 1
  6. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,509
    Likes Received:
    3,262
    Locoswap has the same problem as TS Tools.
    It looks for loco/wagon files but it does not know if the loco/wagon it is replacing works ok.

    We place a wagon on the track in the Editor and that's fine
    If nothing appears we go checking to see if it has a geo fie or something else missing

    When I installed an AP extra stock pack it placed bin files for stock I did not own.
    TSTools said I had the wagon but I was missing a lot of files for it so nothing appeared

    TSTools and LocoSwap don't know if the loco/wagon/unit has a fault or not
     
  7. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
    Having rebuilt SDB Cache in game the temp folder xml file in Locoswap seems to be holding at 237MB against SDBCache in main game of 11Mb
     
    Last edited: Oct 6, 2025
  8. 21c164fightercommand

    21c164fightercommand Well-Known Member

    Joined:
    Nov 6, 2021
    Messages:
    1,018
    Likes Received:
    1,001
    Are you directly comparing the indicated size of serialized .bin files with their source .xml files?

    You can de-serialize the SDBCache.bin from the Content folder and get a complete and readable .xml file of 237 MB? Use Notepad ++ to check all tags are closed correctly.
     
  9. chrisreb

    chrisreb Member

    Joined:
    Dec 12, 2016
    Messages:
    102
    Likes Received:
    16
    OK thanks - at least it seems to have stopped filling my Hard Disk. I did go into a route where I had been working on scenarios replacing stock and deleted the bak files from each scenario. Not sure if that was connected. The SDBCache bin file is now same size in both places so encoraging and xml is down to 68Mb
     
    Last edited: Oct 6, 2025

Share This Page