Additional support for localised_name

Things that already exist in the current mod API
Post Reply
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Additional support for localised_name

Post by Mooncat »

(Duplicated with viewtopic.php?f=28&t=28345, how come I didn't see his post when doing advanced search.)

Short version:
Add support for localised_name in item creation. Note that it is already supported for recipe creation.
Maybe also for entity creation.
Also localised_name for LuaRecipe so that it can be accessed in control.lua.


Long version:
During the development of Creative Mode, I saw the localised_name property in http://lua-api.factorio.com/0.13.5/LuaI ... otype.html. I gave it a try when creating the free fluid recipes in data-final-fixes.lua and it is working. It gave me the ability to support all fluids from other mods without the need of localising them myself.

However, during the discussion with Choumiko here, we realised that it is not supported for item creation. The property is simply ignored and unknown keys are still being displayed.

I haven't tried entity creation with localised_name yet, maybe we will need it too.

In addition, I found that localised_name is not on http://lua-api.factorio.com/0.13.5/LuaRecipe.html, maybe someone will need it? I think we should keep these to be consistent anyway. :D

kasandraen
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Wed May 27, 2015 11:00 pm
Contact:

Re: Additional support for localised_name

Post by kasandraen »

Second this :) Would love to have it for entities

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Additional support for localised_name

Post by Rseding91 »

kasandraen wrote:Second this :) Would love to have it for entities
It should already work fully for everything as of the latest 0.13.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Already exists”