COMMUNITY FORUM

Mod LUA error, Utils.lua?

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created29.05.2017 17:43


Sammy Sam Sammm (Unknown) 29.05.2017 17:43
Hi, so, I am trying to figure out what could be wrong with a mod based on an error I've been getting in the game's log.

LUA call stack:
dataS/scripts/utils/Utils.lua (1702) : printCallstack
dataS/scripts/utils/Utils.lua (1080) : getFilename
dataS/scripts/vehicles/Vehicle.lua (133) : loadSharedI3DFile
dataS/scripts/BaseMission.lua (767) : load
dataS/scripts/BaseMission.lua (914) : loadVehicle
dataS/scripts/shop/BuyVehicleEvent.lua (88) : loadVehiclesAtPlace
dataS/scripts/network/Connection.lua (77) : run
dataS/scripts/gui/ShopScreen.lua (1035) : sendEvent
dataS/scripts/gui/ShopConfigScreen.lua (467) : update
dataS/scripts/gui/elements/Gui.lua (306) : update
dataS/scripts/main.lua (1872) : update
Warning (LUA): 'loadI3DFile': Argument 1 has wrong type. Expected: String. Actual: Nil
..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
dataS/scripts/utils/Utils.lua (1105) : loadI3DFile
dataS/scripts/vehicles/Vehicle.lua (133) : loadSharedI3DFile
dataS/scripts/BaseMission.lua (767) : load
dataS/scripts/BaseMission.lua (914) : loadVehicle
dataS/scripts/shop/BuyVehicleEvent.lua (88) : loadVehiclesAtPlace
dataS/scripts/network/Connection.lua (77) : run
dataS/scripts/gui/ShopScreen.lua (1035) : sendEvent
dataS/scripts/gui/ShopConfigScreen.lua (467) : update
dataS/scripts/gui/elements/Gui.lua (306) : update
dataS/scripts/main.lua (1872) : update
Error: Running LUA method 'update'.
dataS/scripts/utils/Utils.lua(1107) : table index is nil

Error seems to be something to do with line 1107 of the Utils.lua file.
Either that or with the argument type for the i3d file, whatever that means.

Thing is, I don't know what that is, cause in the documentation on this site, I can't seem to find the Utils.lua, or the main.lua, or really 80% of the luas mentioned throughout this callstack.

So, to sum it up, just trying to figure out what is making this error happen and how to fix it.

Bilbo Beutlin (BBeutlin) 30.05.2017 00:28
Not enough infos, so one can only guess:
It seems, there's something wrong with your i3d. Load it into GE and check the console output and editor_log for errors.
If there's nothing indicated, check your vehicle.xml for syntax errors or wrong tags and attributes.


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