Project Zomboid

Project Zomboid

FuelAPI
UnCheat 25. dec. 2021 kl. 6:01
Errors
STACK TRACE
-----------------------------------------
Callframe at: getFirstTypeEvalRecurse
function: equip -- file: ISWorldObjectContextMenu.lua line # 3829
function: onBurnCorpse -- file: ISWorldObjectContextMenu.lua line # 96
function: onMouseUp -- file: ISContextMenu.lua line # 90

ERROR: General , 1640433410030> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor1466.invoke.
ERROR: General , 1640433410031> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor1466.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:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
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.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
at zombie.ui.UIManager.update(UIManager.java:808)
at zombie.GameWindow.logic(GameWindow.java:253)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:745)
at zombie.GameWindow.run_ez(GameWindow.java:661)
at zombie.GameWindow.mainThread(GameWindow.java:475)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "String.indexOf(int)" because "<parameter1>" is null
at zombie.inventory.ItemContainer.compareType(ItemContainer.java:1340)
at zombie.inventory.ItemContainer$TypeEvalPredicate.test(ItemContainer.java:1377)
at zombie.inventory.ItemContainer$TypeEvalPredicate.test(ItemContainer.java:1362)
at zombie.inventory.ItemContainer.getFirstRecurse(ItemContainer.java:1454)
at zombie.inventory.ItemContainer.getFirstTypeEvalRecurse(ItemContainer.java:1854)
... 20 more
< >
Viser 1-15 af 16 kommentarer
UnCheat 25. dec. 2021 kl. 6:03 
Or may be this one:
STACK TRACE
-----------------------------------------
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@fba06e31
function: isValid -- file: ISBurnCorpseAction.lua line # 15

ERROR: General , 1640433382373> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method).
ERROR: General , 1640433382373> DebugLogStream.printException> Stack trace:
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:198)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.valid(LuaTimedActionNew.java:75)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:9689)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9441)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1874)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:1858)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2929)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5718)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoCell.update(IsoCell.java:5664)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3334)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoWorld.update(IsoWorld.java:3262)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1666)
at zombie.gameStates.IngameState.update(IngameState.java:1367)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:289)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:745)
at zombie.GameWindow.run_ez(GameWindow.java:661)
at zombie.GameWindow.mainThread(GameWindow.java:475)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "<parameter1>" is null
at zombie.inventory.ItemContainer.contains(ItemContainer.java:703)
at zombie.inventory.ItemContainer.contains(ItemContainer.java:672)
at zombie.inventory.ItemContainer.contains(ItemContainer.java:801)
... 62 more
LOG : General , 1640433382384> bugged action, cleared queue zombie.characters.CharacterTimedActions.LuaTimedActionNew@38e3d5c0
KONIJIMA  [udvikler] 12. jan. 2022 kl. 18:50 
@UnCheat sorry I didn't reply before do you still get this error with recent update?
UnCheat 13. jan. 2022 kl. 10:33 
Nope
Jowenbra 17. jan. 2022 kl. 17:57 
No error but I think I've found a bug. I was filling up a barrel with gasoline by siphoning it from my van then going back to the gas station and refilling the van. After emptying the van of gas I used the "refuel from pump" option to put a little gas back in the van in order to get back to the pump. When I got back and tried to start filling up the barrel again it had apparently gained 400 fuel from nowhere, going from 97/400 to 497/400. I suspect that when I used the "refuel from pump" option the game decided to give the barrel max gasoline for some reason on top of what was already in there.
Jowenbra 17. jan. 2022 kl. 18:05 
Just replicated the results, only instead of adding another 400 it went from 393/400 to 498/400. I subbed yesterday so it's definitely the latest version too.
Sidst redigeret af Jowenbra; 17. jan. 2022 kl. 18:07
The15karat 28. apr. 2022 kl. 20:51 
Hello. You must have heard about the "1000/400" problem.
After connecting an ordinary vanilla barrel to the generator, and refueling from the car barrel, the barrel begins to have 1000/400 gasoline.
Is it possible to fix this bug?
The15karat 14. juni 2022 kl. 3:49 
Greetings. Dealt with a problem referred to as: "1000/400"

It turned out that the problem is not in your mod, but in the FRUsedCarsFuelTest mod.

It breaks your mod completely.

But if you delete the file along the path: "...FRUsedCarsFuelTest\media\lua\client\Vehicles\TimedActions"
File: FuelTruck_ISRefuelFromGasPump_start.lua

Then everything becomes good.

If there is a way to somehow protect us from this, other than deleting the file?
ThePirat3Crew 19. sep. 2022 kl. 2:40 
Oprindeligt skrevet af Jowenbra:
No error but I think I've found a bug. I was filling up a barrel with gasoline by siphoning it from my van then going back to the gas station and refilling the van. After emptying the van of gas I used the "refuel from pump" option to put a little gas back in the van in order to get back to the pump. When I got back and tried to start filling up the barrel again it had apparently gained 400 fuel from nowhere, going from 97/400 to 497/400. I suspect that when I used the "refuel from pump" option the game decided to give the barrel max gasoline for some reason on top of what was already in there.

