Page 1 of 1

"map" field ?

Posted: Mon Aug 24, 2015 4:33 pm
by cromcrom
Hello,

I have had this bug report for my mod:
[string "GameObject.lua"]:0: attempt to index field 'map' (a nil value)
stack traceback:
[string "GameObject.lua"]: in function 'removeComponent'
[string "GameObject.lua"]: in function 'removeAllComponents'
[string "GameObject.lua"]: in function 'destroy'
[string "GameObject.lua"]: in function 'processPendingDestroys'
[string "Map.lua"]: in function 'updateEntities'
[string "Dungeon.lua"]: in function 'updateLevels'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk
This seems to be tied to destroyDelay. It seems to appear randomly, but very often, when I want to destroy items that are on a surface. Any hint please ?

Re: "map" field ?

Posted: Mon Aug 24, 2015 4:50 pm
by THOM
Just guessing: Are you trying to destroy an object, that's already destroyed or not on the map?

Re: "map" field ?

Posted: Tue Aug 25, 2015 11:07 am
by cromcrom
I am really puzzled. It has to do with destroying items that are on an alcove surface. I read somewhere it was buggy maybe?
Totally random, and makes the whole mod bug, meaning if I reload it, it won't start. I have to exit the editor, and relaunch it through the game menu, for the mod to be launch again.