I would like to play fully coop, we share everything.
One town, two player
I would like to play fully coop, we share everything.
One town, two player
Or it could be that we share all items, but have our own people.
There used to be a bug which caused that effect, and it sounded like the issue was related to multiple players being “collapsed” into the same player ID… so I would guess that if you had some way to put multiple players on the same ID, they’d share everything in Co-op style. This would mean sharing a single set of hearthlings too, and might lead to odd things with the daily update etc. (e.g. would it be one shared daily update, or would each player get one? IDK anywhere near enough about the code to answer that haha.)
If you connect to multiplayer without using Steam (some instructions here Multiplayer without Steam?), if you make sure all players have the same “user_id” in your user_settings.json, you should be able to connect as the same player.
Oh Nice, I will try this Tonight.
Thanks !!!
I just tried using this on both side :
“user_id” : “teamGabie”,
and in game if I do:
e:get_player_id()
I still get “player_1” and “developer_1”
even If I log using user_settings with Steam OFF.
(I had to copy manually each mods in the mods folder to get them sync)
Any other ideas ?
I tried with my user_id copied over to the second player, not working.
Even without any mods, it doesnt work, I still have different player_id and I cannot share workbench or other stuff.
Also I checked the Lua and the player_id seems to be set in C++, I can go up until it call get_player_id in ENTITY class…
Thanks for helping !
Player id is separate from user_id. Could you save the game and send me the save file? And also a log from the game where the client is trying to connect, that would help too.
If this works, it might be possible to mod multiplayer to allow players to set the user_id as an argument when connecting, maybe. Theme it to make it make sense, “Which town would you like to join?” Pulldown options: <user_id01>, <user_id02> etc.
It would basically offer teams. Groups of human players sharing operation of different towns.
Thoughts?
Taking it a step further, the mod could also include an authorization layer:
Example:
megashub client ID: 012345
founder ID: 012345
user ID: 098765 (“Town Name”)
sdee client ID: 876543
megashub, as Founder, could then delegate control of hearthlings within the same town (user_id) to sdee to manage exclusively. If sdee disconnects, delegation reverts back to founder_id.
You’d probably have to institute some form of founder change voting system to cover the case of the founder disconnecting (when the founder is not also the host).
Doing this would theoretically allow a group of players to divvy up town responsibilities within the same “user_id”.
megashub handles all the combat units, sdee handles building and refinement, someone else handles farming and trapping, etc.
Sure
Here it is : twoplayer-onetown.zip (3.4 MB)
Yeah ! it works !
I was digging around in the file I sent and I found this ! I replace “developer_1” with “player_1” and I have only 5 heartling that both me and my wife can control. One town, one daily, one color.
server_metadata.json
“clients” : {
“host” : {
“player_id” : “player_1”,
“client_id” : “host”,
“provider” : “host”
},
“11a4a769-7ad2-4198-9345-865886900686” : {
“player_id” : "player_1",
“client_id” : “11a4a769-7ad2-4198-9345-865886900686”,
“provider” : “develop”
}
},
But we receive so many trader, goblin village and shop notification, once every 5 seconds.
Also some notification like : “Alert” doesn’t get sent to the other player, but most works (I can pause a building that the other started).
Where to place this file in my Stonehearth folder, it’s not working when i’m placing it in the mods folder. Also when trying to enable it under the mod menu ingame it says “Invalid Manifest”.
Thanks.
This Mod is one year old. This Thread is one year old.
I’m pretty sure it’s dead, so it doesn’t work anymore.
this, thoug hthe concept is still interesting actually. wouldnt be surprised if some of the more experienced coding folk could whip something up, though most are relatively busy now (not even concidering the hollidays)
I did talk about something like that with @paulthegreat a few days ago. It would definitely be an interesting idea, especially for people that suffer with multiplayer performance having 2 or more factions… Or people that simply want to build something together
I can’t really say when or how but it does interest me. Since there is an existing mod tho, even if outdated, I might take a look soon
Hi,. I’m happy this get some traction.
I’m looking forward a town builder game where we can build coop for a long time… This mod was an attempt to do it with stonehearth.
I will try it later on my version.
Let me know if anyone else try it.
Ahh, interesting! Yeah, this is something I determined was impossible to mod (though a mod could help handle some issues, it can’t do the most important part), and I still believe that. However, this shows a way to take care of it manually on a save-by-save basis.
Once the host creates the game and places their banner, other players can join. After they join, but before they place their banners, the host saves the game. Everyone goes back to the main menu and the host edits the server_metadata.json
file in the folder for that save in saved_games
to change "player_id"
for all client players to "player_1"
instead of "steam_1"
etc. Save those changes, then host the game again and have everyone join, and that (or something close to it, requiring a little finesse from some scripting) might work.