[1.1.57] Game hangs after destroying entity scheduled for attack
Posted: Wed Apr 27, 2022 1:43 am
When a unit group attack command has been chained using defines.command.compound, if the entity that is the target of the attack is destroyed before the unit group gets to attacking it, the game hangs. I created a control.lua file that has the minimum amount of code to recreate the problem on a new game. The problem is reproducible on the current steam version with no other mods.
Steps to reproduce:
Copy attached control.lua into a mod folder
Start new game
Press tab to skip cutscene
Wait 15 seconds
Hang will be reproduced after biter kills the first tree
See comments in control.lua for more information on the sequence of events to cause the hang
Steps to reproduce:
Copy attached control.lua into a mod folder
Start new game
Press tab to skip cutscene
Wait 15 seconds
Hang will be reproduced after biter kills the first tree
See comments in control.lua for more information on the sequence of events to cause the hang