You are viewing a potentially older version of this package. View all versions.
Budyliv-BudylivProduction-1.2.0 icon

BudylivProduction

Link chests to smelters, kilns, cooking stations, fermenters, beehives, sap extractors, fires, shield generators, ballistas and wisp fountains: the server refills fuel and input from chests and stores the products. Links survive restarts.

By Budyliv
Date uploaded 2 weeks ago
Version 1.2.0
Download link Budyliv-BudylivProduction-1.2.0.zip
Downloads 48
Dependency string Budyliv-BudylivProduction-1.2.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351

README

Budyliv Production

Link chests to production stations, and the server keeps them running: it refills fuel and input from linked chests and moves finished products into output chests. It works while players are elsewhere on the base, as long as someone has the station loaded.

Supported stations

Station Fuel Input Output
Smelter, blast furnace, charcoal kiln, eitr refinery, windmill, spinning wheel and other smelter-type stations where used yes yes
Cooking station, iron cooking station, stone oven stone oven raw food cooked food (taken off before it burns)
Fermenter — mead bases (only when empty) finished mead
Beehive, sap extractor — — honey, sap
Wisp fountain — — wisps
Fireplaces, braziers, torches, hot tub yes — —
Shield generator yes — —
Ballista — ammo (keeps the loaded ammo type) —

Vanilla quirks are handled: no item is sent to a station that would throw it away (full fireplace, cooking station without a free slot, fermenter that is not empty, ballista with a different ammo type).

How to link

  1. Look at a station and press Alt + left mouse on its input or fuel control (Alt + left mouse anywhere on a fuel-only station), or Alt + right mouse for output.
  2. Within 30 s, look at a chest and press the same combination.
  • Shift + Alt with the same buttons removes a link.
  • Shift + Alt + middle mouse on a station removes all its links; on a chest, unlinks the chest from all stations.
  • Hold Alt while looking at a station or chest to see its links: lines to linked chests or stations, and the linked objects glow (blue input, orange fuel, green output). Moving chevrons on each line show which way items go: chest → station for input and fuel, station → chest for output. An input chest that holds the station's fuel also feeds fuel (thin, dimmer orange line).
  • Press Page Down to show every link around you at once (up to 80 m), without holding Alt; press it again to hide them. The key can be changed (ShowAllLinksKey).
  • One chest can serve several stations and roles. With several output chests, a product goes to the chest that already holds that item (if it has room), otherwise to the first chest with room.
  • Maximum link distance: 30 m (MaxLinkRange).

In-game hints and messages are in English or Ukrainian, following the game language ([Client] Language to override).

Installation

  • Server: required. All transfers are done by the server.
  • Clients: needed to make links and see hints and link lines. Players without the mod can still play, and linked stations keep working for them.

How it works

  • Links are stored on the server in worlds_local/<world>.budylivproduction.txt, one line per link, objects identified by prefab and position. Destroyed stations and chests are removed from the file.
  • The server takes a chest over for a moment only when it is closed and has not changed for QuietSeconds, then gives it back. Items are moved in batches, with vanilla RPCs, to the station's current owner.
  • Products lying near a station's output point are picked up into its output chest.

Configuration

BepInEx/config/com.budyliv.production.cfg. The [Server] section is read on the server, [Client] on each client. The defaults are fine for most worlds.

  • Enabled, TickSeconds (2), MaxLinkRange (30), RefillFraction (0.5: refill when at least half is free), OutputRadius (2), VerboseLogging (false: log every transfer).
  • Language (Auto / English / Ukrainian), ShowControlHints, ShowLinkLines, LinkFlowSpeed (0.6 m/s; 0 = chevrons stand still), ShowAllLinksKey (Page Down).

Compatibility

Built for Valheim 1.0.21 and used on a server with MultiUserChest, Quick Stack Store Sort Trash Restock, CraftFromContainers, AutoFeedRedux and MyLittleUI. Not compatible with other mods that automate the same stations from chests (for example RunicProduction): use one of them.

Українською

Прив'язуй скрині до печей, плавилень, вуглярень, станцій готування, ферментерів, вуликів, вогнищ, генераторів щита, турелей і фонтанів світляків. Сервер сам доливає паливо й сировину зі скринь і складає готову продукцію у скрині виводу.

  • Alt + ЛКМ на печі (на кнопці руди чи палива), потім Alt + ЛКМ на скрині: вхід або паливо. Alt + ПКМ: вивід.
  • Shift + Alt з тими ж кнопками знімає прив'язку, а Shift + Alt + коліщатко знімає всі прив'язки.
  • Затисни Alt, щоб побачити лінії прив'язок. Шеврони на них рухаються туди, куди йдуть предмети. Page Down показує всі прив'язки довкола.
  • Мова підказок береться з налаштувань гри (українська або англійська).
  • Мод потрібен на сервері. Клієнтам він потрібен лише для прив'язування й підказок.

