Aestelwen-TarExtractor icon

TarExtractor

Adds a buildable Tar Extractor that passively collects Tar from Plains tar pits.

CHANGELOG

Changelog

1.0.0

  • First stable release. The features are unchanged from 0.4.0.
  • Moved the source files into folders (Core, Extractor, Prefabs, Patches), leaving only Plugin.cs at the root, with each Harmony patch in its own file under Patches. Building the Tar Extractor piece and loading translations moved out of Plugin.cs too. No behaviour change.

0.4.0

  • Collecting Tar is now handled by whoever's game is looking after the extractor, like the vanilla Sap Extractor, so two players collecting at the same moment can no longer both get the Tar.
  • New Max Per Pit setting: the most Tar Extractors that can be built in one tar pit. The default of 0 means no limit, so nothing changes for extractors you have already built. When the pit is full, the placement ghost turns red and a message says why.
  • Declared the mod as required on the server and every client to Jotunn, with matching minor versions.
  • Removed a leftover log message that referred to diagnostics which no longer exist.
  • Added a CI check that the version matches in every file.
  • Moved package.sh into .github/scripts and made it the same for every mod: the name, version and DLL now come from manifest.json and the .csproj.

0.3.1

  • Updated the BepInExPack_Valheim dependency to 5.4.2360.

0.3.0

  • Added an .editorconfig, Directory.Build.props and a CI workflow that runs dotnet format, a Release build and a NuGet vulnerability check.
  • Reformatted the code to match the new code style rules (no behaviour change).
  • Renamed some internal static fields and made string comparisons ordinal to satisfy the new code analysis rules.
  • Tidied up packaging scripts and workflow files.
  • Added a .gitattributes to keep line endings consistent.
  • Moved the local Valheim install paths into Directory.Build.props; set VALHEIM_DIR and BEPINEX_PROFILE_DIR once to build every mod without editing the .csproj.
  • Updated README and icon.

0.2.1

  • Removed diagnostic log lines that were used for development purposes.

0.2.0

  • Fixed the mod failing to load on the current Valheim version ("Cannot get result from void method Player::PlacePiece").
  • New tar-themed effects:
    • The Sap Extractor's green glow and particles are now a very dark purple.
    • The green light has been removed.
    • Oozing tar splashes, borrowed from the Growth, now drip from the spout.
    • These effects only show while the extractor holds Tar, and are no longer visible on the placement ghost.
  • Localization support for all languages supported by Valheim (except Abenaki, which falls back to English).
    • Translations reuse Valheim's own terms for Tar and the Sap Extractor where available.
    • Translation files live in Translations/<Language>.json and are embedded in the mod.

0.1.0

  • New buildable piece, the Tar Extractor, available from the Hammer's Crafting tab.
    • Built at a Workbench using the same materials as the Sap Extractor: 10 Yggdrasil wood, 5 Black metal and 1 Dvergr extractor.
    • Reuses the Sap Extractor model with a darker, tar-like tint.
  • Passive Tar collection: produces 1 Tar every 60 seconds and holds a maximum of 200 Tar.
    • Progress is saved on the piece, so it keeps accumulating while you are away.
    • Interact with the extractor to collect the stored Tar, which is dropped next to it.
    • Hover text shows how much Tar is currently stored.
  • Placement restriction: the Tar Extractor can only be placed inside a tar pit.
    • The placement ghost turns red outside a tar pit.
    • A message is shown if you try to place it somewhere invalid.
  • Admin-synced configuration options for Seconds Per Tar (default 60) and Max Tar (default 200).