How can I get item icon path?

Place to get help with not working mods / modding interface.
deterok
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Jul 30, 2023 7:47 am
Contact:

How can I get item icon path?

Post by deterok »

Hello there. I'm making a Stream Deck plugin to integrate it with Factorio quick bar and I need the best way to get item icon path or icon data. Could you help me?
Bilka
Factorio Staff
Factorio Staff
Posts: 3426
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: How can I get item icon path?

Post by Bilka »

You could try the --dump-icon-sprites command line parameter to dump all icons from the game by prototype name, if you want it outside of the game. Inside the game (during runtime modding) you'll likely just need the SpritePath.

Out of personal curiosity, why are you looking to use a steam deck plugin for the quick bar instead of using the quick panel that's part of the controller based input?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Xorimuth
Filter Inserter
Filter Inserter
Posts: 730
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: How can I get item icon path?

Post by Xorimuth »

Bilka wrote: Mon Jul 31, 2023 6:18 pm Out of personal curiosity, why are you looking to use a steam deck plugin for the quick bar instead of using the quick panel that's part of the controller based input?
Stream deck, not steam deck :)
https://www.elgato.com/us/en/p/stream-deck-mk2-black
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Bilka
Factorio Staff
Factorio Staff
Posts: 3426
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: How can I get item icon path?

Post by Bilka »

Xorimuth wrote: Tue Aug 01, 2023 2:52 am Stream deck, not steam deck :)
https://www.elgato.com/us/en/p/stream-deck-mk2-black
Oops, misread that indeed.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
deterok
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Jul 30, 2023 7:47 am
Contact:

Re: How can I get item icon path?

Post by deterok »

Thanks for the idea! I made it using the --dump-icon-sprites directive. I collect them when the stream deck plugin starts.
Now I am working on science and ammunition. And yes, it will support an amazing LCD panel on the new model :geek:
Sc1zzen
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Aug 06, 2023 11:51 pm
Contact:

Re: How can I get item icon path?

Post by Sc1zzen »

I was wondering if you had made any progress on your plug in, I have a StreamDeck XL and would be very interested!
Post Reply

Return to “Modding help”