How to get RW to read ap files?

Post your problems and installation issues here!

Re: How to get RW to read ap files?

Unread postby stresstool » Mon Jan 23, 2017 8:38 pm

peterhayes wrote:ST
(and taking up twice the disk space which is the main problem I want fixed).

Did you try just unpacking the "routeproperties.xml" files only and not all of the .ap files?
Does that work?


Thanks for the tip, yes that works.

peterhayes wrote:In the "assets" folder there are several .ap files for locos/assets for routes, etc are any of these visible in the TS menus or do you have to extract these as well?
pH


Yes, I have to extract those too.

I decided to do the insanity thing and try the whole thing again expecting something different. Nope. Un-installed steam (which automatically deleted everything in steamapps too), re-install steam, let it re-download everything into an new empty directory, fire up Railworks to see what is there and what isn't.

Case in point, the Castlerock route is, I believe,, a default route. It doesn't show up in any of the menus. The Cajon Pass route, also default, does show up. Looking at the content/routes folders for each of them, Cajon is not delivered as an .ap file and Castlerock is. I tried your trick of just unpacking the routeproperties.xml file from the Castlerock route, then fired up Railworks and Castlerock does show up.

A long time ago I purchased the DD40X engine. It is delivered as an .ap file and it includes a scenario for the Castlerock route also delivered via an .ap file (arrives at content/routes/00000006-0000-0000-0000-000000000000/CastleRockDD40XScenarios.ap ). Until I unpacked that .ap file, that one scenario did not show up in the list of those playable on the Castlerock route. After I unpacked that scenario file and fired up Railworks then it listed the additional scenario for the DDX40 engine. However when I try to start that scenario, it dies with the usual "can't load <assorted vehicles>" messages. I will have to hunt down where the DD40X engine file is and unpack it first in order to use it.

This is what happens with the purchase of any new DLC. Steam will say it has downloaded and installed it, but the new thing, whatever it is, doesn't show up anywhere for me to use. I have to hunt down the newly aquired .ap file and unpack it.. Then I can play with it.

The simplest thing for me to do has always been to just point RW_Tools to my steamapps directory and tell it to "Just unpack everything". Maybe I can cheat a little and just unpack the stuff in Assets leaving the Content folder packed except for the single routeproperties.xml files. Downloaded scenarios might get missed. Oh well. If I feel up to it, I'll write a program or script to selectively unpack. It'll probably be easier and faster for me to do that than re-installing Windows.
User avatar
stresstool
 
Posts: 44
Joined: Mon Feb 16, 2009 7:10 pm

Re: How to get RW to read ap files?

Unread postby Ericmopar » Tue Jan 24, 2017 10:44 am

I just had a brainstorm.
What if the OP's .ap defaults got changed accidentally in the Programs and Files default settings for opening the files/folders?

After doing some searching, the OP should also try and rename the file extension to .zip and see if windows can open it. If not there is a problem somewhere in the software.
New build. i7-7700k, MSI Z270 Gaming M5 Mobo, Hyper 212 Evo, Corsair DDR4 3200 Mhz RAM, Klipsch Pro Mediea 2.1 Speakers, Samsung 850 Evo SSD, HAF XM Case, Asus Strix GTX 1070 and Cooler Master Storm XT Keyboard.
Slick with Pretty Rainbow Colors.
User avatar
Ericmopar
 
Posts: 2814
Joined: Mon May 13, 2013 12:35 am
Location: Henderson NV.

Re: How to get RW to read ap files?

Unread postby stresstool » Tue Jan 24, 2017 12:45 pm

Ericmopar wrote:I just had a brainstorm.
What if the OP's .ap defaults got changed accidentally in the Programs and Files default settings for opening the files/folders?

After doing some searching, the OP should also try and rename the file extension to .zip and see if windows can open it. If not there is a problem somewhere in the software.


Thanks, but I already thought of that and, no, there is no default application assigned to opening .ap files either on the failing Windows desktop nor on the working Windows laptop. I don't believe it is a Windows specific thing, but what do I know? I'm inclined to think there is some bit set in the registry somewhere that Railworks is using to decide whether or not it can read ap files. I have no trouble using Windows' "Open with" function to select an application nor just opening and unpacking with 7zip (Windows' plain Open goes on to ask for an application to use). It has to be Railworks itself opening and reading the ap files directly. Using zip or some other tool would have to leave the unpacked files somewhere so Railworks could then read those intermediate files and later have to delete them but I don't believe Railworks does that. Again what do I know?

I think if I were to have to write an application that needs the contents of an ap file (or any container file for that matter), I'd treat the file as a sort of tiny read-only filesystem and kind of internally make a "mount point" for the file. The files within the container would be invisibly unpacked as needed by an abstraction layer. But that's just me.
User avatar
stresstool
 
Posts: 44
Joined: Mon Feb 16, 2009 7:10 pm

Re: How to get RW to read ap files?

Unread postby peterhayes » Tue Jan 24, 2017 4:18 pm

ST
Can you check in Windows 10 "choose default apps by file type" that nothing is associated with ".ap" files?
Just a long shot based on Eric's suggestion.
Have you searched the registry for ".ap " (space after "p")
pH
User avatar
peterhayes
 
Posts: 807
Joined: Sun Oct 02, 2011 12:34 am
Location: Antipodes

Re: How to get RW to read ap files?

Unread postby stresstool » Wed Jan 25, 2017 3:00 pm

peterhayes wrote:ST
Can you check in Windows 10 "choose default apps by file type" that nothing is associated with ".ap" files?
Just a long shot based on Eric's suggestion.
Have you searched the registry for ".ap " (space after "p")
pH


