[Dev-2594] invalid file path 'stonehearth/locales/nl.json' [workaround inside]

dear all,

Since the last update via Steam, I can start up the game, select villagers and tools. Map is generated but once I select an area and click to settle it I get a window :

''runtime error, this application has requested the Runtime to terminate it in an usual way. Please contact app’s support etc.etc."

From the log :

2015-Sep-17 10:31:36.568196 | client | 1 | resources | error loading file stonehearth/locales/nl.json: invalid file path ‘stonehearth/locales/nl.json’.

The path is there but the file is not present, only nl.pak (and other localisation.pak files)

deleted the game, downloaded it again. no joy.

never had this issue . windows 8 OS.

anyone else seen this problem ?

Are you using the desktop icon to start the game or going into library and starting from there? I’ve had to delete the ‘old’ desktop Stonehearth and make a new.

via steam library, also tried executing it from the steam/steamapps/common/stonehearth directory, 32 bit version, 64 bit version. no joy.

the program starts up fine, just when starting a new game it now suddenly is missing a file ?!

hmm… i dont think the problem is coming from not having that file when you need it, but rather you dont need the file (as i dont have a nl.json either and my game works) but for some reason the game thinks you do…

i hope that made sense…

Hmmm in this folder shouldnt be an NL.json or something just en.json and supported_lang.json xD

Also it means the stonehearth.smod folder not the on the outside xd

When im Home i will test it :wink:

Edit: So i have test it and nope nothing happens … also with translationmod and other language?

1 Like

try to add this in the stonehearth.smod - localesfolder

pack.zip (56.4 KB)

this is the en.json just renamed in nl.json and an changed supported_lang.json which support “Netherland” - so it knows there is a file for this

1 Like

tried it but… weirdest thing ever this.

last bit of my log now

2015-Sep-17 18:30:09.403854 | client | 1 | resources | error loading file stonehearth/locales/nl.json: invalid file path ‘stonehearth/locales/nl.json’.
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | std::exception: 'Unknown exception’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | stack traceback:
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | radiant/modules/events.luac:68: in function <radiant/modules/events.luac:65>
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | [C]: in function 'create_render_entity’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | …ent/terrain_highlight/terrain_highlight_service.luac:29: in function '_create_renderers’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | …ent/terrain_highlight/terrain_highlight_service.luac:12: in function 'initialize’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | stonehearth/stonehearth_client.luac:5: in function 'create_service’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | stonehearth/stonehearth_client.luac:9: in function 'self’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | radiant/modules/events.luac:80: in function <radiant/modules/events.luac:78>
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | [C]: in function 'xpcall’
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | radiant/modules/events.luac:78: in function <radiant/modules/events.luac:70>
2015-Sep-17 18:30:09.404854 | client | 0 | lua.code | – Lua Error End -------------------------------
2015-Sep-17 18:30:09.404854 | client | 1 | client.core | user feedback is on
2015-Sep-17 18:30:17.652983 | client | 1 | resources | error loading file stonehearth/locales/nl.json: invalid file path ‘stonehearth/locales/nl.json’.

Likely I’m presuming wrong that the load error causes the game to crash, it’s prolly the previous bit.

thanks for the effort Wiese :smile:

1 Like

from another post

I’ve found a solution, or well somebody else did.

This has something to do with localization.

You’ll need to open the stonehearth.smod in say 7zip and add a dublicate of the en.json, with en renamed to your region in my case it was da.json as i live in Denmark.

You’ll also need to update the supported_languages.json.

I can confirm this works :sunny: putting it into the stoneheart.smod file was the trick. <3 7zip

my supported_languages.json file (thx Wiese)

{
“languages”: {
“en”: {
“display_name”: “English”
},
“nl”: {
“display_name”: “Netherland”
}
}
}

4 Likes

This works, nice nice nice.

2 Likes

Wow Thanks for looking into this everyone! This was the game trying to load debug text based on the locale of the computer and failing poorly.
Should be fixed next update to unstable.

-Yang

3 Likes