Community Forum

Error: Utils.lua(30) : attempt to index field '?' (a nil value)

Forum Overview >> Scripting

CategoryScripting
Created15.06.2014 12:10


Surci Modding (surciHUN) 15.06.2014 12:12
Hi all! I have a problem. I can't buy my machine in shop:
Error:
LUA running function 'mouseEvent'
D:/code/lsim2013_desktop/build/finalbin/dataS/scripts/Utils.lua(30) : attempt to index field '?' (a nil value)
How to fix?
THX to help.

Emil Drefers (Unknown) 16.06.2014 08:01
Hi,

as the error is very general in its meaing we nearly can't help you.

Check the xml entries and the scripts of the mod again.
Maybe disable some specializations to see in which one the error occurs.

Try to track down the location of the error then you'll be able to fix it.

All i can tell you is, that the error is caused during a call of 'Utils.indexToObject()'.


Best,
Emil


Surci Modding (surciHUN) 17.06.2014 12:23
Hi, thx but i'm dont find the problem.
I'm create a new machine.xml and etc :) now is good.

Miro Hanko (Unknown) 07.08.2014 09:53
Hi, I met with this error, problems was with bad index in xml file - index do not exist in i3d file. So chceck all indexs in xml file that are pointed to relevant transform in i3d.



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