Same here, fill car from barrel by using "refuel from pump" option, it fills barrel and gives error.
But in my case, empty barrel with 400volume got filled to 1000 somehow.
Auratian 12. nov. 2022 kl. 10:07 
Bug arising from having both "Let me think" and this enabled which prevents the large gas cans from being able to add gas to vehicles and take from gas stations. Mod list:

mod = ModManager,
mod = CheatMenuRB,
mod = FuelAPI,
mod = LetMeThink,

Console between startup and attempting features on a new game with all the necessary tools, no errors shown tho so is a bit of a mess: https://pastebin.com/j096GwDr


-----EDIT------
Error is solely due to Let Me Think, due to their(…)
-Edit 2-
Disregard previous edit, found a solution that works
Sidst redigeret af Auratian; 13. nov. 2022 kl. 12:33
Insert_Text_Here 26. nov. 2022 kl. 17:10 
Oprindeligt skrevet af Auratian:
Bug arising from having both "Let me think" and this enabled which prevents the large gas cans from being able to add gas to vehicles and take from gas stations. Mod list:

mod = ModManager,
mod = CheatMenuRB,
mod = FuelAPI,
mod = LetMeThink,

Console between startup and attempting features on a new game with all the necessary tools, no errors shown tho so is a bit of a mess: https://pastebin.com/j096GwDr


-----EDIT------
Error is solely due to Let Me Think, due to their(…)
-Edit 2-
Disregard previous edit, found a solution that works

What was your solution? I am having the same problem and haveLetMeThink
Auratian 27. nov. 2022 kl. 4:56 
Oprindeligt skrevet af Insert_Text_Here:

What was your solution? I am having the same problem and haveLetMeThink
Made a mod to fix the problem. Found here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2730246789
Insert_Text_Here 27. nov. 2022 kl. 17:35 
Oprindeligt skrevet af Auratian:
Oprindeligt skrevet af Insert_Text_Here:

What was your solution? I am having the same problem and haveLetMeThink
Made a mod to fix the problem. Found here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2730246789

Cheerio! Great work, thanks buddy! This should work but if I have any problems I'll let you know over there.
башмачок 8. feb. 2023 kl. 2:10 
When I right click on a barrel for the first time it shows an error.

ERROR: General , 1675850097859> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in addFuelTooltip at KahluaUtil.fail line:82.
ERROR: General , 1675850097859> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in addFuelTooltip
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
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:214)
at zombie.Lua.LuaEventManager.triggerEventGarbage(LuaEventManager.java:228)
at zombie.Lua.LuaManager$GlobalObject.triggerEvent(LuaManager.java:3086)
at jdk.internal.reflect.GeneratedMethodAccessor676.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:198)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
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:173)
at zombie.ui.UIManager.update(UIManager.java:938)
at zombie.GameWindow.logic(GameWindow.java:262)
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)

Any idea why? And should I do something or it's normal and safe to ignore?
♫ §äx ♪ 15. feb. 2023 kl. 7:34 
hello, it won't let you install it, it stays in a loop and doesn't install, I've already tried to delete it manually, and reinstall it, what else can I do? thank you
Kyomujin 15. apr. 2023 kl. 19:20 
The error on right clicking the fuel barrels appears to be because fluid containers now all have an empty item without the getUseDelta method, which was done to support adding either water or fuel to a liquid container.

Replace the AddFuelTooltip function around line 130 in the file:
Steam\steamapps\workshop\content\108600\2688538916\mods\FuelAPI\media\lua\client\FuelAPI\CustomFuelObject.lua
with the following code:
local function addFuelTooltip(option, petrolcan) local tooltip = ISToolTip:new(); tooltip:setName(petrolcan:getDisplayName()); local tx = getTextManager():MeasureStringX(tooltip.font, getText("ContextMenu_FuelName") .. ":") + 20; if petrolcan:hasTag("EmptyPetrol") then local replaceItem = ScriptManager.instance:getItem(petrolcan:getReplaceType("PetrolSource")) local capacity = 1 / replaceItem:getUseDelta(); tooltip.description = string.format("%s: <SETX:%d> %d / %d", getText("ContextMenu_FuelName"), tx, 0, capacity); else -- petrolcan:hasTag("Petrol") local capacity = 1 / petrolcan:getUseDelta(); local fuelAmount = capacity * petrolcan:getUsedDelta(); if fuelAmount == -1 then fuelAmount = 0; end tooltip.description = string.format("%s: <SETX:%d> %d / %d", getText("ContextMenu_FuelName"), tx, fuelAmount, capacity); end tooltip:setTexture(petrolcan:getTexture():getName()); tooltip.maxLineWidth = 512; option.toolTip = tooltip; end

This at least suppressed the error, but I don't know if some other functionality is missing.
< >
Viser 1-15 af 16 kommentarer
Per side: 1530 50