ArCraMiCia Posted February 6, 2015 Share Posted February 6, 2015 hey guys i just make one character mod that can eat nightmarefuel to gain permanent damage multiplierbut when i enable itwhen it come to start page it just not response and force to shutdown..... where crash?? i did'nt see itmy prefap function applyupgrades(inst)local max_upgrades = 999 local = math.min(inst.Soul, max_upgrades)inst.components.combat.damagemultiplier = math.ceil(0.7 + inst.upgrades * 0.1)inst.components.talker:Say("Soul_Collect : ".. (inst.Soul))endlocal function oneat(inst, food)if food and food.components.edible and food.components.edible.foodtype == FOODTYPE.NIGHTMAREFUEL then--give an upgrade!inst.Soul = inst.Soul + 1applyupgrades(inst) inst.SoundEmitter:PlaySound("dontstarve/characters/wx78/levelup")endendlocal function onpreload(inst, data)if data ~= nil and data.Soul ~= nil theninst.Soul = data.Soulapplyupgrades(inst)--re-set these from the save data, because of load-order clipping issues endendnext local master_postinit = function(inst) inst.Soul = 0inst.components.eater:SetCanEatNightmarefuel()inst.components.eater:SetOnEatFn(oneat)applyupgrades(inst)-- Stats inst.components.health:SetMaxHealth(150)inst.components.hunger:SetMax(150)inst.components.sanity:SetMax(200)inst.OnSave = onsaveinst.OnPreLoad = onpreload what did i miss?? Link to comment https://forums.kleientertainment.com/forums/topic/50593-character-creation-crash-problem/ Share on other sites More sharing options...
Jjmarco Posted February 6, 2015 Share Posted February 6, 2015 @ArCraMiCia, could you post your log.txt (Documents/Klei/DoNotStarveTogether/log.txt)?Preferably just after the crash occurs. Link to comment https://forums.kleientertainment.com/forums/topic/50593-character-creation-crash-problem/#findComment-610426 Share on other sites More sharing options...
ArCraMiCia Posted February 8, 2015 Author Share Posted February 8, 2015 there is here all along!!!!.....................never opening document x_x ok now i got it Loading mod: NMD2 (Noel DST) Version:1.1.2 [00:00:45]: Mod: NMD2 (Noel DST) Loading modworldgenmain.lua [00:00:45]: Mod: NMD2 (Noel DST) Mod had no modworldgenmain.lua. Skipping. [00:00:45]: Mod: NMD2 (Noel DST) Loading modmain.lua [00:00:45]: Warning: Mod Character noel does not currently specify a gender. Please update the call to AddModCharacter to include a gender. "FEMALE", "MALE", "ROBOT", or "NEUTRAL", or "PLURAL" [00:00:46]: LOADING LUA SUCCESS[00:00:46]: PlayerDeaths loaded morgue 1352 [00:00:46]: loaded profile [00:00:46]: bloom_enabled false [00:00:46]: loaded saveindex [00:00:46]: OnFilesLoaded() [00:00:46]: OnUpdatePurchaseStateComplete [00:00:46]: Unload BE [00:00:46]: Unload BE done [00:00:49]: Mod: NMD2 (Noel DST) Registering prefabs [00:00:49]: Mod: NMD2 (Noel DST) Registering prefab file: prefabs/noel,nightmarefuel, [00:00:49]: error calling LoadPrefabFile in mod NMD2 (Noel DST): [string "scripts/mainfunctions.lua"]:91: Error loading file prefabs/noel,nightmarefuel, no file '../mods/NMD2/scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scriptlibs/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)LUA ERROR stack traceback: =[C] in function 'assert' scripts/mainfunctions.lua(91,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(165,1) scripts/mods.lua(460,1) in function 'RegisterPrefabs' scripts/gamelogic.lua(158,1) in function 'LoadAssets' scripts/gamelogic.lua(961,1) in function 'DoResetAction' scripts/gamelogic.lua(979,1) in function 'complete_callback' scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState' scripts/gamelogic.lua(984,1)... =[C] in function 'GetPersistentString' scripts/saveindex.lua(90,1) in function 'Load' scripts/gamelogic.lua(1000,1) in function 'callback' scripts/playerprofile.lua(671,1) in function 'Set' scripts/playerprofile.lua(553,1) =[C] in function 'GetPersistentString' scripts/playerprofile.lua(551,1) in function 'Load' scripts/gamelogic.lua(999,1) in main chunk =[C] in function 'require' scripts/mainfunctions.lua(681,1) [00:00:49]: Disabling NMD2 (Noel DST) because it had an error. [00:00:49]: [string "scripts/mainfunctions.lua"]:91: Error loading file prefabs/noel,nightmarefuel, no file '../mods/NMD2/scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scriptlibs/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)no file 'scripts/prefabs/noel,nightmarefuel,.lua' (checked with custom loader)LUA ERROR stack traceback: =[C] in function 'assert' scripts/mainfunctions.lua(91,1) =(tail call) ? =[C] in function 'xpcall' scripts/mods.lua(165,1) scripts/mods.lua(460,1) in function 'RegisterPrefabs' scripts/gamelogic.lua(158,1) in function 'LoadAssets' scripts/gamelogic.lua(961,1) in function 'DoResetAction' scripts/gamelogic.lua(979,1) in function 'complete_callback' scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState' scripts/gamelogic.lua(984,1)... =[C] in function 'GetPersistentString' scripts/saveindex.lua(90,1) in function 'Load' scripts/gamelogic.lua(1000,1) in function 'callback' scripts/playerprofile.lua(671,1) in function 'Set' scripts/playerprofile.lua(553,1) =[C] in function 'GetPersistentString' scripts/playerprofile.lua(551,1) in function 'Load' scripts/gamelogic.lua(999,1) in main chunk =[C] in function 'require' scripts/mainfunctions.lua(681,1)[00:00:49]: SCRIPT ERROR! Showing error screen [00:00:49]: FMOD Error: Can't play event dontstarve/HUD/click_mouseover: An invalid object handle was used. [00:00:49]: Mod: NMD2 (Noel DST) Registering default mod prefab [00:00:49]: Load FE [00:00:50]: Load FE: done [00:00:50]: platform_motd table: 0D05D0B0 [00:00:50]: SimLuaProxy::QueryServer()[00:00:50]: update_date table: 0D05DD08 [00:00:50]: SimLuaProxy::QueryServer()[00:00:50]: ModIndex: Load sequence finished successfully. [00:00:50]: Reset() returning[00:00:51]: platform_motd table: 0D04E8A8 [00:00:51]: update_date table: 0D04F870 [00:00:59]: unloading prefabs for mod MOD_NMD2 [00:00:59]: Collecting garbage...[00:00:59]: lua_gc took 0.02 seconds[00:00:59]: ~NetworkLuaProxy()[00:00:59]: ~SimLuaProxy()[00:00:59]: lua_close took 0.02 seconds[00:00:59]: HttpClient::ClientThread::Main() complete[00:00:59]: HttpClient::ClientThread::Main() complete[00:00:59]: HttpClient::ClientThread::Main() complete[00:00:59]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. and shut down command Link to comment https://forums.kleientertainment.com/forums/topic/50593-character-creation-crash-problem/#findComment-611113 Share on other sites More sharing options...
rezecib Posted February 8, 2015 Share Posted February 8, 2015 [string "scripts/mainfunctions.lua"]:91: Error loading file prefabs/noel,nightmarefuel, Are those commas supposed to be there?? Link to comment https://forums.kleientertainment.com/forums/topic/50593-character-creation-crash-problem/#findComment-611183 Share on other sites More sharing options...
ArCraMiCia Posted February 9, 2015 Author Share Posted February 9, 2015 nah............... i dont know it just like the game system cant find my character's scripts because even i just set my character's scripts like willson it still crash................ Link to comment https://forums.kleientertainment.com/forums/topic/50593-character-creation-crash-problem/#findComment-611384 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now