Skip to content

Instantly share code, notes, and snippets.

@sko00o
Last active September 21, 2023 14:20
Show Gist options
  • Save sko00o/4fdd63321116c8c3c7e4007a05a67534 to your computer and use it in GitHub Desktop.
Save sko00o/4fdd63321116c8c3c7e4007a05a67534 to your computer and use it in GitHub Desktop.
Deploy don't starve together (DST) dedicated server
-- Put this file in ${HOME}/dontstarvetogether_dedicated_server/mods/dedicated_server_mods_setup.lua
--There are two functions that will install mods, ServerModSetup and ServerModCollectionSetup. Put the calls to the functions in this file and they will be executed on boot.
--ServerModSetup takes a string of a specific mod's Workshop id. It will download and install the mod to your mod directory on boot.
--The Workshop id can be found at the end of the url to the mod's Workshop page.
--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=350811795
--ServerModSetup("350811795")
--ServerModCollectionSetup takes a string of a specific mod's Workshop id. It will download all the mods in the collection and install them to the mod directory on boot.
--The Workshop id can be found at the end of the url to the collection's Workshop page.
--Example: http://steamcommunity.com/sharedfiles/filedetails/?id=379114180
--ServerModCollectionSetup("379114180")
--Auto Stack and Pick up
ServerModSetup("1803285852")
--display food value
ServerModSetup("347079953")
--extra equip slots
ServerModSetup("375850593")
--fast travel (GUI)
ServerModSetup("1530801499")
--food values - item tooltips
ServerModSetup("458940297")
--global position
ServerModSetup("378160973")
--health info
ServerModSetup("1207269058")
--quick drop
ServerModSetup("856487758")
--quick pick
ServerModSetup("501385076")
--smart minisign
ServerModSetup("1595631294")
--storeroom
ServerModSetup("623749604")
--tell me
ServerModSetup("369596587")
--insight
ServerModSetup("2189004162")

Install

Reference:

Install dependencies

64-bit machine

sudo apt-get install libstdc++6:i386 libgcc1:i386 libcurl4-gnutls-dev:i386

32-bit machine

sudo apt-get install libstdc++6 libgcc1 libcurl4-gnutls-dev

Install steamcmd

mkdir -p ~/steamcmd/
cd ~/steamcmd/
wget "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
tar -xvzf steamcmd_linux.tar.gz

Configure and download the server settings

Open: https://accounts.klei.com/account/game/servers?game=DontStarveTogether

  • Click "Add New Server".
  • Fill and Click "DOWNLOAD SETTINGS".
  • unzip MyDediServer.zip.
  • Place the folder “MyDediServer” inside ~/.klei/DoNotStarveTogether/.

Enable Mods

Edit following files:

${HOME}/dontstarvetogether_dedicated_server/mods/dedicated_server_mods_setup.lua
${HOME}/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua
${HOME}/.klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua

Scrip to run server

