[0.12.9] [Rseding91] get_blueprint_entities missing conditions for pumps

This subforum contains all the issues which we already resolved.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

[0.12.9] [Rseding91] get_blueprint_entities missing conditions for pumps

Post by Choumiko »

Reading a blueprint via get_blueprint_entities() doesn't return the set condition for small pumps.

Create a blueprint with a pump that has a condition set, put it on your cursor and use

Code: Select all

/c game.player.print(serpent.dump(game.player.cursor_stack.get_blueprint_entities()))
Should be like the image for the smart-inserter
Image
User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.12.9]get_blueprint_entities missing conditions for pumps

Post by HanziQ »

Thank you for the report, this will be fixed in the next version.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [0.12.9]get_blueprint_entities missing conditions for pumps

Post by Choumiko »

get seems to be fixed, now set_blueprint_entities ignores the conditions

Code: Select all

/c local stack = game.player.cursor_stack; game.player.print("a"..serpent.dump(stack.get_blueprint_entities()[1].conditions)); game.player.print("b"..serpent.dump(stack.get_blueprint_entities(stack.set_blueprint_entities(stack.get_blueprint_entities()))[1].conditions))
Outputs the same table for a blueprint for a smart inserter with a condition,
for a pump it the second dump is nil
Image
Rseding91
Factorio Staff
Factorio Staff
Posts: 14337
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.9] [Rseding91] get_blueprint_entities missing conditions for pumps

Post by Rseding91 »

Thanks for the report. I also fixed this issue for the offshore pump.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”