Jump to content

DST dedicated+caves not possible Online


Recommended Posts

I've set up my own dedicated server, 2 actually since one is surface world and the other is caves. I can connect from the same computer to the game via LAN. Players connected to me directly can access the game via LAN. The game, however, is not possible to connect to online although it is clearly visiable and available as an online server.

I will outline the somewhat extensive methods we've taken so far, including how the dedicated server is created and set up.

**************************
DEDICATED SERVER DON'T STARVE TOGETHER SURFACE
**************************
From steam:
1) Install Don't Starve Together, opt in caves unstable branch. Check cache to make sure everything is fine.

2) In the Library pull-down menu in tools download the Don't Starve Together Dedicated Server, opt in for the caves unstable branch then check the cache to make sure everything is fine.

3) Right click Don't Starve Together Dedicated Server, click Properties. Added "-console -conf_dir DoNotStarveTogetherDedicated" to the Set Launch Options (without the ""). Played it until it stopped doing anything, then closed it.

4) Played Don't starve Together, making sure to log in online. Hit the "~" button to open consol and typed in "TheNet:GenerateServerToken()" without the "", and hit enter. Quit the game.

5) Searched computer for the folder called Klei, opened up the folder  .\My Documents\Klei

6) Copied server_token.txt from DoNotStarveTogether folder into DoNotStarveTogetherDedicated folder.

7) In the DoNotStarveTogetherDedicated folder, opened up settings.ini with Notepad. Under Newtwork this is what I placed:
server_intention = cooperative
default_server_name = Mogg's Heck
default_server_description = Someplace terrible
server_port = 10999
server_password = abcd1234
max_players = 6
pvp = false
game_mode = endless
enable_snapshots = true
pause_when_empty = true
server_save_slot = 1

8) Since it was missing, I added the following under Network:
[account]
server_token =


I opened the server_token.txt and copied what was written there and pasted it into the settings.ini after the "="

9) Not that it was needed, I did create my own worldgenoverride.lua file to make my own custom settings for the surface world.
To test out making sure it works so far, I played Don't Starve Together Dedicated Server, letting it run through. Entered Don't Starve Together game. I could join via LAN, but not Online.
I then quit out of both. Now to set up the Caves portion.

**************************
DEDICATED SERVER DON'T STARVE TOGETHER CAVES
**************************
This is effectively a second server running alongside the previous one which players will jump between. ATM this is the only way to include both surface and caves "simultaneously" from my knowledge.

1) Withing the .\My Documents\Klei\DoNotStarveTogetherDedicated  (which I still have open), open up settings.ini and added this to the very bottom of everything:
[shard]
shard_enable = true
is_master = true
master_port = 11200
cluster_key = secretkeysaresecret

2) Saved and closed the file and went up one so I am now in the .\My Documents\Klei folder so I could see both DoNotStarveTogetherDedicated and DoNotStarveTogether folders. I copied the entire folder of DoNotStarveTogetherDedicated and renamed it to DST_Cave.

3) Opened up my new DST_Cave folder. Opened up settings.ini. Located the line "server_port = 10999" and changed the "10999" to "11001". I pressed enter to add the following in:
steam_authentication_port = 12348
steam_master_server_port = 12349
server_password = mdqsinB6cz0WZa
 
4) I scrolled down to the entry "[shard]" and replaced the entire lot with the following:
[shard]
shard_enable = true
is_master = false
master_ip = 127.0.0.1
master_port = 11200
shard_name = caves
cluster_key = secretkeysaresecret
shard_id = 1542459054

5) Now I already have a worldgenoverride.lua file which I created earier, and this is just an exact copy of it. For the sake of how I made it I created a Notepad Text Document, opened it up, added stuff, saved and closed it, then renamed the file worldgenoverride.lua. Easy.
Well now this file here within this DST_Caves folder I am in, I open up and delete everything inside it and add the following:
return {
override_enabled = true,
preset="DST_CAVE",
}

6) I went to the following location: .\Steam Games\SteamApps\common\Don't Starve Together Dedicated Server\bin

7) Created a Notepad Text Document and opened it up. I put in:
cd C:\Games\Steam Games\steamapps\common\Don't Starve Together Dedicated Server\bin

dontstarve_dedicated_server_nullrenderer -conf_dir DST_Cave

8) Saved and close it. Renamed the file to: dstdserver.bat
I then added a shortcut of it to my desktop. 2nd server is now complete!

9) I tested out the entire lot now.
Run Don't starve together Dedicated from Steam.
Run the shortcut of dstdserver.bat
Let them both finish loading up until they no longer do anything.
Play Don't Starve Together from steam. Connect to the game via LAN. Find a plug within the world and pickaxe it then jump in the hole. It works!
1 surface + 1 caves world.

As long as both servers are up and running, I can join via LAN, and so can anyone on my network. However, nobody is able to join Online.
This is what we tried, in order:

* I've added exceptions for DST (all servers) to both windows firewall and Trend Micro. No success.

* We have tried working with Hamachi. I can ping other people but nobody can ping me. Not sure if others unable to ping me through Hamachi means anything; we can freely chat within it and connect to each others network rooms created.
I've added exceptions to both windows firewall and Trend Micro. Still no change.

* We have created the servers with the same setups above on different people's computers. No success.
 With Hamachi, even though I could ping the host, the host and others couldn't ping me all the same. Still no success.

* One computer we have attempted with port forward, the person who was hosting the servers at the time (not me because of concerns of Trend Micro -I am the only one with it). No success for anyone.


So I am open to any and all assistance on the matter.
Thanks in advance for all productive assistance.

Suggestions for using Evolve will be thrown out, since previous uses I've learned how terrible this program is; lag intensive and problem inducing.

is the

master_port = 11200

in the caves settings.ini the same as the
server_port = 10999 in the master server's settings.ini?

 

for instance this setup would likely cause a problem as the caves sever would think to connect to the master sever on port 11200 when the real port it's running on is 10999


 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...