Commit graph

150 commits

Author SHA1 Message Date
Erik
98c43c4c61 feat: only stream portals within 12 meters of the player 2026-03-30 22:26:19 +02:00
Erik
269964e3d3 feat: rename Pull Outdated button and sort new/updated files first
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:33:46 +01:00
Erik
3bcd7d9e49 fix: stream burden stats to overlord 2026-03-13 11:10:04 +01:00
Erik
0fbd100b7b feat: stream live equipment cantrip states 2026-03-13 09:02:44 +01:00
Erik
e20f9df256 feat: add searchable metas sync tab and configurable auto-updates
Add a Metas tab that lists remote .met/.nav files, checks update status, and downloads with .bak backups on overwrite. Add an Auto Install Updates setting (default on) and guard settings usage during early startup to avoid initialization errors.
2026-03-09 11:36:47 +01:00
erik
278802c0af fix: update auto-updater URL from spawn-detection to master branch 2026-03-04 17:55:23 +00:00
erik
cac8e96656 chore: include Release DLL with appraisal and settings fixes
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-02 21:06:09 +00:00
erik
7610ad9029 fix: ignore unmatched YAML properties in PluginSettings
Prevents deserialization crash when config file contains keys from newer plugin versions.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-02 21:06:03 +00:00
erik
ac691d3140 feat: add item appraisal requests to LiveInventoryTracker
RequestId() is called for armor, weapons, jewelry, and other items that need full ID data when picked up via OnCreateObject or OnChangeObject. Adds ObjectClassNeedsIdent helper matching MossyInventory's logic.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-02 21:05:46 +00:00
erik
97ace3375a chore: include Release DLL for live inventory delta feature 2026-03-02 19:50:13 +00:00
erik
afa85ef80d feat: add live inventory delta tracking via WebSocket
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 15:38:05 +00:00
erik
ce0fae7d10 feat: add ContainerId to MyWorldObject for inventory tracking
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 15:34:16 +00:00
erik
725bbf473f feat: display CalVer version in main window only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:26:21 +00:00
erik
c702263770 feat: auto-generate CalVer version from build date
Replace hardcoded AssemblyVersion/AssemblyFileVersion with a CalVer
scheme (YYYY.M.D.HHmm) generated at build time via an MSBuild target
that writes a CalVer.cs file into obj/ before compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:24:07 +00:00
erik
a13d30f0b2 feat: auto-check for updates 30s after startup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:13:35 +00:00
erik
57a6946e6b feat: add CheckAndInstallAsync convenience method to UpdateManager
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:11:27 +00:00
erik
aed74984c6 Fix hot reload: prevent duplicate event handlers and timer leaks
Unsubscribe all event handlers and stop/dispose timers at the start of
Startup() before re-creating objects. On first load the -= calls are
no-ops; on hot reload they remove stale handlers that would otherwise
compound with each reload. Also adds LoginComplete unsubscription to
Shutdown() for completeness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 12:55:58 +00:00
erik
1ffa163501 Fix hot reload: restore window position and add character stats timer
InitializeForHotReload was missing window position restore (settings
loaded after ViewInit, but position never re-applied) and character
stats streaming timer (10-min interval + initial send).

Added VVSTabbedMainView.RestorePosition() static wrapper and wired
it into the hot reload path after settings load. Added character
stats timer initialization as step 10.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 15:05:21 +00:00
erik
361c2012da Fix hot reload init ordering: move after core objects are created
InitializeForHotReload() was called at the top of Startup() before
_killTracker, _chatEventRouter, and _inventoryMonitor were created,
causing NullReferenceException. Move the hot reload block to after
all core objects are initialized.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 14:55:26 +00:00
erik
1fff36e3f7 Fix rare detection broken on hot reload / DLL update
InitializeForHotReload() never created a RareTracker — it only ran
if one already existed. When the new DLL is loaded on an already-
logged-in character, LoginComplete doesn't fire, so _rareTracker
stayed null and the null-check in ChatEventRouter.OnChatText silently
skipped all rare detection.

