Is it possible to add dummy players in multiplayer mode? YES!

Okay, so here’s the solution:

  1. Open Stonehearth from steam like usual, start a multiplayer game and place the banner.

  2. Open stonehearth.log and looking for something like this:

    app | Running Stonehearth server on port 54229
    

    You can see the port number is 54229. (This is just an example, you may see a different number.)

  3. Run the 2nd game using the command line with the following args:
    (the copy button at the right side is useful :wink:)

    --multiplayer.remote_server.port=XXXXX --multiplayer.remote_server.enabled=true --multiplayer.server.port=57094 --logging.custom_name=stonehearth_p2 --browser.debug_port=1339 --ip=0.0.0.0
    

    Replace XXXXX with the port number you found in stonehearth.log.
    e.g. --multiplayer.remote_server.port=54229

  4. After the 2nd game launched, it will try to connect to the 1st game.


Hi all, I am the author of Traditional Chinese mod.
Just as the title said: is it possible to add dummy players in multiplayer mode?
The reason why I need it is to better test and modify the translations in multiplayer mode while I’m not able to play along with others due to some reasons.

1 Like

have you tested the timeout skip? IT'S HAPPENING: Multiplayer available on another super-unstable Steam branch!

1 Like

As usual, thanks for the reply, @Wiese2007.
Yes, I am able to play with others if I have time, but most of the time I just open Stonehearth to check if my translations are right. So I’m asking is there a way to do multiplayer things while you are alone. (Sounds a little bit sad though)

like i know nope its not possible ^^ and for translation - the only thing where i had problems was the new ui start_menu and citizens.less - so that i needed a multiplayer game to try

and if you host a game just let someone join - and then he can leave ^^ the ui stays on multiplayer also if you load the saved game ^^ but if you needed i can help you as joined player until you tweaked the ui ^^

1 Like

Hmm, you should be able to but let me look into what settings you need to enable for the dummy player

EDIT: try running the second game with these command line args: --multiplayer.remote_server.enabled=true --multiplayer.server.port=57094 --logging.custom_name=stonehearth_p2 --browser.debug_port=1339 --ip=0.0.0.0

You can do this by running the .exe from the command line. Steam doesn’t let you launch two games from within the steam client

3 Likes

Thank you @linda! I will try it ASAP when I get home. :kissing_heart:

So, I create a shortcut of Stonehearth.exe and add the args after the target, and it looks like this:

“D:\Program Files (x86)\Steam\steamapps\common\Stonehearth\Stonehearth.exe” multiplayer.remote_server.enabled=true multiplayer.server.port=57094 logging.custom_name=stonehearth_p2 browser.debug_port=1339 --ip=0.0.0.0

Am I doing right?

If it’s all good, now I have 2 stonehearth.exe running, one is from Steam, one is directly executed using the shortcut.
I launch a multiplayer game using the Steam one, but how can I join the game using the other stonhearth.exe? or vice versa?

Edit:
I also tried command line:

D:\Program Files (x86)\Steam\steamapps\common\Stonehearth>Stonehearth.exe multiplayer.remote_server.enabled=true multiplayer.server.port=57094 logging.custom_name=stonehearth_p2 browser.debug_port=1339 --ip=0.0.0.0

1 Like

You first run the normal from Steam, and start a game and place a banner.
Then run the one with the command line options, and it should automatically try to connect to the othe one.

2 Likes

Try each arg with two dashes in front of it like the ones in front of —ip=0.0.0.0. I’m not sure how to prevent discourse from converting it to one long dash

2 Likes

Thank you @Relyss and @linda.
I tried but still not working.

  1. I first ran the normal one from Steam, and started a multiplayer game, and placed a banner.
    image

  2. Then I ran another one with command line after step 1 is done, but it didn’t try to connect to the other one, it just stayed at the title screen. Here is the command:
    D:\Program Files (x86)\Steam\steamapps\common\Stonehearth>Stonehearth.exe --multiplayer.remote_server.enabled=true --multiplayer.server.port=57094 --logging.custom_name=stonehearth_p2 --browser.debug_port=1339 --ip=0.0.0.0
    image

What does the stonehearth_p2.log file say? It should be in the same folder than the stonehearth.log.

Here’s the file.
stonehearth_p2.log (4.7 KB)

Try adding an extra parameter at the end:
--multiplayer.remote_server.port=12345

Instead of 12345 here, open the stonehearth.log while the game is running and look at the top. There should be a line saying something like

app | Running Stonehearth server on port 54229

Use the port you find on that line instead of 12345

This plus all your other parameters worked for me. (@ayazar/@linda is this correct? It did work for me for Steam + console, but the port can change every time).

4 Likes

It’s working now! Thank you for the help, @Relyss. :blush:

1 Like

I just updated the 1st post and write down the steps, hope it can help others who needs it.:wink:

@Wiese2007, this can be helpful for you too!

4 Likes