"Baking" layered recipe icons (Python)

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

"Baking" layered recipe icons (Python)

Post by Deadlock989 »

-
Last edited by Deadlock989 on Fri Jan 12, 2024 6:47 pm, edited 17 times in total.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: "Baking" layered recipe and item icons (Python)

Post by Deadlock989 »

-
Last edited by Deadlock989 on Fri Jan 12, 2024 6:47 pm, edited 1 time in total.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: "Baking" layered recipe and item icons (Python)

Post by Deadlock989 »

-
Last edited by Deadlock989 on Fri Jan 12, 2024 6:47 pm, edited 1 time in total.
billbo99
Fast Inserter
Fast Inserter
Posts: 136
Joined: Fri Nov 02, 2018 9:19 am
Contact:

Re: "Baking" layered recipe and item icons (Python)

Post by billbo99 »

In my own experience I have noticed that not all recipes have icons. If the mod owner has not defined on the game will work out an icon based on the main_product.

@theRustyKnife has made this helper library mod .. https://mods.factorio.com/mod/rusty-locale .. which has taken over a lot of the hard work. If you look at the home page for the mod, there are methods to get the correct localised_name and icons for a prototype.
billbo99
Fast Inserter
Fast Inserter
Posts: 136
Joined: Fri Nov 02, 2018 9:19 am
Contact:

Re: "Baking" layered recipe and item icons (Python)

Post by billbo99 »

As for layered icons its ODD that the game does not merge all the layers together when it forms the atlas images, after that point the icons are not going to change.

I wonder if we could poke WUBE into do some optimization and instead of relying on the graphics cards to layer all the icons as they are displayed on the map, pre-bake them during the process that builds the atlas.

PS Maybe they have already done this optimization, but have not talked about it.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: "Baking" layered recipe and item icons (Python)

Post by Deadlock989 »

-
Last edited by Deadlock989 on Fri Jan 12, 2024 6:49 pm, edited 1 time in total.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: "Baking" layered recipe and item icons (Python)

Post by Deadlock989 »

-
Last edited by Deadlock989 on Fri Jan 12, 2024 6:48 pm, edited 1 time in total.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: "Baking" layered recipe icons (Python)

Post by Deadlock989 »

-
Post Reply

Return to “Tools”