Does Steam Keep Re Packing Into Ap Files?

Discussion in 'Technical Reports' started by martschuffing, Dec 24, 2022.

  1. martschuffing

    martschuffing Well-Known Member

    Joined:
    Aug 8, 2020
    Messages:
    1,019
    Likes Received:
    750
    Can anyone answer the above question please, I spent ages unpacking my ap files only to have them all repacked again? Very annoying.
     
  2. martschuffing

    martschuffing Well-Known Member

    Joined:
    Aug 8, 2020
    Messages:
    1,019
    Likes Received:
    750
    Is there any way of preventing this apart form going off line?
     
  3. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Mart
    WRT TSC Steam has a master database that keeps all the details of pristine TSC files including the .ap files.
    When you carry out a Game File Verification via Steam, if there is a change in any of these files, including date, time, missing, and attributes then Steam will replace that .ap file with the pristine one from its master database.
    Pre .ap files circa 2014 any changes in any file in any routes content or Assets folder, will also be replaced.
    The Steam system is a protective system for you the consumer, meaning that you can always have the correct file to operate from.
    Steam does not check 3rd party Assets or Routes, only those purchased via Steam and it does NOT delete any file it only replaces those that are different from the ones on the Master database.
    Plus if you have extracted the .ap files and deleted the .ap file itself - Steam will replace the .ap file but that doesn't matter as the TSC code reads and uses any data outside the .ap file first (ie in any extracted .ap file) and will not be affected by the re-packed .ap file.
     
    Last edited: Dec 24, 2022
  4. martschuffing

    martschuffing Well-Known Member

    Joined:
    Aug 8, 2020
    Messages:
    1,019
    Likes Received:
    750
    Hi Pete, far be it from me to contradict a pro like yourself but I disagree that steam does not empty any file outside of the ap. file structure, it does, that includes every content and asset folder that is in an ap. file in any folder, I've checked multiple files outside of the ap. files which I had extracted after this update and every single folder are empty along with all the corresponding xml and sd5 and Lan files are all gone.
     
  5. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Mart
    I have no answer - it shouldn't work the way that you experience but obviously, it does! The only algorithm Steam has is to reacquire those files on your PC that do not match the master database. It leaves mine alone!
     
  6. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,817
    I'm starting to think it's something other than Steam doing this, I had my background.jpg deleted from my data/textures/frontend folder earlier today but have not had a Steam verification in the last 48hrs.
     
  7. martschuffing

    martschuffing Well-Known Member

    Joined:
    Aug 8, 2020
    Messages:
    1,019
    Likes Received:
    750
    In my experience Steam has always deleted the contents of those files after a re-verification however it is doing it all the time now due to something either DTG has implemented in that update or Steam has made a change but I doubt it, it is more likely DTG have changed something.
    Yes, Reef once more something has been deleting the contents of my extracted ap. files and I am offline? Curious, DTG have you altered the core to minimize the amount of unpacked ap. files at any one time?
    As an experiment, I have moved out all my assets ap. files out of the DTG folders, let's see if owt happens, if they magically re appear then DTG has altered the core in some way?
     
    Last edited: Dec 27, 2022
  8. Peter Hayes

    Peter Hayes Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    818
    Likes Received:
    329
    Mart
    Have you tried this?

    This is a simple test to see if it is possible that the Steam Process is at fault. (DTG has nothing to on how Steam processes TSC)

    Choose a route that you have extracted the “.ap” file and that route has an associated “.ap” asset file. (and/or you have subsequently deleted the ".ap" files)


    For example, the Huddersfield Line \STEAM\steamapps\common\RailWorks\Content\Routes\00000105-0000-0000-0000-000000002023 (the last string of numbers are the routes UNIQUE GUID.

    This Folder Should contain if not extracted/modified one File: MainContent”.ap”.

    Its associated Assets file is \STEAM\steamapps\common\RailWorks\Assets\DTG\LeedsManchester this contains a couple of files - may be different for other routes
    LeedsManchesterAssets ”.ap”
    TimeofDay
    RailNetwork


    Note the GUID number of the route, plus the size of the Route and Asset folders including your extracted/modified files outside the “.ap” structure.

    If you have already deleted the “.ap” file(s) just the size of your extracted/modified files.

    Copy your version of the route plus the associated Assets folder to a safe place.

    Open Steam and select the “Train Simulator” option and scroll down the right side of the page until you see “DLC” and “Manage my DLC”. Click on “Manage my DLC” and a list of all your DLC installed will appear.

    Search for your extracted/modified route – it should be ticked – UNTICK that route.

    Allow Steam to complete that function.

    Close Steam and to be sure re-start STEAM.

    Check the “Manage my DLC” option - that your route is now unticked

    Check the sizes of the Content and Assets folders to see if your extracted/modified files are there.

    Was any file deleted? The “Scenario” Folder should always be untouched.

    Is the RouteProperties.xml file still there?

    Repeat the “Manage my DLC” process and now tick your route.
    Re-check file sizes etc – any files deleted?
    Are the “.ap” files reinstalled?

    This could show – if any files have been deleted that it could be a fault with Steam Game File Verification, for some simmers.

    I recently purchased the Huddersfield route, I extracted the “.ap” files (Route/Assets) – deleted them and followed this procedure and found that no files were deleted, re-sized or modified.
     
  9. martschuffing

    martschuffing Well-Known Member

    Joined:
    Aug 8, 2020
    Messages:
    1,019
    Likes Received:
    750
    None of the steam routes are showing in Standard but my 3rd party routes are still there but saying that most of those will rely on the steam routes for assets as for the content folders so far they haven't changed, the only thing that I have changed is the -disable quickstart in the start-up. Could it be that simple? But then again that doesn't explain why the folders outside in my assets folders have been emptied by steam?
     

Share This Page