Page 1 of 1

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

Posted: Fri Nov 18, 2016 5:13 pm
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

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

Posted: Mon Dec 26, 2016 6:29 am
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.