[1.1.57] Game hangs after destroying entity scheduled for attack

This subforum contains all the issues which we already resolved.
Post Reply
IronBadger
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Apr 27, 2022 1:31 am
Contact:

[1.1.57] Game hangs after destroying entity scheduled for attack

Post by IronBadger »

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
Attachments
control.lua
(1.6 KiB) Downloaded 376 times
factorio-current.log
(4.61 KiB) Downloaded 361 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.57] Game hangs after destroying entity scheduled for attack

Post by Rseding91 »

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.

Post Reply

Return to “Resolved Problems and Bugs”