Page 1 of 1

Changing Track Rules

Unread postPosted: Sat Sep 11, 2010 1:32 pm
by Shortliner
So I layed down some tracks, not realizing that I was using UK track rules. When I discovered my mistake, I've already put alot of work into laying down the tracks that I don't really feel comfortable tearing them up and laying them down again with a US track rule. Is there a way to change the track rules without tearing up and laying down tracks again?

Re: Changing Track Rules

Unread postPosted: Sun Sep 12, 2010 12:48 pm
by Toldrabald
Yes there is, by manually editing the bin files of your route. It should be possible with RW tools and there is a tutorial on it's page but I didn't understand what to do and where to go in the tool. So I did it the manual way:
1) do a backup of your complete route
2) check if route is really saved, if not back to 1 *!!wink!!*
3) take your tracks.bin file and convert it to XML with serz.exe in RWs main folder (you can just drag the tracks.bin file onto it)
4) get a text editor which supports UTF8 without BOM charset (e.g. Notepad++) and open the new XML file
5) search the document for "-All MAIN TR-" or the name of the trackrule you used
6) replace this everywhere you find it with the one you want (in my case it was "sieg_hage_main" for the german trackrule), if you stick to the default tracks this is the only entry you need to change. Check in the Assets folder: KUJU\Railsimulator\RailNetwork\TrackRules for the correct filename, those are all .bin files but in the Track.bin you need the entry as ".xml". So leave the ".xml" behind the entries you find and just change the name.
7) convert the .xml back to .bin with serz.exe just like in 3
8) copy the tracks.bin back into your route folder and check the tracks, sometimes it changes switchpoints which need to be melded again.
9) done

looks a bit difficult at first and I was scared to hack around in the files but after all it's an easy task and does not take too long. And I guess it's nothing else what RW tools does.

Re: Changing Track Rules

Unread postPosted: Sun Sep 12, 2010 10:16 pm
by Shortliner
Thanks, I'll try that on Monday when I get home from work. Luckily I'm just laying down mainline tracks right now, so no switches onto yards and sidings yet.

EDIT: Well it worked, once again, thanks! :D

Re: Changing Track Rules

Unread postPosted: Mon Sep 13, 2010 8:30 pm
by longbow
It's well worth taking a few minutes to learn how to do this with RW Tools - it's much faster, especially if you have a lot of entries or a track rule that isn't in the default folders, and it's much more reliable. It's all too easy to screw up if you rely on manual editing - I find my attention starts to wander after the first dozen or so edits!