Project Zomboid

Project Zomboid

Skill Limiter
HerioJohnX 30 Jun, 2023 @ 9:23am
Error when hosting server
Here is the information from the console.txt:

-----------------------------------------
function: getMaxSkill -- file: SkillLimiter.lua line # 132 | MOD: Skill Limiter
function: limitSkill -- file: SkillLimiter.lua line # 223 | MOD: Skill Limiter
function: check_table -- file: SkillLimiter.lua line # 271 | MOD: Skill Limiter

ERROR: General , 1688141840194> 225,403,556> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getXPBoostMap of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1688141840195> 225,403,556> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getXPBoostMap of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1688141840195> 225,403,557> -----------------------------------------
< >
Showing 1-15 of 15 comments
DevoTan 4 Oct, 2023 @ 6:23am 
Having this problem also when running a dedicated server.
DevoTan 8 Oct, 2023 @ 3:47pm 
Here's the logs from my server:
STACK TRACE
-----------------------------------------
function: getMaxSkill -- file: SkillLimiter.lua line # 132 | MOD: Skill Limiter
function: limitSkill -- file: SkillLimiter.lua line # 223 | MOD: Skill Limiter
function: check_table -- file: SkillLimiter.lua line # 271 | MOD: Skill Limiter
LOG : General , 1696805151921> 1,703,747,696> -----------------------------------------
STACK TRACE
-----------------------------------------
function: getMaxSkill -- file: SkillLimiter.lua line # 132 | MOD: Skill Limiter
function: limitSkill -- file: SkillLimiter.lua line # 223 | MOD: Skill Limiter
function: check_table -- file: SkillLimiter.lua line # 271 | MOD: Skill Limiter
ERROR: General , 1696805151921> 1,703,747,696> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getXPBoostMap of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1696805151921> 1,703,747,696> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getXPBoostMap of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.network.GameServer.main(GameServer.java:903)
Max  [developer] 7 Dec, 2023 @ 11:43am 
Are you running any mods that add skills, or otherwise change skill-related things?
DevoTan 7 Dec, 2023 @ 1:59pm 
Yes, MoreSmokes and MoreBrews.
Max  [developer] 7 Dec, 2023 @ 4:56pm 
Hm. I haven't encountered these errors in my own server / playtesting. You could try without those two mods, and see if the issue persists?
AstralSomnia 9 Jan, 2024 @ 3:55am 
-----------------------------------------
function: getMaxSkill -- file: SkillLimiter.lua line # 132 | MOD: Skill Limiter
function: limitSkill -- file: SkillLimiter.lua line # 223 | MOD: Skill Limiter
function: check_table -- file: SkillLimiter.lua line # 271 | MOD: Skill Limiter.
[08-01-24 20:22:24.910] LOG : General , 1704766944910> 12,518,949,763> -------------------------------------------------------------
attempted index: getXPBoostMap of non-table: null.
[08-01-24 20:22:24.910] LOG : General , 1704766944910> 12,518,949,763> -----------------------------------------
STACK TRACE
-----------------------------------------
function: getMaxSkill -- file: SkillLimiter.lua line # 132 | MOD: Skill Limiter
function: limitSkill -- file: SkillLimiter.lua line # 223 | MOD: Skill Limiter
function: check_table -- file: SkillLimiter.lua line # 271 | MOD: Skill Limiter.
[08-01-24 20:22:24.910] ERROR: General , 1704766944910> 12,518,949,763> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getXPBoostMap of non-table: null at KahluaThread.tableget line:1689..
[08-01-24 20:22:24.910] ERROR: General , 1704766944910> 12,518,949,763> DebugLogStream.printException> Stack trace:.
[08-01-24 20:22:24.911] LOG : General , 1704766944911> 12,518,949,764> -----------------------------------------
STACK TRACE
-----------------------------------------
AstralSomnia 9 Jan, 2024 @ 3:56am 
Getting these two errors spamming my logs. I've noticed some errors as well with the detection of when skills go over the cap.

I'm using Dynamic Traits, Lifestyles, Piano, and Locksmithing mods.
Max  [developer] 9 Jan, 2024 @ 9:20am 
Might be Dynamic Traits? Have you tested with *only* the Skill Limiter?
AstralSomnia 9 Jan, 2024 @ 11:48am 
I have not. Not sure if dynamic traits is safe to remove midsave.
AstralSomnia 6 Feb, 2024 @ 12:29am 
I removed this mod, and my server stopped getting pop-ins. The console was being spammed with those errors. Could be its not compatible with dynamic traits, but I haven't tested without.
Max  [developer] 6 Feb, 2024 @ 9:01am 
We don't use Dynamic Traits on our server (but we do use another 300 or so mods), so it's very likely related to that mod, yeah.
AstralSomnia 6 Feb, 2024 @ 1:59pm 
I'll be honest, I'm not a fan of dynamic traits. My server voted for it cuz it seemed cool, despite its issues during testing, but we've had so many issues ranging from instant fevers to unbalanced overdose moodles. It does a lot of cool things, like making wound infections actually deadly or curing depression traits with consistent use of pills, but the owner refuses to allow sandbox settings declaring her settings perfect and balanced (as long as you use hardcore vanilla settings). Plus, I can't even share feedback like how drunk levels go away way too fast.

Next season, I'll be removing dynamic traits, and will try this mod out again, I will report if I continue to get issues.
Max  [developer] 27 Feb, 2024 @ 10:24am 
This should hopefully be fixed in the latest update!
AstralSomnia 27 Feb, 2024 @ 11:48am 
My hero!
Max  [developer] 28 Feb, 2024 @ 6:16am 
Credit goes to "ladyinkateing" for reaching out on Discord and providing the fix - I just had to merge a line of code and publish an update. Without that, I *definitely* would have procrastinated this a fair bit longer most likely (got a lot of side projects going on in other modding scenes).
< >
Showing 1-15 of 15 comments
Per page: 1530 50