Jump to content

The game just crashes before loading leaving no log.


Recommended Posts

Hello! I'm new with Lua and DST stuff, however know how to dig into game's code. So I'm trying to make my first mod but after I press button 'Generate World' I'm thrown into a white background (that one BEFORE Loading... appears). I checked my code for several hours and found nothing. Also, as the world didn't even start generating I'm left with no log under Cluster folder. I put attached folder to Don't Starve Together/mods. Is something wrong with the code, structure, maybe my PC?

dso.zip

Link to comment
Share on other sites

I see in your folder that you don't have any anim file and that you also don't load one in the mod main even though you have an exported folder. Your prefab loads an anim file that is not there, that's probably why it's crashing. 

  • Like 1
Link to comment
Share on other sites

When starting the world with this mod, I get a server log with this error:

Spoiler

[string "../mods/test2/modmain.lua"]:24: attempt to index field 'WILSON' (a nil value)
LUA ERROR stack traceback:
        ../mods/test2/modmain.lua(24,1) in main chunk
        =[C] in function 'xpcall'
        scripts/util.lua(754,1) in function 'RunInEnvironment'
        scripts/mods.lua(557,1) in function '_InitializeModMain'
        ../mods/workshop-1378549454/scripts/backendmainloader.lua(23,1)
        =(tail call) ?
        ../mods/workshop-1378549454/modbackendmain.lua(97,1)
        =(tail call) ?
        ../mods/workshop-1378549454/modmain.lua(109,1) in function 'InitializeModMain'
        scripts/mods.lua(531,1) in function 'LoadMods'
        scripts/main.lua(340,1) in function 'ModSafeStartup'
        scripts/main.lua(441,1) in function 'callback'
        scripts/modindex.lua(103,1) in function 'BeginStartupSequence'
        scripts/main.lua(440,1) in function 'callback'
        scripts/modindex.lua(735,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(709,1) in function 'Load'
        scripts/main.lua(439,1) in main chunk
[00:00:02]: [string "scripts/mainfunctions.lua"]:1283: variable 'global_error_widget' is not declared
LUA ERROR stack traceback:
        =[C] in function '_error'
        ../mods/workshop-1378549454/gemscripts/tools/dynamictilemanager.lua(303,1) in function 'error'
        scripts/strict.lua(23,1)
        scripts/mainfunctions.lua(1283,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(709,1) in function 'Load'
        scripts/main.lua(439,1) in main chunk

 

I think this is because there is nor WILSON strings, as GENERIC comes from speech_wilson.lua.

So just delete the line with WILSON and it should work.

  • Like 1
  • Thanks 1
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...