Jump to content

Error with very simple mod


Recommended Posts

I can not seem to find anything on this but i am simply trying to test a custom mod with my server and I keep getting an error on startup. Using test mods and sample mods give the same error. I have a folder named samplemod and am using the:

ForceEnableMod("samplemod") --[My Mod!]

to enable it for testing. I even copied a normaly working mod into this folder and it gives the same error so i am assuming the name of the folder must be the issue?

 

Here is the log after trying to run. http://pastie.org/10244208

 

I read it might have something to do with my modoverides.lua but it is empty assuming it can be empty.

Link to comment
Share on other sites

@JaredTS486,

can u pls just attach the log, or just post the error directly with spoilertags

use

[ spoiler]

[ /spoiler]

without the space after the first bracket.

 

Sorry could you not see the pastie? Here is the log spoiler style.

 

[00:00:00]: Starting Up
[00:00:00]: Version: 138964
[00:00:00]: Current time: Tue Jun 16 17:59:46 2015
 
[00:00:00]: Don't Starve Together: 138964 WIN32
NNN Build Date: 2015-06-08_11-23-52
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -conf_dir Server 
[00:00:00]: Initializin Minidump handler
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (11524)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: ProfileIndex:4.16
[00:00:00]: THREAD - started 'GAClient' (12200)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: THREAD - started 'GAClient' (10584)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: Network tick rate: U=60(0), D=0
[00:00:00]: Authorized application C:\dontstarveserv\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.
[00:00:00]: WindowsFirewall - Application already authorized
[00:00:00]: OnLoadPermissionList: APP:Klei/Server/save/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: APP:Klei/Server/save/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei/Server/save/whitelist.txt (Failure)
[00:00:00]: Server token retrieved from: server_token.txt
[00:00:00]: THREAD - started 'GAClient' (6344)
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: THREAD - started 'GAClient' (3820)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: HttpClient::ClientThread::Main()
[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(167,1) running main.lua
 
[00:00:00]: WARNING: Force-enabling mod 'samplemod' from modsettings.lua! If you are not developing a mod, please use the in-game menu instead.
[00:00:00]: loaded modindex
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.
 
[00:00:00]: DownloadMods(23)
[00:00:00]: Download server mod 375850593
[00:00:00]: Download server mod 373991022
[00:00:00]: Download server mod 376333686
[00:00:00]: Download server mod 365119238
[00:00:00]: Download server mod 352373173
[00:00:00]: Download server mod 345692228
[00:00:00]: Download server mod 404983266
[00:00:00]: Download server mod 409753995
[00:00:00]: Download server mod 444235588
[00:00:01]: Download server mod 369588618
[00:00:01]: Download server mod 362175979
[00:00:01]: Download server mod 356930882
[00:00:01]: Download server mod 361994110
[00:00:01]: Download server mod 392369197
[00:00:01]: Download server mod 386491550
[00:00:01]: Download server mod 386484388
[00:00:01]: Download server mod 363819976
[00:00:01]: Download server mod 398858801
[00:00:01]: Download server mod 404161345
[00:00:01]: Download server mod 386087632
[00:00:02]: Download server mod 362022168
[00:00:02]: Download server mod 375859599
[00:00:02]: Download server mod 366676924
[00:00:02]: Warning: modoverrides.lua is empty, or is failing to return a table.
[00:00:02]: ModIndex:GetModsToLoad inserting moddir, samplemod
[00:00:02]: Could not load mod_config_data/modconfiguration_samplemod
[00:00:02]: [string "scripts/modindex.lua"]:288: bad argument #1 to 'pairs' (table expected, got nil)
LUA ERROR stack traceback:
        =[C] in function 'pairs'
        scripts/modindex.lua(288,1) in function 'ApplyConfigOptionOverrides'
        scripts/mods.lua(332,1) in function 'LoadMods'
        scripts/main.lua(246,1) in function 'ModSafeStartup'
        scripts/main.lua(294,1) in function 'callback'
        scripts/modindex.lua(66,1) in function 'BeginStartupSequence'
        scripts/main.lua(293,1) in function 'callback'
        scripts/modindex.lua(478,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(455,1) in function 'Load'
        scripts/main.lua(292,1) in main chunk
[00:00:02]: Error error! We tried displaying an error but TheFrontEnd isn't ready yet...
[00:00:02]: LOADING LUA SUCCESS
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/global.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/global.xml'.
[00:00:02]: images/global.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/image.lua(11,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Image'
        scripts/frontend.lua(42,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'FrontEnd'
        scripts/mainfunctions.lua(689,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/global.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/global.xml'.
[00:00:02]: images/global.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/image.lua(11,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Image'
        scripts/frontend.lua(53,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'FrontEnd'
        scripts/mainfunctions.lua(689,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/global.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/global.xml'.
[00:00:02]: images/global.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/image.lua(11,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Image'
        scripts/frontend.lua(70,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'FrontEnd'
        scripts/mainfunctions.lua(689,1)
[00:00:02]: Could not find anim build saving_indicator
[00:00:02]: Could not find anim bank [saving_indicator]
[00:00:02]: PlayerDeaths could not load morgue
[00:00:02]: loaded profile
[00:00:02]: ModIndex: Load sequence finished successfully.
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/global.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/global.xml'.
[00:00:02]: images/global.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/image.lua(11,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Image'
        scripts/screens/scripterrorscreen.lua(16,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'ScriptErrorScreen'
        scripts/mainfunctions.lua(950,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/ui.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/ui.xml'.
[00:00:02]: images/ui.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/imagebutton.lua(30,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'ImageButton'
        scripts/widgets/menu.lua(170,1) in function 'AddItem'
        scripts/widgets/menu.lua(21,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Menu'
        scripts/screens/scripterrorscreen.lua(81,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'ScriptErrorScreen'
        scripts/mainfunctions.lua(950,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/ui.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/ui.xml'.
[00:00:02]: images/ui.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/imagebutton.lua(30,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'ImageButton'
        scripts/widgets/menu.lua(170,1) in function 'AddItem'
        scripts/widgets/menu.lua(21,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Menu'
        scripts/screens/scripterrorscreen.lua(81,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'ScriptErrorScreen'
        scripts/mainfunctions.lua(950,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: SCRIPT ERROR! Showing error screen
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/ui.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/ui.xml'.
[00:00:02]: images/ui.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/imagebutton.lua(39,1) in function 'OnGainFocus'
        scripts/widgets/widget.lua(510,1) in function 'SetFocus'
        scripts/widgets/menu.lua(45,1) in function 'SetFocus'
        scripts/widgets/screen.lua(38,1) in function 'OnBecomeActive'
        scripts/frontend.lua(641,1) in function 'PushScreen'
        scripts/frontend.lua(753,1) in function 'ShowScreen'
        scripts/frontend.lua(808,1) in function 'DisplayError'
        scripts/mainfunctions.lua(949,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/ui.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/ui.xml'.
[00:00:02]: images/ui.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/imagebutton.lua(53,1) in function 'OnLoseFocus'
        scripts/widgets/widget.lua(470,1) in function 'ClearFocus'
        scripts/widgets/widget.lua(474,1) in function 'ClearFocus'
        scripts/widgets/widget.lua(474,1) in function 'ClearFocus'
        scripts/widgets/widget.lua(519,1) in function 'SetFocus'
        scripts/frontend.lua(578,1) in function 'Update'
        scripts/frontend.lua(642,1) in function 'PushScreen'
        scripts/frontend.lua(753,1) in function 'ShowScreen'
        scripts/frontend.lua(808,1) in function 'DisplayError'
        scripts/mainfunctions.lua(949,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: WARNING! Invalid resource handle for atlas 'images/bg_rog_portal.xml', did you remember to load the asset?
[00:00:02]: Looking for default texture '(null)' from atlas 'images/bg_rog_portal.xml'.
[00:00:02]: images/bg_rog_portal.xml
LUA ERROR stack traceback:
        scripts/widgets/image.lua(30,1) in function 'SetTexture'
        scripts/widgets/image.lua(11,1) in function '_ctor'
        scripts/class.lua(181,1) in function 'Image'
        scripts/widgets/loadingwidget.lua(30,1) in function 'KeepAlive'
        scripts/widgets/loadingwidget.lua(99,1) in function 'OnUpdate'
        scripts/frontend.lua(594,1) in function 'Update'
        scripts/frontend.lua(642,1) in function 'PushScreen'
        scripts/frontend.lua(753,1) in function 'ShowScreen'
        scripts/frontend.lua(808,1) in function 'DisplayError'
        scripts/mainfunctions.lua(949,1) in function 'DisplayError'
        scripts/mainfunctions.lua(781,1) in function 'Check_Mods'
        scripts/mainfunctions.lua(766,1) in function 'CheckControllers'
        scripts/mainfunctions.lua(692,1)
[00:00:02]: Reset() returning
[00:00:03]: QueryServerComplete no callback
[00:00:04]: [200] Account Communication Success (6)
[00:00:04]: [ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_TF-4y7BC
[00:00:04]: Starting Dedicated Server Game
[00:00:04]: Network tick rate: U=60(0), D=0
[00:00:04]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:00:04]: Setting up socket descriptors
[00:00:04]: Online Server Started on port: 10999
[00:00:04]: Overriding server save slot to: 5
[00:00:04]: Collecting garbage...
[00:00:04]: lua_gc took 0.00 seconds
[00:00:04]: ~NetworkLuaProxy()
[00:00:04]: ~SimLuaProxy()
[00:00:04]: lua_close took 0.01 seconds
[00:00:04]: ReleaseAll
[00:00:04]: ReleaseAll Finished
[00:00:04]: cGame::StartPlaying
[00:00:04]: LOADING LUA
[00:00:04]: DoLuaFile scripts/main.lua
[00:00:04]: DoLuaFile loading buffer scripts/main.lua
[00:00:04]: DoLuaFile Error running lua file scripts/main.lua:
(null)
[00:00:04]: Error loading main.lua
[00:00:04]: Failed mSimulation->Reset()
[00:00:04]: Error during game restart!
[00:00:41]: HttpClient::ClientThread::Main() complete
[00:00:41]: Collecting garbage...
[00:00:41]: lua_gc took 0.00 seconds
[00:00:41]: ~NetworkLuaProxy()
[00:00:41]: ~SimLuaProxy()
[00:00:41]: lua_close took 0.00 seconds
[00:00:41]: HttpClient::ClientThread::Main() complete
[00:00:41]: HttpClient::ClientThread::Main() complete
[00:00:41]: HttpClient::ClientThread::Main() complete
[00:00:41]: HttpClient::ClientThread::Main() complete
[00:00:41]: Shutting down

Link to comment
Share on other sites

I read it might have something to do with my modoverides.lua but it is empty assuming it can be empty.

try removing modoverides.lua, i dont have that file. i guess it has to have stuff in it, if it's there.

 

the mod works, if u host it with your gameclient?

Edited by Seiai
Link to comment
Share on other sites

try removing modoverides.lua, i dont have that file. i guess it has to have stuff in it, if it's there.

 

the mod works, if u host it with your gameclient?

 

I believe you are right, the mod does not load now but there are no severe errors. I assumed it was not the modoverides because i was loading other mods with that as well. I only force enable the mod I wanted to test with. Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...