Now InitializeForHotReload creates and wires the RareTracker if it
hasn't been set yet, matching what LoginComplete does.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 14:52:19 +00:00
erik
a446158f63 Add DWORD properties and titles list to character stats payload
Parse augmentation, rating, mastery, society, and general DWORD properties
from the 0x0013 login message. Capture the full titles list from 0x0029.
Both are included in the character_stats WebSocket payload for the new
TreeStats-style character window in the frontend.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 14:39:08 +00:00
erik
a4d2108b3a Clean up /mm help commands
- Remove dead no-op commands (harmonyraw, debugtaper)
- Remove duplicate command (initgui, same as gui)
- Hide debug/test commands from help output (vtanktest, decalstatus,
  decaldebug, testprismatic, testdeath, testtaper, debugupdate)
- Clean up descriptions for consistency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 08:17:55 +00:00
erik
c30704aaa7 Remove files that should not be in repo
- Remove .claude/ settings (local Claude Code config)
- Remove CLAUDE.md files (local project instructions)
- Remove PluginCore.backup.cs (pre-refactoring backup, no longer needed)
- Remove FINDINGS.md (scratch analysis file)
- Add .claude/ and CLAUDE.md to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 08:10:39 +00:00
erik
64e690f625 Phase 6: Fix swallowed exceptions and cleanup unused usings
- Add debug logging to all empty catch blocks in DecalHarmonyClean.cs setup methods
  (prefix method catches intentionally stay silent to never break other plugins)
- Add error logging to VtankControl.VtSetSetting catch
- Add logging to DecalPatchMethods.ProcessInterceptedMessage catch
- Remove unused usings from PluginCore.cs (System.Diagnostics, System.Drawing,
  System.Text, System.Text.RegularExpressions)
- Flatten redundant nested try/catch in PatchPluginHost

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:59:34 +00:00
erik
0713e96a99 Phase 5: Extract QuestStreamingService and introduce IGameStats
- Extract QuestStreamingService.cs from PluginCore (timer, IsHighPriorityQuest, FormatCountdown)
- Create IGameStats interface for WebSocket telemetry decoupling
- PluginCore implements IGameStats, WebSocket.BuildPayloadJson reads from IGameStats
- WebSocket.cs no longer references PluginCore directly
- Update queststatus command to use QuestStreamingService
- Static bridge properties remain for VVSTabbedMainView compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:56:13 +00:00
erik
f9264f2767 Phase 4: Extract ChatEventRouter and GameEventRouter
- ChatEventRouter.cs: routes chat events to KillTracker, RareTracker, handles
  allegiance report trigger and WebSocket chat streaming
- GameEventRouter.cs: routes ServerDispatch messages (0xF7B0, 0x02CF) to CharacterStats
- PluginCore no longer contains OnChatText, AllChatText, NormalizeChatLine,
  or EchoFilter_ServerDispatch methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:50:41 +00:00
erik
c90e888d32 Phase 3: Extract RareTracker and InventoryMonitor
- RareTracker.cs: owns rare discovery detection, meta state toggle, WebSocket/allegiance notifications
- InventoryMonitor.cs: owns Prismatic Taper tracking with event-driven delta math
- PluginCore no longer contains inventory event handlers or rare detection logic
- Bridge properties maintain backward compat for WebSocket telemetry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:33:44 +00:00
erik
366cca8cb6 Phase 2: Extract IPluginLogger and KillTracker
- Create IPluginLogger interface, PluginCore implements it
- CharacterStats.cs and WebSocket.cs now use IPluginLogger instead of PluginCore.WriteToChat
- Extract KillTracker.cs: owns kill detection (all 36 regex patterns), death tracking,
  rate calculation, and the 1-sec stats update timer
