Adding Train Carriages

Your forum for all discussions around Modding.
benjoglove
Posts: 74
Joined: Fri Nov 07, 2014 4:41 am

Adding Train Carriages

Post by benjoglove »

Can we add carriages to the train or does FS17 limit to the carriages we have now? I have added more wagon grain carriages hoping I could add more carriages but when I load it in FS17 it still gives me the default train and no added on ones. Here is the script I added too:

?xml version="1.0" encoding="utf-8" standalone="no" ?>
<trainSystem>

<spline index="0" splineYOffset="0.155" />

<railroadObjects>
<railroadObject className="RailroadCrossing" index="1" startDistance="125" endDistance="125" >
<gate index="1|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="1|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="1|0|1" alternatingLights="true" />
<signals index="1|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>
<railroadObject className="RailroadCrossing" index="2" startDistance="125" endDistance="125" >
<gate index="2|0|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5" />
<gate index="2|1|0" startRot="0 0 0" endRot="90 0 0" duration="3" closingOffset="1.5"/>
<signals index="2|0|1" alternatingLights="true" />
<signals index="2|1|1" alternatingLights="true" />
<crossingSound file="data/maps/sounds/trainCrossingBell.wav" radius="50" innerRadius="20" />
</railroadObject>
</railroadObjects>

<train>
<vehicle xmlFile="$data/vehicles/train/locomotive.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonTimber.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonTimber.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonWoodChips.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonGrain.xml" />
<vehicle xmlFile="$data/vehicles/train/wagonSugarbeets.xml" />
<vehicle xmlFile="$data/vehicles/train/locomotive.xml" />
</train>

</trainSystem>
User avatar
Dogface
Posts: 1090
Joined: Mon Nov 28, 2016 3:02 pm
Location: PC ⛽ USA

Re: Adding Train Carriages

Post by Dogface »

benjoglove
Posts: 74
Joined: Fri Nov 07, 2014 4:41 am

Re: Adding Train Carriages

Post by benjoglove »

Thanks ended up i had to temive the $data at the start of the script. All sorted thanks anyway.
Post Reply