You are viewing a potentially older version of this package. View all versions.
Wubarrk-The_Eye-2.3.4 icon

The Eye

A deterministic, cross-platform Valheim API extraction tool, vibe coders love it!

Date uploaded 2 weeks ago
Version 2.3.4
Download link Wubarrk-The_Eye-2.3.4.zip
Downloads 38
Dependency string Wubarrk-The_Eye-2.3.4

This mod requires the following mods to function

ValheimModding-JsonDotNET-13.0.4 icon
ValheimModding-JsonDotNET

Shared version 13.0.3 of Json.NET from Newtonsoft, net45 package for use in Valheim mods. Maintained by the ValheimModding team.

Preferred version: 13.0.4
denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

πŸ‘οΈ WubarrksEye (The Eye)

THE EYE VERSION CLIENT OR SERVER

"Stop guessing what the IL does. Stop decompiling 130,000 lines just to find out if CanSenseTarget is virtual or static. The truth is in the assembly, and now it's in your hands."

Type dump_eye. Get the ground truth of Valheim β€” its code, its data and your live world β€” as JSON.

A deterministic, cross-platform extraction tool. It is, without exaggeration, a vibe coder's wet dream β€” but with this data at your fingertips you are not just a vibe coder any more. You are an AI-augmented game mod designer. Forget hand-grepping decompiled source for hours, forget Harmony patches bound to the wrong overload, forget finding out months later that your monster AI was inert because vanilla's Character.OnDamaged never fires for most creatures.

When a Valheim update shifts the API under everyone's feet, this is the tool that maps the new world, tells you exactly what changed against your old baseline, names which of your mods break, and feeds all of it straight to your AI pair programmer. It is not a dumper. It is an autopsy table for the game engine.


NEW IN 2.3.1

A dump β€” or just a boot log β€” now says which sector API the build has.

Where What it tells you
Manifest.json β€Ί Compatibility β€Ί BuildShape a {Present, Shape} row for each sector member that moved on the way to 1.0: ZDOMan.FindSectorObjects (its arity and parameter types), the SimulationDistance struct, ZoneSystem.m_activeArea / m_activeDistantArea, ZNet.GetSyncedSimulationDistance(), ZoneSystem.SectorIndex, GetSectorIndex(Vector3), GetZone(Vector3), and both SectorToIndexs
SectorApi one word for the build: pre-1.0, public test or 1.0 release
The startup log a new [Eye.Compat] Build shape: ... line, so a log alone answers which build this is
More shape facts ZDO.GetSectorIndex() records its return type; ZNetScene.InActiveArea / OutsideActiveArea record how many overloads are static

πŸ”Ή Absent members are facts about the build, not blind readers β€” they never count towards the startup MISSING line Β· πŸ”Ή Huginn stays strict: the (int, int) β†’ SimulationDistance change still surfaces as a real signature change, not a type-only ripple.


BEFORE YOU INSTALL

If… Then…
πŸ§ͺ you want a clean baseline dump on a profile with only BepInEx and The Eye. Manifest.json lists every loaded plugin, so a contaminated dump is at least visible on sight.
πŸ“¦ a Valheim update is coming copy the game folder first. Steam overwrites it on launch day and the old build is gone.
πŸ—ΊοΈ you dump from the main menu you get the API and the call graph; everything else needs a loaded world.
⚠️ you see ForceGlobalActiveArea leave it off. It forces the game to instantiate every object in the world for the whole session, and the dump does not need it.

I

Every type, every value, every registry and every object in the world β€” keyed, sorted, diffable.

File Contains Keyed on
Manifest.json build identity, the md5 of every game DLL, plugins, world, options, per-file results
API_Dump.json every type in the game assemblies with its full member surface and IL fingerprints FullName
Values_Dump.json field contents for items, recipes, status effects, prefabs, vegetation, locations _Source/_Key
Registry_Dump.json enums, ZDOVars, commands, spawns, environments, raids, pieces, skills, localization _Source/_Key
CallGraph_Dump.json per-method IL edges, the CalledBy index, the RpcRegistration index Type.Signature
Prefabs_Dump.json Β· ObjectDB_Dump.json Β· Scene_Dump.json component lists Name
ZDO_Dump.json every ZDO in the loaded world, with its keys and values UID
ModImpact_Dump.json which of your mods break on this build plugin GUID / patch target
Huginn_Report.md Β· Huginn_Summary.json Β· Huginn_Diff_Report.jsonl what changed against your baseline
πŸ“– Read the saga β€” what is in each file

