Move get_item_localised_name from the quality mod to core utils

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 383
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Move get_item_localised_name from the quality mod to core utils

Post by LuziferSenpai »

Hey,

the function get_item_localised_name from the quality mod is awesome, but it would be even better if it was a utils function.

Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: Move get_item_localised_name from the quality mod to core utils

Post by PennyJim »

That would force the get_prototype function to be in util and that's honestly the one I feel needs to be in there more

But yeah I do think they are simple and useful enough functions to deserve to be canon utilities
protocol_1903
Fast Inserter
Fast Inserter
Posts: 156
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Move get_item_localised_name from the quality mod to core utils

Post by protocol_1903 »

+1, i dont understand why it isn't there already
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
User avatar
IsaacOscar
Filter Inserter
Filter Inserter
Posts: 843
Joined: Sat Nov 09, 2024 2:36 pm
Contact:

Re: Move get_item_localised_name from the quality mod to core utils

Post by IsaacOscar »

Several of my otherwise simple mods have had to define my own get_prototypes function (which retuens an array so you can either loop over everything, or get a specific prototype), so I was very surprised it's not already in utils.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 669
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Move get_item_localised_name from the quality mod to core utils

Post by raiguard »

I agree that this would be nice to have in lualib. In the meantime, I have added some similar things to flib for getting localised names and prototypes by base type.
Don't forget, you're here forever.
Post Reply

Return to “Modding interface requests”