RynthSuite as of 2026-11-29 (internal 46bae49): release 2026.11.28.1

This commit is contained in:
Tom Bohar 2026-11-29 00:38:53 -05:00
commit 598f49c899
131 changed files with 11825 additions and 329 deletions

View file

@ -52,12 +52,12 @@ public sealed class RynthOraclePlugin : RynthPluginBase
private long _nextCharacterReadMs;
private long _nextCharacterExtrasMs;
private bool _voidAutoDecided;
private bool _dailyCheckStarted;
private int _seenFlagRevision = -1, _seenCatalogRevision = -1, _seenVoidRevision = -1;
// RynthCore's server list (ServerStateClient.Revision) last applied to the server identity.
private int _seenServerStateRevision = -1;
private string? _catalogKey; // what the catalog was loaded for (QuestPackSource.Key; "" = retail only)
private int _seenPackRevision = -1; // the active server plugin's quest pack (ServerQuestPackClient.Revision)
private int _seenServerGuideRevision = -1; // its quest guide (ServerQuestGuideClient.Revision)
private int _titleCount = -2;
private uint _titleCurrent;
private long _nextAutoReadMs;
@ -144,6 +144,11 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_c.QuestPacks.Clear();
_c.QuestPacks.Poll(Host, Shared.ServerQuestPackClient.OwnerOf(_c.ServerState.State), Environment.TickCount64, force: true);
_seenPackRevision = _c.QuestPacks.Revision;
_c.ServerGuide.Clear();
_c.SessionStamps.Clear();
_c.SessionStampRevision++;
_c.Kills.Clear();
_c.ServerGuide.Poll(Host, Shared.ServerQuestPackClient.OwnerOf(_c.ServerState.State), Environment.TickCount64, force: true);
_catalogKey = null;
ApplyServer();
_titleCount = -2;
@ -157,7 +162,6 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_nextCharacterExtrasMs = now;
ClearCharacterExtras();
_voidAutoDecided = false;
_dailyCheckStarted = false;
if (_main != null) { _main.Visible = _c.Settings.MainWindowOpen; _main.NeedsPass = true; }
if (_void != null) { _void.Visible = false; _void.NeedsPass = true; }
// The quest book loads once the character's name (and world) are known (TickData).
@ -194,6 +198,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_c.VoidDotScale = 1.0;
_c.ServerState.Clear();
_c.QuestPacks.Clear();
_c.ServerGuide.Clear();
_c.TitlesKnown = false;
_c.EarnedTitles.Clear();
ClearCharacterExtras();
@ -269,6 +274,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
_skills?.Shutdown();
_ui.SubmitEmpty(Host);
_c.Updater.Shutdown();
_c.Wiki.Shutdown();
_c.Settings.Save();
}
@ -300,6 +306,15 @@ public sealed class RynthOraclePlugin : RynthPluginBase
}
if (!_c.InWorld) return;
// The Guide: a stamp ("You've stamped X!") or a kill task's kill line. Kills with the Kill Tasks list on
// screen ask for a fresh /myquests (RereadIfStale sends it, at most once a minute).
if (_c.OnGuideChatLine(line.Trim(), DateTime.UtcNow))
{
if (_mainView?.KillTasksShowing == true && _main?.Visible == true) _c.Flags.WantReread();
if (_main != null) _main.NeedsPass = true;
return;
}
// A server's own command replies (Conquest's /b, Aelrynth's /top, ...) are its server plugin's.
// A server's own Void DoT duration rule comes from its plugin's profile (RynthConquest's for
// Conquest); 1 everywhere else (VoidScaleFrom).
@ -375,7 +390,13 @@ public sealed class RynthOraclePlugin : RynthPluginBase
case OracleVerb.Tab:
// RynthAi, the server plugins and RynthCore's menus link to these; they show, never toggle off.
ShowTab(c.Tab);
Shown(OracleCommand.OnTab(c.Tab));
if (c.Tab == OracleView.TabGuide && c.Word.Length > 0 && _mainView != null)
{
GuideList list = c.Word switch { "killtasks" => GuideList.KillTasks, "society" => GuideList.Society, _ => GuideList.Contracts };
_mainView.ShowGuide(list);
Shown(OracleCommand.OnTab(c.Tab, list == GuideList.KillTasks ? "Kill Tasks" : list.ToString()));
}
else Shown(OracleCommand.OnTab(c.Tab));
break;
case OracleVerb.Trackers:
// A server's own trackers and tabs are its server plugin's pages (since 2026-10-21).
@ -396,6 +417,20 @@ public sealed class RynthOraclePlugin : RynthPluginBase
case OracleVerb.Help:
_c.Print(OracleCommand.Usage);
break;
case OracleVerb.Wiki:
{
// The AC Community Wiki feed: off until turned on; "on" says what it reads and from where first.
var (ok, text) = c.Word switch
{
"on" => _c.SetWikiFeed(true),
"off" => _c.SetWikiFeed(false),
"read" or "refresh" => _c.ReadWikiNow(),
_ => (true, "AC Community Wiki feed: " + _c.WikiStatus() + (_c.Settings.WikiFeedOn ? "" : " /ro wiki on reads " + CommunityWikiFeed.WhatItReads)),
};
if (ok) _c.Print(text); else _c.PrintFail(text);
if (_main != null) _main.NeedsPass = true;
break;
}
default:
_c.PrintFail(OracleCommand.Unknown(c.Word));
break;
@ -437,7 +472,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
if (_timers?.Visible == true) return true;
if (_main?.Visible != true || _mainView == null) return false;
string tab = _mainView.Tab;
return tab == OracleView.TabQuests || tab == OracleView.TabAugs || tab == OracleView.TabSociety;
return tab == OracleView.TabQuests || tab == OracleView.TabGuide || tab == OracleView.TabAugs || tab == OracleView.TabSociety;
}
/// <summary>Re-reads /myquests when the flags are known stale, or old and on screen; at most once a minute.</summary>
@ -615,6 +650,13 @@ public sealed class RynthOraclePlugin : RynthPluginBase
if (_main != null) _main.NeedsPass = true;
}
// A finished read of the AC Community Wiki (the feed is off by default; nothing reads it then).
if (_c.Wiki.TakeResult())
{
Host.Log("[RynthOracle] AC Community Wiki read: " + _c.Wiki.Status);
if (_main != null) _main.NeedsPass = true;
}
if (!_c.InWorld) return;
ReadCharacterExtras(now);
@ -636,6 +678,13 @@ public sealed class RynthOraclePlugin : RynthPluginBase
ApplyServer();
if (_main != null) _main.NeedsPass = true;
}
// The active server plugin's quest guide (every 2 s; the guide is read only when it changed).
_c.ServerGuide.Poll(Host, Shared.ServerQuestPackClient.OwnerOf(_c.ServerState.State), now, force: serverChanged);
if (_c.ServerGuide.Revision != _seenServerGuideRevision)
{
_seenServerGuideRevision = _c.ServerGuide.Revision;
if (_main != null) _main.NeedsPass = true;
}
if (_questReadAtMs >= 0 && now >= _questReadAtMs)
{
@ -645,10 +694,16 @@ public sealed class RynthOraclePlugin : RynthPluginBase
}
RereadIfStale(now);
if (!_dailyCheckStarted && _c.Settings.CheckQuestListDaily
&& _c.UtcNow - _c.Settings.LastQuestListCheckUtc >= QuestCatalogUpdater.Interval)
// With the feed on (and its daily read on): once a session, after the login read's delay, when the copy is a day old.
if (_questReadAtMs < 0 && now - _loginMs >= QuestReadDelayMs
&& _c.Wiki.LoginRead(_c.Settings.WikiFeedOn, _c.Settings.WikiFeedDaily, _c.UtcNow))
Host.Log($"[RynthOracle] Reading the AC Community Wiki ({CommunityWikiFeed.Host}): the saved copy is a day old or missing.");
// Once a day, however long the session (it ran once per login only, so a client that stayed
// logged in never checked again).
if (_c.Settings.CheckQuestListDaily && !_c.Updater.Running
&& QuestCatalogUpdater.Due(_c.UtcNow, _c.Settings.LastQuestListCheckUtc))
{
_dailyCheckStarted = true;
_c.Settings.LastQuestListCheckUtc = _c.UtcNow;
_c.Settings.Save();
_c.Updater.Start();