Project Zomboid

Project Zomboid

Tread's Fuel Types Framework [41.65+]
FuelAPI Fixing Thread
Starting up this thread to document the outsider fixing of this mod's FuelAPI patch, so as to not clog up the discussion section of the mod proper. It's not official in the slightest and probably gonna fail in work, but someone has to pick up the tools left behind to fix it, so....ehh, I'll give it a try.
< >
Showing 1-13 of 13 comments
Butterbutt69 10 Dec, 2022 @ 1:55am 
has fuel api also been abandon
SpartanXIII 10 Dec, 2022 @ 5:26am 
Originally posted by Butterbutt69:
has fuel api also been abandon

Not to the extent that Fuel types has. If anything, I think FuelAPI is just waiting for Zomboid to release its updated liquid system before changing or adding anything, so as to have a stable base to start bugfixing from.
Butterbutt69 10 Dec, 2022 @ 6:34am 
Originally posted by SpartanXIII:
Originally posted by Butterbutt69:
has fuel api also been abandon

Not to the extent that Fuel types has. If anything, I think FuelAPI is just waiting for Zomboid to release its updated liquid system before changing or adding anything, so as to have a stable base to start bugfixing from.
why not do the same and see if the problem just gets easier
Butterbutt69 10 Dec, 2022 @ 6:46am 
alright im gonna start spit balling some ideas i have no knowledge of coding at all but maybe some outside help would help. So what the objective trying to fix spaghetti coding or just try to get the mod working in any way because if its the ladder i might have some ideas like just use preexisting coding to replace the old non functioning coding or out right overhaul it by ripping some coding from the api mod with the barrel and just add a new fuel type for it
SpartanXIII 10 Dec, 2022 @ 7:31am 
I mean, using FuelAPI's coding to fix it is a method worth doing (especially as it's mostly copy pasted so finding where the errors may lie is simple), but that's not going to be the only step, there is a lot of it that has custom hooking attached to it (plus it looks like a mess), so a band-aid will only go so far, we need actual bandage solutions to it.

I know where the error is pointing at least, the question becomes why and how.
SpartanXIII 10 Dec, 2022 @ 9:05am 
Well, we finally know for sure the line that is the exit point of the problem:

tooltip.description = string.format("%s: <SETX:%d> %d / %d", BarrelFuelType, tx, fuelAmount, customFuelObject.fuelCapacity); --- Tread - show fuel Type in tooltip

Problem is, it is an exact copy of the line from FuelAPI itself, meaning that the whole cluser it's in is not where the fault lies. Heck, scooping out the Fuel Type version of the area it's in for the FuelAPI version changed nothing, only changing the position of where the error is alleged. Meaning we're one step forward and another step back. We still have the error from the log itself to try and find:

[10-12-22 16:46:37.938] ERROR: General , 1670690797938> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: missing argument #5 to 'format' at KahluaUtil.getArg line:380..
[10-12-22 16:46:37.938] ERROR: General , 1670690797938> DebugLogStream.printException> Stack trace:.

But the problem there is that there is nothing in Fuel Types OR FuelAPI that hits close to 380 lines of code, the closest we get is just over 200, meaning the problem could be anywhere, possibly even a crossed wire with Zomboid itself. I'll keep trying, but without an expert on hand, I'll be pressing buttons blindly until I give up or find something.

EDIT: Can also confirm that just taking the CustomFuelObject file directly from FuelAPI and putting it into Fuel Types actively does not work and makes things worse. Instead of a fuel counter that doesn't work and breaks the barrel system, we have a barrel system that doesn't exist.

So this means coding....somehow.
Last edited by SpartanXIII; 10 Dec, 2022 @ 2:15pm
Butterbutt69 10 Dec, 2022 @ 3:11pm 
maybe it would be in the best interest to wait for build 42
SpartanXIII 11 Dec, 2022 @ 5:47am 
But we don't know when Build 42 will happen, may as well fix it now when it's just fixes that need doing.
Butterbutt69 11 Dec, 2022 @ 5:38pm 
oh i thought the build was coming out around January i may have been missed informed
Gimbo 7 Feb, 2023 @ 3:46pm 
there is a problem with the fuel api because now i got an error everytime i try to check the barrels of fuel, but if i disable fuel types the barrel work properly
d-mka 21 Sep, 2024 @ 9:27am 
With and without the FUEL API mod When taking fuel (any) into a canister (any) from a car (any), the sound of overflowing fuel does not stop. Just exit to the menu and reboot. The problem persists with any sandbox settings. With and without Auto mods. Even only in vanilla cars. Couldn't find the reason. Disabled the mod.
It's crazy to constantly reload the interface. Sadness..
helo1 11 Jul @ 2:14pm 
Help i cennot Open options by pressing V it seas Erore
< >
Showing 1-13 of 13 comments
Per page: 1530 50