Localization issues ("Unknown key") with 0.15

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
canidae
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Thu Feb 18, 2016 6:24 pm
Contact:

Localization issues ("Unknown key") with 0.15

Post by canidae »

Posting in this forum as I'm currently only interested to hear if anyone else are experiencing the same issue.

My mod (auto research) which works fine in 0.14 ends up with "Unknown key" for all localization strings in 0.15.1, and I've so far been unable to figure out why. This happens when the only change to the mod is to replace the "factorio_version" value from "0.14" to "0.15".
I've tried some minor changes, such as replacing "_" with "-" or even removing both "_" and "-" from the localization keys entirely, but to no avail. Peculiar thing is that another mod ("Pushbutton" by justarandomgeek) does not display the same issue, even though our setups are as far as I can tell practically identical.

Anyone else experiencing this?

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2919
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Localization issues ("Unknown key") with 0.15

Post by Optera »

I'm having the same problem. My locale paths are identical to base, no idea what changed.

canidae
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Thu Feb 18, 2016 6:24 pm
Contact:

Re: Localization issues ("Unknown key") with 0.15

Post by canidae »

Optera wrote:I'm having the same problem. My locale paths are identical to base, no idea what changed.
I see you made a couple mods. If you could link to one where you're experiencing this issue, then we can compare with auto research (source) and see if there's a pattern to what's causing it. As I mentioned, the Pushbutton mod does not display this issue, and the only difference I see from auto research is less use of "_" and "-" in localization keys (although I already briefly tested removing these, but my testing may have been inadequate).
There's one thing I haven't tested, though: I installed Pushbutton without ever having it installed before. Could there be some caching issues somewhere?

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2919
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Localization issues ("Unknown key") with 0.15

Post by Optera »

I figured it out. 0.15 no longer trims strings from whitespaces.

Code: Select all

wooden-chest = Wooden chest
now has to be

Code: Select all

wooden-chest=Wooden chest

canidae
Long Handed Inserter
Long Handed Inserter
Posts: 72
Joined: Thu Feb 18, 2016 6:24 pm
Contact:

Re: Localization issues ("Unknown key") with 0.15

Post by canidae »

Optera wrote:I figured it out. 0.15 no longer trims strings from whitespaces.

Code: Select all

wooden-chest = Wooden chest
now has to be

Code: Select all

wooden-chest=Wooden chest
That's... interesting. Good find, though!

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2578
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Localization issues ("Unknown key") with 0.15

Post by FuryoftheStars »

Glad I found this. Was attempting to update some old 0.14 mods for personal use in 0.15 that the authors' did not appear to be updating and was running into the same trouble!
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

Post Reply

Return to “Modding discussion”