Community Forum

attempt to index field 'fillUnits' (a nil value)

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created15.07.2019 11:26

Lorenzos (lorenzoita) 15.07.2019 11:26
Good morning guys,
I'm trying to add plow spec to a stump cutter but I get this error:

2019-07-15 11:20 Error: Running LUA method 'loadSharedI3DFileFinished'.
2019-07-15 11:20 dataS/scripts/vehicles/specializations/FillUnit.lua(614) : attempt to index field 'fillUnits' (a nil value)

<type name="ahwi" parent="baseAttachable" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="dischargeable" />
<specialization name="pipe" />
<specialization name="turnOnVehicle" />
<specialization name="woodCrusher" />
<specialization name="logGrab" />
<specialization name="fillVolume" />
<specialization name="cover" />
<specialization name="fillTriggerVehicle" />
<specialization name="groundReference" />
<specialization name="workArea" />
<specialization name="workParticles" />
<specialization name="plow" />
<specialization name="fillUnit" />

Any suggestion?

Bilbo Beutlin (BBeutlin) 15.07.2019 12:22
If you have added the spec <specialization name="fillUnit" /> you must have in xml the section <fillUnits>. See default vehicles for reference.
However for what do you need 'fillUnit' in your mod? I'd suggest you simply delete the spec.

Lorenzos (lorenzoita) 15.07.2019 12:47
Yes, I have the section <fillUnits>.
I suppose it is necessary for chipping the logs.
I didn't make this mod but I only trying to add a plow workarea.

Bilbo Beutlin (BBeutlin) 15.07.2019 18:13
Check the <fillUnits> for proper setup, espec. the nodes referencing to <i3dMapping> or vehicle.i3d.

Besides you must re-arrange the specs order due to prerequisites, eg. 'fillUnit' before 'fillVolume'.
For reference search for "vehicleTypes" here in forum. It is posted a few times.

Lorenzos (lorenzoita) 15.07.2019 19:05
Oh perfect, I fixed it by re-arrange the specs. Thank you!

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