Manifest.json β€” every dump knows what build it came from. Valheim stamps every DLL 0.0.0.0, so The Eye writes, before anything else, the game version string with build hash, the Steam buildid, the md5 and size of every DLL in Managed/, the BepInEx version and every loaded plugin, the world's name, seed, global keys and save details, and the options used.

The API dump. The full member surface per type: fields with modifiers and constant values, properties with accessor visibility, events, constructors, full method signatures with virtual / override / abstract, interfaces, attributes, nested types and enum values. Members are keyed by name, so a renamed overload is one line in the diff. Game assemblies only by default β€” the 20,000-type mscorlib noise is gone.

Registry_Dump.json β€” where a new biome shows up first. Enums with values, the ZDOVars hash table, console commands with cheat/server/admin flags, spawn tables, creature spawners, environments and biome weather, raids, piece tables with every piece and its costs, skill definitions, and the full localization table.

Values_Dump.json. Declarations tell you a field exists; this tells you what is in it. Flattened to dotted paths, cycle-safe, with per-entry budgets so it never explodes.

A ZDO dump that means something. Prefab hash resolved to a name, rotation, sector, persistence, revisions, creation time, and every key/value the ZDO carries, with hashes mapped back to names (health, owner, items…). Every string literal in the game and plugin assemblies is hashed into the reverse map, _u / _i pair suffixes included, so most of the #hash keys in a modded dump have names.

AgentML_Complete_Dump.zip bundles everything as one minified JSONL plus the manifest, for machine ingestion.


II

Point it at an old dump, and it tells you exactly what the update changed.

πŸ¦β€β¬› A real diff every record keyed on its identity: ADDED, REMOVED and CHANGED per file, with field-level old and new values
🧬 IL fingerprints a hash of every method's normalized IL, so code that changed under an unchanged signature shows as BodyChanged
🏷️ Classified changes Added, Removed, SignatureChanged, BodyChanged, TypeOnlyRipple, Renamed (same fingerprint, new name), ValueChanged
πŸ’₯ A Breaking block types and members removed, signature changes, ripples, RPCs, ZDOVars and console commands removed, plugins broken
πŸ“ Huginn_Report.md the page a person reads first β€” breaking changes by type, body-only changes, additions, new items and prefabs, and the mod impact table
🧠 Schema-aware upgrading The Eye between two dumps no longer turns every record CHANGED; an older baseline stays useful
πŸ“– Read the saga β€” why body changes matter

A game update is mostly code that moved inside methods whose signatures did not β€” 392 of the changes in the 1.0 public test were exactly that β€” and it is what transpilers and behaviour-dependent patches trip over. The fingerprint normalizes the IL (opcodes, resolved operand names, relative branch targets, locals, exception handlers), so only a real change moves it.

TypeOnlyRipple collapses changes where only Vector2i/Vector2s or Int16/Int32 moved. Renamed needs both dumps to carry fingerprints, so it cannot fire against a baseline taken before they existed. A top-level field that exists in only one side's schema is excluded from the comparison and listed once per file as SchemaAdded / SchemaRemoved.

Pick the baseline with dump_eye baseline=<dir> or [Huginn] HuginnBaselineDir, and read Huginn_Summary.json's counts first.


III

The day-one breakage list β€” without loading a single mod.

πŸ” Every reference, resolved each plugin is read with Mono.Cecil and every reference into a game assembly is checked against the running build
🧾 Per plugin the exact unresolved methods, fields and types, and the plugin methods that use them
🎯 Harmony targets every [HarmonyPatch] target that is missing, or now ambiguous because a new overload appeared
πŸŒ‰ Bridged whether a preloader patcher such as Valheim10Compatibility filled the gap in memory
πŸ—ΊοΈ The live patch map who patches which game method
πŸ“Š The bridge priority list unresolved references ranked by how many plugins need them
πŸ“– Read the saga β€” scanning, and what it cannot see

