[kovarex] [1.1.36] Blueprints missing entity list when reused

Post Reply
Anonymous Monkey
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Nov 13, 2017 10:04 pm
Contact:

[kovarex] [1.1.36] Blueprints missing entity list when reused

Post by Anonymous Monkey »

For mods using on_player_setup_blueprint event.

If you use a new blueprint and capture a selection, player.blueprint_to_setup contains a valid blueprint, and contains a valid BlueprintEntity list via get_blueprint_entities(). If you reuse a blueprint (blue "select new contents" button) though, the blueprint_to_setup is invalid, and the blueprint obtained via the player's cursor_stack is defective, as the get_blueprint_entities() gives nil.

This could also affect this pending one: viewtopic.php?f=29&t=88793
Another thread talking about this same issue (thanks to mk-fg): 88100
Edit: added links to possibly related/same bug.
Attachments
mods.zip
two mods used to show bug in logs
(11.11 KiB) Downloaded 35 times
BP_BUG_Save.zip
(5.5 MiB) Downloaded 36 times
factorio-current.log
logfile with entries capturing on_player_setup_blueprint
(15.87 KiB) Downloaded 34 times

Post Reply

Return to “Assigned”