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
[1.1.57] Game hangs after destroying entity scheduled for attack
-
- Manual Inserter
- Posts: 1
- Joined: Wed Apr 27, 2022 1:31 am
- Contact:
[1.1.57] Game hangs after destroying entity scheduled for attack
- Attachments
-
- control.lua
- (1.6 KiB) Downloaded 397 times
-
- factorio-current.log
- (4.61 KiB) Downloaded 386 times
Re: [1.1.57] Game hangs after destroying entity scheduled for attack
Thanks for the report. I fixed the hang, however I'm not sure what should happen in this case AI wise so you'll have to let me know if it needs more tweaks.
If you want to get ahold of me I'm almost always on Discord.