# Trying to host a MP game

**URL:** <https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864>\
**Category:** Bug Reports\
**Created:** [April 27, 2018, 7:52pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864 "2018-04-27T19:52:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kittyodoom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kittyodoom/32/61413_2.png) [@Kittyodoom](https://discourse.stonehearth.net/u/Kittyodoom)\
**Post date:** [April 27, 2018, 7:52pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/1 "2018-04-27T19:52:56Z")

</div>

Interesting error when trying to host instead of joining a game:

> release-832 (x64)  
> Uncaught TypeError: Cannot read property ‘playerId’ of null  
> TypeError: Cannot read property ‘playerId’ of null  
> at getPriority ([http://radiant/stonehearth/ui/game/multiplayer\_menu/multiplayer\_menu.js:267:15](http://radiant/stonehearth/ui/game/multiplayer_menu/multiplayer_menu.js:267:15))  
> at [http://radiant/stonehearth/ui/game/multiplayer\_menu/multiplayer\_menu.js:277:34](http://radiant/stonehearth/ui/game/multiplayer_menu/multiplayer_menu.js:277:34)  
> at Array.sort (native)  
> at n.\_updateClientArray ([http://radiant/stonehearth/ui/game/multiplayer\_menu/multiplayer\_menu.js:276:15](http://radiant/stonehearth/ui/game/multiplayer_menu/multiplayer_menu.js:276:15))  
> at changeCallback ([http://radiant/stonehearth/ui/game/multiplayer\_menu/multiplayer\_menu.js:150:18](http://radiant/stonehearth/ui/game/multiplayer_menu/multiplayer_menu.js:150:18))  
> at [http://radiant/stonehearth/ui/game/traces/presence\_client.js:90:22](http://radiant/stonehearth/ui/game/traces/presence_client.js:90:22)  
> at Function. ([http://radiant/radiant/js/radiant/object.js:305:19](http://radiant/radiant/js/radiant/object.js:305:19))  
> at Function.each ([http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:2936](http://radiant/radiant/js/external/jquery-2.1.4.min.js:2:2936))  
> at Object.radiant.each ([http://radiant/radiant/js/radiant/object.js:303:15](http://radiant/radiant/js/radiant/object.js:303:15))  
> at Object. ([http://radiant/stonehearth/ui/game/traces/presence\_client.js:88:24](http://radiant/stonehearth/ui/game/traces/presence_client.js:88:24))

Mods all turned off for this attempt

**Steps to reproduce:**

1. Turn off all mods; create Multiplayer game
2. Pick Ascendency, put them in the forest, go through the usual, plop down, pause, invite other player to join.
3. Get error message after sending invitation.

**Expected Results:**  
Inviting @Wiese2007 to join me for a multiplayer session. Likely laggy at best, given my notoriously bad internet…

**Actual Results:**  
Wiese does not make it into the game, likely getting the same error I have been when trying to join people (see below)

**Notes:**

[I am not exaggerating about how bad my internet is.](https://testmy.net/db/TZJem9YFB.idG3ArPl9)

**Attachments:**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/0/4/04b95c1828a4a2cfdfe2d1ea7e62e0206293c98b.jpg)

**Version Number and Mods in use:**

Multiplayer Super Unstable  
Debugtools (all other turned off for test)

---

<div class="post-metadata">

**Author:** ![TheHeiRou](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/theheirou/32/70579_2.png) [@TheHeiRou](https://discourse.stonehearth.net/u/TheHeiRou)\
**Post date:** [April 27, 2018, 8:14pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/2 "2018-04-27T20:14:57Z")

</div>

I have same problem when I tried to join others game. :glum:

---

<div class="post-metadata">

**Author:** ![Wouter\_Sikkema](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/wouter_sikkema/32/61482_2.png) [@Wouter\_Sikkema](https://discourse.stonehearth.net/u/Wouter_Sikkema)\
**Post date:** [April 27, 2018, 9:10pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/3 "2018-04-27T21:10:32Z")

</div>

Question that might be informative, what did you do with the max players slider,?

---

<div class="post-metadata">

**Author:** ![Kittyodoom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kittyodoom/32/61413_2.png) [@Kittyodoom](https://discourse.stonehearth.net/u/Kittyodoom)\
**Post date:** [April 27, 2018, 9:12pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/4 "2018-04-27T21:12:59Z")

</div>

I set it to 2; Wiese had tried hosting one for me to join previously, was my turn to try. Since it was just the two of us testing, I didn’t see any reason to set it higher

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [April 27, 2018, 9:40pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/5 "2018-04-27T21:40:30Z")

</div>

Do you happen to have the stonehearth.log from the failure to host the game?

The UI error should be easy to fix (I think) but we’d like to know if there was something bad happening in the background. Bad connection could have been an issue, but it could also have been something else.

---

<div class="post-metadata">

**Author:** ![Kittyodoom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kittyodoom/32/61413_2.png) [@Kittyodoom](https://discourse.stonehearth.net/u/Kittyodoom)\
**Post date:** [April 27, 2018, 9:47pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/6 "2018-04-27T21:47:43Z")

</div>

[stonehearth.log](https://discourse.stonehearth.net/uploads/short-url/3RvUfyDAfbBXSLVW8akb96R8n2C.log) (56.8 KB)

As it happens, this should be the right one - I haven’t turned the game back on since then (as I’ve been plugging away at mod json files instead)

---

<div class="post-metadata">

**Author:** ![Kittyodoom](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kittyodoom/32/61413_2.png) [@Kittyodoom](https://discourse.stonehearth.net/u/Kittyodoom)\
**Post date:** [April 30, 2018, 4:08pm UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/7 "2018-04-30T16:08:40Z")

</div>

Additional log, from me being unable to join someone else’s MP game:

[stonehearth.log](https://discourse.stonehearth.net/uploads/short-url/9XHEcTzTZroB0Fltl1aixqxHiRf.log) (18 KB)

---

<div class="post-metadata">

**Author:** ![max99x](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/max99x/32/40094_2.png) [@max99x](https://discourse.stonehearth.net/u/max99x)\
**Post date:** [May 3, 2018, 4:08am UTC](https://discourse.stonehearth.net/t/trying-to-host-a-mp-game/34864/8 "2018-05-03T04:08:12Z")

</div>

Took a brief look at this. The first one is either a timeout issue (see the keep awake setting in the MP thread - this is fixed in the next release), or something to do with mods. You mentioned that you have all mods disabled, but the log is referencing mods. The second one looks like it might be an antivirus or firewall blocking your connection.
