eg. add a blueprint book to the "game blueprints"-frame in script.
Code: Select all
game.blueprints.add("somestring")
Code: Select all
game.blueprints.add("somestring")
Convert from/to strings.Bilka wrote: Sat Sep 29, 2018 7:29 pm What exactly is the request here? Do you want to access the blueprint library, or do you want to convert blueprints from/to strings?
This is already possible through https://lua-api.factorio.com/latest/Lua ... port_stack and https://lua-api.factorio.com/latest/Lua ... port_stack.
Regrettably that requires a stack, so it's impractical to use when all you want is the list of entities/settings. I think 0.17 was going to have a decoding operation blueprint_string → blueprint_table?Bilka wrote: Mon Oct 08, 2018 11:21 am This is already possible through https://lua-api.factorio.com/latest/Lua ... port_stack and https://lua-api.factorio.com/latest/Lua ... port_stack.
I'd love to be able to access the blueprint library via API, as I already described in detail here. Noone ever bothered to answer though...Bilka wrote: Sat Sep 29, 2018 7:29 pm What exactly is the request here? Do you want to access the blueprint library, or do you want to convert blueprints from/to strings?