Why library blueprint (record) is always invalid for read?

Place to get help with not working mods / modding interface.
zerwiport
Inserter
Inserter
Posts: 29
Joined: Sat Mar 09, 2024 11:03 pm
Contact:

Why library blueprint (record) is always invalid for read?

Post by zerwiport »

Hi,
I'm creating Floating Toolbars and I would like to have full support for blueprints. With blueprints in the inventory there is no problem they have an ID and I can access all information. On the other hand blueprints from the library are invalid for read when I hold them, I can access theirs entities (because it was requested long time ago) but nothing else. Would it be possible to have ID of it and also access icons to present it properly and pick it by ID from the library like it's done in the Quickbar?
Attachments
Zrzut ekranu 2024-09-18 162324.png
Zrzut ekranu 2024-09-18 162324.png (262.06 KiB) Viewed 274 times
Zrzut ekranu 2024-09-18 162347.png
Zrzut ekranu 2024-09-18 162347.png (280.02 KiB) Viewed 274 times

Bilka
Factorio Staff
Factorio Staff
Posts: 3300
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Why library blueprint (record) is always invalid for read?

Post by Bilka »

It's invalid for read because it's not a real item. However, blueprint records from the library will be accessible for reading in 2.0 via the new LuaRecord object, see viewtopic.php?p=594826#p594826 and 115737.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

zerwiport
Inserter
Inserter
Posts: 29
Joined: Sat Mar 09, 2024 11:03 pm
Contact:

Re: Why library blueprint (record) is always invalid for read?

Post by zerwiport »

Yes, noticed it yesterday. This is what I would expect. Thanks for the replay.

Post Reply

Return to “Modding help”