[Rseding91] [0.14.20] empty out signal in blueprint replaced by default

Bugs that are actually features.
gheift
Fast Inserter
Fast Inserter
Posts: 188
Joined: Tue Mar 03, 2015 9:20 pm
Contact:

[Rseding91] [0.14.20] empty out signal in blueprint replaced by default

Post by gheift »

Hi,

if I connect a signal to the network to read its state, I can set e.g. the yellow output to nothing to get only the red or green signal. If I take a blueprint of it and post it, everything works as expected, but if I save it with get_blueprint_entities() and later load it with set_blueprint_entities() the yellow output is set back to the yellow signal again.

How to reproduce:
  • place a rail, a pole and a signal
  • connect the pole and signal with a wire
  • remove the yellow output of the signal with right click
  • create a blueprint of this, place and revive it
  • check the yellow output: still empty
  • save and load the blueprint e.g. by holding it and using following command:

    Code: Select all

    /c game.player.curser_stack.set_blueprint_entities(game.player.curser_stack.get_blueprint_entities())
  • place the blueprint and revive it
  • check the yellow output: now it is the yellow signal again
Regards, Gerhard
Rseding91
Factorio Staff
Factorio Staff
Posts: 15921
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.14.20] empty out signal in blueprint replaced by default

Post by Rseding91 »

This is caused by the "if not set, use the default value" behavior when setting conditions.

You'll need to manually set a blank entry in the definition specifying you want the signal to be blank.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”