It checks every plugin BepInEx loaded, plus any folder you point it at ([ModImpact] ScanPluginDirs or dump_eye scan=<dir>). Run it from a clean profile with scan= pointing at your mod manager profile's plugins folder, and you have the breakage list without loading any of them. On a server, client-only types are flagged as axis noise, not counted as broken.

What it cannot see: targets found by string name (AccessTools.Method(typeof(X), "Name")) or by TargetMethod() show as Unchecked β€” Harmony's own log at PatchAll is the backstop. And a field whose type changed cannot be bridged by any preloader, only by the mod itself; on 1.0 that is VisEquipment's item fields and the ZoneSystem / ZDOMan sector containers.


IV

The questions reflection cannot answer, answered before you grep the decompile.

Question Where
Which type declares this member? API_Dump.json β€” members are DeclaredOnly, so if m_targetCreature sits under MonsterAI it is not on BaseAI
What is the full overload set? API_Dump.json, with complete parameter types
Is it virtual, override or abstract? API_Dump.json, derived from GetBaseDefinition()
Does this override call base? ChainsToBase β€” Humanoid.OnDamaged does not, so a patch on Character.OnDamaged never fires for most creatures; Player.OnDamaged does
Which overload does a call really reach? Calls[].Op: call against callvirt β€” a base chain against re-dispatch, a static target against an instance one
Who calls this? the CalledBy index
Which RPC names exist, and who registers them? the RpcRegistration index β€” a renamed RPC is one diff line
πŸ“– Read the saga β€” one note on accessibility

Accessibility is the runtime assembly's. Projects compiling against a publicized assembly_valheim see private members here as directly callable. Every call and field-access edge comes from the method IL itself.


V

It keeps working when the game changes under it β€” and the game keeps running while it works.

πŸ›‘οΈ Late-bound readers every game member that moved is looked up by name at first use; a missing one costs one field in one record, never a whole extractor
🧩 A Compatibility section every game member The Eye relies on and whether this build has it β€” the BepInEx log says the same at startup
πŸš€ Zero stall coroutine-batched, scaled to your RAM, cancellable, streamed straight to disk β€” a full dump on a dedicated server takes about a minute
🧹 Deterministic UTF-8 without BOM, sorted records, invariant round-trip floats β€” two dumps of the same build on the same world are byte-identical, and that was verified

THE TOOLBOX

First ten minutes: load a world β†’ F5 β†’ dump_eye β†’ eye_status until it is done β†’ open BepInEx/config/WubarrksEye_Dumps/<timestamp>/ β†’ hand the files to your AI β†’ write better mods, you vibe coder you.

Key Command
F8 the panel, with Start Dump dump_eye a full dump
F9 toggle the HUD eye_status dump progress and the last output folder
F5 Valheim's console dump_eye baseline=<dir> scan=<dir> diff against a baseline; scan another plugin folder
nodiff noml nozdo noscene noloc noimpact skip the diff, the AgentML bundle, ZDOs, the scene, localization, mod impact
🧭 Take a baseline before a Valheim update
  1. Copy the game folder first. Steam overwrites it on launch day.
  2. Dump on a clean profile (BepInEx and The Eye only).
  3. Dump from the main menu, from inside a world, and from your dedicated server if you patch server code.
  4. After the update: dump_eye baseline=<your old dump> scan=<your profile's BepInEx/plugins>, and read Huginn_Report.md first. The mod impact table at the bottom is the list of mods to fix or bridge; the Breaking block in Huginn_Summary.json is the count.
πŸ–₯️ Dump a dedicated server

A dedicated server has no console to type into. Set [Automation] AutoDumpOnWorldLoad = true and it dumps once the world is populated (after AutoDumpDelaySeconds); add AutoDumpQuit = true and it exits afterwards. A one-shot server baseline.


COMPATIBILITY

Mod
Valheim10Compatibility Recognised: references it bridges in memory are reported as Bridged, by its bridge marker.
Any other plugin Listed in the manifest, scanned for mod impact, and its Harmony patches shown in the live patch map.

SETTINGS

Configuration Manager (F1) in game, or BepInEx/config/wubarrk.theeye.cfg.

