Project Zomboid

Project Zomboid

[b42]Efficiency Skill Mod
 This topic has been pinned, so it's probably important
GersonRess  [developer] Dec 20, 2024 @ 2:16pm
BUG REPORTS
Report your Bugs here, and if possible send the log
< >
Showing 1-15 of 41 comments
Wile E Coyote Dec 21, 2024 @ 4:23am 
Here are the two errors I got, first is I think when loading in, second is when I transferred a measuring tape in and our of a trailer to test function of something that should use the mod.
Wile E Coyote Dec 21, 2024 @ 4:23am 
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@bc8a8401
function: efficiencyDefaultXP -- file: EfficiencyDefaultXP.lua line # 58 | MOD: Efficiency Skill Mod B42

ERROR: General f:0, t:1734783369823> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
Stack trace:
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:81)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:364)
zombie.gameStates.GameLoadingState.exit(GameLoadingState.java:488)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:105)
zombie.GameWindow.logic(GameWindow.java:372)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
zombie.GameWindow.frameStep(GameWindow.java:917)
zombie.GameWindow.run_ez(GameWindow.java:810)
zombie.GameWindow.mainThread(GameWindow.java:610)
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
zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:16040)
zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:15894)
... 24 more
Wile E Coyote Dec 21, 2024 @ 4:23am 
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@bc8a8401
function: perform -- file: TimedActionXP.lua line # 44 | MOD: Efficiency Skill Mod B42

ERROR: General f:1249, t:1734783396475> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
Stack trace:
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10357)
zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9995)
zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2200)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.characters.IsoPlayer.update(IsoPlayer.java:2180)
zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:155)
zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3058)
zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:195)
zombie.iso.IsoCell.updateInternal(IsoCell.java:5955)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.iso.IsoCell.update(IsoCell.java:5897)
zombie.iso.IsoWorld.updateWorld(IsoWorld.java:3893)
zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3993)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102)
zombie.iso.IsoWorld.update(IsoWorld.java:3917)
zombie.gameStates.IngameState.updateInternal(IngameState.java:1750)
zombie.gameStates.IngameState.update(IngameState.java:1443)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
zombie.GameWindow.logic(GameWindow.java:372)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
zombie.GameWindow.frameStep(GameWindow.java:917)
zombie.GameWindow.run_ez(GameWindow.java:810)
zombie.GameWindow.mainThread(GameWindow.java:610)
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
zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:16040)
zombie.characters.IsoGameCharacter$XP.AddXP(IsoGameCharacter.java:15894)
... 40 more
SerichVan Dec 21, 2024 @ 6:45am 
Russian translation is just showing you question marks instead of text
God bless Tikhon Dec 21, 2024 @ 6:55am 
Мод конфликтует с модом на музыку "lifesyle чето там". Не то чтобы конфликтует, просто не дает до конца отыграть песню. И из-за этого не получается выучить новые песни, хотелось бы чтобы это исправили:greedyHeart:
GersonRess  [developer] Dec 21, 2024 @ 7:24am 
@Wile E Coyote Thank you very much man, I'm trying to fix your problem now
GersonRess  [developer] Dec 21, 2024 @ 7:27am 
@SerichVan Thanks for the info. I'm experiencing problems due to text encoding in translations. In build 41, Russian was encoded in 1251, Turkish in 1254, Spanish in 1252, etc. However, I assumed that all translations had shifted to UTF-8. Now I suspect that Russian may not.
[VoC]Geromet Dec 21, 2024 @ 8:13am 
It breaks if you untick sandbox option -> Character -> XP Multipliers -> Use Global Multiplier. You can probably fix it by adding the efficiency skill, with an initial level to those options. Alternatively you can use notepad++ search in files to find the solution I found, but now I've found the actual problem, changing your code to use the new multiplier options seems like the better option.
Wile E Coyote Dec 21, 2024 @ 8:51am 
Ahhhhh, that makes sense now. That's what I changed. When I created a new map to get the log I just used standard apocalypse. So no problem. But my main save has nimble and physical exp rates tripled.
[VoC]Geromet Dec 21, 2024 @ 9:07am 
I used it to make fitness and strength faster.
Tip for me : don't insult people. Tip for people : Read better and don't repeat the same questions. Tip for dev : make a github to track changes, and allow easier discussions and sharing of logs.
[VoC]Geromet Dec 21, 2024 @ 9:17am 
In media\lua\client\OptionScreens\SandboxOptions.lua add "Efficiency" to local _multipliers
table.insert(_multiplers, "Efficiency")

In media\lua\client\OptionScreens\ServerSettingsScreen.lua check around line 5055
{ name = "MultiplierConfig.Efficiency" },

In media\lua\shared\Sandbox\Survival.lua check around line 140 and add initial value
XPMultiplierEfficiency = 1,

In media\lua\shared\Translate\..\Sandbox_...txt add text.
Sandbox_Efficiency = "Efficiency Multiplier",
Sandbox_Efficiency_tooltip = "Rate at which Efficiency skill levels up.",

I guess it would probably be best if some library could cleanly implement functions for modders to do this. The original functions depend on the order of how the skills are added to the variables. For now, I guess just adding them to the end (instead of alphabetically correctly).

Last edited by [VoC]Geromet; Dec 21, 2024 @ 9:40am
GersonRess  [developer] Dec 21, 2024 @ 9:53am 
@Geromet Dude, you were being rude. I don't like toxic people. I'm sorry I was a bit too harsh when I insulted you, but please understand, it's not normal to approach strangers with that attitude. I try to be kind and fix any problem I can. But understand, I don't know much about the game's code. I uploaded this mod initially for the people on my private server to install it easily. I wasn't expecting it to become popular. I don't know much about maintaining and updating a project, so I'm learning through trial and error now. I really appreciate when people help me with their feedback, and I try to fix things for them. But please remember, it's not my obligation to update this mod as I'm not working for anyone, and I don't forbid anyone from uploading their own version of my mod if there is any adjustment, fix or patch they want to do. And again, sorry, it won't happen again with you or anyone.
[VoC]Geromet Dec 21, 2024 @ 10:00am 
@Gerson Man, yes I was, I'm sorry. I don't like toxic people either and just had a triple combo of them in 48 hour. No hard feelings here and same. I know it's not normal. I am autistic, and felt bad because of the repeated "what other mods / send full log", guess the full log might have helped, but character limit prevented that. I don't know much either, but I know I am thankful for you putting in the effort to create this mod :) Interesting backstory. I think putting your stuff on a github repo might really help. It's definitely not your obligation to sacrifice your time for this. Sorry if I gave you that idea. I guess at that point I had already spent multiple hours checking out the problem, and felt like you were one of those guys who just waits for someone else to come fix it and then delete all the comments xD. Sorry for the report. Hope steam doesn't take that too seriously. I didn't put much effort into them anyway. Hope you have a good day.
[VoC]Geromet Dec 21, 2024 @ 10:02am 
I also sent you a friend request at the beginning, in hopes of getting a chat / discord call to fix the problem easier xD
[VoC]Geromet Dec 21, 2024 @ 10:25am 
I applied my theoretical fixes and I still get errors. ``se.krka.kahlua.vm.KahluaException: unknown sandbox option "MultiplierConfig.Efficiency'`` ``ServerSettingsScreen.lua line # 5216`` This eventually leads me to ``getSandboxOptions():getOptionByIndex`` But I can find no other references to this, and I haven't been able to decompile the Java, so I don't know if I can figure this out further
< >
Showing 1-15 of 41 comments
Per page: 1530 50