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

@ -18,9 +18,8 @@ namespace RynthCore.Plugin.RynthOracle;
/// </summary>
public sealed class RynthOraclePlugin : RynthPluginBase
{
// Previous release: 0.2.5.
// Previous release: 0.2.8.
public const string Version = "0.3.1";
// Previous release: 0.5.4.
public const string Version = "0.6.0";
private const long QuestReadDelayMs = 6000; // after login, before the hidden /myquests
private const long CharacterReadMs = 1000;
@ -44,6 +43,8 @@ public sealed class RynthOraclePlugin : RynthPluginBase
private string _charmsJson = "";
private long _nextBreedingMs;
private string _breedingJson = "";
private long _nextGuardianMs;
private string _guardianJson = "";
private bool _voidAutoDecided;
private bool _dailyCheckStarted;
private int _seenFlagRevision = -1, _seenCatalogRevision = -1, _seenVoidRevision = -1, _seenIltRevision = -1;
@ -68,6 +69,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
Host.InvokeChatParser(tab < 0 ? "/rc oracle-skills off" : $"/rc oracle-skills {tab}");
_c.ToggleCharm = ToggleCharm;
_c.BreedingCommand = BreedingCommand;
_c.GuardianCommand = GuardianCommand;
_ui.Log = msg => Host.Log(msg);
_mainView = new OracleView(_c);
@ -180,6 +182,10 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_c.Breeding = Shared.IltBreedingView.None;
_breedingJson = "";
_c.BreedingMessage = "";
_c.Guardian = Shared.IltGuardianView.None;
_guardianJson = "";
_c.GuardianRevision++;
_c.GuardianMessage = "";
_c.Session = default;
_c.SessionKnown = false;
_c.AiSession.Reset();
@ -246,6 +252,44 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_main.NeedsPass = true;
}
/// <summary>The Quests tab's guardian controls: a verb for RynthILT's guardians, then a quick re-read.</summary>
private bool GuardianCommand(string verb)
{
long now = Environment.TickCount64;
bool ok = _c.InWorld && _c.IltData.GuardianCommand(Host, now, verb);
_c.GuardianMessage = ok ? "" : "RynthILT didn't take that (not loaded, or older than 0.2.20).";
_nextGuardianMs = now + 400;
if (_main != null) _main.NeedsPass = true;
return ok;
}
/// <summary>
/// While the Quests tab is on screen on Infinite Leaftide: RynthILT's Temple guardian JSON every
/// <see cref="CharacterExtrasReadMs"/> (the guardian rows, switches and last answer). Nothing is
/// read with the window closed, on another tab, or on another server.
/// </summary>
private void ReadGuardian(long now)
{
if (_main == null || _mainView == null || !_main.Visible || _mainView.Tab != OracleView.TabQuests) return;
if (!_c.Server.Is(ServerTags.InfiniteLeaftide)) return;
if (now < _nextGuardianMs) return;
_nextGuardianMs = now + CharacterExtrasReadMs;
string json = _c.IltData.ReadGuardian(Host, now);
if (string.Equals(json, _guardianJson, StringComparison.Ordinal)) return;
_guardianJson = json;
_c.Guardian = Shared.IltGuardianView.Parse(json);
_c.GuardianRevision++;
_main.NeedsPass = true;
}
/// <summary>The Quests tab filtered to the trackers (the old Legendary / Markers / Dynamic Stamps tabs' commands).</summary>
private void ShowTrackers(QuestKind? kind)
{
_mainView?.ShowTrackers(kind);
if (_main != null) { _main.Visible = true; _main.NeedsPass = true; }
_nextGuardianMs = 0; // read at once
}
/// <summary>Shows the main window on a tab (another plugin's link, or a /ro tab command).</summary>
private void ShowTab(string tab)
{
@ -394,6 +438,37 @@ public sealed class RynthOraclePlugin : RynthPluginBase
// ILT progression planners (was Skills → Progression).
ShowTab(OracleView.TabProgress);
break;
case "legendary":
case "legend":
case "john":
// John's 30 Legendary Key quests: the Quests tab's Legendary rows (the old Legendary tab).
ShowTrackers(QuestKind.Legendary);
break;
case "markers":
case "marker":
// The 100 exploration markers: the Quests tab's marker rows (the old Markers tab).
ShowTrackers(QuestKind.Marker);
break;
case "trackers":
// Every tracker this server has: Legendary, markers, and on Infinite Leaftide stamps and guardians.
ShowTrackers(null);
break;
case "dynamic":
case "dyn":
case "dyno":
case "stamps":
case "guardian":
case "guardians":
// Infinite Leaftide's trackers: Dynamic Stamps (the old tab) and RynthILT's Temple guardians.
bool guardians = arg is "guardian" or "guardians";
if (!_c.Server.Is(ServerTags.InfiniteLeaftide))
{
_c.Print((guardians ? "The Temple guardians are" : "Dynamic stamps are")
+ " an Infinite Leaftide quest line; this server isn't recognised as Infinite Leaftide.");
ShowTrackers(null);
}
else ShowTrackers(guardians ? QuestKind.Guardian : QuestKind.Dynamic);
break;
case "breeding":
case "breed":
case "pets":
@ -418,13 +493,16 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), "
+ "/ro skills|attrs|progress (raise/train and ILT planners), /ro void (Void window), "
+ "/ro timers (Quest Timers window), /ro fellowship (Fellowship tab), /ro breeding (Pet Breeding tab, Infinite Leaftide), "
+ "/ro trackers (Quests tab, trackers only), /ro legendary (John's 30 key quests), /ro markers, "
+ "/ro dynamic and /ro guardians (Infinite Leaftide: NPC stamps, Temple guardians), "
+ "/ro quests (read quest flags), /ro status, "
+ "/ro about (About tab: settings, server features)");
break;
}
if (arg is "" or "void" or "timers" or "timer" or "fellowship" or "fellow" or "fship" or "character" or "char" or "charms" or "charm"
or "skills" or "skill" or "attrs" or "attributes" or "vitals" or "progress" or "progression"
or "breeding" or "breed" or "pets" or "about" or "features" && !Host.HasUi && !_noUiLogged)
or "breeding" or "breed" or "pets" or "legendary" or "legend" or "john" or "markers" or "marker" or "trackers"
or "dynamic" or "dyn" or "dyno" or "stamps" or "guardian" or "guardians" or "about" or "features" && !Host.HasUi && !_noUiLogged)
{
_noUiLogged = true;
_c.Print("This RynthCore engine can't show plugin windows (it needs script windows, API v71, with ImGui on). /ro status still works.");
@ -434,8 +512,14 @@ public sealed class RynthOraclePlugin : RynthPluginBase
private void RequestQuests()
{
if (!_c.InWorld) return;
if (!_c.Flags.Request(cmd => Host.InvokeChatParser(cmd), Environment.TickCount64))
Host.Log("[RynthOracle] /myquests was sent moments ago; waiting for that reply.");
long now = Environment.TickCount64;
if (!_c.Flags.Request(cmd => Host.InvokeChatParser(cmd), now))
{
int wait = _c.Flags.ThrottleSecondsLeft(now);
Host.Log(wait > 0
? $"[RynthOracle] The server answers one /myquests a minute; try again in {wait}s (the flags shown are kept)."
: "[RynthOracle] /myquests was sent moments ago; waiting for that reply.");
}
if (_main != null) _main.NeedsPass = true;
}
@ -474,6 +558,11 @@ public sealed class RynthOraclePlugin : RynthPluginBase
private void TickData(long now)
{
_c.Flags.Tick(now);
if (_c.Flags.LastPartialReply is { } partial)
{
_c.Flags.LastPartialReply = null;
Host.Log($"[RynthOracle] /myquests reply looked cut short ({partial.Got} lines, {partial.Had} flags held): merged it instead of replacing the list.");
}
if (_c.Flags.Revision != _seenFlagRevision)
{
_seenFlagRevision = _c.Flags.Revision;
@ -519,6 +608,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
ReadCharacterExtras(now);
ReadBreeding(now);
ReadGuardian(now);
// RynthCore's server list (every 2 s): a new pick or override applies now, not at the next character read.
_c.ServerState.Poll(Host, now);