Is it a way to show all items IDs in game instead of names?
- ShadowScaleFTL
- Inserter
- Posts: 25
- Joined: Mon Jan 23, 2017 3:30 pm
- Contact:
Is it a way to show all items IDs in game instead of names?
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?
- Arch666Angel
- 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?
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?
Angels Mods
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
I. Angel's Mods Subforum
II. Development and Discussion
III. Bugs & FAQ
"should be fixed"
- ShadowScaleFTL
- Inserter
- Posts: 25
- Joined: Mon Jan 23, 2017 3:30 pm
- Contact:
Re: Is it a way to show all items IDs in game instead of names?
im not so familiar with coding, so i cant write it too, but i think it possibleArch666Angel 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?
Re: Is it a way to show all items IDs in game instead of names?
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.
I also update mods, some of them even work.
Recently I did a mod tutorial.
- DedlySpyder
- 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?
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
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
- bobingabout
- 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?
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.
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.