Valheim
Install with App

Details

Latest version
0.2.0
Last Updated
First Uploaded
Downloads
112
Likes
2
Size
176KB
Dependants
ADDatHost Valheim hosting
30% off

AutoCrafter

Crafting stations that craft on their own. Look at a workbench, a cauldron, a forge... press H, tell it what to make and how much, and it takes the ingredients from the chests around it and puts the result in a chest. No new items, no new buildings: it works on the stations you already have.

(Versión en español más abajo.)

What it does

  • Look at a crafting station and press H to open the HUD. Add recipes (only the ones you already know are listed) and give each one a mode:
    • Amount: make it N times, then the order is done.
    • Up to max: keep up to N in the chests. It pauses by itself at N and starts again when the stock drops. By default it never goes over N: a craft that would push the stock past N is not made.
    • No limit: craft until the ingredients or the room run out.
  • Each station is set up on its own, with up to 8 orders per station, tried from the top. Each order can be paused, and the whole station can be switched off.
  • The PANEL tab is the technical view: every station loaded around you, how many orders it has, what they are doing (crafting, waiting, finished, paused), with a switch per station and "turn all on / off".
  • Ingredients come from the chests within 50 m of the station (configurable) that you are allowed to open, nearest first. What the station makes goes into a chest that already holds that item, or else the nearest chest with room.
  • Link one chest to a station: press Link chest (next to Ferment on the STATION tab, or on the station's row in the PANEL). The HUD closes; open the chest you want and it is linked ("Chest linked to Workbench"). From then on everything the station makes, including ingredients it makes on the way and what comes out of finished barrels, goes into that chest and only there. It can be at any distance and stays linked after reloading the world; other players with the mod see the link. If that chest is not available (not loaded, open by someone else, no access) the order says so and waits; Unlink goes back to the normal choice. One chest per station.
  • It makes the missing ingredient (switch Make missing on each order, on by default): if an ingredient is not in the chests but this station, or another one within range, can make it, it makes that first, one craft per pass, up to 3 steps deep. If a raw material nobody can make is missing, it waits and spends nothing.
  • Keeps a reserve of ingredients: each order has a "Keep in chests" counter (off by default). The order only crafts if at least that many of every ingredient would still be in the chests after the craft ("Reserve reached: Honey (19)"), so with a reserve of 10 and a craft that takes 10 honey it needs 20 or more, never dips under 10, and starts again when you restock. The other orders of the station carry on.
  • The whole mead loop: add a mead base in Up to max mode and the station also looks after the fermenters near it (switch Ferment at the top of the station, turned on for you): it puts a base from the chests into each empty barrel and empties each finished barrel straight into a chest (nothing falls on the ground). A base, and a barrel that is fermenting, count as the potions they will give, so "max 10 potions" with 6 potions per base makes one base (6) and stops, instead of 12. Turn No overshoot off to let it go over. When the potions are drunk the loop starts again.
  • It tells you why an order is stuck: missing ingredients (and which), no room in the chests, the station needs a roof or a fire, you have not learned the recipe, or another player's game runs that station.
  • The HUD is drawn to look like part of Valheim (wooden panel, dark slots, bronze buttons) and uses the game's own fonts.

Controls

Key Action
H while looking at a crafting station Open the HUD on that station
H while looking at nothing Open the HUD on the panel of all stations
Esc or H (HUD open) Close the HUD

The key can be changed in the config file.

Good to know

  • Client-side. The server and other players do not need the mod. A station's orders are saved in the station itself, so they are kept with the world.
  • Shared between players who have the mod. What one player sets up, the others see and use. Only the game that owns the station runs it (the game decides that), so it is never run twice; it writes into the station what each order is doing and the others see it in their HUD ("Run by ..."). If the station's owner has no mod, or its report stops changing for 30 seconds (counted on each game's own clock, so sleeping through the night does not trigger it), another player's game with the mod takes it over, so the station keeps working; only a game that can use a chest there does so, and it also takes the station from a runner that reports it can use no chest (a ward or private chests). Orders run as they are even if your character has not learned the recipe yet (the player who added them knew it); turn on RequireKnownRecipes to ask for it.
  • Stations only work while they are loaded, that is, while you (or a friend with the mod) are near the base. Nothing is made while you are far away.
  • A station makes one item per craft and then rests (3 seconds by default), and it plays its own crafting sound.
  • It does what a craft does to the inventories (takes the ingredients, gives the item). It does not train your crafting skills, and the item is marked as crafted by whoever's game ran the station.
  • Recipes that only upgrade an item, and recipes that take "any one of these ingredients", are not offered.
  • Chests that another player has open are skipped.
  • Messages appear in Spanish when the game is set to Spanish, and in English otherwise.

