Sign in to follow this  
255

Dedicated Server Quick Setup Guide - Mac OS X

Recommended Posts

If you prefer multiple terminal windows:

1. Comment/remove the following in run_dedicated_servers.sh:

#run_shared+=(-monitor_parent_process $$)

#"${run_shared[@]}" -shard Caves  | sed 's/^/Caves:  /' &
#"${run_shared[@]}" -shard Master | sed 's/^/Master: /'

2. Add the following code:

osascript <<END
tell application "Terminal"
    do script "cd \"`pwd`\";${run_shared[@]} -shard Master"
end tell
tell application "Terminal"
    do script "cd \"`pwd`\";${run_shared[@]} -shard Caves"
end tell
END

You'll now have a separate terminal window for Master & one for Caves.  Note: You must manually c_shutdown() all instances since Caves no longer monitors if Master is alive.

Share this post


Link to post
Share on other sites
syzygy    0

Thank you so much for this! My friends and I have been looking for a way to have a server up and running. Just a few questions:

1. Is there any way to have an existing, non-dedicated server world copied into my current dedicated server?

2. When I started the server, it started in Caves. How can I get an overworld spawn?

3. What are some ways my friends can join my server when I'm not around?

I may have more questions depending on if it goes well or not. Thanks in advance!

Share this post


Link to post
Share on other sites
eight0    0

hi @ToNiO55,i use this forum ’s way to dedicated DST, i can ' t  use any mods, i watch this post http://steamcommunity.com/sharedfiles/filedetails/?id=591543858,but my computer ‘s directory structure is different of your,i just have ~/Documents/Klei/DoNotStarveTogether/MyDediServer ,this forum 's way generate it. so may i add mods? please help me ... thx

Share this post


Link to post
Share on other sites
ToNiO55    298

Hi @eight0

 

can you share your server_log.txt please?

 

/Documents/Klei/DoNotStarveTogether/MyDediServer/Master/server_log.txt

 

and

 

/Documents/Klei/DoNotStarveTogether/MyDediServer/Caves/server_log.txt

 

you can use this website for share your server_log.txt

 

http://pastebin.com/

Share this post


Link to post
Share on other sites
oceanwu0    2

if you wanna add mod to it and rewrite the script "dedicated_server_mods_setup.lua", delete "validate" in step 9, or the lua file will be refreshed and never take effect every time the server start.

orignial:

./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit

after:

./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 +quit

 

  • Like 2

Share this post


Link to post
Share on other sites

Hi there, im having the same issue as @eight0. The directory for Mac os is wrong.  Following this path, you will stop at steamapps>common>Dont starve together dedicated servers > Nothing inside the folder except the application and version.txt. Even for DST game itself, the folder is empty. I have no idea where the workshop mods are saved in for mac

Does not exist

Edited by GiraffeOnCrackk

Share this post


Link to post
Share on other sites
GriffGlory    0

I am having problems with running the server itself it keeps saying:

Error: Missing /Users/(MacUser)/steamcmd directory!

and

/Users/(MacUser)/run_dedicated_servers.sh: line 21: cd: /Users/(MacUser)/steamcmd: No such file or directory

whenever i do step 11 and i can't figure out why

Share this post


Link to post
Share on other sites
kucaymon    2

Hello! I have a problem with creating a server, after executing all the points of the instruction, while using the command:
~/run_dedicated_servers.sh

terminal responds:

./steamcmd.sh: line 32: /Users/User/steamcmd/osx32/steamcmd: Bad CPU type in executable

Error: Missing file: /Users/User/dontstarvetogether_dedicated_server/dontstarve_dedicated_server_nullrenderer.app/Contents/MacOS/

Can someone explain to me what the problem is? Is it solvable?

macOS Catalina 10.15.1

Edited by kucaymon
  • Like 2

Share this post


Link to post
Share on other sites
jbliria    0
On 5/1/2020 at 1:45 AM, 0atmeaI said:

Please elaborate the instructions of number 3. Pleaase. 

When it opens on safari, just save it as source code of the page (File, save as...) with the name "run_dedicated_servers.sh" (without any other extension) and locate it on your home directory, for example, /Users/alice/ (You can get into it just writing ~ on Spotlight). Hope it helps...

Share this post


Link to post
Share on other sites
jbliria    0

Hi, i don't know what to do. I tried to create the server, but it stays hours and hours at this point: 

 

(im copying only the last lines of terminal)

 

Caves:  [00:00:54]: Sim paused

Master: [00:01:02]: Registering master server in US lobby

Caves:  [00:05:53]: Registering slave in US lobby

Caves:  [00:10:53]: Registering slave in US lobby

Caves:  [00:15:53]: Registering slave in US lobby

Caves:  [00:20:53]: Registering slave in US lobby

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this