Project Zomboid

Project Zomboid

Gas & Water In Containers [DEPRECATED]
50 Comments
scooter7969 5 Oct, 2024 @ 3:09pm 
i hate you
I deserve life 11 Mar, 2024 @ 2:56pm 
I hope this mod indeed helped devs to add mod feature in game, but im still confused why you cant fill gas can with water because its just make sense. However i cant play with this mod, but many thanks for this feature added in vanilla!
analnyj gayniy 30 Nov, 2022 @ 10:18pm 
the mod is broken, you can’t refuel, even the canisters don’t work
Beard #GetRektRambo 22 Aug, 2022 @ 4:01am 
with latest update to the gaming adding the ability to fill bottles etc with gasoline now, is this mod now no longer needed? many thanks
Fehz 9 Aug, 2022 @ 2:27pm 
I was using this in a save game for a while. With the recent update, it started giving errors trying to fill gas cans from a pump. Disabling the mod inside the menus didn't work. I had to unsubscribe, and it's now letting me fill gas cans again.
Astraeximus 21 Jul, 2022 @ 12:26pm 
So this mod doesn't work on multiplayer I presume ? Last time me and a friend tried, gave us an error when filling the gascan with water that required a restart of the server, the issue caused the gas can to be undroppable (could not drop, could not use, could not unequip). We have since started a new game and now its no longer there even tho the mod is listed as present in the server.
Raymond 20 Jul, 2022 @ 6:36pm 
is this mod still working? I took out all other mods in my mod list, run a custom game to check it out and this mod doesn work
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2838109890
oogabooga1 18 Jun, 2022 @ 1:35am 
how do you fill it
YogoPig 15 Jun, 2022 @ 7:08pm 
This is an essential mod for all my playthroughs. Highly recommend!
houndy 9 Jun, 2022 @ 11:43pm 
Wonderful concept, just doesn't work with me.
Bounet_045_Fr 7 Jun, 2022 @ 4:31am 
@mx.jcoop Same problem to me @[TECT$ECore] Olipro
ShinFrank 30 May, 2022 @ 10:34pm 
Thank you gonna give it a whirl:spiffo:
ChickenJ0e 20 May, 2022 @ 8:51pm 
hey dude, i have a problem, when i try fill something with water the game warns for an error, and then I can't do anything, i can´pick things up to my inventory and things like that. It is solved when i exit to the main menu and enter the game, but if a try to fill, happen again. thanks <3
mickjohnsondammit 20 May, 2022 @ 2:42pm 
have you ever run chlorine and gasoline in a small engine before? Have you ever tried to clean out a kerosene or gasoline container for use with potable water? Sure you might run tainted gas through a Mopar 318, or better yet, an F-150 but a genset? IDK, if I didn't have to depend on the generator, or drink the water it might work out fine. Generally speaking though, water and/or bleach in your gas line, pump or the fuel system in general is bad news. Then again, live for today right?
[TECT$ECore] Olipro  [author] 18 May, 2022 @ 3:23pm 
Pushed an update that fixes the items for 41.71.

Please note that there is a minimum quantity required by the base game for refilling generators, I recommend you use a bleach bottle.
CadleyRM 14 May, 2022 @ 6:24am 
@liquidliam329 in mods on the bottom right it says mod order, click that and move this to the top. But its not working now, just creates lots of errors.
[TECT$ECore] Olipro  [author] 13 May, 2022 @ 9:29am 
see `media/lua/shared/GAWIC_Config.lua` - the simplest change would be to alter GAS_WEIGHT but you can of course completely rewrite the CalcStats() algorithm if you prefer.
p6kocka 23 Apr, 2022 @ 3:38pm 
@[TECT$ECore] Olipro
Thank you for this mod. Exactly what I was looking for. One question though. How to adjust the amount of gas in bottles pl? I would like to lower it because it´s too much in one bottle for my taste. Thank you
liquidNation329 16 Apr, 2022 @ 6:34pm 
@CadleyRM how do you do that? I got no clue
[TECT$ECore] Olipro  [author] 30 Mar, 2022 @ 7:38pm 
@ace, no need to apologise, I wasn't being sarcastic - the game is a bit arbitrary about volume to weight ratios for containers but just in case they ever clean it up in future, I wanted something generic.

As for the generator issue - I'll see what's up
CadleyRM 25 Mar, 2022 @ 12:17pm 
Got it working by putting this mod at the top of the order list which stopped the bottle disappearing and allowed it to be filled.

