Adding lights to existing locos

General discussion about RailWorks, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Adding lights to existing locos

Post by mikesimpson »

I was so pleased with the headlights on the F7 in TS2012 that I thought I might as well try adding the same to other locos.

I therefore thought that the G-Trax S-701 would look great with a proper headlight and proceeded as follows:-
1. I opened the F7A_default.bin file in RW_Tools and searched for Headlight.xml and found it near the end of the file. The Headlight is a 'Child' addition to the loco, so in effect it can be added to any loco you wish.

The data I required is the block starting

<cEntityContainerBlueprint-sChild d:id="40745592">
<ChildName d:type="cDeltaString">Fwd_Headlight_0</ChildName>
and ending
</cEntityContainerBlueprint-sChild>

I saved this to a text editor by highlighting the data in RW_Tools (highlight it from the left edge to make sure you get all the tab characters), then copied it using Ctrl-C and pasted it into the text editor with Ctrl-V.

By placing the F7 and the S-701 head to head in the text editor, I saw that the headlights were at virtually the same height, so that did not need changing (height above track is the 14th line in the matrix), however the length of the locos is different, so the distance in front of the Loco's COG (15th line and 7.78429 in the F7A) had to be changed. The Cylinder Cocks are placed at around 6.7 in the SPS-701.bin file, so I edited the above text taken from the F7A to 6.90000.

I then pasted the complete text into the <Children> section of the SPS-701.bin (Paste it on a new line after any line '</cEntityContainerBlueprint-sChild>', it does not matter where in the Children section it is placed. This setting seems to work fine, the light is actually inside the front of the boiler, but light illuminates the track with no problems.

Image

The above applied to a U.S. loco, however the principle is the same for UK locos and you should be able to retrieve the code from any locos which already have headlights to add to any others.

Mike
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
User avatar
orangzeb
Getting the hang of things now
Posts: 85
Joined: Tue Oct 12, 2010 5:21 am

Re: Adding lights to existing locos

Post by orangzeb »

can you apply the same lights or even better to all locos and send me the xmls ? Its hard for me to do it myself

p.s the BR Blue, splithead etc does not have light beams at all, so please ?
red5080
Getting the hang of things now
Posts: 27
Joined: Thu Apr 28, 2011 1:31 pm

Re: Adding lights to existing locos

Post by red5080 »

Hi mike great work is it possible to add some pics of your workings in rw tools to show where the text is imported to??
Locked

Return to “[RW] General RW Discussion”