LuaPlayer::blueprints add library index, name, description and book icons

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
mrchuw
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 26, 2024 1:52 pm
Contact:

LuaPlayer::blueprints add library index, name, description and book icons

Post 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
10-27-2024, 15-24-20.png (39.05 KiB) Viewed 163 times
10-27-2024, 15-25-08.png
10-27-2024, 15-25-08.png (58.76 KiB) Viewed 163 times
User avatar
mrchuw
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Oct 26, 2024 1:52 pm
Contact:

Re: LuaPlayer::blueprints add library index, name, description and book icons

Post 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
cfcluan
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Nov 10, 2024 3:58 pm
Contact:

Re: LuaPlayer::blueprints add library index, name, description and book icons

Post 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.
robot256
Filter Inserter
Filter Inserter
Posts: 872
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: LuaPlayer::blueprints add library index, name, description and book icons

Post 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.
Post Reply

Return to “Modding interface requests”