Packaging a Route

Discussion about RailWorks route design.

Packaging a Route

Unread postby georgian22 » Fri Jun 29, 2012 9:28 am

Hello all, is there a step by step guide to packaging a route. I finished a route a while back, but became confused on packaging. I have heard of blueprints needing to be there etc. I am new to this. Unlike MSTS where you just zip and go, RW is a little different. If anyone has any ideas please alert me..


Thanks!

O'brian
georgian22
 
Posts: 230
Joined: Thu Mar 29, 2012 7:06 pm

Re: Packaging a Route

Unread postby artimrj » Fri Jun 29, 2012 9:33 am

Packaging the route itself is easy. You use the Package Manager to pack it up by locating the route's folder and selecting all of it.

The hard part is packing the assets up. The best way to do that is with RW Tools. When you check the route with RW Tools it will provide a list of assets used by your route. You can use the list to manually select your asset folders and pack them with the Manager, or you can let RW Tools pack them for you. It needs the lists too though so you have to save them after you create them while checking the route. RW Tools will copy the assets to the RW Tools folder in to another folder with the name of your route. In the RW Tools main folder is an EXE file called RW_Route_setup.exe. Copy this to route folder RW Tools made and zip it all up together. Use will then unzip and run the EXE to install.
Last edited by artimrj on Fri Jun 29, 2012 10:20 am, edited 1 time in total.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4721
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: Packaging a Route

Unread postby arizonachris » Fri Jun 29, 2012 9:50 am

It's always a real plus to us users, include a "readme" about any assets we need to hunt down. Especially payware we may or may not have. (just a little advice) **!!2cents!!**
Ryzen 7 2700K, Asus Prime X570P, 32Gb DDR4, 2x 1Tb M.2 SSD's, RTX2060 6Gb, Occulus Rift
Win 10 Pro 64bit, keyboard/ mouse/ wheel/ pedals/ baseball bat
Security Coordinator on the Battleship Iowa
User avatar
arizonachris
 
Posts: 3955
Joined: Sun Mar 21, 2010 10:36 am
Location: Southern California

Re: Packaging a Route

Unread postby Hawk » Fri Jun 29, 2012 9:54 am

arizonachris wrote:It's always a real plus to us users, include a "readme" about any assets we need to hunt down.

...and possibly a link where to find them. *!!wink!!*
Hawk
 

Re: Packaging a Route

Unread postby Chacal » Fri Jun 29, 2012 10:40 am

The readme files in GreatNortherner's recent uploads are a good model.

Also, I'm not sure but I think you can just zip your assets while preserving the folder structure, then change the .zip extension to .rwp.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6503
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Packaging a Route

Unread postby Machinist » Fri Jun 29, 2012 10:58 am

Chacal wrote:Also, I'm not sure but I think you can just zip your assets while preserving the folder structure, then change the .zip extension to .rwp.

I tried this once and didn't work. You can change the .rwp to .zip and extract (or even extract directly from .rwp using WinRar and 7-Zip), but you cannot rename .zip to .rwp (there is some essential and hidden information added by Packager into the .rwp). *!!wink!!*
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Packaging a Route

Unread postby Chacal » Fri Jun 29, 2012 12:06 pm

Thanks, that's good to know.
I wonder if it would be possible to add stuff to an existing rwp using this technique.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6503
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Packaging a Route

Unread postby georgian22 » Fri Jun 29, 2012 3:55 pm

Thank you all for responding! That helps tremendously, I have been out of the loop for a while due to work. ...I really need a good beta tester, especially someone who has most of the routes designed for RW including payware ones. just pm me as I have some downtime this weekend. O'brian
georgian22
 
Posts: 230
Joined: Thu Mar 29, 2012 7:06 pm

Re: Packaging a Route

Unread postby artimrj » Sat Jun 30, 2012 7:16 am

Chacal wrote:Thanks, that's good to know.
I wonder if it would be possible to add stuff to an existing rwp using this technique.


I tired adding stuff to an existing RWP it does not work either. The file becomes corrupt.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4721
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: Packaging a Route

Unread postby Machinist » Sat Jun 30, 2012 7:22 am

artimrj wrote:I tired adding stuff to an existing RWP it does not work either. The file becomes corrupt.

Probably that information about author and protected or not proteccted, this is the question, If we could to handle this...
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Packaging a Route

Unread postby Chacal » Sat Jun 30, 2012 12:55 pm

I'm looking at the file structure and the rwp does not respect the zip standard.

An extra header is prepended to the file, consisting of:
- one byte (unknown)
- variable length text (seems to be author, ex: Michael Stephan)
- one byte, value 01

After this we find the normal zip format, but I suspect RSC uses proprietary values for some fields, which are unrecognized by zip tools.
There is no problem reading the file with a zip tool, because such tools first get the file directory from the end of the archive, this provides the start offset for each file. The extra header is invisible to such tools. Compression formats are standard, so the tools can find, extract and open the files.

But when the tools try to modify the files, they find proprietary values for properties and don't know what to do (for example 7-zip says "Not supported"). Also, they don't write the extra header or any proprietary information that Package Manager wants to see in extra fields. So the file won't open in Package Manager.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6503
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Packaging a Route

Unread postby Machinist » Sat Jun 30, 2012 1:47 pm

Anyway, nice one Chacal !!*ok*!! Was worth the attempt. !*salute*!
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Re: Packaging a Route

Unread postby arizonachris » Sat Jun 30, 2012 3:41 pm

Wait, this is confusing. Most third party stuff is in a .zip file. You unpack it and there is a .rwp file that Package Manager can install, right? Some third parties use an .exe to install, that goes past the Package Manager. I guess what I'm asking, can't you just zip up the rwp file?
Ryzen 7 2700K, Asus Prime X570P, 32Gb DDR4, 2x 1Tb M.2 SSD's, RTX2060 6Gb, Occulus Rift
Win 10 Pro 64bit, keyboard/ mouse/ wheel/ pedals/ baseball bat
Security Coordinator on the Battleship Iowa
User avatar
arizonachris
 
Posts: 3955
Joined: Sun Mar 21, 2010 10:36 am
Location: Southern California

Re: Packaging a Route

Unread postby Chacal » Sat Jun 30, 2012 4:02 pm

Yes but that doesn't solve the original problem.

The discussion was about the RW packager (which makes rwp packages) being difficult to use.
If the OP can make a rwp, his problem is solved.

The other official solution is to use RWTools to gather up all needed files in a folder structure, add a .exe that basically just copies the files to the RW folders, and pack all that into a .zip file.

I was trying to come up with a third solution, involving making the .rwp without using the RW packager, using zip tools. But that's not possible.

IMHO the best solution is to just learn to use the RW packager.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6503
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Packaging a Route

Unread postby Machinist » Sat Jun 30, 2012 5:11 pm

Chacal wrote:IMHO the best solution is to just learn to use the RW packager.

That's a solution for users, not route creators, or even in my case creating lighting and cabviews mods.
Packager so far doesn't save a pack profile. If you are packing a route with 80 providers, hundred folders and thousands of files, one missing or wrong file is enough make you to start over again, thousands clicks again (with no fail at the time). No way IMHO, and by experience on handling the thing.
Who doesn't have dog, hunts with cat.
User avatar
Machinist
 
Posts: 1105
Joined: Fri Apr 02, 2010 1:02 am
Location: São Paulo, Brazil

Next

Return to Route Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron