Change to third rail?
Moderator: Moderators
- Traveller54
- Very Active Forum Member
- Posts: 2877
- Joined: Mon May 15, 2006 11:13 am
- Location: Once of Derby, now in Warrington, UK
- Contact:
Change to third rail?
I have a route which requires an update and wondered if there is a quick, global way of changing the track status to 'third rail'?
I do appreciate that the laying (graphically) of this rail is a different thing altogether - unless somebody knows differently of course??!
MTIA,
I do appreciate that the laying (graphically) of this rail is a different thing altogether - unless somebody knows differently of course??!
MTIA,
[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
Trav .....
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
Re: Change to third rail?
The first thing I would try is searching the relevant tracks.bin file for all instances of
and replacing with
Make a backup of the original tracks.bin. Go into the editor and select the track to see if it shows it has now got third rail electrification.
Code: Select all
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">None</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>Code: Select all
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">ThirdRail</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>- 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: Change to third rail?
Thanks for that Richard - partial success. Some of the track has changed some hasn't?
I have checked that every instance of the code you suggested has been changed and done that three times now with the same result.
Onwards ....
I have checked that every instance of the code you suggested has been changed and done that three times now with the same result.
Onwards ....
[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
Trav .....
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
-
StefanSchmidt
- Established Forum Member
- Posts: 374
- Joined: Thu Sep 04, 2008 2:53 pm
- Location: Frankonia - Bavaria - Germany
Re: Change to third rail?
Please have a look in the used Trackrules, i think they should have the same Text:
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">ThirdRail</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
Good Luck
Stefan
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">ThirdRail</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
Good Luck
Stefan
- 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: Change to third rail?
Thanks Stefan.
I have found the two trackrules that are used:
newc_york_trackrules_default.xml
bath_temp_trackrules_yard.xml
and both are pathed to the ASSETS/Kuju/RailNetwork/Trackrules folder from the routes trackbin file and lots of Loft & Road tiles.
What would happen if I change the trackrules files where they are - would it affect other routes?
I have found the two trackrules that are used:
newc_york_trackrules_default.xml
bath_temp_trackrules_yard.xml
and both are pathed to the ASSETS/Kuju/RailNetwork/Trackrules folder from the routes trackbin file and lots of Loft & Road tiles.
What would happen if I change the trackrules files where they are - would it affect other routes?
[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
Trav .....
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
Re: Change to third rail?
My understanding of editing the track rules is that it does not affect the track already laid (as the properties as defined in the track rule can be changed in the editor anyway).
- pjt1974
- Very Active Forum Member
- Posts: 3800
- Joined: Tue Feb 09, 2010 8:30 pm
- Location: Ballaugh Isle of Man
- Contact:
Re: Change to third rail?
Hi Pete,
Just checked the tracks.bin file and it contains 45 instances of
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">none</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
regards
Phil
Just checked the tracks.bin file and it contains 45 instances of
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">none</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
regards
Phil
For disclosure, I am affiliated with a third party developer however, I do not know anything about any future releases unless I'm working on them and even then, I'd be breaking years worth of built up trust to say anything about it 
- 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: Change to third rail?
Just want to get my head around this a little more - if that is the case why is the full path (to the Kuju folder tree) called from the routes tracks.bin file if the two files previously mentioned are not used?gypbrc wrote:My understanding of editing the track rules is that it does not affect the track already laid (as the properties as defined in the track rule can be changed in the editor anyway).
[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
Trav .....
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
- pjt1974
- Very Active Forum Member
- Posts: 3800
- Joined: Tue Feb 09, 2010 8:30 pm
- Location: Ballaugh Isle of Man
- Contact:
Re: Change to third rail?
I don't think changing the default trackrules in the Kuju folder would make a difference as the info for the track in question is all stored in the tracks.bin file.
Just a quick query
how many instances of
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">none</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
did you edit?
regards
Phil
Just a quick query
how many instances of
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">none</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
did you edit?
regards
Phil
For disclosure, I am affiliated with a third party developer however, I do not know anything about any future releases unless I'm working on them and even then, I'd be breaking years worth of built up trust to say anything about it 
- 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: Change to third rail?
All 45 and it made no difference to the 'partial' change?! See my PM earlier.pjt1974 wrote:I don't think changing the default trackrules in the Kuju folder would make a difference as the info for the track in question is all stored in the tracks.bin file.
Just a quick query
how many instances of
<DefaultElectrification>
<Network-iTrackNetworkElectrification-cPropertyValue>
<Electrification d:type="cDeltaString">none</Electrification>
</Network-iTrackNetworkElectrification-cPropertyValue>
</DefaultElectrification>
did you edit?
regards
Phil
[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
Trav .....
http://www.oakwood-shed.co.uk/sww5/sww_route5.html
- bdy26
- Very Active Forum Member
- Posts: 3854
- Joined: Thu Oct 07, 2004 8:34 pm
- Location: Manchester, rain.
Re: Change to third rail?
Correct, you can change the track this way, but if you don't then change the track rule you will then lay any new track on the old basis (as I'm finding out myself!)
If you're changing track rules (and if you haven't already) you'd be best setting up your own route template and your own track rule and then updating your route to use it, then changing the track. I'd always be a bit wary of editing default track rules as you may get an error if steam updates it, though this will depend on your folder structure.
Theres a couple of useful threads here:
http://forums.uktrainsim.com/viewtopic. ... e#p1393796 (and link to the other)
I've had problems swapping tracks and sounds over - if you make the slightest error with spacing in the code it may not work or you may get a "line 113" error on loading. It is worth saving and reloading after every change to check it works. If you search for none</Electrification> you may see a difference in the code as to why the find and replace hasn't worked.
Good luck
B
If you're changing track rules (and if you haven't already) you'd be best setting up your own route template and your own track rule and then updating your route to use it, then changing the track. I'd always be a bit wary of editing default track rules as you may get an error if steam updates it, though this will depend on your folder structure.
Theres a couple of useful threads here:
http://forums.uktrainsim.com/viewtopic. ... e#p1393796 (and link to the other)
I've had problems swapping tracks and sounds over - if you make the slightest error with spacing in the code it may not work or you may get a "line 113" error on loading. It is worth saving and reloading after every change to check it works. If you search for none</Electrification> you may see a difference in the code as to why the find and replace hasn't worked.
Good luck
B