Jump to content

dedicated_server_mods_setup.lua not getting read


Recommended Posts

So, I am currently moving my old dedicated server to the new server structure, and everything is working, except for mods. I have traced the problem to the dedicated_server_mods_setup.lua, since normally this file would cause mods to be downloaded before the server starts, even if they are not used. However, the dedicated server does not do this when it started via the .bat file. For further testing, I put a print statement into the file, which was never printed. 

So, my question is this: is this file in the right directory? Do I need something else? I have it in ...steamapps\common\don't starve together dedicated server\mods\dedicated_server_mods_setup.lua. Any help would be appreciated.

Link to comment
Share on other sites

Hi @Snowhusky5

yes it's right directory for dedicated_server_mods_setup.lua

but where is your modoverrides.lua?

Documents\Klei\DoNotStarveTogether\Cluster_1\Master\modoverrides.lua

Documents\Klei\DoNotStarveTogether\Cluster_1\Caves\modoverrides.lua

can you also show your server_log.txt please?

Documents\Klei\DoNotStarveTogether\Cluster_1\Master\server_log.txt

Link to comment
Share on other sites

@ToNiO55, yes, that is where my modoverrides are. I even tested that they were being found by putting a print statement in them (which causes the server to crash since print is not declared). Here is the log:

Spoiler

[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/DSTServer/Master/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 166227
[00:00:00]: Current time: Sun Feb 14 21:55:50 2016

[00:00:00]: Don't Starve Together: 166227 WIN32
NNN Build Date: 175
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -console -cluster DSTServer -shard Master 
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (16312)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Legacy saves detected. Migrating to new structure...
[00:00:00]: ProfileIndex:4.46
[00:00:00]: [Connect] PendingConnection::Reset(true)
[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]: Authorized application c:\ProgramData\SteamCMD\steamapps\common\Don't Starve Together Dedicated Server\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.
[00:00:00]: WindowsFirewall - Application already authorized
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/DSTServer/blocklist.txt (Failure)
[00:00:00]: THREAD - started 'ConsoleInput' (11272)
[00:00:00]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/DSTServer/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/DSTServer/whitelist.txt (Failure)
[00:00:00]: Token retrieved from: APP:Klei//DoNotStarveTogether/DSTServer/cluster_token.txt
[00:00:00]: Token retrieved from: APP:Klei//DoNotStarveTogether/DSTServer/cluster_token.txt
[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]: FMOD Error: An invalid object handle was used. 
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]: scripts/main.lua(166,1) running main.lua
	
[00:00:00]: loaded modindex	
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.
	
[00:00:00]: DownloadMods(0)
[00:00:01]: FMOD Error: An invalid object handle was used. 
[00:00:02]: LOADING LUA SUCCESS
[00:00:02]: PlayerDeaths could not load morgue	
[00:00:02]: PlayerHistory could not load player_history	
[00:00:02]: bloom_enabled	false	
[00:00:02]: loaded saveindex	
[00:00:02]: OnFilesLoaded()	
[00:00:02]: OnUpdatePurchaseStateComplete	
[00:00:09]: 	Load FE	
[00:00:09]: 	Load FE: done	
[00:00:09]: ModIndex: Load sequence finished successfully.	
[00:00:09]: Reset() returning
[00:00:11]: [200] Account Communication Success (6)
[00:00:11]: Received (KU_D-TfCdCo) from TokenPurpose
[00:00:11]: Starting Dedicated Server Game	
[00:00:11]: Network tick rate: U=15(2), D=0
[00:00:11]: About to start a server with the following settings:
[00:00:11]:   Dedicated: true
[00:00:11]:   Online: true
[00:00:11]:   Passworded: true
[00:00:11]:   ServerPort: 11000
[00:00:11]:   SteamAuthPort: 8768
[00:00:11]:   SteamMasterServerPort: 27018
[00:00:11]:   ClanID: false
[00:00:11]:   ClanOnly: false
[00:00:11]:   ClanAdmin: false
[00:00:11]:   LanOnly: false
[00:00:11]:   FriendsOnly: false
[00:00:11]:   EnablePunchthrough: false
[00:00:11]:   EnableAutosaver: false
[00:00:11]:   PVP: false
[00:00:11]:   MaxPlayers: 6
[00:00:11]:   GameMode: survival
[00:00:11]:   OverridenDNS: 
[00:00:11]:   PauseWhenEmpty: true
[00:00:11]:   InternetBroadcasting: true
[00:00:11]:   Intent: cooperative
[00:00:11]: [Warning] Could not confirm port 11000 is open in the firewall. 
[00:00:11]: Online Server Started on port: 11000
[00:00:11]: Collecting garbage...
[00:00:11]: lua_gc took 0.01 seconds
[00:00:11]: ~ShardLuaProxy()
[00:00:11]: ~ItemServerLuaProxy()
[00:00:11]: ~InventoryLuaProxy()
[00:00:11]: ~NetworkLuaProxy()
[00:00:11]: ~SimLuaProxy()
[00:00:11]: lua_close took 0.02 seconds
[00:00:11]: ReleaseAll
[00:00:11]: ReleaseAll Finished
[00:00:11]: cGame::StartPlaying
[00:00:11]: LOADING LUA
[00:00:11]: DoLuaFile scripts/main.lua
[00:00:11]: DoLuaFile loading buffer scripts/main.lua
[00:00:11]: scripts/main.lua(166,1) running main.lua
	
