I am updating my mod 2.1 and I'm running into an issue where placing a blueprint for an enemy faction causes a crash when the blueprint contains an enemy spawner. This worked fine in version 2.0
I have attached a minimal mod to reproduce this error. All it does it attempt to build a blueprint containing an enemy spawner when a chunk is generated, as well as provide a spawner that can be blueprinted. If I load this sample mod in 2.0 it also works.
semi-related, but in both versions viewing the blueprint causes a game to crash, but before it was useable if you did't open it.
placing the blueprint manually with the player does seem to work, but the item_stack.build_blueprint call causes the crash.
[boskid][2.1.14] Crash building enemy spawner with blueprint
[boskid][2.1.14] Crash building enemy spawner with blueprint
- Attachments
-
- BadBlueprint.zip
- Sample Mod to reproduce
- (1.6 KiB) Downloaded 5 times
-
- factorio-current.log
- (13.5 KiB) Downloaded 7 times
Re: [boskid][2.1.14] Crash building enemy spawner with blueprint
Thanks for the report. Issue is now fixed for 2.1.15, however i am not admitting that enemy spawners in blueprint are supported - with this fix i also had to fix a desync related to enemy spawner variation when in a blueprint which indicates that spawners in blueprint are absolutely dry of tests.

