Project Zomboid

Project Zomboid

More Traits
Sc0ut Jan 26 @ 8:43am
2
Error when trying to light campfire - prevents being able to light campfire at all
I'm tryinig to light a campfire and it's giving me this error


I'm gonna freeze to death :steamsad:





`function: complete -- file: ISLightFromLiterature.lua line # 70 | MOD: More Traits
java.lang.RuntimeException: __mul not defined for operands in complete
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:659)
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.complete(LuaTimedActionNew.java:153)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10413)
at zombie.core.profiling.PerformanceProbes$Invokable$Params1$Probe_Cached.invoke(PerformanceProbes.java:144)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10048)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2200)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2180)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3058)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:195)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5955)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.iso.IsoCell.update(IsoCell.java:5897)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3954)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4054)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.iso.IsoWorld.update(IsoWorld.java:3978)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1750)
at zombie.gameStates.IngameState.update(IngameState.java:1443)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:377)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:921)
at zombie.GameWindow.run_ez(GameWindow.java:814)
at zombie.GameWindow.mainThread(GameWindow.java:615)
at java.base/java.lang.Thread.run(Unknown Source)
`
< >
Showing 1-15 of 34 comments
Doomeris Jan 28 @ 8:44am 
yeah i got the same issue
oanthero Jan 29 @ 11:33am 
I can only light the campfire using a notched plank. Any other attempts with matches or lighters present the same error as in the post above.
Nie Jan 30 @ 9:33pm 
same here
Same here, guess ill have a stinky base
Jenek Feb 1 @ 7:33pm 
I got the same issue.
Serra Feb 1 @ 7:52pm 
Yep have the same issue
Pych Feb 2 @ 8:26am 
2
2
Hello, a comment from Mr.Exodus helped me fix the issue. Here it is:

Originally posted by Mr.Exodus:

