feat: port SK test branch (2026.10.18.24) onto sk

Squash of test/hotbuild-2026-10-16 as merged onto aelrynth main 2026.10.17.1, matching the
2026.10.18.24 test installer. The test branch wins where both changed the same lines; sk-only
changes kept; duplicate features cut to the test branch's copy. RynthAi HandWrittenVersion stays
0.5.0-legacy-ui on sk.

Highlights: RynthOracle 0.6.0 (Legendary, Markers, Dynamic Stamps and Temple guardians merged into
the Quests list, RynthNav Go to), RynthILT 0.2.20 (ub-IT auto-chunk rules, rating level,
RynthILT.Data v3), RynthAi ub-IT /ub and VT/MT meta compatibility and the loot attribute checklist,
RynthNav destination alternatives. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
This commit is contained in:
BlankenshipG 2026-10-18 16:22:40 -04:00
commit 7797901d69
287 changed files with 22602 additions and 1090 deletions

View file

@ -26,7 +26,14 @@ namespace RynthCore.Plugin.RynthInventory;
/// </summary>
public sealed class RynthInventoryPlugin : RynthPluginBase
{
public const string Version = "0.1.2";
// Previous release: 0.1.3. Keep in step with PluginExports.GetVersion.
public const string Version = "0.1.4";
// RynthILT's bank JSON: every BankTabReadMs on the Banking tab, every BankIdleReadMs with the
// window on another tab (so the Banking button appears on ILT worlds), never with it closed.
private const long BankTabReadMs = 2000, BankIdleReadMs = 10_000;
private long _nextBankReadMs;
private string _bankJson = string.Empty;
private const long IdentityRetryMs = 1000;
private const long AccountWaitMs = 15_000;
@ -86,6 +93,7 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
_c.RequestRescan = () => { _scheduler.RequestFullScan(); _forceWrite = true; };
_c.RequestReload = () => { _reloadWanted = true; _files.Clear(); };
_c.Forget = ForgetCharacter;
_c.BankCommand = SendBankVerb;
_ui.Log = msg => Host.Log(msg);
_vault = new VaultFeed(text => Host.InvokeChatParser(text));
@ -123,9 +131,44 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
_carriedIds.Clear();
_carriedPacks.Clear();
RefreshIconSupport();
ClearBank();
if (_window != null) { _window.Visible = _c.Settings.MainWindowOpen; _window.NeedsPass = true; }
}
/// <summary>Forgets the last bank read (login, logout): the next character's comes fresh.</summary>
private void ClearBank()
{
_c.Bank = Shared.IltBankView.None;
_bankJson = string.Empty;
_nextBankReadMs = 0;
}
/// <summary>The Banking tab's actions: a verb line for RynthILT, then a quick re-read for its reply.</summary>
private bool SendBankVerb(string verb)
{
long now = Environment.TickCount64;
bool ok = _c.InWorld && _c.IltData.BankCommand(Host, now, verb);
_nextBankReadMs = now + 500;
if (_window != null) _window.NeedsPass = true;
return ok;
}
/// <summary>
/// Reads RynthILT's bank JSON while the window is open (more often on the Banking tab) and
/// redraws when it changed. Reading is what tells RynthILT someone is looking.
/// </summary>
private void TickBank(long now)
{
if (!_c.InWorld || _window == null || _view == null || !_window.Visible) return;
if (now < _nextBankReadMs) return;
_nextBankReadMs = now + (_view.Tab == InventoryView.TabBanking ? BankTabReadMs : BankIdleReadMs);
string json = _c.IltData.ReadBank(Host, now);
if (string.Equals(json, _bankJson, StringComparison.Ordinal)) return;
_bankJson = json;
_c.Bank = Shared.IltBankView.Parse(json);
_window.NeedsPass = true;
}
public override void OnLogout()
{
// Last word for this character: write what it has now (also refreshes its "scanned" time).
@ -138,6 +181,7 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
_ui.SubmitEmpty(Host);
_c.Live = null;
_indexDirty = true;
ClearBank();
}
public override void Shutdown()
@ -217,12 +261,6 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
case "":
if (_window != null) { _window.Visible = !_window.Visible; _window.NeedsPass = true; }
break;
// Old Mini Remote "Banking" tab ("/ginv bank"): open Global Inventory (don't search
// for "bank"). Storage containers still show when Include Storage is on.
case "bank":
case "banking":
if (_window != null) { _window.Visible = true; _window.NeedsPass = true; }
break;
case "scan":
case "rescan":
_scheduler.RequestFullScan();
@ -245,9 +283,17 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
case "status":
PrintStatus();
break;
case "bank":
case "banking":
// The Banking tab (the Mini Remote's Banking tab moved here 2026-10-13; RynthCore,
// RynthAi and RynthILT link here). Shows, never toggles off.
_view?.ShowBanking();
_nextBankReadMs = 0;
if (_window != null) { _window.Visible = true; _window.NeedsPass = true; }
break;
case "help":
case "?":
_c.Print("/ginv (window), /ginv bank (same), /ginv <text> (search), /ginv scan (rescan and save now), /ginv keep (record the open container as storage), /ginv vault (read the Aelrynth account vault now), /ginv reload, /ginv status");
_c.Print("/ginv (window), /ginv <text> (search), /ginv bank (every character's Infinite Leaftide bank), /ginv scan (rescan and save now), /ginv keep (record the open container as storage), /ginv vault (read the Aelrynth account vault now), /ginv reload, /ginv status");
break;
default:
_view?.SetSearch(arg);
@ -315,6 +361,7 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
}
TickWrite(now);
TickIndex(now);
TickBank(now);
if (!Host.HasUi || _window == null || _view == null) return;
Record(_window, now, 2000, _view.Draw);