echo_lovely Posted November 26, 2024 Share Posted November 26, 2024 1. Environment OS:Ubuntu 24.04.1 LTS steamcmd dir: ~/steamcmd DST Server dir: ~/DST/server cluster dir: ~/.klei/DoNotStarveTogether/World 2. Problem I modified the contents of the 'dedict_derver.mods_setup. lua' file and added the mod I wanted, but when the server started up, the contents of the 'dedict_derver.mods_setup. lua' file were reset to their default settings. ServerModSetup("831523966") -- 999堆叠 ServerModSetup("1172839635") -- Better Ice Box ServerModSetup("661253977") -- Don't Drop Everything ServerModSetup("375850593") -- Extra Equip Slots ServerModSetup("378160973") -- Global Position ServerModSetup("1595934840") -- 扶我起来 ServerModSetup("2189004162") -- Insight ServerModSetup("1207269058") -- 简易血条 ServerModSetup("1595631294") -- 智能小木牌 ServerModSetup("362175979") -- Wormhole Marks ServerModSetup("2115943953") -- Auto Stack Pro --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") Just Updating the mod , I see the output [00:00:01]: ModIndex: Beginning normal load sequence for dedicated server. [00:00:01]: FinishDownloadingServerMods Complete! Process trying to quit nicely.. I think this means the mods have downloaded successfully! Total output ↓: @echo:~/DST/server/mods$ ../bin64/dontstarve_dedicated_server_nullrenderer_x64 -only_update_server_mods [00:00:00]: PersistRootStorage is now /home/echo/.klei//DoNotStarveTogether/Cluster_1/Master/ [00:00:00]: Starting Up [00:00:00]: Version: 639083 [00:00:00]: Current time: Tue Nov 26 09:47:20 2024 [00:00:00]: System Name: Linux [00:00:00]: Host Name: echo [00:00:00]: Release(Kernel) Version: 6.8.0-49-generic [00:00:00]: Kernel Build Timestamp: #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 [00:00:00]: Machine Arch: x86_64 [00:00:00]: Don't Starve Together: 639083 LINUX [00:00:00]: Build Date: 2713 [00:00:00]: Mode: 64-bit [00:00:00]: Parsing command line [00:00:00]: Command Line Arguments: -only_update_server_mods [00:00:00]: Initializing distribution platform [00:00:00]: ....Done [00:00:00]: THREAD - started 'GAClient' (124708223715008) [00:00:00]: CurlRequestManager::ClientThread::Main() [00:00:00]: ProfileIndex:8.37 [00:00:00]: Mounting file system databundles/klump.zip successful. [00:00:00]: Mounting file system databundles/shaders.zip successful. [00:00:00]: Mounting file system databundles/fonts.zip successful. [00:00:00]: Mounting file system databundles/anim_dynamic.zip successful. [00:00:00]: Mounting file system databundles/bigportraits.zip successful. [00:00:00]: Mounting file system databundles/images.zip successful. [00:00:00]: Mounting file system databundles/scripts.zip successful. [00:00:00]: [Steam] SteamGameServer_Init(10999, 27016) [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK. CAppInfoCacheReadFromDiskThread took 5 milliseconds to initialize Setting breakpad minidump AppID = 322330 [00:00:00]: [Steam] SteamGameServer_Init success [00:00:00]: [Connect] PendingConnection::Reset(true) [00:00:00]: Platform: 1 [00:00:00]: Network tick rate: U=15(2), D=0 [00:00:00]: Network tick rate: U=15(2), D=0 [00:00:00]: THREAD - started 'StreamInput' (124708097885888) [00:00:00]: OnLoadPermissionList: /home/echo/.klei//DoNotStarveTogether/Cluster_1/blocklist.txt (Failure) [00:00:00]: OnLoadPermissionList: /home/echo/.klei//DoNotStarveTogether/Cluster_1/adminlist.txt (Failure) [00:00:00]: OnLoadUserIdList: /home/echo/.klei//DoNotStarveTogether/Cluster_1/whitelist.txt (Failure) [00:00:00]: Token file not found: /home/echo/.klei//DoNotStarveTogether/Cluster_1/cluster_token.txt, success: F, len: 0 [00:00:00]: Token file not found: /home/echo/.klei//DoNotStarveTogether/Cluster_1/cluster_token.txt, success: F, len: 0 [00:00:00]: cGame::InitializeOnMainThread [00:00:00]: Renderer initialize: Okay [00:00:00]: AnimManager initialize: Okay [00:00:00]: Buffers initialize: Okay [00:00:00]: cDontStarveGame::DoGameSpecificInitialize() [00:00:00]: GameSpecific initialize: Okay [00:00:00]: cGame::StartPlaying [00:00:00]: AppVersion::GetArchitecture() x64 [00:00:00]: LOADING LUA [00:00:00]: DoLuaFile scripts/main.lua [00:00:00]: DoLuaFile loading buffer scripts/main.lua [00:00:01]: taskgrouplist: default Together [00:00:01]: taskgrouplist: classic Classic [00:00:01]: taskgrouplist: cave_default Underground [00:00:01]: taskgrouplist: lavaarena_taskset The Forge [00:00:01]: taskgrouplist: quagmire_taskset The Gorge [00:00:01]: Running main.lua [00:00:01]: loaded modindex [00:00:01]: ModIndex: Beginning normal load sequence for dedicated server. [00:00:01]: FinishDownloadingServerMods Complete! Process trying to quit nicely.. [00:00:02]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs [00:00:03]: LOADING LUA SUCCESS [00:00:03]: PlayerDeaths could not load morgue [00:00:03]: PlayerHistory could not load player_history [00:00:03]: ServerPreferences could not load server_preferences [00:00:03]: ConsoleScreenSettings could not load consolescreen [00:00:03]: bloom_enabled true [00:00:03]: OnFilesLoaded() [00:00:03]: OnUpdatePurchaseStateComplete [00:00:03]: Klump load on boot started. [00:00:03]: Klump files loaded: 0 [00:00:05]: Load FE [00:00:05]: Load FE: done [00:00:05]: THREAD - started 'FilesExistAsyncThread' (124708083205824) [00:00:05]: FilesExistAsyncThread started (25160 files)... [00:00:05]: Check for write access: TRUE [00:00:05]: Check for read access: TRUE [00:00:05]: Available disk space for save files: 234338 MB [00:00:05]: ModIndex: Load sequence finished successfully. [00:00:05]: Reset() returning Updates 0Seconds elapsed: 5.19139 fps:0 Saving Dedicated server data... [00:00:05]: Collecting garbage... [00:00:05]: lua_gc took 0.12 seconds [00:00:05]: ~ShardLuaProxy() [00:00:05]: ~cEventLeaderboardProxy() [00:00:05]: ~ItemServerLuaProxy() [00:00:05]: ~InventoryLuaProxy() [00:00:05]: ~NetworkLuaProxy() [00:00:05]: ~SimLuaProxy() [00:00:05]: FilesExistAsyncThread aborted. [00:00:05]: ... FilesExistAsyncThread complete [00:00:05]: lua_close took 0.16 seconds [00:00:06]: CurlRequestManager::ClientThread::Main() complete [00:00:06]: HttpClient2 discarded 0 callbacks. [00:00:06]: Shutting down src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 src/tier1/fileio.cpp (5086) : m_vecRegisteredWriters.Count() == 0 The start server shell content: #!/bin/bash steamcmd_dir="$HOME/steamcmd" # SteamCMD 安装目录 install_dir="$HOME/DST/server" # 服务器安装目录 cluster_name="World" # 集群名称(你的World文件夹) dontstarve_dir="$HOME/DST" # DST 配置文件所在目录(你的DST文件夹) function fail() { echo Error: "$@" >&2 exit 1 } function check_for_file() { if [ ! -e "$1" ]; then fail "Missing file: $1" fi } cd "$steamcmd_dir" || fail "Missing $steamcmd_dir directory!" # 检查相关文件是否存在 check_for_file "$dontstarve_dir/$cluster_name/cluster.ini" check_for_file "$dontstarve_dir/$cluster_name/cluster_token.txt" check_for_file "$dontstarve_dir/$cluster_name/Master/server.ini" check_for_file "$dontstarve_dir/$cluster_name/Caves/server.ini" # 安装DST服务器文件 ./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit # 检查安装目录 check_for_file "$install_dir/bin64" cd "$install_dir/bin64" || fail # 启动主世界和洞穴世界 run_shared=(./dontstarve_dedicated_server_nullrenderer_x64) run_shared+=(-console) run_shared+=(-cluster "$cluster_name") run_shared+=(-monitor_parent_process $$) # 启动洞穴世界 "${run_shared[@]}" -shard Caves | sed 's/^/Caves: /' & # 启动主世界 "${run_shared[@]}" -shard Master | sed 's/^/Master: /' server_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/161239-fail-to-add-mods/ Share on other sites More sharing options...
Daniel86268 Posted November 26, 2024 Share Posted November 26, 2024 In some cases the dedicated_server_mods_setup.lua gets overwritten by the default file when running the steamcmd update validate script. Try adding a # in front of the line ./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit to comment out the update command. To update the DST server you'll have to either uncomment that line or run it manually. Link to comment https://forums.kleientertainment.com/forums/topic/161239-fail-to-add-mods/#findComment-1762199 Share on other sites More sharing options...
echo_lovely Posted November 27, 2024 Author Share Posted November 27, 2024 18 hours ago, Daniel86268 said: In some cases the dedicated_server_mods_setup.lua gets overwritten by the default file when running the steamcmd update validate script. Try adding a # in front of the line ./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit to comment out the update command. To update the DST server you'll have to either uncomment that line or run it manually. You are right! OHHHHHHHHHHHHH~ Link to comment https://forums.kleientertainment.com/forums/topic/161239-fail-to-add-mods/#findComment-1762904 Share on other sites More sharing options...
echo_lovely Posted November 28, 2024 Author Share Posted November 28, 2024 On 11/27/2024 at 12:46 AM, Daniel86268 said: In some cases the dedicated_server_mods_setup.lua gets overwritten by the default file when running the steamcmd update validate script. Try adding a # in front of the line ./steamcmd.sh +force_install_dir "$install_dir" +login anonymous +app_update 343050 validate +quit to comment out the update command. To update the DST server you'll have to either uncomment that line or run it manually. But these mods didn't work! I delete all files, and setup the server from the begining. Now adding mod now still failed.It seems that the server don't download mods file when starting. How to download mods when starting the DST server? Link to comment https://forums.kleientertainment.com/forums/topic/161239-fail-to-add-mods/#findComment-1763390 Share on other sites More sharing options...
ALangPlus Posted December 4, 2024 Share Posted December 4, 2024 如果mod不全可以参考:https://tieba.baidu.com/p/9251408506 。往下拉需要进行so文件的替换 亲测有效。(问题追踪:DownloadServerMods timed out with no response from Workshop...) If the mod is incomplete, you can refer to: https://tieba.baidu.com/p/9251408506 Pulling down requires replacing the SO file to test its effectiveness. (Issue tracking: DownloadServerMods timed out with no response from Workshop...) Link to comment https://forums.kleientertainment.com/forums/topic/161239-fail-to-add-mods/#findComment-1768271 Share on other sites More sharing options...
Recommended Posts
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.