Project Zomboid

Project Zomboid

[b42]Efficiency Skill Mod
 此主题已被置顶,因此可能具有重要性
GersonRess  [开发者] 2024 年 12 月 20 日 下午 2:16
BUG REPORTS
Report your Bugs here, and if possible send the log
< >
正在显示第 1 - 15 条,共 45 条留言
Wile E Coyote 2024 年 12 月 21 日 上午 4:23 
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 2024 年 12 月 21 日 上午 4:23 
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 2024 年 12 月 21 日 上午 4:23 
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 2024 年 12 月 21 日 上午 6:45 
Russian translation is just showing you question marks instead of text
God bless Tikhon 2024 年 12 月 21 日 上午 6:55 
Мод конфликтует с модом на музыку "lifesyle чето там". Не то чтобы конфликтует, просто не дает до конца отыграть песню. И из-за этого не получается выучить новые песни, хотелось бы чтобы это исправили:greedyHeart:
GersonRess  [开发者] 2024 年 12 月 21 日 上午 7:24 
@Wile E Coyote Thank you very much man, I'm trying to fix your problem now
GersonRess  [开发者] 2024 年 12 月 21 日 上午 7:27 
@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 2024 年 12 月 21 日 上午 8:13 
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 2024 年 12 月 21 日 上午 8:51 
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 2024 年 12 月 21 日 上午 9:07 
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 2024 年 12 月 21 日 上午 9:17 
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).

最后由 [VoC]Geromet 编辑于; 2024 年 12 月 21 日 上午 9:40
GersonRess  [开发者] 2024 年 12 月 21 日 上午 9:53 
@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 2024 年 12 月 21 日 上午 10:00 
@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 2024 年 12 月 21 日 上午 10:02 
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 2024 年 12 月 21 日 上午 10:25 
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
< >
正在显示第 1 - 15 条,共 45 条留言
每页显示数: 1530 50