!!!WARNING!!! I've been notified that ap files are not always working as described here. Please take this post with a very large heap of salt until further notice.
.ap files - What are they and how do I use them?
There are a couple of additions to TS2014 that have not been seen before, and have not been publicised by RSC. Most of these changes are so small and insignificant, you won't see them. However, if you like delving into the asset and content folders of your TS2014 installation, then you will certainly see one, the .ap file, and they are certainly an improvement!
What is the .ap file?
The .ap file is actually just a .zip file. That's it! If you change the extension of a .ap file to a .zip file, then windows will simply open it up, and allow you to access the contents. There is no encryption, no protection. All it does is holds a set of files under one name.
Why has RSC introduced the .ap file?
By packaging up assets and content into one .ap file, a number of advantages are realised.
1.) Disk usage. If you write a file to your HDD, it'll also occupy slightly more space than the file needs. This is the 'overhead.' Each file will have a slightly different amount of overhead, but in some cases that overhead can be massive, compared to the size of a file. For example, a 1kB file will actually take up 64kB of space! Multiply up such potential wasted space to the amount of files in your TS2014 installation, and you soon have a very inefficiently used HDD. By using the .ap file, this wasted space will be vastly reduced, because of less overheads.
2.) Steam verification. The way that steam verifies your TS2014 installation is by generating a checksum for each file. This is essentially a number that is created by performing a mathematical calculation to all of the 1s and 0s that make up the file. The same is done on the steam server. The numbers are compared, and if they don't match, then the file will be re-downloaded. This means that when you verify your TS2014 installation, it has to generate a number for each file, and compare it to the number stored on the steam server. However, with the .ap file system, steam views the zipped up files as one, and only generates one number, and only has to compare it to the steam server's number once, thus reducing the time that it takes to verify your TS2014 installation. The downside, however, is that if the file does get corrupted, it will download the whole package (but don't worry, you won't be modifying .ap files, see below.)
AAH! That means that if RSC gets things wrong, or I want to modify a file, the process is even more difficult!
Well that's where you are wrong! The process is actually much easier. This is because if a file is both held in a .ap file, and stored in the folder structure, the file in the folder structure will take precedence, or in other words override the file stored in the .ap file. Also, because seam does not care about files other than the .ap file, it will not remove any files that are overriding the .ap file. Lets explore an example.
Say for argument's sake RSC release a loco and the maximum speed that it can attain is not to your liking. You go into the .ap file and find the offending file. Now instead of extracting the entire contents of the .ap file, you just duplicate the offending file, and the folders that it is stored in. You modify the file to your liking, and load up TS2014. Because your modified file is outside the .ap file, two things happen
1.) Steam looks at the .ap file (if you do a verify of your TS2014 installation) and sees no difference to the copy stored on the steam servers
2.) TS2014 overrides the .ap file contents with the files that you have duplicated outside the .ap file and modified.
The downside to all of this is that if you modify something, a steam verify won't fix it.
Can I make my own .ap files?
Yes. When you have finished creating some assets or content, just zip the files up, change the extension from .zip to .ap and bob's your auntie (The only catch is that sometimes the windows explorer zip utility doesn't work for me for some reason. However, other 3rd party compression programs do seem to work).
Can I have more than one .ap file in the same folder? Which has priority?
You can have more than one .ap file in the same folder. All of the .ap files will have their contents loaded. I'm not sure which .ap file will have priority, all I know is that files outside .ap files have priority.
Do the .ap files fix the bloated product folder problem?
No. The blueprints are all still loaded, and bloated product folders will still be a problem.
Can I edit routes that are packaged up in .ap files?
No. If you want to edit a route, you will have to extract the .ap files.
I hope this clears up a few questions,
haddock1000
.ap files - What are they and how do I use them?
If you've got a question or a problem, THIS is the place to look FIRST as there may well already be an answer. Failing that, it may well provide you with direction as to the next steps to help answer your question or solve your problem! If you think a question should be added (and even better, you have the answer!) then contact someone in the FAQ Editors group.
Moderator: Moderators
-
haddock1000
- Virtual Rail Engineer
- Posts: 2321
- Joined: Wed Oct 04, 2006 11:26 am
- Location: I haven't decided yet...
.ap files - What are they and how do I use them?
Post by haddock1000 »
Part of the Chaddock Engineering group - trying to make things easy!
Return to “[TS] Frequently Asked Questions”
Jump to
- Site Administration
- ↳ Site Admin Queries
- ↳ UKTS Forum Rules
- ↳ UKTSLive! Road Shows
- ↳ General Discussion
- ↳ Old Deleted Forums
- ↳ Blog - Rick Selby
- ↳ Blog - Pat Cook
- ↳ Blog - Jamie Osbourne
- ↳ Blog - Brett Schnepf
- ↳ Blog - Mike Gilbert
- ↳ Blog - Tamara Williams
- ↳ MSTS 2 Home Page
- ↳ Microsoft Train Simulator 2
- ↳ Virtual Transport Role Playing
- ↳ Read Me First
- ↳ Site Admin (Lifexed)
- Train Simulations
- ↳ BVE and OpenBVE
- ↳ Generic Simulation
- ↳ Rail Simulator
- ↳ [RS] Help for Beginners
- ↳ [RS] General RS Discussion
- ↳ [RS] Screenshots
- ↳ [RS] Videos
- ↳ [RS] Route Building
- ↳ [RS] Building Rolling Stock
- ↳ [RS] Scenario Creation
- ↳ [RS] Cab View Creation
- ↳ [RS] Scenery Creation
- ↳ [RS] Signalling
- ↳ [RS] Sounds
- ↳ [RS] Physics
- ↳ [RS] 3D Modelling
- ↳ [RS] Pre-release Discussions
- ↳ Regional Discussion
- ↳ [RS] Ireland
- ↳ [RS] Europe and Surrounding Areas
- ↳ [RS] North America
- ↳ [RS] Australia / New Zealand
- ↳ [RS] Rest of the World
- ↳ OLDER Versions of RailWorks [1, 2 and 3: Train Simulator 2012]
- ↳ [RW] Frequently Asked Questions
- ↳ [RW] Help for Beginners
- ↳ [RW] General RW Discussion
- ↳ [RW] Steam Help
- ↳ [RW] Screenshots
- ↳ [RW] Videos
- ↳ [RW] Route Building
- ↳ [RW] Route Building Challenge 1
- ↳ [RW] Route Building Challenge 2
- ↳ [RW] Route Building Challenge 3
- ↳ [RW] Great Scenario Challenge 1
- ↳ [RW] Building Rolling Stock
- ↳ [RW] Scenario Creation
- ↳ [RW] Cab View Creation
- ↳ [RW] Scenic Item Creation
- ↳ [RW] Signalling
- ↳ [RW] Sounds
- ↳ [RW] Physics
- ↳ [RW] 3D Modelling
- ↳ [RW] RW Tools
- ↳ [RW] UKTS Freeware Packs
- ↳ WCML North Scenario Pack
- ↳ Train Simulator
- ↳ Links
- ↳ Rail Simulator Home Page
- ↳ Railsimulator.com Blog
- ↳ Paul Jackson (CEO) Blog
- ↳ Wear Valley Railway (RSDerek) Blog
- ↳ Railsimilarity Blog
- ↳ [TS] Frequently Asked Questions
- ↳ [TS] Help for Beginners
- ↳ [TS] General Discussion
- ↳ [TS] Steam Help
- ↳ [TS] Screenshots
- ↳ [TS] Videos
- ↳ [TS] Route Building
- ↳ [TS] Building Rolling Stock
- ↳ [TS] Scenario Creation
- ↳ [TS] Cab View Creation
- ↳ [TS] Scenic Item Creation
- ↳ [TS] Signalling
- ↳ [TS] Sounds
- ↳ [TS] Physics
- ↳ [TS] 3D Modelling
- ↳ [TS] RW Tools
- ↳ [TS] UKTS Freeware Packs
- ↳ Train Sim World
- ↳ [TSW] General Discussion
- ↳ [TSW] Screenshots
- ↳ [TSW] Videos
- ↳ Microsoft Train Simulator 1
- ↳ [MSTS1] Help for Beginners
- ↳ [MSTS1] General MSTS Discussion
- ↳ [MSTS1] MSTS Running under Windows 10
- ↳ [MSTS1] MSTSbin
- ↳ [MSTS1] Screenshots
- ↳ [MSTS1] Videos
- ↳ [MSTS1] Route Building
- ↳ [MSTS1] Building Rolling Stock
- ↳ [MSTS1] Activity Creation
- ↳ [MSTS1] Cab View Creation
- ↳ [MSTS1] Scenery Creation
- ↳ [MSTS1] Sounds
- ↳ [MSTS1] Physics
- ↳ [MSTS1] Texture Creation
- ↳ [MSTS1] 3D Modelling
- ↳ [MSTS1] UKFinescale Track
- ↳ [MSTS1] XTracks Track
- ↳ [MSTS1] MSTS under VISTA or Windows 7
- ↳ Regional Discussion
- ↳ [MSTS1] Ireland
- ↳ [MSTS1] Europe and Surrounding Areas
- ↳ [MSTS1] North America
- ↳ [MSTS1] Australia / New Zealand
- ↳ [MSTS1] Australia / New Zealand Wish List
- ↳ [MSTS1] Rest of the World
- ↳ Special Interest Groups
- ↳ [MSTS1] Welsh Highland Railway
- ↳ [MSTS1] Chris Baily's Productions (inc ELR etc)
- ↳ [MSTS1] Midland Railway TS
- ↳ [MSTS1] Save 75069 CD
- ↳ [MSTS1] Bo'ness And Kinneil Railway TS
- ↳ [MSTS1] LMS Rolling Stock CD
- ↳ OpenRails
- ↳ Links
- ↳ OpenRails Home
- ↳ Developers: XNA Creators Home
- ↳ Developers: Visual Studio Express Editions
- ↳ Developers: Reimers XNA Tutorials
- ↳ [OR] Help for Beginners
- ↳ [OR] General OpenRails Discussion
- ↳ [OR] Screenshots
- ↳ [OR] Development
- ↳ [OR] Activity Creation
- ↳ Special Interest Forums
- ↳ Narrow Gauge
- ↳ Trams
- ↳ Underground
- ↳ Technical Discussions - Hardware, Operating Systems
- ↳ Trainz
- ↳ Trainz: A New Era [T2]
- ↳ [T2] General Discussion
- ↳ Trainz Railway Simulator [TRS]
- ↳ [TRS] Help for Beginners
- ↳ [TRS] General Trainz Discussion
- ↳ [TRS] Screenshots
- ↳ World of Subways
- 3D Modelling
- ↳ 3D Crafter
- ↳ Blender
- ↳ 3D Studio Max AND Discreet GMax
- ↳ Abacus TS Modeler
- ↳ Google Sketchup
- Railways in the Real and Scale World
- ↳ Scale Railway Modelling
- ↳ Railway Photography
- ↳ Real Railway Discussion
- ↳ Rail Related Magazines
- Other Simulations
- ↳ [TRAIN] Signalling Simulations
- ↳ [TRAIN] Other Train Sims
- ↳ [SHIP] Ship Simulators
- ↳ [ROAD] Road-based Simulators
- Non-Train Simulation
- ↳ Open Forum
- ↳ Aviation
- UKTrainSim Works
- ↳ RailWorks RailDriver Interface
- ↳ RailWorks Joystick Interface