Project Zomboid

Project Zomboid

Skill Limiter
HerioJohnX 2023 年 6 月 30 日 上午 9:23
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> -----------------------------------------
< >
正在显示第 1 - 15 条,共 15 条留言
DevoTan 2023 年 10 月 4 日 上午 6:23 
Having this problem also when running a dedicated server.
DevoTan 2023 年 10 月 8 日 下午 3:47 
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  [开发者] 2023 年 12 月 7 日 上午 11:43 
Are you running any mods that add skills, or otherwise change skill-related things?
DevoTan 2023 年 12 月 7 日 下午 1:59 
Yes, MoreSmokes and MoreBrews.
Max  [开发者] 2023 年 12 月 7 日 下午 4:56 
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 2024 年 1 月 9 日 上午 3:55 
-----------------------------------------
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 2024 年 1 月 9 日 上午 3:56 
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  [开发者] 2024 年 1 月 9 日 上午 9:20 
Might be Dynamic Traits? Have you tested with *only* the Skill Limiter?
AstralSomnia 2024 年 1 月 9 日 上午 11:48 
I have not. Not sure if dynamic traits is safe to remove midsave.
AstralSomnia 2024 年 2 月 6 日 上午 12:29 
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  [开发者] 2024 年 2 月 6 日 上午 9:01 
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 2024 年 2 月 6 日 下午 1:59 
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  [开发者] 2024 年 2 月 27 日 上午 10:24 
This should hopefully be fixed in the latest update!
AstralSomnia 2024 年 2 月 27 日 上午 11:48 
My hero!
Max  [开发者] 2024 年 2 月 28 日 上午 6:16 
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).
< >
正在显示第 1 - 15 条,共 15 条留言
每页显示数: 1530 50