Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
CoglingReimagined
Adds automatic kiln and smelter loading, faster recovery from failed chest deliveries, and teleporting antenna calls to Flap's Cogling.
| Date uploaded | a day ago |
| Version | 0.1.2 |
| Download link | MooseMan-CoglingReimagined-0.1.2.zip |
| Downloads | 18 |
| Dependency string | MooseMan-CoglingReimagined-0.1.2 |
This mod requires the following mods to function
Flap-Cogling
Little robot helpers (worker NPCs) that tidy your base: pick up items and auto sort them into chests, repair buildings and gear, refuel fires, keep smelters and kilns going. Each has a personality: chats, dances, naps, fishing.
Preferred version: 1.0.0README
Cogling Reimagined
Cogling Reimagined is an independent Valheim add-on that lets Coglings start idle smelters, blast furnaces, and charcoal kilns. Coglings teleport when called from an antenna and give up sooner when a chest delivery fails.
Requires BepInEx 5 and Flap's Cogling 1.0.0.
Installation
Install CoglingReimagined in your Valheim profile through r2modman or Thunderstore Mod Manager, then launch the game with Start modded. The mod manager installs Cogling as a dependency.
For manual installation, close Valheim and put CoglingReimagined.dll in
BepInEx/plugins/CoglingReimagined in the same profile as Cogling.
For multiplayer, install the same release on every player's PC and on a dedicated server if you use one. In a world opened with Start Server, the hosting player's Cogling Reimagined config controls the extension's gameplay settings.
Behavior
- Press E on an antenna to summon eligible Coglings from its linked network. They teleport to their usual gathering spots beside that antenna, using nearby floor height, wait there as usual, and then return to work.
- Machines and source chests must be in the Cogling's linked antenna network.
- Cogling's Tend smelters setting must remain enabled.
- The bot uses Cogling's normal chest access checks, carry limits, pathfinding, animations, claims and network feeding. Materials are carried by the bot, not teleported into machines.
- Smelters and blast furnaces accept only inputs listed by that machine's recipes. Idle machines choose the supported material with the most available stock; working machines retain their current recipe. Fuel is supplied first when needed. A machine may be loaded with ore before coal becomes available; the bot returns to fuel it once coal is stored in a chest.
- Kilns use ordinary
Woodonly by default. They leave 50 Wood in accessible network chests and aim for 100 Coal, counting coal in those chests plus queued kiln output. - Wood reserve is rechecked immediately before withdrawal, protecting it from overlapping local bot jobs or player withdrawals. Wood already queued is not removed. Materials already carried, on the ground, or queued concurrently on another client can cause coal-target overshoot.
- Chest deliveries can try one alternate chest after a failure, with a 30-second limit across both attempts. On failure, Cogling puts the carried stack on the ground and uses its existing 90-second pickup cooldown for that drop. It can then take another job.
- Cogling uses its usual sorting priorities, and work runs while its area is loaded. Other automation mods can affect the same inventories.
Chest sorting
Cogling 1.0.0 already reads named item groups from [4 - Sorting] in the
profile's BepInEx/config/nick.Cogling.cfg. Its defaults include separate
groups for ores, ingots, wood, stone, mushrooms, berries, vegetables, raw meat,
cooked meat, hides, seeds, and valuables.
For new deposits, Cogling first looks for a chest with room that already holds the same item. Then it tries the item's groups in order, with built-in groups before custom groups. A group matches a chest through its contents, so put a representative item in the chest to establish the group. If no group matches, Cogling tries its usual fallbacks, such as a chest with similar item types or an empty chest. With Re-sort by groups enabled, it can also move lone stacks that have no related items in their current chest.
Starter preset
With Valheim closed, update these three entries in the existing
[4 - Sorting] section of nick.Cogling.cfg. Cogling uses the groups from
the game running the bot, so apply the same preset on each player's PC for
consistent sorting in multiplayer. If you already have custom groups, merge
them into the same More groups line using | between groups.
The blank entries combine the two default metal groups into one custom group.
Ores =
Ingots =
More groups = Metals = CopperOre, CopperScrap, Copper, TinOre, Tin, Bronze, IronScrap, IronOre, Iron, SilverOre, Silver, BlackMetalScrap, BlackMetal, FlametalOre, FlametalOreNew, Flametal, FlametalNew | Portal materials = GreydwarfEye, FineWood, SurtlingCore | Cooking ingredients = GreydwarfEye, Honey, Blueberries, Raspberry, Cloudberry, Carrot, Turnip, Onion, BarleyFlour, Thistle
Seed the metals chest with a copper bar, the portal chest with a Surtling Core, and the cooking chest with honey. In a test world, let the Cogling pick up tin, iron, and Greydwarf Eyes. With space available and no matching stacks elsewhere, the metals should go to the copper chest and the eyes should go to the portal chest. To test the cooking fallback, remove the portal materials and any existing eye stacks from accessible chests before offering another eye. Swap the two custom food and portal groups in the line to prefer cooking for new eye deposits when both chests match. Cogling's identical-item consolidation can still gather eyes stored in both chests into one.
Build
- Copy
Build.local.props.exampletoBuild.local.propsand set the two local paths. - Open
CoglingReimagined.slnin Visual Studio, or rundotnet build -c Release. - Run
dotnet run --project tests/PolicyTests.csproj -c Releasefor policy and Harmony checks.
On Windows, powershell -File build.ps1 also checks the installed Cogling's integration
signatures and produces a versioned manual ZIP under artifacts. Add -InstallToProfile
to install it into the profile configured in Build.local.props while Valheim is closed.
The verification harness uses .NET Framework 4.8 to run the game's existing Harmony/MonoMod
libraries; the plugin itself still targets .NET Standard 2.1. Current game references can emit
two MSB3277 warnings for System.Net.Http and System.IO.Compression; this extension calls neither
API and ships neither library. These warnings do not prevent building the plugin.
References come from your installed Valheim and BepInEx. They are not packaged with the plugin. Build outputs are not automatically installed into the game. No need for the Unity editor.
Configuration
After first launch, edit BepInEx/config/matt321998.CoglingReimagined.cfg on
the host or dedicated server.
| Section | Setting | Default |
|---|---|---|
| General | Enabled | true |
| Machines | Auto start smelters | true |
| Machines | Auto start kilns | true |
| Kilns | Wood reserve | 50 |
| Kilns | Coal target | 100 |
| Kilns | Allowed wood | Wood |
Settings reload every five seconds; clients receive changes on their next settings request. Reserve applies separately to each allowed wood prefab. Empty Allowed wood disables kiln input. Turning an automatic-start option off restores the original mod's behavior for those machines, including the original kiln policy. Turning Enabled off restores original job selection entirely; an already active original job may finish. Restart after installing/updating the DLL.
Test in game before using on your main world
Back up the world. In a test world, place an antenna, Cogling, accessible chest, empty smelter, and empty kiln. Supply ore and more than 50 Wood. Confirm the bot starts the kiln without manual priming, leaves the reserve, stores coal, fuels and loads the empty smelter, and stores the produced bars. Test a blast furnace separately with a supported ore. Check full queues, no supplies, inaccessible chests, disabled settings, and two bots sharing the same stock. Join from the second PC with different local settings, confirm its log reports receiving host settings, and confirm behavior stays consistent when the host walks away and ownership changes.
For chest delivery, let the bot pick up an item, then make its destination unavailable. Confirm it can deliver to an alternate chest. Repeat with two failing destinations and check that it sets the full stack down once, leaves it alone during the cooldown, and can pick up another sortable item. Also check an obstructed route and an ordinary delivery to an accessible chest.
With two linked antennas, call from each and check that the Coglings appear beside the antenna you used, including when the other player owns nearby Coglings. Test an antenna under a roof and one on an upper floor, and check that Coglings arrive on the antenna's level. Call while one is carrying a stack and confirm it resumes handling the stack after the gathering wait.
Compilation and automated tests do not replace these gameplay checks. This development version supports Cogling 1.0.0 only and disables its patches if the integration cannot be bound.
Remove
Close Valheim and remove only CoglingReimagined.dll. Original Cogling and world files are
unchanged. An interrupted Cogling carrying supplies uses the original mod's recovery behavior.
Credits
Flap created the original Cogling mod. Cogling Reimagined is an independent companion plugin.