πŸ–₯️ Local to your game β€” nothing is synced
Section Setting What it does
API ApiAssemblyFilter assemblies covered by the API and enum dumps (assembly_*,gui_framework,Splatform; * for everything loaded)
API ApiIlFingerprints the IL hashes behind BodyChanged (on)
ModImpact ScanPluginDirs extra plugin folders to scan, separated by semicolons
Huginn HuginnBaselineDir Β· HuginnMaxDeltasPerRecord Β· HuginnMarkdownReport a fixed baseline Β· the cap on deltas per CHANGED record (200) Β· write Huginn_Report.md (on)
ZDO ZdoIncludeData every ZDO key and value (on)
ZDO ForceGlobalActiveArea the old instantiate-everything patch β€” leave it off
Registry DumpLocalization the full token β†’ text table (on)
Automation AutoDumpOnWorldLoad Β· AutoDumpDelaySeconds Β· AutoDumpQuit the headless one-shot dump (off Β· 20 Β· off)
Hardware SystemMemoryProfile batch sizes per frame (Rig_16GB)

CREDITS

Needs: BepInExPack Valheim 5.4.2360 Β· JsonDotNET 13.0.4 (Newtonsoft.Json) β€” install with a mod manager, or unzip into BepInEx/plugins.

  • Plugin scanning uses Mono.Cecil β€” the copy BepInEx 5 already loads; none is shipped here.

Made by Wubarrk β€” ravenirongames.com. License: MIT. Copyright (c) 2026 Ross G. Full text in LICENSE.md.

CHANGELOG

Changelog β€” The Eye

2.3.4 β€” 2026-11-12 (store page update)

Store page rewritten to the new layout and now the same on every store; the website link now goes to https://ravenirongames.com/. No change to the mod: WubarrksEye.dll is the same file as in 2.3.3.

2.3.3 β€” 2026-11-01 (Valheim 1.0.21 compatibility)

Rebuilt against the Valheim 1.0.21 release assemblies (network version 41) and re-verified: a static reference check against both the client and dedicated-server assemblies, and a headless boot of the 1.0.21 dedicated server. No reader was broken - every member GameShape late-binds is unchanged, and the members 1.0.21 changed or removed (PlayerProfile.GetStat, Ship.UpdateSail*, CookingStation.SetSlot, ItemDrop.ResetVariantIfInvalid, CharacterDrop.s_pseudoCounter) are not read by TheEye.

2.3.2 β€” 2026-09-25 (Valheim 1.0.16 compatibility)

Rebuilt against the Valheim 1.0.16 release assemblies (client build 25527674, dedicated server build 25527701, network version 40) and re-verified: a static reference check against both the client and dedicated-server assemblies, and a headless boot of the 1.0.16 dedicated server. No reader was broken - GameShape's BuildShape probe and every other late-bound member are unchanged from 1.0.15, and the only two members 1.0.16 removed (ObjectDB.GetAllFoodItems(), ButtonSfx.Start()) are not read by TheEye.

  • One comment corrected to stop naming a specific old build as if it were current: the ZNetScene.InActiveArea / OutsideActiveArea staticness note in ZDOExistencePatch.cs (verified unchanged against the 1.0.16 decompile).

2.3.1 β€” 2026-09-09 (Valheim 1.0.7 compatibility)

Rebuilt against the Valheim 1.0.7 release assemblies (client build 25185596, dedicated server build 25185644, network version 39) and BepInEx 5.4.2350, and loaded on the 1.0.7 Linux dedicated server with no Harmony, missing-member or type-load errors. No reader was broken by 1.0.7 - every member GameShape late-binds is still present or already had a fallback - but the instrument was blind to the release-stage sector change. Now it is not.