But you can't fill generators up from bottles though?
ace 20 Mar, 2022 @ 9:50pm 
very sorry sir
[TECT$ECore] Olipro  [author] 20 Mar, 2022 @ 4:43pm 
@ace - the volumes are automatically generated relative to the weight of the water the container would hold (i.e. the same volume of gasoline weighs approximately 75% of water) - if you think you have a better idea, come up with consistent mathematical formula and I'll apply it if it's realistic across all containers.
[TECT$ECore] Olipro  [author] 20 Mar, 2022 @ 4:39pm 
Mod updated to support the latest release of the game which added some newly required fields for water containers. The "Gas Can With Water" now functions correctly.
CamunKet 13 Mar, 2022 @ 11:13am 
Warning: Is not compatible with Attach Items to Backpacks (build 41) by planetalgol. Not a complaint, just relaying what I experienced.
ace 8 Mar, 2022 @ 7:44pm 
i havent used and tested other containers fyi, just some feedback cause that was too much gas from a water bottle
ace 8 Mar, 2022 @ 7:43pm 
so this mod is exactly what i needed, thanks, but i do wanna suggest lowering the amount of gas you get in a car from the water bottle, i went from 1.7 to 11 something, which i think is a bit too much for a water bottle, i would guess more around 6 or so would be more fair without being overly realistic (otherwise it should be like 1 unit of gas)
Sol 6 Mar, 2022 @ 1:11am 
Tested again and I seem to have the same issue. Must be a mod conflict of some kind. Sorry can't test it any further than that, since removing mods breaks the server. :(
Itsblazeys 5 Mar, 2022 @ 10:35pm 
conflict with fuel api?
[TECT$ECore] Olipro  [author] 5 Mar, 2022 @ 11:30am 
Fixed
Kosmos 5 Mar, 2022 @ 8:12am 
I also got the issue when i am filling gas can from car it vanishes.
LT SPAWNKILLER 4 Mar, 2022 @ 1:08am 
+1 that @TheKobold
TheKobold 3 Mar, 2022 @ 5:46pm 
I had an issue where i would attempt to siphon gas from a vehicle into a gas can, upon completion the gas can vanished
AnsformMS 2 Mar, 2022 @ 9:27am 
@Sol I have a mod to switch the water bottle to gas can. is compatible to las MP version. This isn't a spam, this mod have an error, I ask a solution. To the autor of this, I very satisfied with your job, I can't do this. 10/10
Sol 1 Mar, 2022 @ 6:24pm 
When I try to fill anything other than the vanilla gas can, the error box pops up and throws exactly 127 errors... it consumes the bottle but doesn't produce a fuel filled container of any kind. I disabled all the mods I can, but some can't be disabled as the server terminates and fails to start without them.

Is this known to work/not work in multiplayer at this time? Is there any other dependency that's required that I might be missing? Currently on version 41.66 multiplayer server.

I am using Filibuster Rhymes car pack, and it has some fuel extension thing... not sure if this conflicts? Thanks in advance for any clues/tips/tricks.
JackOverkill 27 Feb, 2022 @ 7:23am 
how much gas can a water bottle hold and how heavy at full?
Krytera 22 Feb, 2022 @ 9:24pm 
I was literally thinking about something this last night and here we are, thanks for this
[TECT$ECore] Olipro  [author] 22 Feb, 2022 @ 1:27am 
@Fishman - I'm just going to copy-paste what I already stated above:

"If you think you've discovered a bug, TURN OFF ALL OTHER MODS and try to reproduce it, if you can, please make a post in the discussions section with INSTRUCTIONS TO REPRODUCE THE BUG, DON'T just leave a comment with some useless ♥♥♥♥ like "it doesn't work" - that doesn't tell anyone anything."
Fishman 22 Feb, 2022 @ 1:03am 
It stopped working (after update?) now it just gives me 200+ errors and the bottle disappears from my inventory.
Aetherlight 21 Feb, 2022 @ 5:01pm 
Do you think this would be compatible with "Fuel API" mods? I'll give it a try after I tow a water trailer to my base as backup :steamthumbsup:
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 4:12pm 
For anyone curious about the science, Petrol is a mixture of n-Octane and n-Heptane, the following document states that PET plastic has good resistance to both: https://roboworld.com/wp-content/uploads/2017/08/PET_ChemicalCompatibility.pdf
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 4:06pm 
@LIL_MAYO The drinks bottles are ostensibly made of PET plastic. You can store gasoline in PET plastic, it won't eat through it - that's why you can make molotov cocktails in the base game with them.

Bleach bottles are made of HDPE, which, incidentally, is the same plastic that gas cans are made out of.

Also, the whiskey bottle is made of glass, not plastic.
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 2:50pm 
To the ignorant moron who called this "a copy of a copy of a mod":

The code is 100% original. I am not aware of anyone else having implemented changes that enable inventory items to interchange between gas and water.

Of course, you obviously don't have enough braincells to rub together to examine my code so instead you just spew hate. Get a life.
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 2:32pm 
Well, if you want to fill your car up with a water bottle, it's going to be quite the job because it has only a mere fraction of what a gas can holds, so you can enjoy quite a lot of ferrying back and forth if you don't want to use a can.
ЯEБAЛ 21 Feb, 2022 @ 7:17am 
i just think it would be a cool balancing mechanic to limit the use of bottle if you used it with gas, so player cant have one easy container for all.
IRL I had experience with mixing gasoline with oil in plastic. You can clean it, but after some time plastic start to deteriorate and you cant drink from it. Even cleaning the container after gas must take at least soap and a day of drying. Not sure about glass though.
I dont know how to code that, just throwing some ideas for maybe someone wanting to recreate this mechanic, for the mod gods!
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 3:45am 
Why? you could just rinse it out.

If you fill a bottle with petrol IRL and then rinse it out, nothing will happen to you.

Actually, even if you don't fully rinse it out, the quantity of gasoline you ingest would be so negligible that nothing would happen to you, too.
ЯEБAЛ 21 Feb, 2022 @ 3:16am 
makes a lot of sense not to be able to use bottle for water after gas, i hope it will be that way.
[TECT$ECore] Olipro  [author] 21 Feb, 2022 @ 1:38am 
Yes, there is no implementation of "contamination"

If I ever do decide to do that (i.e. require rinsing the container out), I would use the in-game mechanics of flagging water as Tainted, so you would know.
Keelasher 20 Feb, 2022 @ 7:45pm 
if i had a gas can that held gas, emptied it, and then filled it with water, would it be safe to drink that water? Just want to make sure before i lose a long lasting character
PETE 20 Feb, 2022 @ 6:58pm 
they didnt add it because in real life gas would eat thru any other plastic than what they make jerry cans with