w84death / Tanks-of-Freedom

Indie Turn Based Strategy in Isometric Pixel Art
http://tof.p1x.in
Other
1.12k stars 152 forks source link

AI Occasionally Accesses Units After They Have Been Freed #102

Open fuzzyTew opened 5 years ago

fuzzyTew commented 5 years ago

Invalid get index 'position_on_map' (on base: 'previously freed instance').

0 - res://scripts/ai/actions/hands/move_hand.gd:15
1 - res://scripts/ai/actions/egzekutor.gd:16
2 - res://scripts/ai/ai.gd:71
3 - res://scripts/ai/ai.gd:41
4 - res://scripts/ai/ai.gd:28
5 - res://scripts/controllers/action_controller.gd:476
6 - res://scripts/ai/perform.gd:32
7 - res://scripts/timers.gd:16

Didn't find a way to copy-paste from debugger, so I transcribed the above by hand. Hopefully no typos.

czlowiekimadlo commented 5 years ago

This is an old issue. We were never able to make sure, that AI does not encounter old object reference somewhere. If you encounter this error, and will be able to re-create it by loading saved game and always getting it, then please include the save file, so we could debug it.