Error loading mod!


Recommended Posts

I tried to put install mods on my dedicated server on OS X, but the terminal returns "Error loading mod!" for all of the mods. Can anyone help? Thx! 

 

Here's the error message (I enabled mod debugging print in mod settings.lua):

Starting UpVersion: 161456Current time: Sat Jan  2 23:23:28 2016Don't Starve Together: 161456 OSXNNN Build Date: 2015-12-24_15-06-32Parsing command lineCommand Line Arguments: -conf_dir DoNotStarveTogether_EasyConfigOverworld -console THREAD - started 'GAClient' (2955497472)CurlRequestManager::ClientThread::Main()ProfileIndex:4.24[CONNECT] PendingConnection::Reset(true)Network tick rate: U=15(2), D=0Network tick rate: U=15(2), D=0THREAD - started 'ConsoleInput' (2957602816)OnLoadPermissionList: /Users/Ryan/Documents/Klei/DoNotStarveTogether_EasyConfigOverworld/save/blocklist.txt (Failure)OnLoadPermissionList: /Users/Ryan/Documents/Klei/DoNotStarveTogether_EasyConfigOverworld/save/adminlist.txt (Failure)OnLoadUserIdList: /Users/Ryan/Documents/Klei/DoNotStarveTogether_EasyConfigOverworld/save/whitelist.txt (Failure)Server token retrieved from: server_token.txtcGame::InitializeOnMainThreadjueRenderer initialize: OkayAnimManager initialize: OkayBuffers initialize: OkaycDontStarveGame::DoGameSpecificInitialize()FMOD Error: An invalid object handle was used. GameSpecific initialize: OkaycGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(166,1) running main.lua	loaded modindex	ModIndex: Beginning normal load sequence for dedicated server.	DownloadMods(6)Download server mod 553665029Download server mod 347079953Download server mod 458940297Download server mod 378160973Download server mod 438293817Download server mod 462469447modoverrides.lua enabling workshop-462469447	modoverrides.lua enabling workshop-378160973	modoverrides.lua enabling workshop-438293817	modoverrides.lua enabling workshop-347079953	modoverrides.lua enabling workshop-553665029	modoverrides.lua enabling workshop-458940297	ModIndex:GetModsToLoad inserting moddir, 	workshop-347079953	ModIndex:GetModsToLoad inserting moddir, 	workshop-378160973	ModIndex:GetModsToLoad inserting moddir, 	workshop-438293817	ModIndex:GetModsToLoad inserting moddir, 	workshop-458940297	ModIndex:GetModsToLoad inserting moddir, 	workshop-462469447	ModIndex:GetModsToLoad inserting moddir, 	workshop-553665029	Could not load mod_config_data/modconfiguration_workshop-347079953_CLIENT	Loading mod: workshop-347079953 (Display food values) Version:1.6	Could not load mod_config_data/modconfiguration_workshop-378160973_CLIENT	Loading mod: workshop-378160973 (Global Positions) Version:1.3.5	Could not load mod_config_data/modconfiguration_workshop-438293817_CLIENT	Loading mod: workshop-438293817 (Friendly Flingomatics) Version:1.0	Could not load mod_config_data/modconfiguration_workshop-458940297_CLIENT	Loading mod: workshop-458940297 (Food Values - Item Tooltips (Server and Client)) Version:2.5	Could not load mod_config_data/modconfiguration_workshop-462469447_CLIENT	Loading mod: workshop-462469447 (Map Discovery Sharing) Version:1.0	Could not load mod_config_data/modconfiguration_workshop-553665029_CLIENT	Loading mod: workshop-553665029 (DST-SignPlus) Version:1.4	Mod: workshop-458940297 (Food Values - Item Tooltips (Server and Client))	Loading modworldgenmain.lua	Mod: workshop-458940297 (Food Values - Item Tooltips (Server and Client))	  Mod had no modworldgenmain.lua. Skipping.	Mod: workshop-458940297 (Food Values - Item Tooltips (Server and Client))	Loading modmain.lua	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_PercentReplace	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_FueledSettings	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowFireTime	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowDamage	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowUses	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowTemperature	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowInsulation	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowACondition	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowADefence	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_ShowAType	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_Language	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	GetModConfigData	DFV_MinimalMode	true	workshop-458940297 (Food Values - Item Tooltips (Server and Client))	AddPrefabPostInitAny	Mod: workshop-458940297 (Food Values - Item Tooltips (Server and Client))	  Error loading mod![string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-458940297/modmain.lua(332,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk	Mod: workshop-347079953 (Display food values)	Loading modworldgenmain.lua	Mod: workshop-347079953 (Display food values)	  Mod had no modworldgenmain.lua. Skipping.	Mod: workshop-347079953 (Display food values)	Loading modmain.lua	workshop-347079953 (Display food values)	GetModConfigData	DFV_Language	workshop-347079953 (Display food values)	GetModConfigData	DFV_MinimalMode	true	Mod: workshop-347079953 (Display food values)	  Error loading mod![string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-347079953/modmain.lua(207,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk	Mod: workshop-462469447 (Map Discovery Sharing)	Loading modworldgenmain.lua	Mod: workshop-462469447 (Map Discovery Sharing)	  Mod had no modworldgenmain.lua. Skipping.	Mod: workshop-462469447 (Map Discovery Sharing)	Loading modmain.lua	workshop-462469447 (Map Discovery Sharing)	AddPrefabPostInit	world	[string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-458940297/modmain.lua(332,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk[string "scripts/mainfunctions.lua"]:969: variable 'global_error_widget' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/mainfunctions.lua(969,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunkDoLuaFile Error: (null)LuaError but no error stringError loading main.luaFailed mSimulation->Reset()Error during game initialization!Updates 0Seconds elapsed: 3.43002 fps:0Collecting garbage...lua_gc took 0.01 seconds~ShardLuaProxy()~InventoryLuaProxy()~NetworkLuaProxy()~SimLuaProxy()Cancelling LuaQueryCallback handle [1]Cancelling LuaQueryCallback handle [2]lua_close took 0.01 secondsCurlRequestManager::ClientThread::Main() completeHttpClient2 discarded 0 callbacks.Shutting downlogoutSaving session......copying shared history......saving history...truncating history files......completed.

