Project Zomboid

Project Zomboid

Not enough ratings
Additional Generator Fuel Tank
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
152.393 KB
28 Jun @ 6:29am
20 Jul @ 5:39am
5 Change Notes ( view )

Subscribe to download
Additional Generator Fuel Tank

Description
Incomplete functionality, there may be some bugs

Attach addition fuel tank to generator by using petrol can (must contains petrol)

If the fuel content of the generator is less than 30%, it will automatically replenish the fuel

three new fuel tank type:Base.JerryCan Base.TinEmptyCan Base.WaterRationCan

want to add your own fuel tank type?
here is code:
Events.OnGameStart.Add(function()
-- set support fuel container
VacMod8.AllFuelContainer['full_type'] = 1
end)

sandbox option: maximum fuel tank in one generator


Workshop ID: 3510801538
Mod ID: vac_mod_b42_8
13 Comments
化け物 4 Aug @ 8:12pm 
42.11进游戏有报错
B1NJZ  [author] 1 Aug @ 1:56am 
@Aacad
step1: get the 'FullType' of this water container .It is usually named 'XX.XX' (like Base.FuelTank)
step2: create a new file in [Additional Generator Fuel Tank\42\media\lua\shared] filename must end with '.lua'
step3: paste those code:
Events.OnGameStart.Add(function()
VacMod8.AllFuelContainer['Base.FuleTank'] = 1
end)
step4 replace ‘Base.FuleTank’ with the fullType u get in step1 .(keep the quote
Aacad 31 Jul @ 4:07am 
After [Additional Generator Fuel Tank\42\media\lua], where exactly should I go next? Which file and which part should I modify? I'd appreciate it if you could give me a brief tutorial.
Aacad 31 Jul @ 4:04am 
"I want to fill a 15-liter water container completely with fuel and pour it into the generator, but the method seems a bit tricky. Could you please explain it in detail?"
B1NJZ  [author] 20 Jul @ 6:07pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
mr.xyy 19 Jul @ 3:35am 
@B1NJZ 不对,我试了下手动给发电机加油,一油罐刚好从0加满,也就是10L,因此副油箱加油从30%补满应该耗油7L才对
B1NJZ  [author] 19 Jul @ 12:41am 
@mr.xyy 这个游戏发电机的油耗本身就很小。不是bug
mr.xyy 18 Jul @ 11:12pm 
副油箱给发电机加油消耗实际消耗很小,加满一次只消耗0.几升的油,是bug吗?
mr.xyy 12 Jul @ 3:06am 
有个bug,如果汽油罐放背包里,添加额外汽油罐不会被消耗,再卸载额外汽油罐就会凭空多一个汽油罐
B1NJZ  [author] 5 Jul @ 6:57am 
@Zeros 41版本好玩的发电机还挺多的,