You are viewing a potentially older version of this package. View all versions.
OdinPlus-KnarrTheTrader-0.2.0 icon

KnarrTheTrader

Knarr, you know Haldors cousin!

Date uploaded 2 years ago
Version 0.2.0
Download link OdinPlus-KnarrTheTrader-0.2.0.zip
Downloads 5378
Dependency string OdinPlus-KnarrTheTrader-0.2.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2101 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2101

README


This is a new trader you can find in Valheim. He is Haldors cousin...only by marriage though.

You can find this trader randomly spawned in the meadows. Alternatively you can always spawn him using the prefab name Knarr

Knarr has a fully server sync'd config and store configuration yaml file This file also has a filewatcher for it built into the mod that means that when you edit this file the store updates in game!

Configuration

There is a yaml file that is generated on first launch of the mod. This file will live in your BepInEx/configs folder and becalled trader_config.yaml

You are required to put the items you wish the trader to sell as well as their cost and stack in this YAML file

Example as shown:

PrefabName:
  cost: 100
  stack: 10
  inventory count: 1

Acorns:
  cost: 1 
  stack: 1
  inventory count: 10000

where you see PrefabName you need to put the prefab the trader should sell. Yes this trader supports custom items.

Known issues:

  • None yet please report if any

Join us on discord

For Questions or Comments please join the Odin Plus Team on Discord:

V0.0.1

  • Initial release

V0.0.2

  • Added prefab for currency as a config option
  • Fixed potential incompatibility when loading Objects into trader inventory

V0.0.3

  • Updated the materials on the store background to get cloned at runtime from other UI elements that way when its dark the panel will be dark etc
  • Fixed reported errors on the menu patch

V0.0.4

  • Made it fail gracefully if you put a bad entry in the YML
  • Made SellSFX play random instead of all at once
  • TODO: Tie SFX into audio mixer global group

V0.0.5

  • Added yaml file watcher for server only, if file is updated on server it is live updated in game
  • Setup custom value synchronization for the traders config entries clients get servers config values now

V0.0.6

  • Fix typo in README

V0.0.7

  • Take PR from @blaxxun-boop of CLLC that fixes filewatcher on *nix servers

V0.0.8

  • Start framework for inventory of items Knarr can now hold a fixed count of things.

V0.0.9

  • Add GUI elements to indicate if there is an inventory count of the item Inventory count example YML included with mod

V0.1.0

  • Added dragNdrop to the store screen UI element. You can now move it around the screen if you please

V0.1.1

  • Fixed issue where if item stack sale made inventory go negative it was not removed from store

V0.1.2

  • Added config option to remove randomly spawning Knarr from your world

V0.1.3

  • Changed the stores loading tactic to an async/await method. This makes stores with huge item counts loud instantly and no longer take up FPS when loading in items

V0.1.4

  • Added config option to log sales Knarr makes, this includes who purchased the item, what item was sold, and the currency volume spent on the item
  • Added fix for randomly spawning Knarr (hopefully)
  • Updated serversync binary

V0.1.5

  • Finally fixed randomly spawning Knarr from throwing obscene volume of errors What Happened? When using the method I wanted the game attempted to add 2x network components to Knarr and it caused issues this is now fixed

V0.1.6

  • Fixed UI Window being able to be dragged out of the game screen
  • Added terminal command to clean up Knarr from the world if you have previous bad spawns of him. To enter this command bring up your terminal by hitting f5 and type remove knarr if you are an admin the command will wipe knarr from that map

V0.1.7

  • Fixed random stacking bug
  • Added terminal command to find knarr spawns in your world find knarr in your console to locate random spawn and player spawned versions of knarr

V0.1.8

  • Fixed bug in random spawning Knarr
  • Fixed terminal command for locating knarr to lock to admin

V0.1.9

  • Fixed Auga incompatibility with newest release

V0.2.0

  • Added more graceful failure message if you have bad prefab in config for currency
  • Altered prefab resolution tactic to work with ZnetScene.instance instead of ObjectDB. All things must have an ItemDrop that Knarr vends
  • Added configuration option to only allow knarr to vend the items a player knows recipes for