System Memory: Memory Load: 52% Available Physical Memory: 7669m/16234m Available Page File: 4706m/17258m Available Virtual Memory: 134213499m/134217727m Available Extended Virtual Memory: 0m [00:00:00]: Process Memory: Peak Working Set Size: 12m Working Set Size: 12m Quota Peak Page Pool Usage: 182k Quota Page Pool Usage: 182k Quota Peak Non Paged Pool Usage:14k Quota Non Paged Pool Usage: 13k Page File Usage: 3m Peak Page File Usage: 3m [00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/Cluster_1/Master/ [00:00:00]: Starting Up [00:00:00]: Version: 605310 [00:00:00]: Current time: Tue Jun 04 08:47:41 2024
关键信息是 PersistRootStorage is now APP:Klei//DoNotStarveTogether/Cluster_1/Master/,其中 APP:Klei 通常就是 Windows 系统的“文档”目录下的 Klei 文件夹。而在 Linux 系统上,这个路径会更加清晰。找到存档位置以后,就能自由编辑存档的内容了。
如果不在这里添加调用,那么即便在存档里配置了 mod,在启动 dedicated server 时也不会下载和加载对应的 mod,也就自然没有作用。一个修改后的 dedicated_server_mods_setup.lua 文件大致如下。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
--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")