lukrop / GCICAP

Autonomous GCI and CAP script for DCS: World.
Other
7 stars 1 forks source link

Despawn Handler: attempt to call method 'getGroup' (a nil value) #10

Closed Marioshata closed 8 years ago

Marioshata commented 8 years ago

Hey lukrop, I am getting this error periodically while running my mission and I think it's GCICAP script related:

DCS: Mission script error: : [string "C:\Users\MARIOS~1\AppData\Local\Temp\DCS.openbeta\/~mis00004865"]:1277: attempt to call method 'getGroup' (a nil value)
stack traceback:
    [C]: in function 'getGroup'
    [string "C:\Users\MARIOS~1\AppData\Local\Temp\DCS.openbeta\/~mis00004865"]:1277: in function 'f'
    [string "C:\Users\MARIOS~1\AppData\Local\Temp\DCS.openbeta\/~mis00000785"]:861: in function 'onEvent'
    [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11>
lukrop commented 8 years ago

Looks like the event handler isn't supplied with a initiator. Very strange. I'll add a check for that though I'm not sure if this should ever happen. Would you mind attaching the mission file here?

Marioshata commented 8 years ago

Still getting this error which seems to happen every time a random building from the scenery is destroyed.

lukrop commented 8 years ago

I think this would be related to MIST then. I'll have a look at the MIST code.

lukrop commented 8 years ago

This is still a problem and related to GCICAP itself.