[00:00:11]: loaded modindex	
[00:00:11]: ModIndex: Beginning normal load sequence for dedicated server.
	
[00:00:11]: LOADING LUA SUCCESS
[00:00:11]: PlayerDeaths could not load morgue	
[00:00:11]: PlayerHistory could not load player_history	
[00:00:11]: bloom_enabled	false	
[00:00:11]: loaded saveindex	
[00:00:11]: OnFilesLoaded()	
[00:00:11]: OnUpdatePurchaseStateComplete	
[00:00:11]: 	Unload FE	
[00:00:11]: 	Unload FE done	
[00:00:12]: 	LOAD BE	
[00:00:14]: 	LOAD BE: done	
[00:00:14]: Loading world: session/4EAC3521632E4B40/0000000191	
[00:00:14]: Save file is at version 1	
[00:00:14]: Begin Session: 4EAC3521632E4B40
[00:00:14]: saving to server_temp/server_save	
[00:00:14]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:14]: Could not preload undefined prefab 0x1872ccf0 (FROMNUM)
[00:00:15]: Loading Nav Grid	
[00:00:15]: setting 	summerlength	15	
[00:00:15]: setting 	isnightmaredawn	false	
[00:00:15]: setting 	elapseddaysinseason	6	
[00:00:15]: setting 	isfullmoon	false	
[00:00:15]: setting 	moisture	5395.4296875	
[00:00:15]: setting 	cavephase	night	
[00:00:15]: setting 	isnightmarewild	false	
[00:00:15]: setting 	moonphase	half	
[00:00:15]: setting 	precipitationrate	0.18094424903393	
[00:00:15]: setting 	iswet	false	
[00:00:15]: setting 	winterlength	15	
[00:00:15]: setting 	temperature	-29.08003074664	
[00:00:15]: setting 	isnightmarewarn	false	
[00:00:15]: setting 	iswinter	true	
[00:00:15]: setting 	moistureceil	9584.0478515625	
[00:00:15]: setting 	isday	false	
[00:00:15]: setting 	israining	false	
[00:00:15]: setting 	remainingdaysinseason	9	
[00:00:15]: setting 	precipitation	snow	
[00:00:15]: setting 	wetness	0	
[00:00:15]: setting 	isnightmarecalm	false	
[00:00:15]: setting 	timeinphase	0.81060587565104	
[00:00:15]: setting 	isdusk	false	
[00:00:15]: setting 	iscavedusk	false	
[00:00:15]: setting 	isautumn	false	
[00:00:15]: setting 	issnowing	true	
[00:00:15]: setting 	iscaveday	false	
[00:00:15]: setting 	phase	night	
[00:00:15]: setting 	snowlevel	1	
[00:00:15]: setting 	issnowcovered	true	
[00:00:15]: setting 	autumnlength	20	
[00:00:15]: setting 	pop	1	
[00:00:15]: setting 	nightmaretime	0	
[00:00:15]: setting 	springlength	20	
[00:00:15]: setting 	isspring	false	
[00:00:15]: setting 	nightmarephase	none	
[00:00:15]: setting 	season	winter	
[00:00:15]: setting 	time	0.92897720336914	
[00:00:15]: setting 	iscavenight	true	
[00:00:15]: setting 	cycles	166	
[00:00:15]: setting 	isnight	true	
[00:00:15]: setting 	nightmaretimeinphase	0	
[00:00:15]: setting 	issummer	false	
[00:00:19]: Reconstructing topology	
[00:00:19]: 	...Sorting points	
[00:00:19]: 	...Sorting edges	
[00:00:19]: 	...Connecting nodes	
[00:00:19]: 	...Validating connections	
[00:00:19]: 	...Housekeeping	
[00:00:19]: 	...Done!	
[00:00:19]: 1 uploads added to server. From server_temp
[00:00:19]: About to start a shard with these settings:
[00:00:19]:   ShardName: [SHDMASTER]
[00:00:19]:   ShardID: 1
[00:00:19]:   ShardRole: MASTER
[00:00:19]:   MasterHost: (null)
[00:00:19]:   MasterBind: 127.0.0.1
[00:00:19]:   MasterPort: 10889
[00:00:19]: [Shard] Starting master server
[00:00:19]: [Warning] Could not confirm port 10889 is open in the firewall. 
[00:00:19]: [Shard] Shard server started on port: 10889
[00:00:19]: Telling Client our new session identifier: 4EAC3521632E4B40
[00:00:19]: ModIndex: Load sequence finished successfully.	
[00:00:19]: Reset() returning
[00:00:19]: [Steam] SteamGameServer_Init(8768, 11000, 27018)
[00:00:20]: [Steam] SteamGameServer_Init success
[00:00:20]: Validating portal[4] <-> 1678110756[4] (inactive)	
[00:00:20]: Validating portal[3] <-> 1678110756[3] (inactive)	
[00:00:20]: Validating portal[9] <-> 1678110756[9] (inactive)	
[00:00:20]: Validating portal[7] <-> 1678110756[7] (inactive)	
[00:00:20]: Validating portal[8] <-> 1678110756[8] (inactive)	
[00:00:20]: Validating portal[1] <-> 1678110756[1] (inactive)	
[00:00:20]: Validating portal[2] <-> 1678110756[2] (inactive)	
[00:00:20]: Validating portal[5] <-> 1678110756[5] (inactive)	
[00:00:20]: Validating portal[10] <-> 1678110756[10] (inactive)	
[00:00:20]: Validating portal[6] <-> 1678110756[6] (inactive)	
[00:00:20]: Sim paused
[00:00:21]: [Shard] Slave Caves(1678110756) connected: [LAN] 127.0.0.1
[00:00:21]: [Shard] Slave Caves(1678110756) ready!
[00:00:21]: World 1678110756 is now connected	
[00:00:21]: Validating portal[4] <-> 1678110756[4] (active)	
[00:00:21]: Validating portal[3] <-> 1678110756[3] (active)	
[00:00:21]: Validating portal[9] <-> 1678110756[9] (active)	
[00:00:21]: Validating portal[7] <-> 1678110756[7] (active)	
[00:00:21]: Validating portal[8] <-> 1678110756[8] (active)	
[00:00:21]: Validating portal[1] <-> 1678110756[1] (active)	
[00:00:21]: Validating portal[2] <-> 1678110756[2] (disabled)	
[00:00:21]: Validating portal[5] <-> 1678110756[5] (active)	
[00:00:21]: Validating portal[10] <-> 1678110756[10] (active)	
[00:00:21]: Validating portal[6] <-> 1678110756[6] (disabled)	

 

