[Rseding91] [2.0.16] Crash from Wriggler dying to attack_reaction "Error ShootingTarget.cpp:12: Unset shooting target"

This subforum contains all the issues which we already resolved.
User avatar
randomflyingtaco
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Sep 01, 2020 5:17 pm
Contact:

[Rseding91] [2.0.16] Crash from Wriggler dying to attack_reaction "Error ShootingTarget.cpp:12: Unset shooting target"

Post by randomflyingtaco »

Enemies with 2 damaging target_effects that die when attacking an entity with a damaging attack_reaction will crash the game. Originally came up with Wrigglers attacking Laser Fences from https://mods.factorio.com/mod/laserfence but I've isolated and replicated it in a test mod that doesn't use any of the additional scripting present in Laser Fence (see attached testmod).

The crash seems dependent on the order of the damage trigger effects in target_effects, because Wrigglers will crash when dying to something with attack_reaction.damage_type = "physical" but not when dying to something with attack_reaction.damage_type = "poison"

Not present in vanilla, since no entities in vanilla have attack_reactions that I can see.
Attachments
factorio-current.log
Crash log
(99.53 KiB) Downloaded 4 times
wriggler crash file.zip
Save file immediately before crash
(1.95 MiB) Downloaded 5 times
testmod_1.0.0.zip
Mod with only attack_reactions
(1021 Bytes) Downloaded 6 times

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

Re: [Rseding91] [2.0.16] Crash from Wriggler dying to attack_reaction "Error ShootingTarget.cpp:12: Unset shooting targe

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”