Manifest Compatibility gains BuildShape

  • The 1.0.7 release changed the sector API a second time after the 0.221.13 playtest: ZDOMan.FindSectorObjects(Vector2s, int area, int distantArea, ...) became FindSectorObjects(Vector2s, SimulationDistance, ...) and ZoneSystem.m_activeArea / m_activeDistantArea were removed. Nothing in the 2.3.0 probe looked at that shape, so a 2.3.0 dump could not tell the playtest from the release.
  • BuildShape records, as {Present, Shape} rows using type names (never typeof() on a type an older build may lack): ZDOMan.FindSectorObjects (arity and parameter types), the SimulationDistance struct, ZoneSystem.m_activeArea / m_activeDistantArea, ZNet.GetSyncedSimulationDistance(), ZoneSystem.SectorIndex, ZoneSystem.GetSectorIndex(Vector3), ZoneSystem.GetZone(Vector3), ZDOMan.SectorToIndex / ZoneSystem.SectorToIndex (moved, not removed), and a one-token SectorApi classification (pre-1.0 / 0.221.13 playtest / 1.0 release).
  • ZDO.GetSectorIndex() now records its return type; ZNetScene.InActiveArea / OutsideActiveArea record how many overloads are static. Absent BuildShape members are facts about the build, not blind readers: they never count towards the startup MISSING line.
  • New startup line [Eye.Compat] Build shape: ..., so a boot log alone answers which build this is.

Unchanged on purpose

  • Huginn's TypeOnlyRipple collapse still covers only Vector2i/Vector2s and Int16/Int32. The (int, int) -> SimulationDistance change is an arity change and keeps surfacing as a real signature change.
  • Stale comments refreshed (GameShape, Plugin.ApplyActiveAreaOverride, ZDOExistencePatch, HuginnsReport): the by-name attachment of the active-area prefixes is what survives 1.0 making ZNetScene.InActiveArea static.

2.3.0 β€” 2026-09-08 (the 1.0 migration release)

Built and verified against the Valheim 1.0 public-test build (0.221.13, build 23105022, network version 37) on a headless dedicated server, and against the last pre-1.0 server build.

Survives the build change

  • ZDO.GetSector() (now Vector2s), the seven removed ZDOExtraData.Get*s(ZDOID) readers (now GetData(out ...)), World.m_worldVersion (now an enum) and the ZNetScene.InActiveArea / OutsideActiveArea overloads are late-bound through GameShape. A missing member costs one field, never an extractor. Three strategies for ZDO data (GetData, Get*s, private dictionaries).
  • Manifest.json Compatibility section: every game member TheEye relies on, present or MISSING, plus the ZDO data strategy in use. Logged at startup.
  • Manifest World gains WorldVersionName, ChunkedSave, SaveNumber, FileSource, SaveFiles.

New ModImpact_Dump.json

  • Every loaded plugin plus any folder in [ModImpact] ScanPluginDirs / dump_eye scan=<dir> is read with Mono.Cecil; every member and type reference into a game assembly is resolved against the running build. Unresolved references list the plugin methods that use them.
  • [HarmonyPatch] attribute targets are checked: type-missing, method-missing, overload-missing, and ambiguous (a new overload appeared and no argument types were given).
  • References missing on disk but present in memory are reported as Bridged, with the Valheim10Compatibility bridge marker recognised.
  • Live Harmony patch map (HarmonyPatch index records) and a ModImpactSummary.
  • Client-only types are flagged as axis noise when scanning on a server, not counted as broken.

IL fingerprints

  • API_Dump.json types carry MethodBodies: a hash of each method's normalized IL (opcodes, resolved operand names, relative branch targets, locals, exception handlers). [API] ApiIlFingerprints.

Huginn's Report

  • Schema-aware: top-level fields present in only one side are excluded from the comparison and listed as SchemaAdded / SchemaRemoved per file. A 2.2.0 baseline diffs cleanly against 2.3.0.
  • API CHANGED records carry Members: Added, Removed, SignatureChanged, BodyChanged, TypeOnlyRipple (Vector2i/Vector2s, Int16/Int32 only), Renamed (same IL fingerprint), ValueChanged.
  • Huginn_Summary.json gains Breaking counters and the current dump's ModImpact summary.
  • New Huginn_Report.md: human-readable summary with breaking changes grouped by type, body-only changes, additions, registries by source, content, and the mod impact table with unresolved references ranked by plugin count. [Huginn] HuginnMarkdownReport.
  • ModImpact_Dump.json is keyed by plugin GUID / patch target.

ZDO keys

  • The key reverse map now hashes every string literal in the game and plugin assemblies, plus the _u / _i pair suffixes, so most #hash keys resolve. SectorIndex emitted on 0.221.13+.

