Valheim
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
yesterday
Downloads
32
Size
9.4KB
ADDatHost Valheim hosting
30% off

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.

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.1.0 crafting feed (crafts, upgrades, upgrade failures/breaks, fermenter taps)
  • 1.0.0 first release
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.