I debugged a little bit, and I find out that:

  1. The mod IDs is correct, as the terminal can identify those mod names;
  2. Enabling the mods with neither mod overrides.lua or mod settings.lua works;
  3. The contents of the mods are correct, because if I use a normal server instead of a dedicated server, the mods work. I also tried to delete the local server contents and let dedicated_server_mods_setup.lua to download them, but they report the same error message again.

I'm completely puzzled now...I don't know LUA so I don't quite get the errors, but I saw some undeclared variables, which make me wonder if it's the fault of the contents of the mods? But they are fine with normal server...

 

Here's my mod list:

  1. workshop-347079953                           Display food values
  2. workshop-378160973                           Global Position
  3. workshop-438293817                           Friendly Flingomatics
  4. workshop-458940297                           Food Values - Item Tooltips (Server and Client)
  5. workshop-462469447                           Map Discovery Sharing
  6. workshop-553665029                           DST-SignPlus

Can anyone help me out? Thanks a lot!

Link to comment
Share on other sites

Disable all mods and look if the server starts correctly. Then, if that worked, try out some of your mentioned mods, but just one at a time. It could be that some mods aren't working/compatible. Also be sure you have the latest version of the game/server installed.

Link to comment
Share on other sites

Hi @RyanMeng,

 

it's look's like 3 mods have crash in same time in your log.txt, you need report this problem for author of mods

 

crash of mod workshop-347079953 (Display food values):

http://steamcommunity.com/sharedfiles/filedetails/?id=347079953

[string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-347079953/modmain.lua(207,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk	

crash of mods workshop-458940297 Food Values - Item Tooltips:

http://steamcommunity.com/sharedfiles/filedetails/?id=458940297

[string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-458940297/modmain.lua(332,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk

crash of mods workshop-462469447 (Map Discovery Sharing):

http://steamcommunity.com/sharedfiles/filedetails/?id=462469447

[string "scripts/modutil.lua"]:75: variable 'modname' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/modutil.lua(75,1) in function 'initprint'        scripts/modutil.lua(332,1) in function 'AddPrefabPostInitAny'        scripts/modutil.lua(338,1) in function 'AddPlayerPostInit'        ../mods/workshop-458940297/modmain.lua(332,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(597,1) in function 'RunInEnvironment'        scripts/mods.lua(408,1) in function 'InitializeModMain'        scripts/mods.lua(389,1) in function 'LoadMods'        scripts/main.lua(243,1) in function 'ModSafeStartup'        scripts/main.lua(298,1) in function 'callback'        scripts/modindex.lua(63,1) in function 'BeginStartupSequence'        scripts/main.lua(297,1) in function 'callback'        scripts/modindex.lua(520,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk[string "scripts/mainfunctions.lua"]:969: variable 'global_error_widget' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        scripts/mainfunctions.lua(969,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(500,1) in function 'Load'        scripts/main.lua(296,1) in main chunk
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.