Project Zomboid

Project Zomboid

FuelAPI
UnCheat 25 Dec, 2021 @ 6:01am
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
< >
Showing 1-15 of 16 comments
UnCheat 25 Dec, 2021 @ 6:03am 
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  [developer] 12 Jan, 2022 @ 6:50pm 
@UnCheat sorry I didn't reply before do you still get this error with recent update?
UnCheat 13 Jan, 2022 @ 10:33am 
Nope
Jowenbra 17 Jan, 2022 @ 5:57pm 
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 @ 6:05pm 
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.
Last edited by Jowenbra; 17 Jan, 2022 @ 6:07pm
The15karat 28 Apr, 2022 @ 8:51pm 
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 Jun, 2022 @ 3:49am 
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 @ 2:40am 
Originally posted by 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 @ 10:07am 
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
Last edited by Auratian; 13 Nov, 2022 @ 12:33pm
Insert_Text_Here 26 Nov, 2022 @ 5:10pm 
Originally posted by 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 @ 4:56am 
Originally posted by 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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2730246789
Insert_Text_Here 27 Nov, 2022 @ 5:35pm 
Originally posted by Auratian:
Originally posted by 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://steamhost.cn/steamcommunity_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.
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 @ 7:34am 
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 @ 7:20pm 
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.
< >
Showing 1-15 of 16 comments
Per page: 1530 50