Can't start the game - UI error from sorting templates (disabling all saved templates helps)

everytime i open my game i go and try to make a new single player world but the main menu wont work and even if i use f5 to get passed and choose my biome and stuff i cant get passed that screen

1 Like

probably mod related
if not then check your log file

I’m having the exact same problem, I can’t play my game at all, the UI won’t take me anywhere but the opening screen. It was working last night before the update

Definitely sounds like a mod issue. Try opening up your Stonehearth/user_settings.json file, finding the sections "zip" and "steam_workshop" and setting all of their "enabled" properties to false. Then when you launch the game, you can go into Mods and try enabling them one by one, going back out to the main screen each time and then back into the Mods view. As soon as clicking the Mods button fails to work again, you’ll know the latest mod you tried to enable is broken.

I only have templates enabled, though. I don’t see how those would conflict with the starting UI

I’m having the same issue with my husband’s game as well. I have tried disabling all mods as detailed in this post to no avail.

We can get into a game if we use “join game” via the steam friend list, however – while camera controls work – the UI doesn’t load and it gives the error below:

Blockquote release-875 (x64)[M]
Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
TypeError: Cannot read property ‘toLowerCase’ of undefined
at Object._alphaSortTemplates [as fn] (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:240:43)
at n._sortTemplates (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:293:57)
at Object. (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:182:44)
at j (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:26925)
at Object.fireWith [as notifyWith] (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:27738)
at Object.e.(anonymous function) [as notify] (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:28718)
at http://radiant/radiant/js/radiant/object.js:44:35
at Array.forEach (native)
at Function.j.each.j.forEach (http://radiant/radiant/js/external/underscore-1.5.2.min.js:5:599)
at http://radiant/radiant/js/radiant/object.js:43:18

Here is the log from stonehearth.log:

Blockquote 2018-07-14 20:54:23.290621 | server | 1 | app | Stonehearth Version 0.24.0.875 (x64)
2018-07-14 20:54:23.291120 | server | 1 | core.config | user id is cd1cb825-6f46-41a8-98b1-0ebe0a47ce15
2018-07-14 20:54:23.291120 | server | 1 | core.config | session id is d849f7d2-7fd9-42a6-9867-dbb479450b32
2018-07-14 20:54:23.291120 | server | 0 | app | Steam present.
2018-07-14 20:54:23.291620 | server | 0 | core.system | Initializing crash reporter
2018-07-14 20:54:31.175363 | server | 1 | resources | Modules have been modified by the user!
2018-07-14 20:54:31.253782 | server | 0 | app | Running Stonehearth server on port 51021
2018-07-14 20:54:31.253782 | server | 0 | physics.navgrid | subspace pathfinder is enabled
2018-07-14 20:54:31.254781 | client | 1 | game_engine | Initializing OpenGL
2018-07-14 20:54:31.270266 | server | 1 | mod radiant | lua controller lifetime tracking set to “nil”
2018-07-14 20:54:31.300233 | server | 0 | mod stonehearth.ai.service | enable_cpp_placeholders is on
2018-07-14 20:54:31.300233 | server | 0 | mod stonehearth.ai.service | enable_cpp_compound_action is on
2018-07-14 20:54:31.384647 | client | 1 | game_engine | Determining window placement
2018-07-14 20:54:31.384647 | client | 1 | game_engine | Selecting monitor at 800, 450
2018-07-14 20:54:31.384647 | client | 1 | game_engine | Creating OpenGL Window
2018-07-14 20:54:32.588397 | client | 1 | game_engine | Creating OpenGL Context
2018-07-14 20:54:32.588896 | client | 1 | game_engine | Finished OpenGL Initialization
2018-07-14 20:54:32.589895 | client | 1 | horde.general | Initializing GL2 backend using OpenGL driver ‘4.6.0 NVIDIA 398.36’ by ‘NVIDIA Corporation’ on ‘GeForce GTX 750 Ti/PCIe/SSE2’
2018-07-14 20:54:32.753725 | client | 1 | browser | cef started.
2018-07-14 20:54:32.960511 | client | 0 | physics.navgrid | subspace pathfinder is enabled
2018-07-14 20:54:32.982987 | client | 1 | client.core | user feedback is on
2018-07-14 20:54:35.093298 | client | 0 | network | P2P session state. Using relay: false
2018-07-14 20:54:35.093798 | client | 1 | network | client allocating new send buffer (total: 0)
2018-07-14 20:54:35.093798 | client | 0 | client.core | Authenticating…
2018-07-14 20:54:35.476900 | client | 0 | client.core | Authenticated
2018-07-14 20:54:35.476900 | client | 0 | client.core | Requesting mod list.
2018-07-14 20:54:35.627744 | client | 0 | client.core | Mod list retrieved
2018-07-14 20:54:48.396494 | client | 1 | resources | Modules have been modified by the user!
2018-07-14 20:54:48.521364 | client | 1 | mod radiant | lua controller lifetime tracking set to “nil”
2018-07-14 20:54:50.439374 | client | 0 | client.core | Joined running server
2018-07-14 20:55:06.327888 | client | 1 | lua.code | unrecognized object type ‘boxed’ in json_to_lua!
2018-07-14 20:55:06.327888 | client | 1 | lua.code | unrecognized object type ‘boxed’ in json_to_lua!
2018-07-14 20:55:07.633033 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:07.635542 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:07.644023 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:07.645022 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:07.645521 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:07.658507 | client | 1 | horde.general | over_lifetime_[rgb] properties are no longer supported. Use a single over_lifetime property.
2018-07-14 20:55:10.955587 | client | 1 | browser | TypeError: Cannot read property ‘toLowerCase’ of undefined
2018-07-14 20:55:10.955587 | client | 1 | browser | at Object._alphaSortTemplates [as fn] (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:240:43)
2018-07-14 20:55:10.955587 | client | 1 | browser | at n._sortTemplates (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:293:57)
2018-07-14 20:55:10.955587 | client | 1 | browser | at Object. (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_3/template_list/template_list.js:182:44)
2018-07-14 20:55:10.955587 | client | 1 | browser | at j (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:26925)
2018-07-14 20:55:10.955587 | client | 1 | browser | at Object.fireWith [as notifyWith] (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:27738)
2018-07-14 20:55:10.955587 | client | 1 | browser | at Object.e.(anonymous function) [as notify] (http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:28718)
2018-07-14 20:55:10.955587 | client | 1 | browser | at http://radiant/radiant/js/radiant/object.js:44:35
2018-07-14 20:55:10.955587 | client | 1 | browser | at Array.forEach (native)
2018-07-14 20:55:10.955587 | client | 1 | browser | at Function.j.each.j.forEach (http://radiant/radiant/js/external/underscore-1.5.2.min.js:5:599)
2018-07-14 20:55:10.955587 | client | 1 | browser | at http://radiant/radiant/js/radiant/object.js:43:18
2018-07-14 20:56:18.342434 | client | 0 | game_engine | window closed. exiting process

It looks like the building designer is having trouble loading templates. Try disabling/removing any custom templates you have.

That said, it might be an actual problem with the building designer code that they’ll need to look at, but if it works for some templates and not for others, then it’s probably the templates that need to be fixed.

Edit: and the whole UI is loaded when the main screen comes up, not just the main screen UI, so problems with “in-game-only” UI elements can still affect the main screen.

I followed your advice and disabled all saved templates (had already unsubscribed to all templates on the workshop) by renaming the “saved_templates” folder. Game works now.

1 Like