OdinPlus-KnarrTheTrader icon

KnarrTheTrader

Knarr, you know Haldors cousin!

Last updated 3 days ago
Total downloads 24392
Total rating 11 
Categories Mods
Dependency string OdinPlus-KnarrTheTrader-0.2.9
Dependants 56 other mods depend on this mod

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.1901 icon
denikson-BepInExPack_Valheim

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

Preferred version: 5.4.1901

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:

Wood:
  cost: 10
  stack: 10
  inventory count: 100
  purchase price: 5
LeatherScraps:
  cost: 10
  stack: 5
  inventory count: -1
  purchase price: 50

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

V0.2.1

  • Gave some more graceful failures for when issues present themselves
  • UI Will no longer open if your store is empty
  • Fixed location not being used from config for store screen

V0.2.2

  • Fixed up RPC for Find Knarr to work on servers.
  • Added a repair icon to the store window You can set a lucky number in the config. When pressing the repair button a virtual dice will roll. If this dice hits your lucky number repairs will go through

V0.2.3

  • Fixed some annoying stack bug that was introduced in recent update
  • updated ServerSync to newest master
  • Knarr is now using the in game 'creature' shader which should give him a better feeling look in game

V0.2.4

  • Fix bug caught by Horem (interferes with Jewelcrafting and OdinsQOL)
  • Changed the way the PlayerBase effectArea was made so you cant interact with knarr from super far now

V0.2.5

  • Knarr can now buy things from the player!, This has a new line entry your your trader_config.yaml file that is called 'purchase price' if this value is set to 0 the item will not show in the list of things knarr can buy from the player

V0.2.6

  • Added options to hide repair tab
  • Added option to hide sell tab

V0.2.7

  • ServerSync Update

V0.2.8

  • ServerSync Update

V0.2.9

  • Mistlands Update

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2022-11-22 0.2.9 430 Version 0.2.9 Install
2022-10-31 0.2.7 1107 Version 0.2.7 Install
2022-7-20 0.2.6 4915 Version 0.2.6 Install
2022-7-12 0.2.5 816 Version 0.2.5 Install
2022-6-27 0.2.4 1287 Version 0.2.4 Install
2022-6-27 0.2.3 120 Version 0.2.3 Install
2022-3-29 0.2.2 5205 Version 0.2.2 Install
2022-3-5 0.2.0 3573 Version 0.2.0 Install
2022-3-3 0.1.9 404 Version 0.1.9 Install
2022-3-2 0.1.7 289 Version 0.1.7 Install
2022-2-24 0.1.6 749 Version 0.1.6 Install
2022-2-10 0.1.5 961 Version 0.1.5 Install
2022-2-7 0.1.4 492 Version 0.1.4 Install
2022-2-5 0.1.3 405 Version 0.1.3 Install
2022-1-31 0.1.2 518 Version 0.1.2 Install
2021-12-14 0.1.1 1796 Version 0.1.1 Install
2021-12-6 0.1.0 469 Version 0.1.0 Install
2021-12-5 0.0.9 84 Version 0.0.9 Install
2021-11-28 0.0.7 280 Version 0.0.7 Install
2021-11-26 0.0.6 182 Version 0.0.6 Install
2021-11-26 0.0.5 52 Version 0.0.5 Install
2021-11-25 0.0.4 79 Version 0.0.4 Install
2021-11-25 0.0.3 54 Version 0.0.3 Install
2021-11-25 0.0.2 73 Version 0.0.2 Install
2021-11-24 0.0.1 52 Version 0.0.1 Install