Switching players in multiplayer

Alright, so my buddy and I started a multiplayer game in stonehearth and we enjoyed it a lot.

one problem though: my buddy is the game’s host and I am a client, but he plays on a laptop and I play on a high-end desktop pc.

We both got around 12hearthlings (24 in total) and the game starts lagging already, the hearthlings doesn’t do any tasks when they really should.

Now, is there any way that I am the game’s host and my buddy the client? We tried sending the save-game and I can host it, but then I’ll play his town and he starts he new one whenever he joins. I tried some changes in the server metadata but it didn’t workout well.

Can anyone help? haha, we don’t want to start over… :slight_smile:

Thanks!

You can try creating a new game, have your friend join, save the game, and then you can see their Steam ID in that savegame’s server_metadata.json file.

What you have in your original game’s metadata file is your friend as the host with player_id player_1 and then you as player_id steam_1 with your Steam ID as the client id. What you want is to change that (in order to maintain each of you playing your original kingdom) so that host has player_id steam_1 and your friend has player_id player_1 with client_id (in both places) being their Steam ID instead of yours.

However, there may be places in the game that assume the player with player_id player_1 is the host, so it might be safer to just switch towns and play as each other by simply replacing your Steam ID in the metadata file with his.

(Completely untested, no idea if this works.)

2 Likes

I tried this indeed, my friend played my kingdom and I played his. But he couldn’t command my hearthlings and he didn’t have any inventory.

Going to test your theory right now, I’ll report back to you! :smiley:

Okay, so I did this, the save is there in the load-menu, but when I click ‘Load Game’ nothing happens. Like: nothing. No loading screens or whatever.

I did load another game and now the savefiles are gone in the menu. (it is still in the folder though)

This is "what my server metadata looks like:

{
	"clients" : {
		"host" : {
			"player_id" : "steam_1",
			"client_id" : "host",
			"provider" : "host"
		},
		"76561198047267617" : {
			"player_id" : "player_1",
			"client_id" : "76561198047267617",
			"provider" : "steam"
		}
	},

Oh well, that’s all I got, sorry.

2 Likes