"map" field ?

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!
Post Reply
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

"map" field ?

Post 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 ?
A trip of a thousand leagues starts with a step.
User avatar
THOM
Posts: 1281
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: "map" field ?

Post by THOM »

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 Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: "map" field ?

Post 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.
A trip of a thousand leagues starts with a step.
Post Reply