[2.0.24] Player.get_quick_bar_slot() returns nil for blueprint from Library and spidertron remote

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Hanakocz
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sun Jun 24, 2018 7:06 pm
Contact:

[2.0.24] Player.get_quick_bar_slot() returns nil for blueprint from Library and spidertron remote

Post by Hanakocz »

Hello,

if you try to read player.get_quick_bar_slot(index), it usually returns an object for the current filter, or nil if the filter is empty. This works for actual items, blueprints made via ALT+B, artillery targetting remote, discharge remote....however it returns nil for spidertron remote and for blueprints that I dropped on the slot from blueprint library.

On the picture, I added first slot from blueprint library, while the last slot is blueprint created via item right now.
12-09-2024, 00-52-11.png
12-09-2024, 00-52-11.png (88.87 KiB) Viewed 210 times
I would expect that the blueprint from library would still return something, as the filter of that slot is clearly filled with it. As there isn't actual item for this entity, it would be okay if it returns some virtual signal or some basic name.

Steps to reproduce are easy, insert into quickbar some blueprint from blueprint library or create a spidertron remote, then print the lua command to get the slot info.
Post Reply

Return to “Modding interface requests”