Is it a way to show all items IDs in game instead of names?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
ShadowScaleFTL
Inserter
Inserter
Posts: 24
Joined: Mon Jan 23, 2017 3:30 pm
Contact:

Is it a way to show all items IDs in game instead of names?

Post by ShadowScaleFTL »

Hi, im working on resorting subgroups and groups items mod for my modpack. And its hard to find items ID to change theyr groups in all mods.. It takas a lot of time. Is it a way to show theyrs IDs in mage instead of names exept deleting locale files of all mods?

User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Is it a way to show all items IDs in game instead of names?

Post by Arch666Angel »

I cant write the code for that, but a small script iterating over all items/entities putting they names into a list which is then send to the script output? :P

User avatar
ShadowScaleFTL
Inserter
Inserter
Posts: 24
Joined: Mon Jan 23, 2017 3:30 pm
Contact:

Re: Is it a way to show all items IDs in game instead of names?

Post by ShadowScaleFTL »

Arch666Angel wrote:I cant write the code for that, but a small script iterating over all items/entities putting they names into a list which is then send to the script output? :P
im not so familiar with coding, so i cant write it too, but i think it possible

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Is it a way to show all items IDs in game instead of names?

Post by Adil »

I know of no way of writing a localized string value into a file. But the locale files themselves are exactly what you are asking for, except on per-mod basis.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Is it a way to show all items IDs in game instead of names?

Post by DedlySpyder »

I think OP wants the names before being localized.

If so, run the following in the ingame console and look for "item_names.txt" in [factorio install]/script-output

Code: Select all

/c for name, _ in pairs(game.item_prototypes) do; game.write_file("item_names.txt", name.."\n", true); end

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Is it a way to show all items IDs in game instead of names?

Post by bobingabout »

If you want to know the ID names of items in the mod... look at the locale file. It will have a list where every item will be of the format "ID=Name"

if you want them to show up without names in the game, delete the locale file from the mod, and instead of a name, you'll see an error message about "Missing type:ID" or something like that.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Modding help”