[Twinsen][1.1.11] Crash: "Error ShootingTarget.cpp:13: Unset shooting target"

This subforum contains all the issues which we already resolved.
Post Reply
kelianmao
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Jan 14, 2021 5:52 pm
Contact:

[Twinsen][1.1.11] Crash: "Error ShootingTarget.cpp:13: Unset shooting target"

Post by kelianmao »

So I've managed to make a very simple mod that has hard-crashed factorio. It happens in the latest windows steam version (1.1.11), as well as 1.1.8. The crash dump says: Error ShootingTarget.cpp:13: Unset shooting target

I have attached the full crash log, as well as the simple mod that reproduces the crash. Clicking anywhere should create a projectile, which crashes the game when its action triggers (it should just spawn an explosion). It did not crash before I added the explosion.
Attachments
kelplanets_0.1.0.zip
(1.83 KiB) Downloaded 119 times
factorio-current.log
(8.86 KiB) Downloaded 125 times

Twinsen
Factorio Staff
Factorio Staff
Posts: 1331
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen][1.1.11] Crash: "Error ShootingTarget.cpp:13: Unset shooting target"

Post by Twinsen »

Thank you for the simple mod, it was very helpful.

Fixed in Version: 1.1.12.

It was related to the source not being set for the explosion because the source was not set when the entity was created. In case you want the explosion or other triggers to react to the source, you need to specify "source" entity or position in the parameters of surface.create_entity.

kelianmao
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Jan 14, 2021 5:52 pm
Contact:

Re: [Twinsen][1.1.11] Crash: "Error ShootingTarget.cpp:13: Unset shooting target"

Post by kelianmao »

Cool. Thanks for the awesome game!

Post Reply

Return to “Resolved Problems and Bugs”