Multiplayer Start - Black Screen

Summary:
Game works fine in regular mode on steam, but multiplayer version starts with a black screen with music, after recent update gives an error message as well.


release-837 (x64)
…hearth/services/client/building/building_service.lua:235: attempt to index local ‘template’ (a nil value)
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
…hearth/services/client/building/building_service.lua:235: in function ‘_collect_custom_templates’
…hearth/services/client/building/building_service.lua:97: in function ‘initialize’
stonehearth/stonehearth_client.lua:52: in function ‘create_service’
stonehearth/stonehearth_client.lua:78: in function ‘instance’
radiant/modules/events.lua:295: in function <radiant/modules/events.lua:289>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:289: in function <radiant/modules/events.lua:257>

Version Number and Mods in use:
release-837 (x64)
No Mods used

System Information:

Processor: Intel® Core™ i7-2600 CPU @ 3.40
Installed RAM: 24.0 GB
System Type: 64-bit operating system x64-based processor

Windows 10 Pro
Version: 1709
OS Build: 16299.371

GPU: Nvidia gtx 1070

Stonehearth.log:

2018-05-03 19:54:21.745211 | server | 1 | app | Stonehearth Version 0.24.0.837 (x64)
2018-05-03 19:54:21.756207 | server | 1 | core.config | user id is 74492c98-c7ff-11e6-bfa3-d43d7e912b95
2018-05-03 19:54:21.756207 | server | 1 | core.config | session id is a10aef15-3dd1-443b-99e9-1981921ed2f8
2018-05-03 19:54:21.756207 | server | 0 | app | Steam present.
2018-05-03 19:54:21.756707 | server | 0 | core.system | Initializing crash reporter
2018-05-03 19:54:22.300707 | server | 0 | lua.data | lua jit is disabled
2018-05-03 19:54:30.359678 | server | 1 | resources | Modules are verified pristine.
2018-05-03 19:54:30.456772 | server | 0 | app | Running Stonehearth server on port 59200
2018-05-03 19:54:30.457272 | client | 0 | client.core | Connecting to local server…
2018-05-03 19:54:30.492049 | client | 1 | game_engine | Initializing OpenGL
2018-05-03 19:54:30.519074 | server | 0 | physics.navgrid | subspace pathfinder is enabled
2018-05-03 19:54:30.837349 | client | 1 | game_engine | Determining window placement
2018-05-03 19:54:30.837851 | client | 1 | game_engine | Selecting monitor at 960, 540
2018-05-03 19:54:30.837851 | client | 1 | game_engine | Creating OpenGL Window
2018-05-03 19:54:31.033513 | server | 1 | mod radiant | lua controller lifetime tracking set to “nil”
2018-05-03 19:54:31.195148 | server | 0 | mod stonehearth.ai.service | enable_cpp_placeholders is on
2018-05-03 19:54:31.195148 | server | 0 | mod stonehearth.ai.service | enable_cpp_compound_action is on
2018-05-03 19:54:32.086632 | client | 1 | game_engine | Creating OpenGL Context
2018-05-03 19:54:32.087132 | client | 1 | game_engine | Finished OpenGL Initialization
2018-05-03 19:54:32.398913 | client | 1 | horde.general | Initializing GL2 backend using OpenGL driver ‘4.6.0 NVIDIA 397.31’ by ‘NVIDIA Corporation’ on ‘GeForce GTX 1070/PCIe/SSE2’
2018-05-03 19:54:35.683224 | client | 1 | browser | cef started.
2018-05-03 19:54:35.692732 | client | 1 | browser | Navigate called without an existing browser!
2018-05-03 19:54:36.236010 | client | 0 | physics.navgrid | subspace pathfinder is enabled
2018-05-03 19:54:36.311228 | thread6324 | 1 | browser | Doing a buffered navigation to http://radiant/stonehearth/ui/root/index.html
2018-05-03 19:54:36.598212 | client | 1 | client.core | user feedback is on
2018-05-03 19:54:36.624234 | client | 1 | network | client allocating new send buffer (total: 0)
2018-05-03 19:54:36.624234 | client | 0 | client.core | Authenticating…
2018-05-03 19:54:36.642749 | server | 0 | simulation.core | Making authentication request with provider: host
2018-05-03 19:54:36.643250 | server | 0 | simulation.core | Authentication successful, responding with session.
2018-05-03 19:54:36.643250 | server | 0 | simulation.core | {
“session” : {
“player_id” : “player_1”,
“client_id” : “host”,
“provider” : “host”
},
“state” : “configuring”
}
2018-05-03 19:54:36.643250 | server | 0 | mod stonehearth | Player ‘player_1’ joined
2018-05-03 19:54:36.854926 | server | 1 | network | server allocating new send buffer (total: 0)
2018-05-03 19:54:36.857429 | client | 0 | client.core | Authenticated
2018-05-03 19:54:36.863434 | client | 1 | mod radiant | lua controller lifetime tracking set to “nil”
2018-05-03 19:54:37.537763error parsing json: Not JSON!
2018-05-03 19:54:37.858707 | client | 1 | lua.code | failed to read C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_objects\stonehearth\building_templates/secendary wall uf1.json: Not JSON!
2018-05-03 19:54:37.858707 | client | 0 | lua.code | – Script Error (lua) Begin -------------------------------
2018-05-03 19:54:37.858707 | client | 0 | lua.code | …hearth/services/client/building/building_service.lua:235: attempt to index local ‘template’ (a nil value)
2018-05-03 19:54:37.858707 | client | 0 | lua.code | stack traceback:
2018-05-03 19:54:37.858707 | client | 0 | lua.code | radiant/modules/commons.lua:53: in function ‘report_traceback’
2018-05-03 19:54:37.858707 | client | 0 | lua.code | radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
2018-05-03 19:54:37.858707 | client | 0 | lua.code | …hearth/services/client/building/building_service.lua:235: in function ‘_collect_custom_templates’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | …hearth/services/client/building/building_service.lua:97: in function ‘initialize’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | stonehearth/stonehearth_client.lua:52: in function ‘create_service’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | stonehearth/stonehearth_client.lua:78: in function ‘instance’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | radiant/modules/events.lua:295: in function <radiant/modules/events.lua:289>
2018-05-03 19:54:37.859208 | client | 0 | lua.code | [C]: in function ‘xpcall’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | radiant/modules/commons.lua:73: in function ‘xpcall’
2018-05-03 19:54:37.859208 | client | 0 | lua.code | radiant/modules/events.lua:289: in function <radiant/modules/events.lua:257>
2018-05-03 19:54:37.859208 | client | 0 | lua.code | – Lua Error End -------------------------------
2018-05-03 19:54:38.213433 | server | 1 | simulation.remote_client | started buffering client updates. (seq:89 ack:0)
2018-05-03 19:54:38.669997 | server | 1 | simulation.remote_client | stopped buffering client updates. (seq:89 ack:89)
2018-05-03 19:55:18.160142 | client | 0 | game_engine | window closed. exiting process

I should add, that it works fine on friend’s computer and I can join his game no problem, is only when I try to start the game myself, so am unable to host a game.

That error suggests that one of the building templates in your folder is broken. The problematic one is:
C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_objects\stonehearth\building_templates/secendary wall uf1.json

That said, I’ll update it so it skips broken templates instead of erroring out.

2 Likes