Configuration

BepInEx/config/com.despr0grammer.autocrafter.cfg

Option Default What it does
MenuKey H Opens the HUD
HudScale 1 Size of the HUD
ShowOrdersOnHover true Show the key and the number of orders when you look at a station
Enabled true Master switch: off, no station crafts (orders are kept)
Radius 50 Metres from a station whose chests are used
CraftSeconds 3 Seconds a station rests after each craft
CountPlayerInventory false Stock orders also count what you carry
RequireKnownRecipes false Craft only recipes this character has learned (by default a station's orders run as they are)
PlayEffects true Play the station's crafting sound after each craft

Compatibility and known limitations

  • Made for Valheim 1.0.x with BepInEx 5 (BepInExPack_Valheim). If a game update changes something the mod patches, it turns itself off and says why in LogOutput.log instead of breaking the game.
  • This is an early version (0.1.0): the crafting, the stock counting and the HUD are new and have had little testing in a real game. Please report anything odd with the AutoCrafter lines of LogOutput.log. Do not rely on it for items you cannot afford to lose; the mod never creates items from nothing, but it moves real ingredients and results.
  • Meant for single player and for friends you trust. It takes ownership of the chests it uses, as the game does when you open one.
  • Other mods that also move items out of chests (craft-from-chests, auto-fuel mods...) are not known to clash, but this has not been tested.

Credits

Written by despr0grammer with the help of Claude, an AI assistant, which is why it is listed under AI Generated.


AutoCrafter (español)

Mesas de trabajo que fabrican solas. Mira un banco de trabajo, un caldero, una forja... pulsa H, dile qué hacer y cuánto, y toma los ingredientes de los cofres de alrededor y deja el resultado en un cofre. Sin objetos nuevos ni construcciones nuevas: funciona sobre las mesas que ya tienes.

Qué hace

  • Mira una mesa de trabajo y pulsa H para abrir el HUD. Añade recetas (solo salen las que ya conoces) y dale a cada una un modo:
    • Cantidad: hazla N veces y la orden se da por terminada.
    • Máximo: mantén hasta N en los cofres. Al llegar a N se pausa sola y vuelve a fabricar cuando baja el stock. Por defecto nunca pasa de N: un crafteo que dejaría el stock por encima de N no se hace.
    • Sin límite: fabrica hasta que se acaben los ingredientes o el sitio.
  • Cada mesa se configura por separado, con hasta 8 órdenes por mesa, que se prueban de arriba abajo. Cada orden se puede pausar y la mesa entera se puede apagar.
  • La pestaña PANEL es la vista técnica: todas las mesas cargadas a tu alrededor, cuántas órdenes tiene cada una y qué hacen (fabricando, esperando, terminadas, en pausa), con un interruptor por mesa y «activar / apagar todas».
  • Los ingredientes salen de los cofres a menos de 50 m de la mesa (configurable) que puedes abrir, del más cercano al más lejano. Lo que fabrica va a un cofre que ya tenga ese objeto o, si no, al cofre más cercano con hueco.
  • Vincula un cofre a una mesa: pulsa Vincular cofre (junto a Fermentar en la pestaña MESA, o en la fila de la mesa en el PANEL). El HUD se cierra; abre el cofre que quieras y queda vinculado («Cofre vinculado a Banco de trabajo»). Desde entonces todo lo que hace la mesa, también los ingredientes que fabrica por el camino y lo que sale de los barriles terminados, va a ese cofre y solo a él. Puede estar a cualquier distancia y sigue vinculado al recargar el mundo; los demás jugadores con el mod ven el vínculo. Si ese cofre no está disponible (no cargado, abierto por otro, sin permiso) la orden lo dice y espera; Quitar vuelve al reparto normal. Un cofre por mesa.
  • Fabrica el ingrediente que falta (interruptor Fabricar falta en cada orden, activado por defecto): si un ingrediente no está en los cofres pero esta mesa, u otra a su alcance, puede hacerlo, lo hace primero, un crafteo por pasada, hasta 3 pasos de profundidad. Si falta una materia prima que nadie puede hacer, espera sin gastar nada.
  • Guarda una reserva de ingredientes: cada orden tiene un contador «Dejar en cofres» (apagado por defecto). La orden solo fabrica si después del crafteo quedan en los cofres al menos ese número de cada ingrediente («Reserva alcanzada: Miel (19)»): con reserva 10 y un crafteo que gasta 10 de miel hacen falta 20 o más, nunca baja de 10 y vuelve cuando repones. Las demás órdenes de la mesa siguen.
  • Todo el ciclo del hidromiel: añade una malta en modo Máximo y la mesa cuida también los fermentadores cercanos (interruptor Fermentar arriba de la mesa, que se activa solo): mete una malta de los cofres en cada barril vacío y vacía cada barril terminado directamente en un cofre (nada cae al suelo). Una malta, y un barril que está fermentando, cuentan como las pociones que darán, así que «máximo 10 pociones» con 6 pociones por malta hace una malta (6) y para, en vez de 12. Desactiva Sin pasarse para que pueda pasar. Cuando se beben las pociones el ciclo vuelve a empezar.
  • Te dice por qué una orden está parada: faltan ingredientes (y cuáles), no hay sitio en los cofres, la mesa necesita techo o fuego, no has aprendido la receta, o la mesa la gestiona el juego de otro jugador.
  • El HUD está dibujado para parecer parte de Valheim (panel de madera, ranuras oscuras, botones de bronce) y usa las fuentes del propio juego.

Teclas

Tecla Acción
H mirando una mesa de trabajo Abre el HUD sobre esa mesa
H sin mirar nada Abre el HUD en el panel de todas las mesas
Esc o H (con el HUD abierto) Cierra el HUD

La tecla se puede cambiar en el archivo de configuración.

Conviene saber

  • Solo cliente. El servidor y los demás jugadores no necesitan el mod. Las órdenes de una mesa se guardan en la propia mesa, así que se conservan con el mundo.
  • Compartido entre los jugadores que tienen el mod. Lo que configura uno, lo ven y lo usan los demás. Solo la ejecuta el juego que es dueño de la mesa (lo decide el juego), así que nunca se ejecuta dos veces; ese juego escribe en la mesa qué hace cada orden y los demás lo ven en su HUD («Lo ejecuta ...»). Si el dueño de la mesa no tiene el mod, o su informe deja de cambiar durante 30 segundos (contados con el reloj de cada juego, así que dormir la noche no lo provoca), el juego de otro jugador con el mod la toma y la mesa sigue trabajando; solo lo hace un juego que pueda usar algún cofre allí, y también se la quita a quien informa de que no puede usar ninguno (un tótem o cofres privados). Las órdenes se ejecutan tal cual aunque tu personaje no haya aprendido la receta (quien las añadió la conocía); activa RequireKnownRecipes para exigirlo.
  • Las mesas solo trabajan mientras están cargadas, es decir, mientras tú (o un amigo con el mod) estáis cerca de la base. Lejos de ella no se fabrica nada.
  • Una mesa fabrica un objeto por vez y descansa (3 segundos por defecto), y suena con su propio sonido de crafteo.
  • Hace con los inventarios lo que hace un crafteo (toma los ingredientes y da el objeto). No sube tus habilidades de crafteo, y el objeto queda marcado como fabricado por el jugador cuyo juego ejecutó la mesa.
  • No se ofrecen las recetas que solo mejoran un objeto ni las que piden «uno cualquiera de estos ingredientes».
  • Se saltan los cofres que otro jugador tiene abiertos.
  • Los mensajes salen en español si el juego está en español, y en inglés en los demás casos.

Compatibilidad y límites conocidos

  • Hecho para Valheim 1.0.x con BepInEx 5 (BepInExPack_Valheim). Si una actualización del juego cambia algo que el mod parchea, se apaga solo y lo explica en LogOutput.log, en lugar de romper el juego.
  • Es una versión temprana (0.1.0): el crafteo, el recuento de existencias y el HUD son nuevos y se han probado poco en una partida real. Avisa de lo raro con las líneas AutoCrafter de LogOutput.log. No lo uses con objetos que no puedas permitirte perder; el mod nunca crea objetos de la nada, pero mueve ingredientes y resultados reales.
  • Pensado para un jugador y para amigos de confianza. Se hace dueño de los cofres que usa, como hace el juego al abrirlos.
  • No se conocen choques con otros mods que sacan objetos de cofres (craftear desde cofres, combustible automático...), pero no se ha probado.

Créditos

Escrito por despr0grammer con ayuda de Claude, un asistente de IA, por eso aparece en la categoría AI Generated.

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