Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
[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 ?
Just guessing: Are you trying to destroy an object, that's already destroyed or not on the map?
THOM formaly known as tschrage _______________________________________________ My MOD (LoG1):Castle RingfortThread My MOD (LoG2):Journey To JusticeThread | Download
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.