lukrop / GCICAP

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

Wounded CAP never despawn #14

Closed lukrop closed 8 years ago

lukrop commented 8 years ago

If you kill 1 out of 2 and the surviving aircraft RTB's then it will stay parked, never despawn and the cap will never replenish.

Tested on the provided sample mission at x10 speed, took about 5 minutes until it broke.

Thanks to Pikey for the report.

lukrop commented 8 years ago

Seems to still be a problem. :sob:

http://www.twitch.tv/thebgpikester/v/52765116

42debug commented 8 years ago

oh nice! i was trying to fix it using something like local function parkDestroy(event) if event.id==18 then if not event.initiator:inAir() then event.initiator:destroy() end end end mist.addEventHandler(parkDestroy)

lukrop commented 8 years ago

Still no luck. Somehow the flights might never get tasked with RTB and therefore this if clause never is fullfilled.

lukrop commented 8 years ago

Using the new garbage collector this issue should finally be solved. I couldn't reproduce any problems with latest master. I'll leave this open until some further testing is done.