As you can see, the mods are never even downloaded. My dedicated_server_mods_setup.lua only contains two statements, a print statement for testing and ServerModCollectionSetup("579937534").

Link to comment
Share on other sites

@Snowhusky5

i have testing your dedicated_server_mods_setup.lua on my server test and he works perfectly

useless for now to use the modoverrides.lua, because dedicated_server_mods_setup.lua look like doesn't work for you

160216090345575232.jpg

cGame::InitializeOnMainThread
Renderer initialize: Okay
AnimManager initialize: Okay
Buffers initialize: Okay
cDontStarveGame::DoGameSpecificInitialize()
FMOD Error: An invalid object handle was used. 
GameSpecific initialize: Okay
cGame::StartPlaying
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(166,1) running main.lua
	
loaded modindex	
ModIndex: Beginning normal load sequence for dedicated server.
	
DownloadMods(24)
Download server mod 556027744
Download server mod 412291722
Download server mod 362175979
Download server mod 553665029
Download server mod 362022168
Download server mod 463655483
Download server mod 503919639
Download server mod 422659100
Download server mod 375859599
Download server mod 466732225
Download server mod 361994110
Download server mod 577620478
Download server mod 447911453
Download server mod 488018406
Download server mod 378160973
Download server mod 382363357
Download server mod 599498678
Download server mod 537902048
Download server mod 525966989
Download server mod 444235588
Download server mod 617944113
Download server mod 607654103
Download server mod 618785273
Download server mod 484042273
ERROR: Failed to run code from modoverrides.lua	
FMOD Error: An invalid object handle was used. 

the type of your dedicated_server_mods_setup is correctly lua?

160216092324748205.jpg

Link to comment
Share on other sites

@ToNiO55 yep, its a lua file. I'm gonna try reinstalling the app.

edit: ok, I figured it out. When launched via bat file, the mods will not get installed, presumably since the exe is limited to the bin folder or something? Anyways, I just copied my server settings over to the cluster_1 folder and it works.

Link to comment
Share on other sites

@ToNiO55 ok, so when I start it via the bat file I get the master and caves servers but no mods, and when I start it by double clicking the tool I get mods but only the master server. Do you know if I could set the steam launch options to launch two copies of the game? What bat file do you use to start the game?

Link to comment
Share on other sites

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...