Page 1 of 1

get/set_blueprint_entities() do not support cargo-wagon filters

Posted: Wed Mar 13, 2019 10:45 pm
by Therax
Currently if a BP is created for a train including cargo wagon filters, the filter settings are not captured in LuaItemStack::get_blueprint_entities().

I would expect something like:

Code: Select all

stack.set_blueprint_entities(stack.get_blueprint_entities())
to be a noop, but that is currently not the case.

Use case:
viewtopic.php?f=190&t=56850&start=200#p411860

Bulk Rail Loaders uses a container entity, but since containers have no direction, for blueprinting purposes I put a pump entity, modifying the blueprint during on_player_setup_blueprint.

Re: get/set_blueprint_entities() do not support cargo-wagon filters

Posted: Tue Mar 19, 2019 8:24 pm
by Rseding91
Fixed for the next version of 0.17.