Ecml London To Peterborough - Quick Drive

Discussion in 'General Discussion' started by Pookeyhead, Feb 25, 2023.

  1. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,313
    Likes Received:
    2,715
    Does ECML London to Peterborough have quick drive enabled. I noticed this morning it's absent from the menu with the quick drive tab selected. I'm convinced I've just used quick drive with this route before, but I'm starting to doubt myself now, and wondering if I've just had a senior moment LOL.
    Thanks
     
  2. Veryfatbloke

    Veryfatbloke Member

    Joined:
    Dec 30, 2020
    Messages:
    52
    Likes Received:
    31
    It would appear so
    upload_2023-2-25_6-55-58.png
     
  3. torfmeister

    torfmeister Guest

    Should really be pinned...

    In case of missing scenarios, especially QDs, delete RailWorks\Content\SDBCache.bin and everything will reappear magically :)
     
  4. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,313
    Likes Received:
    2,715
    Doh!.. Sorry... I'd forgotten all about that. All is well now. You're right though, it should be a sticky.
     
  5. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I reckon you should create a new thread titled something like "A Solution for missing Scenarios" so google bots and the like will pick it up and also regulars here will see it for what it is by the title too then we ask the DTG staff to pin that.

    Edit:
    I even have an image (which you can use if you wish) as it gets asked so often on Facebook too.
    DeleteSDBCache.png
    (I've always advised people to delete both the above files as that's what was advised to me many moons ago)
     
    Last edited: Feb 25, 2023
  6. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,313
    Likes Received:
    2,715
    I just deleted the .bin and it fixed it, but thanks, next time, if there is one, I will delete both.
     
  7. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I don't know for sure the .bin.MD5 file does or affects anything and at only 1kb I doubt it has that much of an influence on the issue getting resolved (as you yourself now know just deleting the .bin works) it's just what I was told to do and have always done so that's why I've always advised the same, Torf probably knows more about it.
     
  8. inversnecky

    inversnecky Well-Known Member

    Joined:
    Dec 26, 2020
    Messages:
    2,252
    Likes Received:
    843
    I must try this fix too: on picking up TS again after a few months off, I too was wondering if there were fewer routes appearing in some of the menus than I had recalled.
     
  9. torfmeister

    torfmeister Guest

    You can delete the .MD5, but you don't actually need to. It is just the checksum of the SDBCache.bin and will be updated automatically.
     
    • Like Like x 1
  10. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    I just responded a thread in Technical Reports, essentially the same.
    Someone with bravery should talk to DTG Alex as they were discussing priorities. The problem must be in nature similar to SQL Injection, some kind of data error in turn creating format errors and somesuch. Should add validation and sanitisation. With a possible info box that some of your content is broken, this and this specifically.
    My install is steady for 1.5 years now.
    Apart from workshop, possibly bogus 3rd party content can also break it, I guess.
     
  11. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    how can i add routes to routes menu,, some of them aren't showing? i have scenarios for them
    wcml phase4
     
  12. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,257
    Likes Received:
    3,184
    Are you looking in the correct place?
    When you go to the drive menu it could be under any of 4 tabs Quick Drive, Career. Standard & Free Roam
    Go in to Build it see if the Scenario you are looking for is there and which category it is in
     
  13. torfmeister

    torfmeister Guest

    Don't think there's a way for the system to recognize something's missing from the cache. Therefore it would neet to compare it with the career.xml and all scenarios present. Which is just what happens when you delete the cache (which is technically not corrupt - just missing entries for some reasons, mostly related to scenario editing, deleting and crashes.)
     
  14. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    That's retroactive. Difficult indeed.
    Maybe not really though, as whenever installing stuff, the game picks it up, so I'm assuming it just breaks and cannot recover.
    When starting the game, it reads the entire structure. It's more of a cache throughout the session. Could even just be in-memory.

    What I'm thinking about is preventing the problem.
    Like when the workshop extract goes wrong, it somehow inserts garbage characters into the stream, which makes the (scenario properties) xml invalid. Not sure why the bin is less affected, but anyway. But let's assume it's not an actual xml, just looks like one. So the crawler now reads its metadata including faulty guids, and without any check, inserts into the scenario database. Which is now corrupt as well. So when it's read the next time, things go south and it stops reading halfway. Or completely crashes the process. Both can happen. In my case it was fairly deterministic.

    So what can I do as a dev? Validate. Reading a scenario, is the ID valid? Does it contain Tabs and Zeros? Is it well formed? Does it match folder name?
    If bogus, add a placeholder to the cache instead. Add a filter to the scenario list about these.
    Some of these can be fixed, such as reextracting ONE workshop scenario per game start, if its file is still in the workshop incoming folder.
    Just random thoughts, but I'm sure any actual dev can think it through.
    Maybe in the original design it didn't make sense to check, it wasn't priority, given all content was installed from a CD/DVD but clearly by now it's funny.

    I've come across a lot of failing code over my time, some were terrible but more often just careless, missing edge cases.
    It's what a lot of testing courses talk about - confirm & reproduce & test, fix, verify.
     
  15. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    yh,the route and scenarios show in build ,but not in the route selection:
    upload_2023-2-25_13-59-19.png upload_2023-2-25_14-0-26.png
    upload_2023-2-25_13-59-19.png
    upload_2023-2-25_14-0-26.png
    upload_2023-2-25_14-2-50.png
    upload_2023-2-25_14-2-50.png
    it shows in career but not standard? i can find it if i scroll down
     
  16. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    That can happen, if the route doesn't have standard / timetabled scenarios.
    The tabs at the top are scenario type filters. There are five: Quick Drive, Career, Standard, Timetabled, Free Roam.
     
  17. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    yh,but there are standard scenarios. why does it only show in QD and career? can i make it show in Standard aswell(to save scrolling)
     
  18. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,257
    Likes Received:
    3,184
    Take a Screen Shot in Build > Scenarios of the Standard Scenarios you have but are not showing.

    And what does yh mean?
     
  19. inversnecky

    inversnecky Well-Known Member

    Joined:
    Dec 26, 2020
    Messages:
    2,252
    Likes Received:
    843
    I was wondering the same!
     
  20. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    Means Yeah.
    So he meant "sure, but it does have them, not showing though, why?".

    By the way, I have one route - Koblenz-Trier - which doesn't have appropriate filter strings, so while it does show normally, I couldn't find the scenarios once I typed stuff like Trier. Stuff like that could also affect the route filter.
    Also, if you select a loco, it filters the routes. Also the other way around. It's a bit messy so I never ever use it, just the text filter.
    In any event, it looks like a possible issue with a 3rd party product, so ask them first.
    Or extending on Peter's question, create a short video of how you're trying to find them. Screenies are fine but we're all prone to omit details which eventually turn out to be important. Every single click.
     
  21. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
  22. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,257
    Likes Received:
    3,184
    I'm confused as you have the route selected in Post #15?
    Do the Scenarios work?
     
  23. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    yes,in career tab but not standard?
     
  24. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    Make sure to try searching for them without that thumbnail thingie.
    Or just 1Y07 as that's a segment one of the scenarios contain.
    A fresh game start should have all filters off.
    So basically, what happens, if:
    1. Start the game
    2. Press Drive
    3. Switch to Standard Tab
    4. Scroll the list to where this route should be (sorted alphabetically by routes)
    5. Type 1Y07 in the top right search box
    6. Type West Coast (without the quotes) in the top right search box (replacing 1Y07)
    Something must be truly off for all of these scenarios to fail the filters, not impossible though.

    You can also restore the non-thumbnail state by removing the filter icon in the bottom right of each thumbnail. Something I only know because someone pointed it out. Hence my first step above.
     
  25. torfmeister

    torfmeister Guest

    A scenario does not show up in the filtered list when:

    1. The player loco is not specified in the ScenarioProperties.xml's <FrontEndDriverList> which is true for some older scenarios
    2. The scenario is of "Relay" type. (Convert with TSTools or access from Build menu)
    3. The database is incomplete - in this case delete SDBCache.bin
     
    Last edited by a moderator: Mar 1, 2023
  26. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    yh,that works. just odd i can't select the route.
     
  27. triznya.andras

    triznya.andras Well-Known Member

    Joined:
    Jun 29, 2019
    Messages:
    2,363
    Likes Received:
    2,856
    Cool, now we're getting somewhere! :) Happy that it works for you as a workaround, at least.

    Also, I have a practical experience that might help shed some light on it.
    I do have two old German packs installed, Freight and E18. The Hagen-Siegen scenarios do show up just fine (including timetabled as of late), but the Seebergbahn ones do not - since I do not have the route. The tricky part is, when I search using the box, they do. Which is obviously a bug, filtering the raw list upon typing instead of chaining the filters (which is obvious when you search in career and switch to standard).

    This might be your case, too - the game filtering out your scenarios for some reason, however the text filter ignores that.

    As for selecting from the thumbnails, I don't know how that works and I generally wouldn't recommend that. It also tends to interact with the loco selection, which might be involved. I understand the team is going to replace the UI because the framework used is out of support now.
     
  28. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    8
    np
     
  29. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,257
    Likes Received:
    3,184
    Have you asked on the ATS Forums as somebody there might have had the same problem
     

Share This Page