License

MIT. See LICENSE.

CHANGELOG

Changelog

1.5.0

  • Achievements are not lost to automation. Vanilla counts achievement stats only for the player who does the work by hand, so honey, sap and wisps collected by the mod counted for nobody. Now the server credits them as if a player had done it:
    • products the mod stores in an output chest count as picked up (and are marked so, so taking them out of the chest does not count them a second time);
    • honey and sap the mod extracts count as harvested (beehives: as many as the honey taken, like vanilla);
    • wisps caught at a wisp fountain count as picked.
  • Who gets it: the player who linked the output chest, if online; otherwise the nearest player within 30 m of the station; otherwise a random online player. Links made before 1.5.0 have no known owner: link the output chest again to claim it.
  • New server settings AchievementCredit (true) and AchievementRadius (30 m). Who made each link is kept in worlds_local/<world>.budylivproduction.txt.linkers (the link file itself is unchanged, so older versions still read it).
  • Clients need 1.5.0 to receive the stats; players on older versions are skipped and products stay uncounted until someone takes them out of the chest (as before).

1.4.0

  • Charcoal kiln takes Timberwood and Ashwood (Frostwood, Blackwood) besides wood, fine wood and corewood, by hand and from linked chests.
  • The station's owner decides what a kiln accepts, and vanilla throws away wood it does not know. So the server feeds the new wood only to kilns whose owner runs 1.4.0+ (clients announce it on connect). Everybody should update: a player on an older version or without the mod who holds a kiln loses Timberwood/Ashwood put into it by hand.

1.3.1

  • Cooking XP for automated stations now says which dish it is for, so Budyliv Skill Rates 1.1+ scales it by the dish. Without Skill Rates nothing changes. Mixed 1.3.0/1.3.1 server and clients work.

1.3.0

  • Cooking skill for automated cooking. When the mod takes food off a cooking station, the player who put that food on gets the cooking skill for taking it off (as if they had done it by hand), if they are online. For food the mod put on from a chest, both parts (putting on and taking off) go to the nearest player within 30 m of the station, otherwise to a random online player. Skill-rate mods apply as usual.
  • New server settings CookingXp (true) and CookingXpRadius (30 m).
  • Clients need 1.3.0 to receive the skill; older clients keep working without it.

1.2.1

  • New icon. Shorter package description. Mod code unchanged (plugin version stays 1.2.0).

1.2.0

  • English and Ukrainian. Hints and messages follow the game language (Ukrainian when the game is in Ukrainian, English otherwise) and switch at once when you change it. Override with [Client] Language = Auto / English / Ukrainian.
  • Server replies are now worded by each client in its own language. Compatible both ways: 1.1.0 clients on a 1.2.0 server still get Ukrainian messages, and 1.2.0 clients work with a 1.1.0 server.
  • Link lines show moving chevrons in the direction items travel: chest → station for input and fuel, station → chest for output. Speed: [Client] LinkFlowSpeed (m/s, 0 = still).
  • New icon.

1.1.0

  • Wisp fountains: link an output chest (Alt + right mouse) and the wisps lured to the fountain are caught into it.
  • Several output chests: a product goes to the chest that already holds that item and still has room; only otherwise to the first chest with room. While that chest is open, the product waits on the ground.
  • Page Down toggles showing every link around you at once (up to 80 m): lines and glow without holding Alt. The key is ShowAllLinksKey in the config.
  • Products dropped right after a transfer no longer wait up to 20 s for their chest.

1.0.1

  • Shield generators are topped up as soon as one unit of fuel fits, so the dome stays at full size. Before, they were refilled only after half the fuel was used.

1.0.0

  • First public release.
  • Station types: smelters (furnace, blast furnace, charcoal kiln, eitr refinery, windmill, spinning wheel, ...), cooking stations and stone ovens, fermenters, beehives, sap extractors, fireplaces and torches, shield generators, ballistas.
  • Links are stored on the server by prefab and position, so they survive server restarts.
  • Quiet logs by default. VerboseLogging = true logs every transfer.