-
Notifications
You must be signed in to change notification settings - Fork 278
Electric grids
Electric grids are electric connections within a building, similar to how all parts of a vehicle share battery power.
Currently, only the following furniture interacts with an electric grid:
- Mounted solar panel (like one on top of Evac Center) produces energy
- Mounted battery stores energy. When examining it, you receive information about power in a given battery and in the whole grid.
- Battery charger works like vehicle battery charger/recharging station. Place rechargeable batteries or items containing them into the recharger and power will be drained from mounted batteries to recharge those.
- Ovens work like hotplates, but with charges equal to charges of the grid
- Jumper cable connector connects a vehicle to an electric grid. To use, connect the jumper cable to the vehicle and then to the connector. Once connected, the vehicle and the grid will share power for most purposes, but will usually charge/discharge their own batteries before sending them through the connector
- Electric Kiln
- Food Dehydrator
- Food Processor
- Vaccuum Sealer
- Arc Welder
- Electric Forge
- Electrolysis Kit
For purposes of an electric grid, a building is made out of overmap tiles (the tiles you see on the map opened with 'M' key, on local map they are 24x24 tiles). Most city buildings have individual electric grids. For example, a house with a roof and a basement, with a solar panel on the roof, oven on the floor and a battery in the basement, will allow using the oven with the energy from the battery charged by the panel. Overmap tiles without buildings only have grids within their own overmap tile. There is currently no way of connecting grids together, other than by use of two connectors, two jumper cables, and a vehicle.
To create a furniture that uses the grid to power a fake item, create the fake item with a flag "USES_GRID_POWER"
and then set furniture's "crafting_pseudo_item"
to that item's ID.
For example, the oven item is:
{
"id": "fake_oven",
"copy-from": "fake_item",
"type": "TOOL",
"name": { "str": "oven" },
"sub": "hotplate",
"max_charges": 1000,
"flags": [ "USES_GRID_POWER" ]
}
And the oven furniture uses it as:
"crafting_pseudo_item": "fake_oven"
Currently, the grid can only power fake items used as a part of a furniture.
If you build a new house, you'll find the new house doesn't have any electric grid. To use electric grid in your new house, you should get and edit the overmap file, which is stored in your game's save folder. It's name is o.0.1 or similar. What you need is:
"electric_grid_connections":[[[0,0,0]], ... ... ... ]}
Add your coordinate in this place. If your home is at 0'113, 2'56, then your overmap file is o.0.2 and your coordinate to add is [113,56,0] (or your z-coordinate) To connect different floors, add coordinate as like this:
"electric_grid_connections":[[[113,56,0],[0,0,1]], [[113,56,1],[0,0,-1]]... ... ... ]}
[0,0,1] means this coordinate shares electricity with upper stair, and [0,0,-1] means the opposite one. If your house is so huge like an office tower or city hall, [0,1,0] or [1,0,0] will also work.