Thanks for your help guys. I'll bear your comments and suggestions in mind but I've built over 100 miles of track so far and still building.
Cheers
Llew
Mucked up my track rules
Moderator: Moderators
-
sniper297
- Established Forum Member
- Posts: 499
- Joined: Sat Dec 29, 2001 12:00 am
- Location: Rebel Colonies
Re: Mucked up my track rules
I don't remember making an "all track" rule, I did make "all main" and "all yard" which were clones of the original "-all track-" track rule to add US tracks with wider spacing and tighter curves.
I'm gonna throw Adam's tea in the harbor again (he don't really mind since he don't drink tea!
) and disagree, if the alternatives are hacking a file or deleting the whole smash and starting over, why not give it a shot? Got nothing to lose, if you screw it up THEN delete the whole thing and start over.
Open the tracks.bin file in RW_Tools, click the "Search and Replace, FIND", then type \trackrules\ in the top box. What I do next is open a new notepad text file to copy and paste stuff in, generally I go from the opening caret to the closing caret;
>Kuju</Provider>
<Product d:type="cDeltaString">RailSimulator</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\sieg_hage_main.xml<
And after copying and pasting all the different track rules I do the actual replace, put this in the bottom box;
>PortOgden</Provider>
<Product d:type="cDeltaString">RailSimulatorUS</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\PONtrack3.xml<
Then one at a time I copy and paste the strings for other track rules in the top box, "Replace All".
Things to keep in mind, tracks.bin is looking for a file name so it doesn't matter what the internal display name says, once the track is down the curves, switch lever types, and whatever track you layed with customized settings will remain the same. Any track you laid with default settings will take those settings from the track rule specified, so, for example, if the track rule you used for one stretch had speed 70/40, overhead wire, no ballast sound, and you replace with a different track rule which specifies speed 150/80, no electrification, stone bridge, then you will have to go over that track afterwards with the selection tool to change it. Good part is once you have the entire route using a single track rule that's easy to do.
See the PO&CM route;
http://uktrainsim.com/filelib-info.php? ... leid=22205
Which started out as the "Metropolitan Suburban":
http://uktrainsim.com/filelib-info.php? ... leid=18075
And originally had a dozen or so track rules in it.
I'm gonna throw Adam's tea in the harbor again (he don't really mind since he don't drink tea!
Open the tracks.bin file in RW_Tools, click the "Search and Replace, FIND", then type \trackrules\ in the top box. What I do next is open a new notepad text file to copy and paste stuff in, generally I go from the opening caret to the closing caret;
>Kuju</Provider>
<Product d:type="cDeltaString">RailSimulator</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\sieg_hage_main.xml<
And after copying and pasting all the different track rules I do the actual replace, put this in the bottom box;
>PortOgden</Provider>
<Product d:type="cDeltaString">RailSimulatorUS</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\PONtrack3.xml<
Then one at a time I copy and paste the strings for other track rules in the top box, "Replace All".
Things to keep in mind, tracks.bin is looking for a file name so it doesn't matter what the internal display name says, once the track is down the curves, switch lever types, and whatever track you layed with customized settings will remain the same. Any track you laid with default settings will take those settings from the track rule specified, so, for example, if the track rule you used for one stretch had speed 70/40, overhead wire, no ballast sound, and you replace with a different track rule which specifies speed 150/80, no electrification, stone bridge, then you will have to go over that track afterwards with the selection tool to change it. Good part is once you have the entire route using a single track rule that's easy to do.
See the PO&CM route;
http://uktrainsim.com/filelib-info.php? ... leid=22205
Which started out as the "Metropolitan Suburban":
http://uktrainsim.com/filelib-info.php? ... leid=18075
And originally had a dozen or so track rules in it.

- AndiS
- Very Active Forum Member
- Posts: 6207
- Joined: Fri Sep 23, 2005 4:43 pm
- Location: Jester's cell in ivory tower
- Contact:
Re: Mucked up my track rules
So maybe the -All Tracks- rule was included in the US distribution of KRS, I never knew that one. Then, I cannot say how you can manage to get that twice into your list in RW. Maybe the Provider or Product or filename changed.sniper297 wrote:I don't remember making an "all track" rule, I did make "all main" and "all yard" which were clones of the original "-all track-" track rule to add US tracks with wider spacing and tighter curves.
-
sniper297
- Established Forum Member
- Posts: 499
- Joined: Sat Dec 29, 2001 12:00 am
- Location: Rebel Colonies
Re: Mucked up my track rules
No, best I recollect Adam made the original -All Track- around Christmas of '07, it didn't became one of the default track rules until Railworks came out last June. Anyway as far as I know when you do have duplicate display names only one will show up in the list, so possibly he has an "-All Track-" and an "All Track" which he got from someplace else, easiest is to find the other one and delete it. We were just going round and round with this over at trainsim.com, some people made copies of default stuff and addons in the wrong folders and distributed them, a route developer uses something forgetting that he got it with someone else's beta, next thing you know there are a half dozen routes dependent on assorted files coming from the wrong folders. My "All Main" and "All Yard" track rules cloned from Adam's original "-All Track-" are a good example of the problem, route developers had those installed from downloading the early PO&N or Chicago Metro, had them so long they forgot they're not default. Another is "Mike's Lumberyard" which Mike Simpson and I cloned from one of the originals container cranes, now THAT one has three different versions in three different folders, two of which route developers are assuming are default. It's like a disease that spreads, if you're a route developer you should keep track of what you have and where you got it from and how many different copies you have.

- dlljones
- Well Established Forum Member
- Posts: 662
- Joined: Sun Nov 05, 2006 5:39 pm
- Location: Criccieth, North Wales
Re: Mucked up my track rules
They both appear as "-All Track TR-" in the drop down list. And as stated earlier one has a sharper curve than the other.
Llew
Llew
-
sniper297
- Established Forum Member
- Posts: 499
- Joined: Sat Dec 29, 2001 12:00 am
- Location: Rebel Colonies
An infection!
Hee-hee, that's why I call it a disease, you probably got "infected" with the second one from downloading somebody else's route. The default one (which wasn't originally default to railsim, but is now one of the defaults included with railworks if you're not confused enough already) is in \Assets\Kuju\RailSimulator\RailNetwork\TrackRules so do a search in windows explorer, starting in \assets, for -All Track TR-.bin, and delete the wrong one in whichever folder that one is in. This was probably one of them misunderstandings where the guy thought he had to hack it, the default minimum radius is 500 meters. But if you select the Line Type in the right side flyout you can change that before laying the track;
mainline -500
yard -25
passenger -250
freight -100
Problem with deleting the second one is whichever route is using it will have muddy unformed switches, but when you're working on your own route you need to keep other people's stuff out of it unless you intend to include it. Look for \trackrules\ in your tracks.bin file, the default should say;
>Kuju</Provider>
<Product d:type="cDeltaString">RailSimulator</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\-All Track TR-.xml<
Note that it says it's looking for ".xml", it's actually looking for ".bin" in this case, otherwise that's the complete path and file name from the \assets folder on down. Whatever the other one says change it, and use the provider/product/delta string to locate where it's calling for the other file from so you can get rid of it.
mainline -500
yard -25
passenger -250
freight -100
Problem with deleting the second one is whichever route is using it will have muddy unformed switches, but when you're working on your own route you need to keep other people's stuff out of it unless you intend to include it. Look for \trackrules\ in your tracks.bin file, the default should say;
>Kuju</Provider>
<Product d:type="cDeltaString">RailSimulator</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">railnetwork\trackrules\-All Track TR-.xml<
Note that it says it's looking for ".xml", it's actually looking for ".bin" in this case, otherwise that's the complete path and file name from the \assets folder on down. Whatever the other one says change it, and use the provider/product/delta string to locate where it's calling for the other file from so you can get rid of it.

- dlljones
- Well Established Forum Member
- Posts: 662
- Joined: Sun Nov 05, 2006 5:39 pm
- Location: Criccieth, North Wales
Re: Mucked up my track rules
Thanks for the explanation and fix. I'll give it a go to "fix" the anomaly once I've built up enough courage to do so!!
Cheers
Llew
Cheers
Llew