A Tale Of Reverse-engineered Software Development...

Discussion in 'General Discussion' started by fastleg, Dec 10, 2025 at 4:47 PM.

  1. fastleg

    fastleg New Member

    Joined:
    May 21, 2025
    Messages:
    14
    Likes Received:
    20
    A tale of reverse-engineered software development leading to an unexpected and almost genius solution for a frustrated Scenario Developer...

    On another thread I was asked about QD-Preloads in my software. Now, not knowing anything about QD’s I asked for clarification, and this issue of “Preloads”. Not being familiar with “Preloads” as such, but being familiar with Route preloads (dependencies), I queried. Anyway, we mean Stock-Preloads.


    Now, as it happens I’ve been avoiding these buqqers in my software as the stock refs contained are not stored as simple linear consists, but can be a composite (and part-composite) of fragments, plus I’ve never found the need to mess with them tbh (apart from picking them from the TSC Scenario-Builder side-panel – more later).



    So, I thought we’d better finally get to grips with the Stock-Preloads for this QD stuff (to be continued...) , and so have reversed-engineered (as is done for everything in TSC) the Stock-Preload files and knocked-up a Stock-Preload Manager. It’s pretty good as a stage#1, and can be developed further.


    As an example, the belows shows ALL the Stock-Preloads on my system (only some of which are expanded) - blue items are packed inside an *assets .ap file – while black are native unpacked files....
    upload_2025-12-10_16-20-42.png

    Or can be filtered by Route. e.g. restrict to North London Lines (BR NSE) Dependencies (route preloads)
    upload_2025-12-10_16-21-2.png
    You can then drill-down to the specific Preload Consist (in this case with any Fragments inserted for a running config) or see the actual Preload consist (as on file) with Fragments construction... (can't show here as forum has limited number of screenshots allowed to paste - I'll post them as a follow-up.


    There are also some listing functions with options to output data to a CSV file etc.

    Anyway, (and back to the point of this thread) while playing around with this and getting it working, I suddenly had a thought. Could I STORE these Stock-Preloads so they don’t clutter-up the TSC Scenario-Builder “Consist” side-panel? It turns out you can. Genius.

    The software already does Route and Scenario storage so you can hide routes and scenarios from the TSC front-end menus (and speed-up TSC loading time), but as a Scenario developer, what has always narked me no end is that tiny TSC Scenerio-Builder Side-panel, and everything about it. Most of the items relate to stock I would never use, and scrolling through that list trying to find things is tedious beyond belief, and then waiting for the consist text to *oh-so-slowly-scroll-right* (as the wanted info is *always* at the end of the text...) is a another pain in the hole and seriously frustrating. And the TSC Grouping things are about as reliable as the TSC Scenario-Builder itself (i.e. not very).

    But yeah, it works. You can STORE (and thus hide from TSC Scenario-Builder side panel) selected Stock-Preloads.

    For instance, there’s a whole bunch of AP Class 31’s I’ll never use clogging up the side panel...
    upload_2025-12-10_16-21-48.png

    So we STORE everything except just the 3 BR Blue versions we use...
    upload_2025-12-10_16-22-7.png

    And bingo, there we have it, just the 3 Blue Class 31’s in my side-panel (that old Kuju stuff is next for the chop...). And of course any STORED Preload can be simply RESTORED at any time. However, it does seems you do need to exit RailWorks.exe completely, then go back in for any changes to be picked up, so they must be internally cached...
    upload_2025-12-10_16-22-42.png
    Ah! But alas it can only work on native (unpacked) files, though is useful nonetheless to store native stuff.

    So, not quite genius, but still pretty nifty...

    FastLeg
     
    Last edited: Dec 10, 2025 at 4:57 PM
    • Like Like x 1
  2. fastleg

    fastleg New Member

    Joined:
    May 21, 2025
    Messages:
    14
    Likes Received:
    20
    As I said, You can then drill-down to the specific Preload Consist (in this case with any Fragments inserted for a running config)...
    upload_2025-12-10_16-52-28.png

    Or see the actual Preload consist (as on file) with Fragment construction...
    upload_2025-12-10_16-53-11.png
     
    • Like Like x 2
  3. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,720
    Likes Received:
    3,349
    How did you go about STORE ing those 31s?

    I have a number of assets that I won't use but I did not want to delete them

    Thanks
     
  4. fastleg

    fastleg New Member

    Joined:
    May 21, 2025
    Messages:
    14
    Likes Received:
    20
    Well remember, I'm only storing the Stock-Preload Consist here, not the actual stock (looking into it, but stock items are more complicated). While that example looks like I'm hiding the Class 31 locos, they are all actually single loco Stock-Preload consists (not the stock directly).

    But all I do is rename the \Preload\xxx.bin file to xxx.bin.store. TSC then doesn't see it. Easily restored by renaming it back. Similar method to Storing Routes and Scenarios. Obviously it can be done manually, but more efficient to get some software to do it...
     
    • Helpful Helpful x 1
  5. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    814
    Likes Received:
    668
    fastleg VERY impressive already!!!
     

Share This Page