You are viewing a potentially older version of this package. View all versions.
Nuckflare-DiscoveryFeed-1.2.0 icon

DiscoveryFeed

Client half of a live discovery and crafting feed: sends newly learned recipes, pieces, stations, items, trophies and biomes, plus crafted/upgraded items and fermenter taps, to the server. Needs a server plugin.

Date uploaded a day ago
Version 1.2.0
Download link Nuckflare-DiscoveryFeed-1.2.0.zip
Downloads 12
Dependency string Nuckflare-DiscoveryFeed-1.2.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350
ValheimModding-Jotunn-2.30.2 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.2

README

DiscoveryFeed

Client-side plugin. Once per second it compares your character's known recipes, build pieces, crafting stations (with level), materials, trophies and biomes with the previous check and sends anything new to the server immediately, so a server can post "X learned Y" live instead of waiting for the next character save.

It also reports crafting: items crafted or upgraded at any crafting station (with the station and its level, including upgrade failures and breaks) and fermenter taps. Crafting is aggregated for a few seconds, so crafting 50 arrows one by one becomes one entry.

It needs a server plugin that handles the DiscoveryFeed_Learned and DiscoveryFeed_Crafted routed RPCs. On a server without one the message is simply ignored and nothing else changes.

Required on the server and every client (Jötunn network compatibility EveryoneMustHaveMod, minor-version strict): a client without DiscoveryFeed, or with a different minor version, is rejected on join, so the feed is complete for every player.

Nothing is sent when you join or respawn (a baseline is taken first), and nothing is sent in single-player.

Payload (ZPackage, format version 1)

int  1
int  n, string × n           new recipes and build pieces (Player.m_knownRecipes entries)
int  n, (string, int) × n    new or upgraded crafting stations (name, level)
int  n, string × n           new materials (m_knownMaterial)
int  n, string × n           new trophies (prefab names)
int  n, string × n           new biomes (BiomeSector names, as stored by the game)

Crafting payload (DiscoveryFeed_Crafted, format version 1)

int  1
int  n, then n × (string kind, string item, int quality, string station, int stationLevel, int amount)
     kind: craft | upgrade | upgrade_failed | upgrade_broke | tap

Changelog

  • 1.2.0 required on server and all clients (Jötunn version check)
  • 1.1.0 crafting feed (crafts, upgrades, upgrade failures/breaks, fermenter taps)
  • 1.0.0 first release