wget https://accounts.klei.com/assets/gamesetup/linux/run_dedicated_servers.sh
chmod u+x run_dedicated_servers.sh
./run_dedicated_servers.sh
-- Put this file in
-- - ${HOME}/.klei/DoNotStarveTogether/MyDediServer/Master/modoverrides.lua
-- - ${HOME}/.klei/DoNotStarveTogether/MyDediServer/Caves/modoverrides.lua
return {
["workshop-1207269058"]={ configuration_options={ }, enabled=true },
["workshop-1530801499"]={
configuration_options={ ArrowsignEnable=false, HungerCost=1, Ownership=false, SanityCost=1 },
enabled=true
},
["workshop-1595631294"]={
configuration_options={
BundleItems=false,
ChangeSkin=true,
Digornot=false,
DragonflyChest=false,
Icebox=false,
SaltBox=false
},
enabled=true
},
["workshop-1803285852"]={
configuration_options={
[""]=0,
AutoPickupAsh=false,
AutoPickupEnabled=false,
AutoPickupPoop=false,
AutoPickupRange=10,
AutoPickupSeeds=false,
AutoStackAsh=false,
AutoStackEnabled=true,
AutoStackMakeNewStackMainStack=true,
AutoStackManuallyDroppedItems=false,
AutoStackPoop=false,
AutoStackRange=10,
AutoStackSeeds=false,
AutoStackTwiggyTreeTwigs=false,
ManualDropStackRange=5,
ManualStackAsh=false,
ManualStackMakeNewStackMainStack=false,
ManualStackPoop=false,
ManualStackSeeds=false,
PlayerMustHaveOneOfItemToAutoPickup=false,
SmokePuffOnStacking=true,
StackDuringPopulation=false
},
enabled=true
},
["workshop-2189004162"]={
configuration_options={
DEBUGGING=0,
DEBUG_ENABLED=false,
DEBUG_SHOW_DISABLED=false,
DEBUG_SHOW_NOTIMPLEMENTED=false,
DEBUG_SHOW_PREFAB=false,
["FOOD RELATED"]=0,
FORMATTING=0,
INDICATORS=0,
["INFORMATION CONTROL"]=0,
MISCELLANEOUS=0,
alt_only_information=false,
appeasement_value="undefined",
armor="undefined",
attack_range_type="undefined",
battlesong_range="both",
blink_range=false,
boss_indicator=true,
bottle_indicator=true,
crash_reporter=false,
danger_announcements="undefined",
death_indicator=false,
display_attack_range="undefined",
display_cawnival="undefined",
display_compostvalue="undefined",
display_crafting_lookup_button=true,
display_fertilizer="undefined",
display_finiteuses=true,
display_food="undefined",
display_gyminfo="undefined",
display_harvestable=true,
display_health="undefined",
display_hunger="undefined",
display_insight_menu_button=true,
display_mob_attack_damage="undefined",
display_oceanfishing="undefined",
display_perishable="undefined",
display_pickable=true,
display_plant_stressors="undefined",
display_pollination="undefined",
display_sanity="undefined",
display_sanity_interactions="undefined",
display_sanityaura="undefined",
display_shared_stats="undefined",
display_shelter_info="undefined",
display_simplefishing="undefined",
display_spawner_information="undefined",
display_tackle_information="undefined",
display_timers="undefined",
display_unwrappable="undefined",
display_upgradeable="undefined",
display_weather="undefined",
display_weighable="undefined",
display_world_events="undefined",
display_worldmigrator="undefined",
display_yotb_appraisal="undefined",
display_yotb_winners="undefined",
domestication_information="undefined",
experimental_highlighting=true,
extended_info_indicator=true,
follower_info="undefined",
followtext_insight_font_size=28,
food_effects=true,
food_memory="undefined",
food_order="interface",
food_style="long",
food_units=true,
fuel_highlighting=false,
fuel_highlighting_color="RED",
fuel_verbosity="undefined",
growth_verbosity="undefined",
herd_information="undefined",
highlighting=true,
highlighting_color="GREEN",
hover_range_indicator=true,
hoverer_insight_font_size=30,
hunt_indicator="undefined",
info_preload="undefined",
info_style="text",
insight_font="UIFONT",
inventorybar_insight_font_size=25,
item_worth="undefined",
itemtile_display="percentages",
klaus_sack_info="undefined",
klaus_sack_markers="undefined",
language="automatic",
lightningrod_range=1,
miniboss_indicator=true,
naughtiness_verbosity="undefined",
nightmareclock_display="undefined",
notable_indicator=true,
orchestrina_indicator="undefined",
pipspook_indicator=true,
refresh_delay="undefined",
repair_values="undefined",
sinkhole_marks=2,
soil_moisture=2,
soil_nutrients="undefined",
soil_nutrients_needs_hat="undefined",
stewer_chef="undefined",
suspicious_marble_indicator=false,
temperature_units="game",
text_coloring=true,
time_style="realtime_short",
tumbleweed_info="undefined",
weapon_damage="undefined",
wortox_soul_range=true,
wx78_scanner_info="undefined"
},
enabled=true
},
["workshop-347079953"]={
configuration_options={ DFV_Language="EN", DFV_MinimalMode="default" },
enabled=true
},
["workshop-369596587"]={ configuration_options={ message_style=1 }, enabled=true },
["workshop-375850593"]={ configuration_options={ }, enabled=true },
["workshop-375859599"]={
configuration_options={
divider=5,
random_health_value=0,
random_range=0,
send_unknwon_prefabs=false,
show_type=0,
unknwon_prefabs=1,
use_blacklist=true
},
enabled=true
},
["workshop-378160973"]={
configuration_options={
ENABLEPINGS=true,
FIREOPTIONS=2,
OVERRIDEMODE=false,
SHAREMINIMAPPROGRESS=true,
SHOWFIREICONS=true,
SHOWPLAYERICONS=true,
SHOWPLAYERSOPTIONS=2
},
enabled=true
},
["workshop-458940297"]={
configuration_options={
DFV_ClientPrediction="default",
DFV_FueledSettings="default",
DFV_Language="EN",
DFV_MinimalMode="default",
DFV_PercentReplace="default",
DFV_ShowACondition="default",
DFV_ShowADefence="default",
DFV_ShowAType="default",
DFV_ShowDamage="default",
DFV_ShowFireTime="default",
DFV_ShowInsulation="default",
DFV_ShowTemperature="default",
DFV_ShowUses="default"
},
enabled=true
},
["workshop-501385076"]={
configuration_options={
quick_cook_on_fire=true,
quick_harvest=true,
quick_pick_cactus=true,
quick_pick_plant_normal_ground=true
},
enabled=true
},
["workshop-623749604"]={
configuration_options={
Craft="Normal",
Destroyable="DestroyByAll",
FoodSpoilage=1,
Language="En",
Position="Center",
Slots=80
},
enabled=true
},
["workshop-856487758"]={ configuration_options={ }, enabled=true }
}
-- ${HOME}/.klei/DoNotStarveTogether/MyDediServer/Master/worldgenoverride.lua
KLEI 1 return {
override_enabled = true,
worldgen_preset = "SURVIVAL_TOGETHER",
settings_preset = "SURVIVAL_TOGETHER",
overrides = {
basicresource_regrowth = "always",
ghostsanitydrain = "none",
portalresurection = "always",
resettime = "none",
-- add these 2 config
berrybush = "insane",
wildfires="never",
grassgekkos="never",
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment