Page 1 of 1

[0.13.8] localised_name on entity ?

Posted: Sat Jul 16, 2016 11:29 am
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 156 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.

Re: [0.13.8] localised_name on entity ?

Posted: Mon Jul 18, 2016 9:44 am
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

Re: [0.13.8] localised_name on entity ?

Posted: Mon Jul 18, 2016 10:11 am
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...

Re: [0.13.8] localised_name on entity ?

Posted: Mon Jul 18, 2016 9:21 pm
by Rseding91
Fixed for 0.13.10.

Re: [0.13.8] localised_name on entity ?

Posted: Mon Jul 18, 2016 9:39 pm
by binbinhfr
Nice !