Community Forum

Sale on the train

Forum Overview >> Editor

Created23.11.2015 20:21

Alexander Kul (Alex30rus) 23.11.2015 20:22
How to add culture for sale will be sent by train? A simple prescription to trigger sales at the station date simple sale, the effect of the train departure no :(

Emil Drefers (Unknown) 24.11.2015 07:15

there are two trains in the default map (Bjornholm).
Please have a close look at them and you will see what attributes caan be used.

But in the end I'm not sure what you want to achieve ...


Alexander Kul (Alex30rus) 24.11.2015 16:17
<UserAttribute nodeId="336641">
<Attribute name="appearsOnPDA" type="boolean" value="true"/>
<Attribute name="fruitTypes" type="string" value="wheat barley rape maize sugarBeet rye oat sunflower woodChips"/>
<Attribute name="isAreaTrigger" type="boolean" value="true"/>
<Attribute name="isFarmTrigger" type="boolean" value="false"/>
<Attribute name="priceMultipliers" type="string" value="1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0"/>
<Attribute name="stationName" type="string" value="Bahnhof"/>
<Attribute name="triggerWidth" type="float" value="2.5"/>

Standard crops (wheat barley rape maize sugarBeet) work as it should - after sending the money train coming. Additional (rye oat sunflower woodChips) just sold at the store, after sending the train additional income does not come.

Who knows where to take a script sales on a train?

Emil Drefers (Unknown) 25.11.2015 07:43

please have a closer look at the "train system".

If you open the map and click on a "train system" (e.g. the object named grainTrainSpline in Bjornholm) and take a look at the user attributes you will find an attribute which is named "xmlFilename".

This attribute points to an xml file.
In this xml file is a definition of the train and it also contains an attribute called fillTypes.
If you adjust this to your new fruit types the additional income will be made.

But please try not to change the original file (for obvious reasons).
Instead make a copy of the file, place it in your mod map and adjust the user attribute of the "train system".


Alexander Kul (Alex30rus) 25.11.2015 16:19
Thanks, that partially helped. If you register the cars to chip, it begins to be sold like other crops. Registration in trainSystem.xml custom crops (like rye, sunflower, etc.) does not give double income, there is a sale as in a regular reception centre. Probably need more scripts on non-standard cultures.

Kari Halonen (Jurkkis) 27.04.2016 19:06
I've run into the same problem. My grainTrainSpline attribute "xmlFilename" points to my custom trainSystem.xml which is editeted with new fruits to the "filltypes" but still cant get double income from extra modded fruits after sending the train.

Note: Log in to post. Create a new account here.