Community Forum

Silo trigger output

Forum Overview >> Editor

CategoryEditor
Created31.05.2017 09:25


Julien Juju (jujuokl) 31.05.2017 09:25
Hello,

I have a grain silo in my map, and I take the triggers on goldcrest. I only want barley, wheat, rape, sunflower and maize into my silo, so I edited the User Attributes.
But ingame when I go bottom the trigger for load my trailer, there is all the crops I said before, but with this there is water, total mixed ration, forage, silage, straw, power food, grass and hay.
What can I do for don't have all of this crops ?
Thanks

Bilbo Beutlin (BBeutlin) 31.05.2017 15:56
Most probably a problem with the "storageRadius". All storages within this radius count to the silo trigger.

The default is 50 (meters). Either move other storages outside this range or set/add the user attribute "storageRadius" with a smaller value.

Julien Juju (jujuokl) 31.05.2017 17:33
Thanks for answer.
You're right, all my cow triggers are inside the 50 meters. So I want to add the user attribute "storageRadius" in my trigger, but what type of user attribute I need to set ?

Bilbo Beutlin (BBeutlin) 01.06.2017 01:17
The SiloTrigger.lua uses (see line 72)
self.storageRadius = Utils.getNoNil(getUserAttribute(id, "storageRadius"), 50);
So I'd recommand integer or float.

Julien Juju (jujuokl) 01.06.2017 11:16
Well, I tried both, and no ones work :/

Bilbo Beutlin (BBeutlin) 01.06.2017 15:23
Wrong location of user attribute?
It must be added to the transform group where the attributes "stationName", "isFarmSilo", "fillVolumeDischarge...", etc. already exist.
See for reference Documentation -> Scripting API Reference -> Triggers -> SiloTrigger

Julien Juju (jujuokl) 01.06.2017 17:23
I think I add it at good place no ?
http://prntscr.com/feph61

Tony Price (brownthumb) 01.06.2017 18:19
Hi Julien, have you also changed it in your map xml file, located at end of first line.

<!-- SILO -->
<tipTrigger index="FARM_SILO" stationName="station_farmSilo" appearsOnPDA="false" isAreaTrigger="true" isSellingPoint="false" triggerWidth="3" supportsExtension="true" storageRadius="100" >
<fillType name="wheat" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="barley" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="rape" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="maize" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="sunflower" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="soybean" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
</tipTrigger>

Julien Juju (jujuokl) 01.06.2017 18:42
Yes, it's like that, I just deleted soybean because I don't need it

<tipTrigger index="FARM_SILO" stationName="station_farmSilo" appearsOnPDA="false" isAreaTrigger="true" isSellingPoint="false" triggerWidth="3" supportsExtension="true" storageRadius="10" >
<fillType name="wheat" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="barley" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="rape" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="maize" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
<fillType name="sunflower" priceScale="0" supportsGreatDemand="false" disablePriceDrop="true" />
</tipTrigger>

Tony Price (brownthumb) 01.06.2017 19:03
might help to change true to false here....supportsExtension="true"

Julien Juju (jujuokl) 01.06.2017 19:41
Still same issue

Tony Price (brownthumb) 01.06.2017 20:02
one last thought in your silo in trigger you should have in user attributes a box named xmlFile, if the $data part is still inside it will keep reading ingame data instead of your map data, for the game to read the changes in your map data that part will have to be removed

Julien Juju (jujuokl) 01.06.2017 21:43
Yes, I already did it. But I dont think the problem come from here, because all this part is for the input trigger , and my problem is only for output

Julien Juju (jujuokl) 03.06.2017 20:51
Nothing new ?

Cayden Guinn (Unknown) 04.06.2017 07:07
I recently installed giants editor and it crashes when it opens up help me.


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