Page 1 of 1

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

Posted: Mon Mar 06, 2017 3:03 pm
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?

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

Posted: Mon Mar 06, 2017 3:49 pm
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

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

Posted: Mon Mar 06, 2017 7:19 pm
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

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

Posted: Mon Mar 06, 2017 7:35 pm
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.

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

Posted: Mon Mar 06, 2017 10:16 pm
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

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

Posted: Tue Mar 07, 2017 4:57 pm
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.