Page 1 of 1

Locale problem

Posted: Sat Apr 29, 2017 6:06 pm
by cpaca
I believe I have locale set up correctly, but it isn't working. It's returning the error "Unknown key: item.name-Primium-4Item" on the item's name. Game doesn't crash, nothing like that. https://mods.factorio.com/mods/cpaca0/Primium for reference to mod in question. Prerequisite required: https://mods.factorio.com/mods/cpaca0/Easy_API and base 0.15 or further.

Re: Locale problem

Posted: Sat Apr 29, 2017 6:10 pm
by daniel34
In your locale file remove the spaces before and after the equals sign (=).

Re: Locale problem

Posted: Sun Apr 30, 2017 4:41 pm
by cpaca
Thank you for the help!

Re: Locale problem

Posted: Tue May 02, 2017 11:39 pm
by credomane
daniel34 wrote:In your locale file remove the spaces before and after the equals sign (=).
....Really!? That is my entire problem!? This has been driving me mad for DAYS now. Scratching my head trying to figure out what in the world is wrong.

0.14.X locales work fine.
0.15.x locales all produce "Unknown Key: whatever"

Knew it was an issue in my mod because other mods worked with locale just fine. For the life of me couldn't figure out what changed besides updating the info.json for locale to suddenly not work at all in my mod.

Thank you so much for this information!