[0.13.8] localised_name on entity ?

This subforum contains all the issues which we already resolved.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[0.13.8] localised_name on entity ?

Post by binbinhfr »

Hi,

I tried to use "dynamic" localised name generation, to generate different names with different level of items, and I have problem generating the name of items (it works fine for entity and recipes).

Please use and look at this simple test mod, that creates a chest prototype :
LocalePb_0.0.1.zip
(1.44 KiB) Downloaded 138 times
then create
/c game.player.insert({name = "test-2", count = 10})

You will see that the recipe name is correct, the name on the entity once on the ground is correct, but the name of the item in the inventory has problem :
it seems that it is looking for a entity-name instead of an item-name.
My mods on the Factorio Mod Portal :geek:
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5267
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.13.8] localised_name on entity ?

Post by Klonan »

Thanks for the report,

I can confirm that the item is looking for a entity locale,
Im not sure but i think if there is no item locale defined, it will use and entities locale
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.13.8] localised_name on entity ?

Post by binbinhfr »

Yes, but in my case, all was defined : entity, item and recipe locale...
So he should have find either the entity of the item locale. Strange.

Do you think about a temporary turnaround ? Because I tried to use the entity name to define the item name, but it does not work either...
My mods on the Factorio Mod Portal :geek:
Rseding91
Factorio Staff
Factorio Staff
Posts: 14301
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.13.8] localised_name on entity ?

Post by Rseding91 »

Fixed for 0.13.10.
If you want to get ahold of me I'm almost always on Discord.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.13.8] localised_name on entity ?

Post by binbinhfr »

Nice !
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Resolved Problems and Bugs”