Thanks. A search in the registry turns up nothing. Nothing associated with .ap file types either. It remains a mystery.
You do not have the required permissions to view the files attached to this post.
User avatar
stresstool
 
Posts: 44
Joined: Mon Feb 16, 2009 7:10 pm

Re: How to get RW to read ap files?

Unread postby peterhayes » Wed Jan 25, 2017 3:06 pm

Indeed a mystery!
Sorry run out of ideas. *!!wink!!*
pH
User avatar
peterhayes
 
Posts: 807
Joined: Sun Oct 02, 2011 12:34 am
Location: Antipodes

Re: How to get RW to read ap files?

Unread postby dphorton » Wed Jan 25, 2017 3:48 pm

If you use Window explorer and select Railworks Folder and then type ap in the search you get nothing?
HP Omen OBelisk, i7-8700, 3.2 MHz, GeForce 2080, Model 875-0024
Dave Horton
Las Vegas, NV
User avatar
dphorton
 
Posts: 242
Joined: Sun May 24, 2009 1:04 pm
Location: Las Vegas, Nevada

Re: How to get RW to read ap files?

Unread postby peterhayes » Wed Jan 25, 2017 5:29 pm

ST
One last try - it is possible that the file association app in Win 10 has become corrupted, and that is stopping the "reading" and displaying of .ap files which are zero compressed files.
It can't be a DTG/RSC TS2017 issue because just extracting the routeproperties.xml means that TS2017 is displaying/reading the .ap file, as nothing else is extracted.

There are a couple of repair options out on the web (careful could be snake oil) - worth a try?
http://www.thewindowsclub.com/file-asso ... ows-10-8-7 http://www.majorgeeks.com/files/details ... fixer.html and
https://www.techsupportall.com/file-ass ... windows-7/.

What is the file association for "zip" files?

I guess that you have run at a command prompt sfc /scannow and dxdiag in win 10?
The others to try - safe mode do they show or following a "clean boot"

In the registry file associations are set by using a "KEY" in HK Classes Root. Look at .zip or .rar in there and look at the default association - it might work if you used the same default association (.zip) for an ".ap" key. Probably not! :D

pH
User avatar
peterhayes
 
Posts: 807
Joined: Sun Oct 02, 2011 12:34 am
Location: Antipodes

Re: How to get RW to read ap files?

Unread postby peterhayes » Wed Jan 25, 2017 5:55 pm

ST
Have you made all .ap files or all files in TS2017 to R/W using RW_Tools - it could be a permissions thing.
Right click on an .ap file under security what permissions are set?
A windows 10 permissions setting may be stopping .ap files being read?
pH
User avatar
peterhayes
 
Posts: 807
Joined: Sun Oct 02, 2011 12:34 am
Location: Antipodes

Re: How to get RW to read ap files?

Unread postby stresstool » Thu Jan 26, 2017 3:29 pm

dphorton wrote:If you use Window explorer and select Railworks Folder and then type ap in the search you get nothing?


I get something:
You do not have the required permissions to view the files attached to this post.
User avatar
stresstool
 
Posts: 44
Joined: Mon Feb 16, 2009 7:10 pm

Re: How to get RW to read ap files?

Unread postby stresstool » Thu Jan 26, 2017 3:39 pm

peterhayes wrote:ST
One last try - it is possible that the file association app in Win 10 has become corrupted, and that is stopping the "reading" and displaying of .ap files which are zero compressed files.
It can't be a DTG/RSC TS2017 issue because just extracting the routeproperties.xml means that TS2017 is displaying/reading the .ap file, as nothing else is extracted.


Not quite. Although the extracted route properties allows the route to show up in the menus, if I try to run something in that now exposed route, Railworks blows up with a crash dump after just a few seconds.



I may fool with them later. I am not keen on getting this kind of stuff.

What is the file association for "zip" files?


Zipassoc.jpg


I guess that you have run at a command prompt sfc /scannow and dxdiag in win 10?
The others to try - safe mode do they show or following a "clean boot"

In the registry file associations are set by using a "KEY" in HK Classes Root. Look at .zip or .rar in there and look at the default association - it might work if you used the same default association (.zip) for an ".ap" key. Probably not! :D

pH


Thanks, I'll give those a try later today.
You do not have the required permissions to view the files attached to this post.
User avatar
stresstool
 
Posts: 44
Joined: Mon Feb 16, 2009 7:10 pm

Re: How to get RW to read ap files?

Unread postby peterhayes » Thu Jan 26, 2017 6:02 pm

ST
If TS2017 crashes after you have ONLY extracted the routeproperties.xml file then that looks more like a TS2017 issue and not a windows issue!
Sorry I missed that! *!embar*!
Probably means nothing but just note that WINZIP cannot open/process .ap files natively. My .zip association uses "7-zip file manager" as a default which can.
Regards
pH
User avatar
peterhayes
 
Posts: 807
Joined: Sun Oct 02, 2011 12:34 am
Location: Antipodes

Re: How to get RW to read ap files?

Unread postby Ericmopar » Thu Jan 26, 2017 9:59 pm

You should be seeing something like this.
Isn't .ap even listed?

Click to enlarge.
File Associations.JPG
You do not have the required permissions to view the files attached to this post.
New build. i7-7700k, MSI Z270 Gaming M5 Mobo, Hyper 212 Evo, Corsair DDR4 3200 Mhz RAM, Klipsch Pro Mediea 2.1 Speakers, Samsung 850 Evo SSD, HAF XM Case, Asus Strix GTX 1070 and Cooler Master Storm XT Keyboard.
Slick with Pretty Rainbow Colors.
User avatar
Ericmopar
 
Posts: 2814
Joined: Mon May 13, 2013 12:35 am
Location: Henderson NV.

Previous

Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 0 guests