Page 1 of 1

Missing light linkNode (FS22)

Posted: Thu Nov 25, 2021 1:02 pm
by Ekan
Its not a convert, just making a mod from standard. But got issue with the light, why?
2021-11-25 02:28 C:/Users/ekan_/Documents/My Games/FarmingSimulator2022/mods/FS22_FieldMaster20/Fieldmaster20.i3d (21.56 ms)
2021-11-25 02:28 Error: Failed to find child 12 from node sharedLights, only 12 children given
2021-11-25 02:28 LUA call stack:
dataS/scripts/i3d/I3DUtil.lua (20) : printCallstack
dataS/scripts/i3d/I3DUtil.lua (100) : checkChildIndex
dataS/scripts/i3d/I3DUtil.lua (395) : indexToObject
dataS/scripts/xml/XMLFile.lua (263) : closure
dataS/scripts/i3d/I3DUtil.lua (391) : iterate
dataS/scripts/vehicles/Vehicle.lua (820) : loadI3DMapping
dataS/scripts/i3d/I3DManager.lua (129) : asyncCallbackFunction
2021-11-25 02:28 Error: Index not found: 0>0|1|0|12
2021-11-25 02:28 Error: Failed to find child 13 from node sharedLights, only 12 children given
2021-11-25 02:28 LUA call stack:
dataS/scripts/i3d/I3DUtil.lua (20) : printCallstack
dataS/scripts/i3d/I3DUtil.lua (100) : checkChildIndex
dataS/scripts/i3d/I3DUtil.lua (395) : indexToObject
dataS/scripts/xml/XMLFile.lua (263) : closure
dataS/scripts/i3d/I3DUtil.lua (391) : iterate
dataS/scripts/vehicles/Vehicle.lua (820) : loadI3DMapping
dataS/scripts/i3d/I3DManager.lua (129) : asyncCallbackFunction
2021-11-25 02:28 Error: Index not found: 0>0|1|0|13
2021-11-25 02:28 data/shared/wheels/tires/trelleborg/TwinRadial/R30_5_TwinRadial.i3d (2.12 ms)
2021-11-25 02:28 Error: Failed to find child 12 from node sharedLights, only 12 children given
2021-11-25 02:28 LUA call stack:
dataS/scripts/i3d/I3DUtil.lua (20) : printCallstack
dataS/scripts/i3d/I3DUtil.lua (100) : checkChildIndex
dataS/scripts/xml/XMLValueType.lua (61) : indexToObject
dataS/scripts/vehicles/specializations/Lights.lua (1160) : getValue
dataS/scripts/vehicles/specializations/Lights.lua (362) : loadSharedLight
dataS/scripts/xml/XMLFile.lua (263) : closure
dataS/scripts/vehicles/specializations/Lights.lua (361) : iterate
dataS/scripts/specialization/SpecializationUtil.lua (19)
dataS/scripts/vehicles/Vehicle.lua (961) : raiseEvent
dataS/scripts/i3d/I3DManager.lua (129) : asyncCallbackFunction
2021-11-25 02:28 Error: Index not found: 0>0|1|0|12
2021-11-25 02:28 Warning (C:/Users/ekan_/Documents/My Games/FarmingSimulator2022/mods/FS22_FieldMaster20/fieldMaster20.xml): Missing light linkNode in 'vehicle.lights.sharedLight(10)'!
2021-11-25 02:28 Error: Failed to find child 13 from node sharedLights, only 12 children given
2021-11-25 02:28 LUA call stack:
dataS/scripts/i3d/I3DUtil.lua (20) : printCallstack
dataS/scripts/i3d/I3DUtil.lua (100) : checkChildIndex
dataS/scripts/xml/XMLValueType.lua (61) : indexToObject
dataS/scripts/vehicles/specializations/Lights.lua (1160) : getValue
dataS/scripts/vehicles/specializations/Lights.lua (362) : loadSharedLight
dataS/scripts/xml/XMLFile.lua (263) : closure
dataS/scripts/vehicles/specializations/Lights.lua (361) : iterate
dataS/scripts/specialization/SpecializationUtil.lua (19)
dataS/scripts/vehicles/Vehicle.lua (961) : raiseEvent
dataS/scripts/i3d/I3DManager.lua (129) : asyncCallbackFunction
2021-11-25 02:28 Error: Index not found: 0>0|1|0|13
2021-11-25 02:28 Warning (C:/Users/ekan_/Documents/My Games/FarmingSimulator2022/mods/FS22_FieldMaster20/fieldMaster20.xml): Missing light linkNode in 'vehicle.lights.sharedLight(11)'!
Found it. Was missing 2 index paths in shared lights in the mod.

Re: Missing light linkNode (FS22)

Posted: Fri Dec 17, 2021 4:49 pm
by 16xFan
Same Prob. Also made from standart.

Re: Missing light linkNode (FS22)

Posted: Sat Dec 18, 2021 8:05 am
by HatsuneKid
I went straight to the vehicle's i3d and xml file you mentioned in the game folder and I found the cause of the problem.
In its xml file
<i3dMapping id="rearMultipointLEDLightLeft" node="0>0|1|0|10" />
<i3dMapping id="rearMultipointLEDLightRight" node="0>0|1|0|11" />
<i3dMapping id="plateNumberLight02_01" node="0>0|1|0|12" />
<i3dMapping id="plateNumberLight02_02" node="0>0|1|0|13" />
But in its i3d file
Image
Its i3d file could not load [rearMultipointLEDLight_01.i3d]. This file name only exit in fs19. I dont know what its new name in fs22. Or you can just replace it to another rear light you want. In your mod's i3d file, add two rear light upon plateNumberLight that match the xml file.
Image
Strangely it seems that vanilla vehicle in fs22 can automatically replace the old file name of the light with the new one, but the mod vehicle can't.