penguin0616 / Insight

Mod made for Don't Starve and Don't Starve Together.
Other
46 stars 14 forks source link

Mod crashes the game if Krampus is disabled #61

Open bsun0000 opened 5 months ago

bsun0000 commented 5 months ago

As the title says, if you disable the Krampus (World settings), after a while (collecting items), Insight will crash the game with this error message: error("[Insight]: Kramped stats missing after initialization?") Originating from: %insight%/scripts/descriptors/kramped.lua local function GetPlayerNaughtiness(player) With the mod's config untouched (Player Naughtiness shown by default)

penguin0616 commented 5 months ago

I need your full crash log.

bsun0000 commented 5 months ago

Don't Starve (single, not Together), GOG All 3 DLC, All mods disabled except Insight (force enabled via config). Started new game, all settings default except Krampus was set to None.

Crash after chopping a tree and collecting a few items:

pastebin full: https://pastebin.com/J5AZeHKS truncated:

G:/Games/DontStarve/data/scripts/mainfunctions.lua:971 in () ? (Lua) <948-1005> error = .../workshop-2081254154/scripts/descriptors/kramped.lua:32: [Insight]: Kramped stats missing after initialization? LUA ERROR stack traceback: =[C]:-1 in (global) error (C) <-1--1> G:/Games/DontStarve/data/../mods/workshop-2081254154/scripts/descriptors/kramped.lua:32 in (upvalue) GetPlayerNaughtiness (Lua) <22-51> G:/Games/DontStarve/data/../mods/workshop-2081254154/scripts/descriptors/kramped.lua:124 in (field) Describe (Lua) <115-136> G:/Games/DontStarve/data/../mods/workshop-2081254154/modmain.lua:1463 in (global) GetNaughtiness (Lua) <1460-1468> G:/Games/DontStarve/data/../mods/workshop-2081254154/scripts/descriptors/health.lua:85 in (field) Describe (Lua) <51-116> G:/Games/DontStarve/data/../mods/workshop-2081254154/modmain.lua:1121 in (upvalue) GetEntityInformation (Lua) <1077-1240> G:/Games/DontStarve/data/../mods/workshop-2081254154/modmain.lua:1281 in (upvalue) RequestEntityInformation (Lua) <1243-1336> G:/Games/DontStarve/data/../mods/workshop-2081254154/scripts/uicha [truncated] modnames = table: 1B61F7B0 modnamesstr = "Insight"