Page 1 of 1
LuaPlayer::blueprints add library index, name, description and book icons
Posted: Sun Oct 27, 2024 6:37 pm
by mrchuw
While I was looking at the interfaces to see if I could create a mod I noticed that it returns an array in sequence without any indication of the index in the library. Also doesn't say the name or description of the element and also don't have the icons for a blueprint book
https://lua-api.factorio.com/latest/cla ... blueprints
- 10-27-2024, 15-24-20.png (39.05 KiB) Viewed 176 times
- 10-27-2024, 15-25-08.png (58.76 KiB) Viewed 176 times
Re: LuaPlayer::blueprints add library index, name, description and book icons
Posted: Sun Oct 27, 2024 6:54 pm
by mrchuw
One more thing: on_player_configured_blueprint doesn’t work when the player clicks confirm inside the library, only in the inventory.
https://lua-api.factorio.com/latest/eve ... _blueprint
Re: LuaPlayer::blueprints add library index, name, description and book icons
Posted: Sun Nov 10, 2024 4:00 pm
by cfcluan
Yes! I would love the exact same information available. I'm working on a "search anything" mod (
https://mods.factorio.com/mod/factory-palette) and blueprints are one of the things I want to speed up access to the most, but without names/icons it's quite difficult.
Re: LuaPlayer::blueprints add library index, name, description and book icons
Posted: Wed Nov 20, 2024 8:22 pm
by robot256
+1 for LuaRecord::active_index of blueprint books. Right now it's impossible to tell what the player is using from within the book, unless we're misunderstanding something.