Project Zomboid

Project Zomboid

Woodcutting Skill [B42]
Woodcutting Issues
Hey there, so I did resubscribe to the mod.

I have quite a bit of mods so I plan on troubleshooting a bit more when I get the chance, but here's the errors that I got. Let me know if any of these make sense.

It's weird, instead of woodcutting experience, I was getting Maintenance experience when chopping, so clearly it has to be another mod I have but I'm not sure what else would be interfering with it.

`Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@cbf3dbc1
function: perform -- file: ISChopTreeAction.lua line # 217 | MOD: Woodcutting Skill 42

`
`java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10485)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10122)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2206)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2185)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3058)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3965)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4077)
at zombie.iso.IsoWorld.update(IsoWorld.java:3995)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1811)
at zombie.gameStates.IngameState.update(IngameState.java:1507)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:388)
at zombie.GameWindow.frameStep(GameWindow.java:928)
at zombie.GameWindow.run_ez(GameWindow.java:821)
at zombie.GameWindow.mainThread(GameWindow.java:619)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.SandboxOptions$SandboxOption.asConfigOption()" because the return value of "zombie.SandboxOptions.getOptionByName(String)" is null
at zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:16264)
at zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:16143)
at zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:16097)
... 34 more
`
< >
Showing 1-8 of 8 comments
Monkey Magic  [developer] 5 Mar @ 4:12pm 
Welp, 217 - the line it's getting stuck on is the one responsible for awarding XP to Woodcutting, so it's definitely another mod that is the cause of the issue. You could try changing up the load order so Woodcutting Skill is prioritised (loaded last) over the others, but you're prolly better off removing mods until you find the one at fault.

Without a mod list, and the full error report can't really do much from this end.
Last edited by Monkey Magic; 5 Mar @ 4:13pm
No problem! I'm going to see if I can find the cause and post back when I get the chance if that's okay. Thanks for being patient with me :)
Lowadon 10 Mar @ 11:56am 
I ran into the same issue, and tried to fix it on my end.
What i could deduce is that for some reason the subfunction zombie.SandboxOptions.getOptionByName(String) returns null ONLY when on a savefile using a custom sandbox preset. I can call all other parts of that line just fine and get, from what i can tell, valid objects. As soon as AddXP() is called the function throws an error.

The interesting thing is that when using the debug mode to switch the Sandbox Preset back to Apocalypse this line of code works again. Can't figure out anyting else.
The only two mods loaded during testing were "Woodcutting" and "Bath Towels Overhaul". I only had "Bath Towels Overhaul" active because i suspected the Woodcutting json-ish Object not being initialized correctly and wanted to transform it into a sandbox settings category.
It might be an issue with the underlying code from The Indiestone. Might need a bugreport. I for one can't figure out anything else at this point.
I would be open to discuss this further if needed. I hope this helps.
Last edited by Lowadon; 10 Mar @ 11:58am
Lowadon 14 Mar @ 4:16am 
I could narrow down my findings again. The Error mentioned above occurs when the "Use Global Multiplier" under "Character" - "XP Multipliers" in the Sandbox Settings is turned off. I'll compare this mod with other mods to see if i can't find a fix for this issue.
Last edited by Lowadon; 14 Mar @ 4:17am
Jankin 15 Mar @ 3:27pm 
I can confirm the same as Lowadon
Lowadon 17 Mar @ 9:28am 
Adding a file sandbox-options.txt with the following code:
VERSION = 1, option MultiplierConfig.Woodcutting { type = double, min = 0.00, max = 1000.0, default = 1.0, page = Character, translation = Woodcutting_xpMult_char, }
to the mods/WoodcuttingSkill [B42]/42/media/ folder (like in the scavenging skill mod) fixes this issue for me, and also awards correct xp based on the multiplier.
I have discovered another issue while testing this fix though. I am not sure if i did anything wrong when calling
addXp(Perks.Woodcutting, xp)
(xp being any number or variable containing an int / float value), but this seems to always add 1.0 xp exactly which then gets multiplied by the new config multiplier.
An added bonus is that this new multiplier can be changed in the sandbox options and takes effect when the "Use Global Multiplier" option is turned off.
Last edited by Lowadon; 17 Mar @ 9:30am
Fylas 21 Mar @ 10:07am 
`attempted index: specialisations of non-table: null
function: initWoodcuttingSkillTraits -- file: WoodcuttingSkillTraits.lua line # 26 | MOD: Woodcutting Skill 42
java.lang.RuntimeException: attempted index: specialisations of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
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:72)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.GameWindow.enter(GameWindow.java:907)
at zombie.GameWindow.mainThread(GameWindow.java:610)
at java.base/java.lang.Thread.run(Unknown Source)
`


can someone explain to me what this means? :<
Lowadon 30 Mar @ 2:21am 
For some reason the Game seems to have a problem with "making" the Gardener Trait. Can you specify what you did to run into this issue, so that i might be able to reproduce it on my end?
< >
Showing 1-8 of 8 comments
Per page: 1530 50