Generator: Difference between revisions

From PZwiki
m (→‎Gas Consumption and Runtime: Readability/clarity; grammar and clean-up.)
Line 31: Line 31:


== Range ==
== Range ==
The range is 20 tiles and 5 floors (the one it is placed at, two down and two up).
The range (radius) is 20 tiles on the x-y plane, as well as 2 floors above and below (forming a cylinder centered on the generator with height of 5 and base diameter of 41).
[[File:Generator Range.png|thumb|center|Generator Range]]
[[File:Generator Range.png|thumb|center|Generator Range]]



Revision as of 02:44, 27 June 2022

Generator
Generator
Generator
General
Category Item
Encumbrance
Heavy Load
40
Technical details
Base ID Base.Generator

A generator is an electrical device that allows the player to generate electricity even after the power cuts out.

How to Use

Generators are most often found at warehouses. They may also be found in tool sheds and occasionally Self storage facilities. Generators must be placed close to the structure the player wishes to power so that the generator can be connected.

Generators can be picked up but cannot be put into the player's inventory, and must be carried. This means the player cannot attack while carrying a generator, and if a weapon is selected, the generator will be placed on the tile the player is on. The player is also encumbered with the weight, meaning they move slower, and may face additional hazards as a result.

Players should not place a generator inside a structure the player plans to or is currently occupying. Generator exhaust will negatively impact character health very quickly. Leaving the structure will halt the damage but the structure will not be safe until the generator is turned off.

Generators can be connected to the power system of a house via the "Connect Generator" option in the generator's context menu. A generator is fueled with gas via the "Add Fuel" context menu. The tank of a generator can take up to 1¼ gas can's fuel and can only be filled while the generator is off.

Players need the Electrician occupation or to have read the 'How To Use Generators' manual to connect a generator.

In a custom built shelter, there may be some difficulty in getting a generator working. Moving it to the roof may fix this issue.

If the Generator Working In Exterior Custom Sandbox World setting is enabled, generators may also be hooked up to other buildings around the world. One of the most practical uses for this is to power Gas station pumps, allowing for continued access to the station's fuel reserves.

Range

The range (radius) is 20 tiles on the x-y plane, as well as 2 floors above and below (forming a cylinder centered on the generator with height of 5 and base diameter of 41).

Generator Range

Gas Consumption and Runtime

The baseline fuel consumption of a generator running with no load placed on it is 0.02L/hr. Any devices within a 20 tile radius add load to the generator, increasing fuel consumption. Various devices add different loads to the generator. All lighting, regardless of size, adds 0.002L/Hr fuel consumption per light. Other devices, such as standing fridges and popsicle freezers, add a much greater load (0.13L/Hr and 0.16L/Hr, respectively). The total load placed on a generator, along with electrical demand per object, can be seen by right-clicking the generator and selecting "Generator Info".

An example of the Generator Info screen

To calculate generator runtime, the following equation can be used:

100/(X)* % Fuel Remaining = Runtime in Hours

  • X = Power Demand in L/Hr
  • Fuel Remaining in decimal form (0.##)
  • Runtime is measured in In Game Hours.

Example: A popsicle fridge (0.16L/Hr), Television (0.03L/Hr), and 6 Lamps (0.012L/Hr) would equal a total power demand (fuel consumption) of 0.202L/Hr. A generator filled with one full gas can of fuel (8 out of 10 units of fuel) would give a fuel volume of 80%.

100/(0.202L/Hr)* 0.80 = Approximately 396 Hours, or 16.5 In-game days

Gas Consumption Bug

On versions 41.24 and before, only devices placed directly under a roof (floor) consume electricity, whether pre-existing or self-constructed. The devices not placed under a roof still work.

Operations

  • Update in power consumption is done by powering down the generator and then back on, It is not done automatically as powered devices are added or removed.
  • Generators use variable amounts of fuel per hour (based on number and type of powered electronics using it as a source), and lose ~1.2% of condition per day as well. (41.53)
  • Electronics scrap can be used to repair a generator. At least one unit of Electronics Scrap has to be in the player's main inventory. Each Repair operation will restore 4% + (0.5 * Electrical skill level)% of condition. Repairs can only be performed on a powered off generator.
  • If condition drops lower than or equal to 20%, a chance for generator to catch fire or explode is introduced. Nearby cells may catch fire too. So keep your generators strictly above 20% condition. (41.53)
  • Generators can be heard from a base radius of 10 tiles. (41.53)
  • "Take Generator" requires the use of both hands. Equipping anything in the Primary or Secondary slots will cause the Generator to be dropped. (41.53)
  • Generators occupy a tile & cannot share the same tile with any constructions/furniture, but they do NOT cause collision (i.e. do not block cars, players, or zombies). Thus, one can hide a Generator from plain sight by parking a car/vehicle on top of it. (41.53)

Materials to Repair

Item Repaired Repair Materials
Generator.png
Generator
ElectronicsScrap.png
1 × Scrap Electronics
(4% + (0.5 * Electrical skill level)% repaired)

Spawn Locations for Custom Maps

Generators will automatically spawn in rooms with the following room definitions.

Name
shed
garagestorage
storageunit

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 40.43

	item Generator
        	Weight				= 40,
        	Type				= Normal,
        	DisplayName			= Generator,
        	Icon				= Generator,
        	Tooltip 			= Tooltip_Generator,
		RequiresEquippedBothHands 	= true,
		MetalValue 			= 500,

See also

Template:Navbox/Electricity and Engineering