[solved] The Complete Star Has Disappeared!

Discussion in 'General Discussion' started by WINGLET747, May 28, 2022.

  1. WINGLET747

    WINGLET747 New Member

    Joined:
    Apr 13, 2019
    Messages:
    18
    Likes Received:
    2
    Why did the star in the complete scenario suddenly disappear?
    There was a gold star on it. The score section is still there. Everything else has disappeared. Is there any way to restore it?
    無題.png
     
  2. torfmeister

    torfmeister Guest

    This can happen if you delete the scenario database file (Content\SDBCache.bin) or the game crashes while updating the database without having Steam Cloud enabled.

    You could try to edit the SDBCache.bin (Use Serz.exe to convert it to xml). I'll show you a section:

    11.png
    MedalsAwarded 3=Gold, 2=Silver, 1=Bronze

    Note that there is an eSFIsUntampered flag - I don't know if it works or if there's another file involved. There seems to be a checking mechanism of some way.

    Considering your highscore - this is saved in C:\Program Files (x86)\Steam\userdata\<YOUR ID>\24010\remote\Career.xml

    You can try to edit these files - on your own risk. I do not know if the game accepts manual modifications as there will be an MD5 checksum mismatch.

    It should not happen if you have Steam Cloud enabled for Train Simulator, so turn it on if you haven't.

    2022-05-28 12_52_55-.png
    Note that once your score is submitted to Steam, it will stay there no matter what the state of your career.xml is. This information is NOT stored locally - otherwise you could not see other player's scores obviously.
     
    Last edited by a moderator: May 28, 2022
  3. OldVern

    OldVern Well-Known Member

    Joined:
    Nov 2, 2020
    Messages:
    18,038
    Likes Received:
    36,685
    I have noticed all my stars have disappeared and been replaced by green ticks, even on scenarios I am completing currently. Will check my Steam Cloud settings and Dovetail Live has a tiresome habit of logging you out too, if that has any bearing.
     
  4. torfmeister

    torfmeister Guest

    Maybe you've turned off Career Scoring in the Settings? This is a different case than the OP's. He doesn't even have checkmarks - the information is just lost.

    I've never logged into Dovetail Live. Just make sure in the Steam game Properties for TS you have Cloud saves enabled. This copies the career.xml to Steams' server. (1.89MB is exactly the file size of my career.xml)

    So I'm not fully sure where the "Gold Star" information is mirrored - because career.xml only has scenario ID and lastscore/bestscore entries.

    But if I delete my SDBCache.bin, TS restores it with all Medals Awarded. I'm still not sure where it gets this information from. Possibly by syncing SDBCache with career.xml, if score=1000 then MedalsAwarded=3 or something like that.

    So if somehow the career.xml gets lost or corrupted by a crash, the SDBCache will lose the completion information.

    33.png
     
    Last edited by a moderator: May 28, 2022
  5. torfmeister

    torfmeister Guest

    WINGLET747

    Do the following. If my theory is right then the career.xml will restore your information.

    Disable Steam cloud save for TS if you've activated it!

    Go to your Steam installation folder. Default is:
    C:\Program Files (x86)\Steam\userdata\<your id>\24010\remote\

    Open the file career.xml, preferably with Notepad++ or the default Editor. (NOT with Word!)
    Search for the following section (84f68911-8a7c-466a-b52a-6a917ad29d91) and change the information as shown. (This is for the Stevens Pass Everett - One Time Round scenario)
    Only change IsCompleted, BestScore and LastScore! Make sure there's no typo!

    55.png

    Now we'll backup SDBCache.bin. Go to:
    <your Steam library path>\RailWorks\Content\

    and rename SDBCache.bin to SDBCache.bak (so in case something goes wrong you can rename it back) - TS will create a new cache hopefully retrieving the completion data from career.xml.

    Start TS and report if you got the star back.

    If it works, enable the Steam cloud saves now.

    If it does not work, then I'm afraid there's no other way other than replaying the scenario.

    So I'm learning as I'm going through this - please note that based on the information of my cloud save filesize, your scenario savegames will NOT be saved in the cloud - only scenario score and completion information. Of course you can also make a backup of the career.xml file locally after each TS session if you don't want to enable cloud saves for whatever reason.

    So to get all your stars back, you'd have to determine the scenario ID for each scenario (Build>Scenario menu shows them) - it'll take a lot of time. No other way.

    Or you could just simply make a Search-and-Replace operation with the editor and set all scenarios to CompletedSuccessfully/1000. That'll be cheating on yourself because you'd lose overview on what you haven't played yet.

    Final note: As TS is a single player game, I do not think that tampering with the career file will cause a Steam VAC ban - but I cannot rule that out 100% (but to 99.9% I'm sure). That's why I advise to turn off the cloud while editing that file, or better run Steam in Offline Mode - just as a simple precautionary measure. Anyway the scores will give you no advantage whatsoever in the game.
     
    Last edited by a moderator: May 28, 2022
    • Helpful Helpful x 3
  6. WINGLET747

    WINGLET747 New Member

    Joined:
    Apr 13, 2019
    Messages:
    18
    Likes Received:
    2
    I checked with NotePad++ and <cScenarioCareer d:id="21726840> is not there, what should I change?

    upload_2022-5-29_0-16-51.png
     
  7. torfmeister

    torfmeister Guest

    The scenario ID may be different because you have different scenarios, so it's just for order.

    The unique scenario GUID to search for is 84f68911-8a7c-466a-b52a-6a917ad29d91

    I see it on your screen already. Change the marked lines.

    CompletedSuccessfully
    1000
    1000


    66.png

    Your career.xml indeed got lost somehow. Only 460 lines... Have you changed to a different PC maybe and cloud saves were disabled?

    To get back all your other stars, you must first let TS fill up the career.xml with entries. Start a career scenario of each route you have, immediately quit and it should add the scenario (possibly all of that DLC) to the xml.
     
    Last edited by a moderator: May 28, 2022
    • Helpful Helpful x 1
  8. WINGLET747

    WINGLET747 New Member

    Joined:
    Apr 13, 2019
    Messages:
    18
    Likes Received:
    2
    It's done! The star now changes color with the best score number. Where is the last score displayed?

    upload_2022-5-29_1-51-54.png
     
    • Like Like x 1
  9. torfmeister

    torfmeister Guest

    Great!

    LastScore is not displayed - just internal for calculating your XP points after you've improved your score.

    The 939 is still there because it only updates on the Steam server immediately after you've played the scenario. That's just fair, because it is your real achieved score.

    Considering this, enter 939 as last/best score in the career.xml! That is because if you play it again and get 1000, you'll get 1000-BestScore=61 XP points awarded. That's what this value is for, that you do not get more XP if you replay the same scenario - only your improvement over the last highscore - the difference to 1000 points.

    So if you leave BestScore at 1000, you cannot get the remaining 61 XP points added to your total career score (because 1000-1000=0).

    Btw, now I know why updating the scenario database takes so long if you've deleted SDBCache.bin - It takes the career.xml, applies the score to your scenario database and must look into each ScenarioProperties.xml which score awards which medal (usually it's Gold 900
    , Silver 750, Bronze 500 - but the scenario designer can change these numbers).

    In here it's usual to leave Likes or Helpful (bottom right of the posts) if you're being helped, so I'd be grateful if you do. For others with the same issue it also might be good to edit your thread title - like putting [Solved] before the title. I enjoyed this thread;)

    Cheers!
     
    Last edited by a moderator: May 28, 2022
    • Helpful Helpful x 2
  10. WINGLET747

    WINGLET747 New Member

    Joined:
    Apr 13, 2019
    Messages:
    18
    Likes Received:
    2
    I understand about the career scenario, but is there a separate check mark for the complete standard scenario?
    Is there a way to convert SDBCache.bin to Xml with Serz.exe and then convert the edited Xml to SDBCache.bin?
     
  11. torfmeister

    torfmeister Guest

    Should also be in the career.xml.
     
    Last edited by a moderator: Jul 26, 2022
  12. huskydoug

    huskydoug New Member

    Joined:
    Mar 20, 2023
    Messages:
    1
    Likes Received:
    1
    My stars were intact but completed scenarios were not adding to career XP. Hiding the SDBCache.bin and SDBCache.bin.md5 and letting Steam replace them on my computer seems to have solved that issue.
     
    • Like Like x 1
  13. PlatinumSLS

    PlatinumSLS New Member

    Joined:
    Feb 16, 2023
    Messages:
    13
    Likes Received:
    13
    Funnily enough I've been having the exact same problem. I played two career scenarios on Saturday, one on the Birmingham Cross City Line and the other on the CML Blackfriars & Victoria to Dover & Ramsgate, and while I was correctly given the gold star for earning 1000 points in both scenarios, neither gave me any career XP or unlocked their respective achievements (for both scenarios it was my first time playing them). Trying what you mention in your post regarding the SDBCache.bin, I played and completed another scenario afterward and was awarded XP and an achievement.

    So for anyone else who is having problems with career XP and achievements unlocking, give the suggestion in huskydoug's post above a try.
     
    Last edited: Apr 6, 2023
  14. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    139
    Likes Received:
    56
    Delving more into the standard scenario side and the 'green ticks' I have found they can just disappear at times never to be seen again but in exploring this I have noticed some behavior that is puzzling.

    I have split my content folder into different regions (UK, US, DE, and Other) and for each of these regions I use a different SDBCache. I do this as I have somewhere upwards of 300+ routes installed and it reduces initial loading times and loading times in the menus quite significantly (I will be interested to see what DTG have in store for content management mentioned by Steve Dark in the 'Future of TSC' article)

    If I let the sim build a new SDBCache file from scratch it will most definitely have some scenarios with green ticks already and when you look at the file itself there will be some scenarios with 'CompletedFailed', I would expect this to be normal behavior but I dont have cloud sync enabled as this would interfere when I swap out the SDBCache files when changing regions so the sim is getting this info from somewhere.

    I thought there might be some kind of individual flag in the scenario files themselves but I havent been able to locate one so I wonder where this info is coming from.
     
  15. torfmeister

    torfmeister Guest

    Have you read this thread? I think I've explained it.

    All scenario completion data is stored in "career.xml" in the Steam userdata folder. This is the file that gets synced with the cloud.

    Let's say you have two identical TS installations. If you complete scenario XY on installation A, it will not show completed on installation B - unless you delete the cache and it retrieves the scenario completion from career.xml.

    If you delete SDBCache.bin, it will rebuild that one for the scenarios on your installation based on the information in career.xml.
     
  16. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    139
    Likes Received:
    56
    Yes I have read this thread but I was assuming this applied to career scenarios only but I was referring to standard scenarios. Are you confirming the career.xml holds information on standard scenarios as well as career scenarios?
     

Share This Page