Community Forum

Error SiloTrigger

Forum Overview >> Editor

CategoryEditor
Created29.07.2015 21:08


Ismael Artacho Angel (Unknown) 29.07.2015 21:09
Hello, I want to do independent silos and FS2013, but always shows me this error when going through a trailer:

Warning (LUA): Argument to method 'getWorldTranslation' is nil
-- from D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/triggers/SiloTrigger.lua:225
Warning (LUA): Argument to method 'localDirectionToWorld' is nil
-- from D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/triggers/SiloTrigger.lua:226
Warning (LUA): Argument to method 'localDirectionToWorld' is nil
-- from D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/triggers/SiloTrigger.lua:227
Error: Running LUA method 'update'.
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/vehicles/specializations/Fillable.lua(1098) : attempt to perform arithmetic on field 'd1x' (a nil value)

Attributes Trigger in transformgroup:

(Locations->farmHQ->siloTriggers1->barley(transformgroup)->barley(primitive)

<Attribute name="filename" type="string" value="$data/vehicles/particleAnimations/shared/unloadingSilo.i3d"/>
<Attribute name="fillLitersPerSecond" type="integer" value="800"/>
<Attribute name="fillSoundFilename" type="string" value="$data/maps/sounds/siloFillSound.wav"/>
<Attribute name="fillVolumeDischargeNode" type="string" value="0|3"/>
<Attribute name="fillVolumeDischargeNodeLength" type="float" value="0.3"/>
<Attribute name="fillVolumeDischargeNodeWidth" type="float" value="0.3"/>
<Attribute name="fruitType" type="string" value="barley"/>
<Attribute name="onCreate" type="scriptCallback" value="SiloTrigger.onCreate"/>
<Attribute name="particlePosition" type="string" value="-0.05 0.15 0.05"/>
<Attribute name="particleSystemFilename" type="string" value="particleSystems/particleLongBarley.i3d"/>
<Attribute name="triggerIndex" type="string" value="0"/>


Emil Drefers (Unknown) 30.07.2015 08:55
Hi,

it looks like you have a wrong value for "fillVolumeDischargeNode".
You can see that if you have a look at the script:
http://ls-mods.de/scriptDocumentation.php?lua_file=triggers/SiloTrigger

The attribute "fillVolumeDischargeNode" should be an index path (referring to the objects which has all the user attributes for the SiloTrigger).

Cheers,
Emil

Ismael Artacho Angel (Unknown) 31.07.2015 19:16
Thanks of new Emil, this is the problme :)


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