|Category||Farming Simulator 17|
|Bart Caenen (caenenba)||16.06.2017 17:07|
|I'm trying to create a new tractor mod. On loading the tractor from the store I get the following error in the log file:
Warning (LUA): 'getWorldTranslation': Argument 1 has wrong type. Expected: Int. Actual: Nil
..\..\..\src\base\scripting\lua\LuaScriptSystem.cpp (640): expectedType == Value::VoidType
LUA call stack:
dataS/scripts/vehicles/specializations/Steerable.lua (555) : getWorldTranslation
dataS/scripts/BaseMission.lua (2456) : getDistanceToObject
dataS/scripts/BaseMission.lua (1692) : getInteractiveVehicleInRange
dataS/scripts/FSBaseMission.lua (2171) : update
dataS/scripts/missions/mission00.lua (333) : update
dataS/scripts/main.lua (1876) : update
Error: Running LUA method 'update'.
dataS/scripts/vehicles/specializations/Steerable.lua(556) : attempt to perform arithmetic on local 'vx' (a nil value)
The mod is loaded but the game is reacting bad to it as it is not responding to any inputs the user gives.
Any idea what I did wrong? what is a Argument 1?
|Emil Drefers (Unknown)||19.06.2017 07:05|
local x,y,z = getWorldTranslation(self.components[i].node)
So, the first argument of the function must be a valid (scenegraph) object.
It seems that whatever object you are querying is not (yet) available in the scenegraph.
We don't know what you are doing in your mod, so we can hardyl help without further information.
What object are you checking?
If you have a look here:
You can see that the node 'self.enterReferenceNode' seems to be invalid.
|Jack Schoonover (Jackaroo)||01.08.2018 19:19|
|Having the same issue. any help?
Note: Log in to post. Create a new account here.