Unpacked AP files deleting

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Locked
dean1986
Very Active Forum Member
Posts: 1395
Joined: Tue Mar 20, 2007 8:54 pm
Location: West Wales
Contact:

Unpacked AP files deleting

Post by dean1986 »

I have unpacked all my AP files and after doing this deleting the AP file, I have started to notice after a while the unpacked files seem to delete themselves. I still have the folder but once I open for example the engine folder inside there is nothing there. Has anyone else noticed this?

Dean
shinymac
Very Active Forum Member
Posts: 1187
Joined: Tue Jan 01, 2002 12:00 am

Re: Unpacked AP files deleting

Post by shinymac »

Hi

I noticed a related problem but slightly different than yours some time ago, when I also unpacked each and every "ap" file, and as I did each one, I deleted the "master ap" file.

BUT...I found that after a few days, the "master ap" file had reappeared and the unpacked files had now RE-PACKED themselves !!!

Would love an explanation for this, as I am sure you would, for your issues ! I wondered if running a "file verification" has caused this to happen ?

Cheers

Derek
chrisonline
Very Active Forum Member
Posts: 1430
Joined: Sat Apr 27, 2013 1:10 pm
Location: Front Royal, Virginia, USA

Re: Unpacked AP files deleting

Post by chrisonline »

Yes, whenever there is a file verification, or Steam update affecting the assets(s) in question, the .ap file will always regenerate itself. So there is little point in deleting .ap files after you have unpacked them, as they will come back (it may be easier to use RW_Tools to selectively unpack only the parts you want to work on)

Files sitting in the unpacked file structure will always be used by TS2015 ahead of files within the .ap file. So if you edit a file, it will always be used. However unpacked files will sometimes be wiped out again when the .ap file is reinstated, on other occasions they seem to remain. Reported behavior is inconsistent and inconclusive, it seems (and there is no official DTG edict on the subject). I have seen firm "I know this to be correct" statements on here subsequently contradicted by others saying "no, that's not how it happens on my system".

So bottom line - unedited unpacked files are likely to be wiped out when the .ap file is reinstated automatically by Steam. If you have edited any of these files, they may remain . . . but keep backups and be prepared to copy them back (within their complete file structure) if they are deleted again

Chris
Chris Laurence
Front Royal, Virginia, United States
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: Unpacked AP files deleting

Post by johnrossetti »

What about replacing the real .ap file with an empty one with the same name ?
Cheers
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Unpacked AP files deleting

Post by gptech »

johnrossetti wrote:What about replacing the real .ap file with an empty one with the same name ?
Cheers

Because Steam checks the checksum for the archive, a new empty one wouldn't match so Steam would remove it and push a kosher version down.
dean1986
Very Active Forum Member
Posts: 1395
Joined: Tue Mar 20, 2007 8:54 pm
Location: West Wales
Contact:

Re: Unpacked AP files deleting

Post by dean1986 »

What I find strange is that it deletes all the files but leaves the folders but it doesnt redownload a fresh AP file.

Dean
chrisonline
Very Active Forum Member
Posts: 1430
Joined: Sat Apr 27, 2013 1:10 pm
Location: Front Royal, Virginia, USA

Re: Unpacked AP files deleting

Post by chrisonline »

dean1986 wrote:What I find strange is that it deletes all the files but leaves the folders but it doesnt redownload a fresh AP file.
I'm not aware of that happening, If it was typical, then an asset would be rendered useless. Maybe you have had a faulty "file refresh" - suggest you file refresh again.

Typically, the .ap will always refresh itself or reinstall itself. What happens to unpacked files (maybe edited, maybe original) in the folder structure is more inconsistent. However in my experience, any folders created always remain, even if emptied.
Chris Laurence
Front Royal, Virginia, United States
User avatar
DaveDewhurst
Very Active Forum Member
Posts: 1994
Joined: Wed Nov 28, 2007 10:21 am
Location: Birkenhead
Contact:

Re: Unpacked AP files deleting

Post by DaveDewhurst »

Depending on the sequence of events, what you are describing can happen
eg

1. You do a verify which downloads/checks all the .ap files
2. You don't run the game but instead extract all the .ap files and delete them
3. you now run the game which is programmed to delete all files outside of an .ap archive, during the first run after a verify (there is a good reason for this)
4. You are now left with no .aps (you deleted them) and no extracted files (the game correctly deleted them)

Dave
johndalton
Getting the hang of things now
Posts: 61
Joined: Mon Dec 29, 2014 7:56 am

Re: Unpacked AP files deleting

Post by johndalton »

There is a downside to unpacking .ap files, even if you don't delete them once unpacked. I've read in the forums that some people unpack all of their .ap files.

If you unpack an .ap file, the game uses the files in the unpacked folders in preference to the ones in the .ap file. If DTG/Steam then updates the .ap file, the game will still use the old files in the unpacked folders and not the updated ones in the .ap file.

John.
User avatar
Traveller54
Very Active Forum Member
Posts: 2877
Joined: Mon May 15, 2006 11:13 am
Location: Once of Derby, now in Warrington, UK
Contact:

Re: Unpacked AP files deleting

Post by Traveller54 »

Can someone explain the benefit of unpacking the .ap files and then deleting the originals? :-?

My understanding is that using .ap files significantly speeds up the loading of the program and also the subsequent use within a route??

Just curious :o :o
[Intel i5-8600K+3.60GHz/16Gb DDR4/NVidia GeForce GTX 550ti 4Mb/1 x SATA3 120Gb SSD, 3xSATA3 2Tb/Win10 Ultimate 64bit]
Trav ..... :-)
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
Locked

Return to “[TS] General Discussion”