Project Zomboid

Project Zomboid

631 ratings
[B42] Useful Barrels
5
3
2
4
2
3
4
3
3
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
685.475 KB
Mar 1 @ 11:18am
Apr 13 @ 2:16am
21 Change Notes ( view )

Subscribe to download
[B42] Useful Barrels

Description
Barrels can actually be more than just a sprite!
B42 only!
Features
  • Use your Pipe Wrench to open the lid of the barrel
  • Store any fluid inside
  • The amount of liquid inside the barrel affects the encumbrance
  • Rubber Hose to take Gas from barrel
  • Funnel for pouring Gas into the barrel
  • Funnel may speedup pouring action
  • Refueling generator from the Barrel
  • Refueling vehicle is also possible. also from mod's vehicles and trailers
  • Randomized initial fluid and amount
  • Sandbox vars to control mod behaviour as you want
  • Chuckleberry Finn's Mod Update and Alert System integration for ingame ChangeLog

Notes
  • Uses new FluidContainer system of B42
  • Is safe to add in existing saves as well as removing, FuidContainer will remain.
  • Barrels are now less fragile! But anyway Walkers will break it pretty quickly.
  • Gasoline apparently does not evaporate from the barrels.
  • Please! Any full 800L barrels in your characters pocket or car trunk is your responsibility, there is no proper way to haul them. For now at least.

How to
Base usage
Please verify that all necessary sandbox variables are enabled.
Then, find a Pipe Wrench and any metal barrel in the game (there are only four types available).
You can move your new Useful Barrel anywhere you like. It will be empty at first — even if you later discover 750 liters of fuel inside.
With the Pipe Wrench in your inventory, right-click on the barrel and look for the "Uncap ..." option.
This will allow the barrel to store fluids and run the initial fluid filling procedure (if enabled).
Refuel generator
The generator must be within 2 tiles of the barrel.
The generator must be turned off and have free space for fuel.
There must be at least one barrel with at least 1 liter of fuel for the option to appear.
You must also have a Rubber Hose, if this is enabled in the sandbox settings.
Refuel vehicle
The vehicle must be within 4 tiles of the player.
The vehicle's engine must be turned off.
The vehicle must have a part with the "gastank" category, and the part’s containerType must contain the word "Gasoline" (this info is mostly for modders).
The gas tank must have free space.
The nearest barrel with gas must be within 4 tiles of the vehicle.
You must also have a Rubber Hose, if this is enabled in the sandbox settings.

About two versions
The mod now comes with two versions: stable branch that has v2.x.x and beta v3.x.x with vehicle integration.
All new features will be released in beta first. Once polished, they will be included in the stable version branch.

WIP
  • Rework plumbing to make it work again properly
  • Be able to add fluids from items laying on floor
  • Add sprite and craftrecipe for rain collector

Future plans
  • Add posibility to move barrel with fluid

Mods compatibility
  • Modded vehicles (and fluid trailers) should be compatible if: vehicle has part and part category contains "gastank", part contentType contains word "Gasoline".
  • Mods that adds context options for FuidContainer may interfere UB. In that case try to re-order mods in Mod load order and move UB to bottom as possible.

Known bugs
  • In case of game crash FuidContainer may not save it's contents.

Credits
Thanks to ????2346134 for CN translation.
Thanks to NopOYes for PTBR translation.
Thanks to MainFish for RU translation.
Thanks to Hx for KO translation.
Thanks to RedSystem for TR translation.
Thanks to Dust Runner for ES translation.
Thanks to Bobitec for FR translation.
Thanks to Chuckleberry Finn for Mod Update and Alert System.
Thanks to Chuckleberry Finn for pz-translator tool.

This is my first experience making a mod, so it may not be perfect.
Feel free to report bugs and suggestions for improvement!

Workshop ID: 3436537035
Mod ID: UsefulBarrels
Mod ID: UsefulBarrelsBeta
Popular Discussions View All (2)
36
Apr 1 @ 10:07am
PINNED: Bug reports
GigaWatte
20
Apr 19 @ 3:18am
PINNED: Translations
GigaWatte
275 Comments
Korson Keisyr 9 hours ago 
@GigaWatte

I just restarted my playthrough and the mod began working, it was apparantly an issue with using it on an existing save. Also, can I ask about an option to use a Garden hose or something to connect a barrel to the tap or sink?
TDiggityDogg 23 hours ago 
Great mod, just wished I can refuel a barrel from a gas pump. Its very tedious to fill it up 80 times with gas cans
GigaWatte  [author] Apr 23 @ 11:04am 
@Zulfur
No, it is not implemented unfortunately.
GigaWatte  [author] Apr 23 @ 11:04am 
@Korson Keisyr
Hi. Option may not appear if you clicked something that is not a barrel. In other case at least red option should appear.
Korson Keisyr Apr 23 @ 3:16am 
Gey there! @GigaWatte

I have the mod installed via the workshop, I have it enabled, and I am on build42, However the option to uncap barrel isn't there.?
Zulfur Apr 22 @ 2:38pm 
Can i fill barrels directly from the gas pump? And how?
GigaWatte  [author] Apr 22 @ 11:35am 
@Seibutsu
Yes, you are absolutely right
Seibutsu Apr 22 @ 10:30am 
Is gasoline listed twice in "Fluid Pool" to increase its spawn probability, or some other reason?
Q1 Apr 21 @ 2:19am 
-Нужна воронка для добавления топлива в бочку
- Воронка ускоряет наливание топлива в бочку
Так она нужна или просто ускоряет?
GestumStage Apr 20 @ 4:00am 
скажите пжлст, будет ли спавнится топливо внутри бочек, когда я их вскрываю, или это просто своеобразные контейнеры? Есть возможность найти в них что либо, и какова вероятность? Настройка песочницы дэфолт.