Jump to content

DST Custom Character Crash After Choosing It


Fredson

Recommended Posts

Hello!

I've made a dont starve character compatible with dst, it worked fine without his extra items, but when addinf the extra items, after choosing it crashes and shows this log:


Disabling Mabel Pines because it had an error.
[string "../mods/Mabel Pines/modmain.lua"]:53: attempt to index local 'player' (a nil value)
LUA ERROR stack traceback:
        ../mods/Mabel Pines/modmain.lua(53,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(105,1)
        scripts/mods.lua(547,1) in function 'SimPostInit'
        scripts/gamelogic.lua(881,1) in function 'DoInitGame'
        scripts/gamelogic.lua(957,1) in function 'cb'
        scripts/saveindex.lua(415,1)
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(385,1) in function 'GetSaveDataFile'
        scripts/saveindex.lua(422,1) in function 'GetSaveData'
...
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(90,1) in function 'Load'
        scripts/gamelogic.lua(1135,1) in function 'callback'
        scripts/playerprofile.lua(645,1) in function 'Set'
        scripts/playerprofile.lua(528,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(526,1) in function 'Load'
        scripts/gamelogic.lua(1134,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(677,1)
SCRIPT ERROR! Showing error screen
1 uploads added to server. From server/007000A1BA1B2F0C
Telling Client our new session identifier: 007000A1BA1B2F0C
ModIndex: Load sequence finished successfully.
 
Reset() returning
QueryServerComplete no callback

This is in string 53 in modmain.lua 

52 function sSwitch(player)
53    if local.components.sweaterswitch then
54       local.components.sweaterswitch:RanSweater()
55    end
56 end

What is wrong with it ? is there a soilution ?

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