You are viewing a potentially older version of this package. View all versions.
DFG-TradeWind-0.3.6 icon

TradeWind

Place a trade dock and send its chest across shared water. E opens routes on the DFG board. Shift+E opens outgoing storage.

By DFG
Date uploaded 3 days ago
Version 0.3.6
Download link DFG-TradeWind-0.3.6.zip
Downloads 28
Dependency string DFG-TradeWind-0.3.6

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333
ValheimModding-Jotunn-2.30.0 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.0
DFG-DFGHub-1.4.2 icon
DFG-DFGHub

Central hammer category for Draugr Forged Gaming mods, plus the in-game DFG board (Alt+T) for Blue Collar, Earl, TradeWind, Sea Route, and Bounties.

Preferred version: 1.4.2

README

Report a bug or buy us a coffee at dfgaming.net.

Trade Wind

Send a dock chest to another harbor that shares water. A small skiff clips along the route while you watch the time remaining. The crossing has a coin cost based on distance and how many stacks you send.

A Valheim BepInEx 5 plugin built on Jotunn.

Features

  • Trade Dock (Hammer > Misc, 30 Wood + 10 Iron). A chest with a moored skiff. Press E on the skiff to name the harbor and see every other dock.
  • A dock is only offered when the two harbors share a water path (a straight channel, or a bend around a peninsula).
  • Each route shows distance, travel time (distance / TravelSpeed), and a coin cost (BaseCoins + 1 per 100 m + 1 per stack).
  • Send takes the coins and the chest, and launches a small skiff. The skiff is for show: it has no collision and clips through the world.
  • Alt+T opens the DFG board (DFGHub). The TradeWind tab lists every crossing, a progress bar, and the time remaining. Recall puts the goods back and returns the coins when the origin dock is loaded.
  • Press E on a dock for routes. Press Shift+E for the outgoing chest.

Requirements

  • BepInEx 5 (denikson-BepInExPack_Valheim)
  • Jotunn 2.30.x (ValheimModding-Jotunn)
  • DFGHub (DFG-DFGHub-1.4.2)

Installation

  1. Install through your mod manager (recommended).
  2. Manual: drop TradeWind.dll into BepInEx\plugins\.

How to use

  1. Restart the game after installing (build pieces register at startup).
  2. Build two Trade Docks on the water.
  3. Press E on a dock's skiff. Rename it. The other dock appears if a water path exists, with the time and the coin cost.
  4. Press E on the dock deck and put goods in the chest.
  5. Press Send. Coins leave your pocket, and a small skiff heads for the other harbor.
  6. Press Alt+T and open the TradeWind tab to see how long is left, or Recall to undo the shipment.

Configuration

Generated on first launch at BepInEx\config\com.tradewind.tradewind.cfg:

Section Key Default Description
General Enabled true Master toggle.
General AddBuildPieces true Register the pieces (restart).
General DebugLogging true Log trade activity.
General ShowMessages true Departure/arrival messages.
General EnableWebGui true Serve the web GUI.
General WebPort 8780 Web GUI port.
Trade TravelSpeed 5 Skiff speed (m/s); time = path length / speed.
Trade MinWaterDepth 1.5 Min water depth along the route (m).
Trade WaterSampleStep 20 Spacing between water samples (m).
Trade BaseCoins 5 Coins charged before distance and stack fees.
Trade CoinsPer100m 1 Extra coins per 100 m.
Trade CoinsPerStack 1 Extra coins per stack in the chest.
Trade BoatScale 0.4 Size of the show skiff.
Controls MenuKey Alt+T Open the shipment board.

Notes

  • Shipment state lives on the skiff's ZDO and is mirrored to tradewind_routes.json + tradewind_harbors.json under BepInEx\config\.
  • Goods wait to unload until the destination dock is loaded in the world.
  • Requires Jotunn on both server and clients.

Changelog

See CHANGELOG.md.

Support

If this mod has made your journey through the Tenth World a little better, consider tossing a coin into my Ko-fi jar: https://ko-fi.com/draugrforgedgaming. Your support keeps the forge hot and the mead flowing! Skål!

CHANGELOG

Changelog

All notable changes to Trade Wind.

[0.3.6] - DFG board

  • Harbor routes are the TradeWind tab on the DFG board. Alt+T belongs to DFGHub. E on a dock opens that tab. Shift+E opens the outgoing chest beside your inventory.
  • DFGHub is required. The mod does not load without it.