Console

  • dump_eye scan=<dir> and noimpact.

Reference DLLs

  • libs-Tools/Mono.Cecil.dll (0.10.4.0, the copy BepInEx 5 loads) added for compile; not shipped.

Known limits (measured 2026-09-08)

  • ModImpact cannot see patch targets resolved by string (AccessTools.Method(typeof(X), "Name")) or by TargetMethod(); they show as Unchecked. Harmony's own log at PatchAll is the backstop.
  • A field whose type changed (0.221.13: VisEquipment.m_*Item string -> int, ZoneSystem.m_zones, ZDOMan.m_objectsByOutsideSector) cannot be bridged by any preloader; it is reported as unresolved and the only fix is in the mod. Bridged references are recognised by the Valheim10Compatibility bridge marker.
  • Renamed needs both dumps to carry MethodBodies, so it cannot fire against a 2.2.0 baseline.

2.2.0 β€” 2026-09-03 (pre-1.0 baseline release)

Provenance

  • New Manifest.json, written before any extractor runs: game version string with build hash, Steam buildid, md5 + size of every Managed DLL, BepInEx version and every loaded plugin, world name/seed/global keys, options used, and per-file results when the dump ends. Also bundled into the AgentML zip.

API dump rewritten

  • Full member surface per type: fields (with modifiers and constant values), properties (with accessor visibility), events, constructors, methods (full signatures with virtual / override / abstract), interfaces, attributes, nested types, enum values, Unity metadata.
  • Members are objects keyed by name so Huginn reports member-level adds and removes.
  • Only game assemblies by default ([API] ApiAssemblyFilter); compiler-generated types skipped.
  • Sequential, sorted by FullName. The old Parallel.ForEach made the file order random per run.

Huginn's Report rewritten as a structural diff

  • Every record is keyed on its identity; the report says ADDED, REMOVED and CHANGED per file, with flattened field-level deltas (old/new) for CHANGED and a Huginn_Summary.json of counts.
  • The baseline can be chosen: dump_eye baseline=<dir> or [Huginn] HuginnBaselineDir.
  • The old line-hash diff could not say "removed" and produced an 80 MB report of ADDED_OR_MODIFIED.

ZDO dump

  • Prefab hash resolved to a prefab name. Adds rotation, sector, persistence, object type, revisions, creation time, and every key/value from ZDOExtraData with hashes reverse-mapped through ZDOVars. Sorted by UID.
  • The ZNetScene active-area override is now off by default ([ZDO] ForceGlobalActiveArea). It forced the game to instantiate every ZDO in the world for the whole session and the dump never needed it on a host.

New Registry_Dump.json

  • Enums with values, ZDOVars hash table, console commands with cheat/server/admin flags, SpawnSystemList spawn tables, CreatureSpawner prefabs, environments and biome environments, random events, piece tables and every piece with requirements, skill definitions, and the full localization table.

Call graph

  • RpcRegistration index records: the RPC name string and the registering method for every ZNetView / ZRoutedRpc / ZRpc.Register call.
  • Types and the CalledBy index are sorted.

Determinism and hygiene

  • All output is UTF-8 without BOM (line splitters were dropping the first record).
  • Prefabs and ObjectDB items sorted by name; positions and floats in invariant round-trip format.
  • Localization now resolves (Localization lives in assembly_guiutils; the old reflective lookup asked assembly_valheim and 894 display names stayed as $tokens).

Console and automation

  • dump_eye options: baseline=<dir> nodiff noml nozdo noscene noloc; results print to the in-game console, not only the BepInEx log. New eye_status.
  • [Automation] AutoDumpOnWorldLoad / AutoDumpDelaySeconds / AutoDumpQuit for dedicated servers, which have no console to type into.

2.1.1

  • ValueExtractor (Values_Dump.json) and CallGraphExtractor (CallGraph_Dump.json) added.
  • Streaming JSON dump engine, AgentML zip bundle, F8/F9 IMGUI controls, line-hash Huginn's Report.

1.2.9

  • Fixed Readme file

1.2.8

  • Initial public release

Support Development

https://www.patreon.com/c/WubarrkDev