- Bridge properties on PluginCore maintain backward compat for WebSocket telemetry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:29:49 +00:00
erik
4845a67c1f Phase 1: Extract Constants.cs and CommandRouter.cs
- Extract magic numbers (timer intervals, message type IDs, property keys) into Constants.cs
- Replace ~600-line HandleMmCommand switch with dictionary-based CommandRouter
- All /mm commands preserved with same behavior, now registered via lambdas
- PluginCore.cs and CharacterStats.cs updated to use named constants

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:24:43 +00:00
erik
9e9a94f159 Remove unused features: HTTP server, old telemetry, !do/!dot chat commands
- Delete HttpCommandServer.cs (localhost:8085 HTTP listener)
- Delete Telemetry.cs (old HTTP POST to mosswart.snakedesert.se/position/)
- Remove !do/!dot allegiance chat regex matching from OnChatText
- Remove RemoteCommandsEnabled, HttpServerEnabled, TelemetryEnabled settings
- Remove corresponding UI checkboxes, /mm command handlers, and wiring
- Keep: WebSocket command receive, ClientTelemetry.cs (used by WS streaming)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 07:02:07 +00:00
erik
c53aa4b31b Fix luminance: hook ServerDispatch in Startup and handle 0x02CF updates
- Move Init() and ServerDispatch hook from LoginComplete to Startup so
  event 0x0013 (character properties) is caught during login sequence
- Add handler for message 0x02CF (PrivateUpdatePropertyInt64) to capture
  runtime luminance changes when player earns/spends luminance in-game
- Uses RawData byte parsing for 0x02CF since Decal messages.xml may not
  define this message type

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 06:18:15 +00:00
erik
ad8fb3a4ba Fix luminance data lost by Init() timing: move ServerDispatch hook to LoginComplete
ServerDispatch was hooked in Startup() but Init() was called later in
LoginComplete(), clearing the luminance/title data already captured from
the 0x0013 network event. Now hook ServerDispatch after Init() so
captured data is not reset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 16:25:28 +00:00
erik
88600db779 Enable Linux builds: bundle all Decal DLLs and fix csproj paths
- Add missing DLLs to lib/: Decal.Interop.Filters, Decal.FileService,
  Decal.Interop.D3DService, Decal.Interop.Input, Decal, DecalNet, VCS5
- Convert all Windows-absolute HintPaths to relative lib\ paths
- Convert COM references (Decal, DecalNet) to regular assembly references
- Add Microsoft.NETFramework.ReferenceAssemblies for cross-platform builds
- Add AllowUnsafeBlocks and PlatformTarget to Release configuration
- Update Release DLL with character stats streaming feature

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 16:10:38 +00:00
erik
1fdae96262 feat: wire up character stats timer, ServerDispatch, and login send
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:43:01 +00:00
erik
655bfd5163 feat: add CharacterStats data collection and network message handlers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:38:27 +00:00
erik
84462d7c92 feat: add SendCharacterStatsAsync to WebSocket
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:36:12 +00:00
Erik
d722deeefc added chest looter 2025-12-09 21:32:31 +01:00
erik
0d57c527dd Deleted files. 2025-12-09 21:27:37 +01:00
erik
d9a1ef9e68 deleted files 2025-12-09 21:27:30 +01:00
erik
c90a11fc29 added chest looter 2025-12-09 21:23:51 +01:00
Erik
2eb9a7773e Added chest looter 2025-12-09 17:31:27 +01:00
erik
5fe0f85369 Test for alex 2025-06-22 23:44:04 +02:00
erik
bc68d29ba5 Added loader 2025-06-22 22:35:50 +02:00
erik
8b3c800b3f v5.0.0.0 2025-06-22 22:31:21 +02:00
erik
be7e8302cd Correct version 2025-06-22 22:26:58 +02:00
erik
6120966c05 Added hashed based checking of updates. 2025-06-22 22:22:10 +02:00
erik
e9925096f0 Debug 2025-06-22 21:32:00 +02:00
erik
c174c143c6 Fixed bug in quests 2025-06-22 17:53:24 +02:00
erik
553a2388d1 Fixed quest bug when hotrealoading 2025-06-22 17:13:38 +02:00
erik
e9a113abdd Added /mm sendinventory 2025-06-22 16:56:44 +02:00