Blueprint Variables


This adds circuit signals to the game that when blueprinted, provides an interface to quickly apply changes to all circuit conditions. Additionally, it will update named entities, such as train station names.

Utilities
a month ago
1.1
3.00K
Trains Logistic network Circuit network Blueprints

b ✔️ Crash when pasting a blueprint containing a locomotive

5 months ago

Pasting a blueprint that contains a locomotive produces the following error:

The mod Blueprint Variables (0.0.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event blueprint-variables::on_built_entity (ID 6)
blueprint-variables/variables-manager.lua:45: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
blueprint-variables/variables-manager.lua:45: in function 'getTrainVariables'
blueprint-variables/control.lua:72: in function <blueprint-variables/control.lua:53>

5 months ago

Oh my goodness, hours of testing and I never once tested a locomotive without a schedule. I'll get this fixed.

New response