Mr.Exodus 25 Jan @ 11:14pm
Hi Web developer here. I have very little experience with Lua, but i have manage to fix the Campfire error in the code. (It's working for me now).

MAKE THESE CHANGES ON YOUR OWN RISK:

Go to where the file path with the mods files, my path is this:
D:\SteamLibrary\steamapps\workshop\content\108600\1299328280\mods\More Traits\42\media\lua\client\Camping\TimedActions

1. Open the file "ISLightFromLiterature" in a code editor of your choice.
2. Go to line 70.
3. Change this line of code:

local fuelAmt = self.fuelAmt * 60

Change it to:

local fuelAmt = tonumber(self.fuelAmt or 0) * 60

4. then go to line 97.
5. Change this line of code:

o.fuelAmt = fuelAmt;

Change it to:

o.fuelAmt = fuelAmt or 0

6. Save your file, and go and enjoy your campfire.

Thanks to the mod creator, for an awesome mod. Have a nice weekend everyone<3
HypnoToadTrance  [developer] Feb 2 @ 11:24pm 
Hey sorry i've been kinda preoccupied doing other things. For now, the fix mentioned by Pych (thank you so much) will suffice until the code can be modified and uploaded.
`Callframe at: setMutualExclusive
function: initToadTraits -- file: MoreTraitsMainCreationMethods.lua line # 386 | MOD: More Traits
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor91.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.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
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.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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.GameWindow.enter(GameWindow.java:903)
at zombie.GameWindow.mainThread(GameWindow.java:606)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot read field "MutuallyExclusive" because the return value of "java.util.LinkedHashMap.get(Object)" is null
at zombie.characters.traits.TraitFactory.setMutualExclusive(TraitFactory.java:19)
... 18 more
`
Originally posted by Pych:
Hello, a comment from Mr.Exodus helped me fix the issue. Here it is:

Originally posted by Mr.Exodus:

Mr.Exodus 25 Jan @ 11:14pm
Hi Web developer here. I have very little experience with Lua, but i have manage to fix the Campfire error in the code. (It's working for me now).

MAKE THESE CHANGES ON YOUR OWN RISK:

Go to where the file path with the mods files, my path is this:
D:\SteamLibrary\steamapps\workshop\content\108600\1299328280\mods\More Traits\42\media\lua\client\Camping\TimedActions

1. Open the file "ISLightFromLiterature" in a code editor of your choice.
2. Go to line 70.
3. Change this line of code:

local fuelAmt = self.fuelAmt * 60

Change it to:

local fuelAmt = tonumber(self.fuelAmt or 0) * 60

4. then go to line 97.
5. Change this line of code:

o.fuelAmt = fuelAmt;

Change it to:

o.fuelAmt = fuelAmt or 0

6. Save your file, and go and enjoy your campfire.

Thanks to the mod creator, for an awesome mod. Have a nice weekend everyone<3

UPDATE:
This workaround is not valid anymore. The basecode has changed:
- Line 70 is different.
- There isn't any line 97 (file ends at 94).
- I'm getting the same error.:steamsad:
Wraith Feb 8 @ 10:40pm 
also wont let me grab my eggs smh
Originally posted by oanthero:
I can only light the campfire using a notched plank. Any other attempts with matches or lighters present the same error as in the post above.
I can confirm that the only way to light fire is with a notched plank w/ branch.
Originally posted by Twinfactor:
Originally posted by Pych:
Hello, a comment from Mr.Exodus helped me fix the issue. Here it is:

UPDATE:
This workaround is not valid anymore. The basecode has changed:
- Line 70 is different.
- There isn't any line 97 (file ends at 94).
- I'm getting the same error.:steamsad:

Just a find function below and change

o.fuelAmt = fuelAmt;
to
o.fuelAmt = fuelAmt or 0;

function ISLightFromLiterature:new(character, item, lighter, campfire, fuelAmt) local o = ISBaseTimedAction.new(self, character) o.campfire = campfire; o.item = item; o.lighter = lighter; o.fuelAmt = fuelAmt; o.maxTime = o:getDuration(); return o; end
mac821 Feb 13 @ 2:52pm 
This still works, just look for the same code one different lines

Originally posted by Mr.Exodus:

Mr.Exodus 25 Jan @ 11:14pm
Hi Web developer here. I have very little experience with Lua, but i have manage to fix the Campfire error in the code. (It's working for me now).

MAKE THESE CHANGES ON YOUR OWN RISK:

Go to where the file path with the mods files, my path is this:
D:\SteamLibrary\steamapps\workshop\content\108600\1299328280\mods\More Traits\42\media\lua\client\Camping\TimedActions

1. Open the file "ISLightFromLiterature" in a code editor of your choice.
2. Go to line 70.
3. Change this line of code:

local fuelAmt = self.fuelAmt * 60

Change it to:

local fuelAmt = tonumber(self.fuelAmt or 0) * 60

4. then go to line 97.
5. Change this line of code:

o.fuelAmt = fuelAmt;

Change it to:

o.fuelAmt = fuelAmt or 0

6. Save your file, and go and enjoy your campfire.

Thanks to the mod creator, for an awesome mod. Have a nice weekend everyone<3
[/quote]
`Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@93fa9c01
function: progun -- file: MoreTraits.lua line # 1998 | MOD: More Traits
java.lang.RuntimeException: No implementation found
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:112)
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.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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:364)
at zombie.ai.states.SwipeStatePlayer.enter(SwipeStatePlayer.java:243)
at zombie.ai.StateMachine.stateEnter(StateMachine.java:264)
at zombie.ai.StateMachine.ensureSubstateActive(StateMachine.java:146)
at zombie.ai.StateMachine.lambda$changeState$1(StateMachine.java:74)
at zombie.util.lambda.Consumers$Params1$CallbackStackItem.accept(Consumers.java:39)
at zombie.util.list.PZArrayUtil.forEach(PZArrayUtil.java:974)
at zombie.util.list.PZArrayUtil.forEach(PZArrayUtil.java:1000)
at zombie.ai.StateMachine.changeState(StateMachine.java:70)
at zombie.ai.StateMachine.changeState(StateMachine.java:53)
at zombie.characters.IsoGameCharacter.actionStateChanged(IsoGameCharacter.java:14743)
at zombie.characters.IsoPlayer.actionStateChanged(IsoPlayer.java:9932)
at zombie.characters.action.ActionContext.invokeAnyStateChangedEvents(ActionContext.java:595)
at zombie.characters.action.ActionContext.postUpdateInternal(ActionContext.java:89)
at zombie.core.profiling.PerformanceProbes$Invokable$Params1$Probe_Cached.invoke(PerformanceProbes.java:144)
at zombie.characters.action.ActionContext.update(ActionContext.java:68)
at zombie.characters.IsoGameCharacter.postUpdateInternal(IsoGameCharacter.java:12569)
at zombie.core.profiling.PerformanceProbes$Invokable$Params1$Probe_Cached.invoke(PerformanceProbes.java:144)
at zombie.characters.IsoGameCharacter.postupdate(IsoGameCharacter.java:12529)
at zombie.characters.IsoPlayer.postupdateInternal(IsoPlayer.java:4330)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.characters.IsoPlayer.postupdate(IsoPlayer.java:4323)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.postupdate(MovingObjectUpdateSchedulerUpdateBucket.java:89)
at zombie.MovingObjectUpdateScheduler.postupdate(MovingObjectUpdateScheduler.java:180)
at zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:195)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3965)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4055)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
at zombie.iso.IsoWorld.update(IsoWorld.java:3979)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1799)
at zombie.gameStates.IngameState.update(IngameState.java:1492)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:377)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:909)
at zombie.GameWindow.run_ez(GameWindow.java:802)
at zombie.GameWindow.mainThread(GameWindow.java:600)
at java.base/java.lang.Thread.run(Unknown Source)
`

I got to problem with this line code, can u help me with this?
< >
Showing 1-15 of 34 comments
Per page: 1530 50