Valheim
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
3
Likes
0
Size
115KB
Dependants

Categories

ADDatHost Valheim hosting
30% off

Stoker

Part of FlyingHose's Modpack. Needs only BepInEx.

Smelters, kilns, fires, and the oven feed themselves from the chests near them, and put what they make back. You decide which items they may take, how many stay in the chests, and when to stop. Feeding a station by hand is never changed by any of it.

Stoker took over the self-feeding smelters that Zone Storage 0.3 had, and grew them into their own mod.

Turning it on

Every station starts with auto feed off. You turn it on station by station.

  • On a smelter, charcoal kiln, blast furnace, windmill, spinning wheel, or eitr refinery, look at the add-ore switch (where you put ore in) and press the alternate Use (Shift + Use by default).
  • On the oven, do the same on its fuel switch.
  • On a campfire, hearth, brazier, sconce, or standing torch, press the alternate Use on the fire. A fire you can switch off with the plain Use already uses the alternate Use to add fuel, so that press stays the game's and you turn auto feed on from the rules panel instead.

The hover text shows Auto feed: on or Auto feed: off. Only a player who could use the station inside its ward may change it. Inside a ward that does not permit you, the ward flashes and nothing changes.

While a station is on and its area is loaded, it takes one input and one fuel every Automation.TickSeconds seconds, as long as it has room. Finished output goes into one of its chests instead of onto the ground: a chest that already holds that kind first, nearest first, then any chest with a free slot. When nothing has room the output drops at the station as usual. Automation.CollectOutput turns that part off.

A fire or the oven takes only fuel. The oven never takes food.

Which chests

Alone, a station feeds from fixed chests within Range.Meters (10 by default, measured in three dimensions, so a chest on the floor above counts). Carts and ships never count.

With Zone Storage 0.4 or later installed, a station feeds from the chests Zone Storage says belong to its zone instead, piles included, and Range.Meters is not used. In Zone Storage a zone is a crafting station's area, such as a workbench's, so a station that no zone covers takes nothing, even with chests beside it. Put a workbench near it, or move it into a zone. The rules panel and the hover text say which one is in use, and the hover text says when no zone covers the station.

If Zone Storage is installed but switched off, or not answering in this session, Stoker feeds by range and says so. Remove Zone Storage later and the station goes back to range. Remove Stoker and Zone Storage is untouched.

Either way a station never takes from a private chest, a chest that is open, or a chest inside a ward that does not also cover the station.

The rules

The world rules are server settings:

  • Automation.NeverFeed lists items a station never takes by itself. The default is fine wood, core wood, ancient bark, Yggdrasil wood, and ashwood, so a kiln only burns plain wood.
  • Automation.Keep sets a reserve per item, like Wood:50,Coal:20. A station never takes an item when that would leave fewer than its amount in its chests.
  • Automation.KeepInChest is the reserve for every item Keep does not list.
  • Automation.StopAt sets a limit per output, like Coal:200. A kiln stops taking wood while its chests, plus what it already has queued, hold 200 coal or more, and starts again when coal is taken out.

A badly written entry is skipped and noted once in the log.

Each station can also have its own rules, which win over the world rules for the items they name. Look at the station and press Keys.RulesKey (the key left of 1 by default, ` on a US keyboard) to open its panel. It lists everything the station takes, with whether it may take it by itself and how many to keep, and everything it makes, with where to stop. A value the station does not set is shown greyed as the world's. Enter saves, Escape closes without saving, and Use world rules clears the station's own rules. A player without access to the ward can read the panel but not save.

If someone else changes the rules while you have the panel open, it reloads and tells you, and your unsaved changes are not written over theirs.

Automation.StationRules off makes every station follow the world rules. Rules already set on stations are kept for when it is turned back on.

Feeding by hand

Adding ore, fuel, or food by hand works exactly as it does without Stoker, whatever the rules say. A kiln whose rules forbid fine wood still takes fine wood when you put it in. With Zone Storage installed, hand feeding from zone chests also works exactly as Zone Storage makes it work.

Settings

The server decides the rules. On a server, its values are used and your own config file is ignored while you are connected. Every setting shows in Althing and can be set per world.

Setting Default Range Who decides
Automation.Enabled true on or off server
Automation.TickSeconds 5 1 to 3600 seconds server
Automation.CollectOutput true on or off server
Automation.NeverFeed FineWood,RoundLog,ElderBark,YggdrasilWood,Blackwood item names server
Automation.KeepInChest 0 0 to 100000 server
Automation.Keep empty item:amount pairs server
Automation.StopAt empty item:amount pairs server
Automation.Fires true on or off server
Automation.StationRules true on or off server
Range.Meters 10 1 to 50 metres server
Keys.RulesKey BackQuote (left of 1) any key, or None you
General.Enabled true on or off; needs a restart you
General.DebugLogging false on or off you

Automation.Enabled off stops every station and gives the alternate Use back to the game. Each station keeps its state.

Things to know

  • A stop limit is soft. Two stations sharing chests can both pass the check in the same moment and make a few more than the limit.
  • A station that is on and doing nothing may be at a stop limit. The hover line says so, for example Auto feed: on (Coal at 200).
  • With Zone Storage 0.3 still installed, Zone Storage feeds smelters itself, so Stoker leaves smelters, kilns, and the like to it and only feeds fires and the oven. The hover line says so. Update Zone Storage to 0.4 and Stoker takes over.
  • A station that had auto feed on under Zone Storage 0.3 stays on after you switch to Stoker.

Everyone needs the mod

The server and every player must have the same version. A server with Stoker refuses players who do not have it. The station's feeding runs on the game of whoever is in charge of the station, usually the nearest player, so every game must run the same rules.

If a game update breaks it

Stoker checks its hooks into the game when it loads. If a game update broke one, that part turns off and the game tells you once per world, in the top left: for example Stoker could not patch the game, so the rules panel is off. The parts are auto feed, auto feed for smelters and kilns, auto feed for fires and the oven, and the rules panel. Whatever is off behaves as in the game, and nothing is lost: each station keeps its state and its rules for a fixed Stoker.

How it works

A station's feeding runs only on the game in charge of it, and it only uses chests that the same game is in charge of right now and that nobody has open. A chest that belongs to another player's game is skipped until it is handed over the normal way, which happens by itself when that player walks off. Nothing is sent between games to move items. When another player turns a station on or saves its rules, only the switch or the rule text is sent to the game in charge, which checks who sent it and the ward before writing it.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.