[0.3.5] - Place the dock on the ground

  • The dock was a water piece, and Valheim holds every water piece's ghost 3 m above where you aim. It is a normal ground piece now, so the ghost sits where you aim and the pilings stand on the shore or the seabed.
  • The dock was washed out. Its brightness was being forced up to 1; it now keeps the creature shader's own value.

[0.3.4] - Decimated dock

  • The dock is tradedock.glb again, now decimated to about 19,000 triangles in Blender. It is under the 60,000-vertex limit, so it loads with its own texture layout instead of being simplified at load.

[0.3.3] - Lit dock, ships required, coins counted

  • The dock drew almost black because its normals were calculated before the mesh had triangles, so every one was zero. Each simplified triangle now has its own normal and the texture coordinates of the surface it came from.
  • Sending needs a built Trade Ship within 40 m of the dock (ShipRange). The board shows how many are ready and how many are at sea, and a ship is busy until its shipment finishes.
  • "Not enough coins" was wrong every time. Coins were counted by the prefab name instead of the item name, which always found zero.

[0.3.2] - Keep the dock chest open

  • Shift+E was opening the player inventory and then closing the chest, because a chest shuts at 4 m and the dock is much wider than that.

[0.3.1] - 2K dock texture

  • The placed dock uses wooddock.glb. That export is the 2K texture.

[0.3.0] - Harbor storage

  • E opens the Trade Wind board. Shift+E opens that dock's outgoing chest.
  • Each harbor has its own outgoing and incoming storage, 48 slots at the wharf. The board lists every loaded dock and upgrades a harbor to 64 or 80 slots for coins.
  • A skiff that arrives to a full incoming bay waits just outside with the cargo aboard, then unloads and sails home.

[0.2.11] - Use the creature shader directly

  • Copying the whole creature material onto the pink error shader left the error shader in place. The dock now takes the creature shader itself and does not enable the missing normal-map variant.

[0.2.10] - Stop the pink dock

  • The dock material was the missing-shader pink. It now copies a live creature material once that shader exists, and leaves the normal-map variant off so the wood texture can draw.

[0.2.9] - Light the dock

  • The dock was copying the floor's snow shader, which draws the mesh black. It now uses a creature material that already has the game's lighting values, with the wood texture on top.

[0.2.8] - Draw the dock

  • The dock mesh is simplified before it is shown. The full million-vertex Tripo mesh was drawing as a black cloud.
  • The wood texture is applied to a copy of the piece material the game already lights, instead of a blank creature material.

[0.2.7] - Show the pieces

  • Trade Dock and Trade Ship are taught to the local player. Being in the Hammer table was not enough for the DFG tab to draw them.

[0.2.6] - Quiet hammer wait

  • Trade Dock and Trade Ship wait until the Hammer piece table exists instead of logging "Could not find PieceTable Hammer" every second.

[0.2.5] - Keep the DFG tab drawing

  • The dock and ship meshes stay off the hammer prefab. Photographing a million vertices was clearing the DFG tab.
  • Trade Dock and Trade Ship use a plain icon. The model is added when the piece is placed or held as the ghost.

[0.2.4] - Hide the chest piece

  • Trade Depot is no longer in the hammer. The chest in that tab was that piece.
  • The dock model stays on the build-piece layer so the hammer ghost can draw it. E opens the harbor board.

[0.2.3] - Ship model

  • The Trade Ship and the show skiff use thetradeship.glb instead of the Karve mesh.

[0.2.2] - Dock model

  • The Trade Dock piece uses tradedock.glb. Press E on the dock to open the harbor board. Chest on that board opens the goods.

[0.2.1] - Hammer list

  • Trade Dock, Trade Depot, and Trade Ship are listed in the Hammer DFG tab with real wood and iron costs.

[0.2.0] - Harbor board

  • E on the dock skiff opens a side panel: rename the harbor, see water-connected docks, time and coin cost, send the chest.
  • Alt+T opens the shipment board with time remaining. Recall returns the goods and the coins.
  • A small skiff clips along the route for show. Travel time is path length / speed.

[0.1.0] - Initial release

  • Buildable Trade Dock, Trade Depot, and Trade Ship pieces (Hammer > Misc) via Jotunn.
  • Route creation/start from the in-game menu (Alt+T) or the web GUI (port 8780).
  • Automated phase machine: depart -> sail out -> wall-clock transit -> materialize -> unload -> load -> return.
  • Dock sign interaction for renaming and load/unload container assignment.
  • Route/harbor state mirrored to tradewind_routes.json and tradewind_harbors.json.