Community Forum

Error: getChildAt index out of range

Forum Overview >> Scripting

CategoryScripting
Created10.12.2013 21:23


Nilson Aron (boleknalolka) 10.12.2013 21:25
It will help someone to solve

C:/Users/Sony/Documents/My Games/FarmingSimulator2013/mods/USLandV2/SampleModMap.i3d (1.96mb in 12930.13 ms)
Error: getChildAt index out of range
Call Stack:
D:/code/lsim2013_desktop/build/finalbin/dataS/scripts/ingameMissions/MowingIngameMission.lua(51) : printCallstack
D:/code/lsim2013_desktop/build/finalbin/dataS/scripts/ingameMissions/MowingIngameMission.lua(27) : loadMissionDescriptions
Lua: Unknown entity id: 0 method name: getChildAt
Call Stack:
D:/code/lsim2013_desktop/build/finalbin/dataS/scripts/ingameMissions/MowingIngameMission.lua(52) : getChildAt
D:/code/lsim2013_desktop/build/finalbin/dataS/scripts/ingameMissions/MowingIngameMission.lua(27) : loadMissionDescriptions

Dirk Peeters (Unknown) 18.04.2014 16:06
hi
"getChildAt index out of range" you have a misconfigured mod where a index is pointed wrong.

in the giants editor at the attributes window you see "Index Path" a number like 0> or 0>0|1|0.
in your mod xml file these are the numbers to use.

example a arm to move
<move arm index ="0>0|1|0" />

like i look at your log it seems your mowingMissions are not in the map and the mowingmission.lua from giants can not find the index to the missions defined in your map.
check that map if all elements are there from the mowingmissions.
grts
jeng


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