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

This subforum contains all the issues which we already resolved.
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

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

Post 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.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”