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:
parent
23efcfee87
commit
7797901d69
287 changed files with 22602 additions and 1090 deletions
|
|
@ -47,8 +47,8 @@ namespace RynthCore.Plugin.RynthILT;
|
|||
public sealed class RynthILTPlugin : RynthPluginBase
|
||||
{
|
||||
internal static readonly IntPtr NamePointer = Marshal.StringToHGlobalAnsi("RynthILT");
|
||||
// Previous release: 0.2.13 (ProductVersion 2026.10.16.5).
|
||||
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.2.14");
|
||||
// Previous release: 0.2.19 (ProductVersion 2026.10.18.22).
|
||||
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.2.20");
|
||||
|
||||
/// <summary>
|
||||
/// The settings view's surface. No longer in the sections manifest (the force-server override
|
||||
|
|
@ -156,6 +156,9 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
_nextNameTryMs = 0;
|
||||
_nextHubTryMs = 0;
|
||||
_ai?.Reset();
|
||||
// RynthCore's verdict first, so the Hub (and RynthAi's Mini Remote through RynthILT.Hub)
|
||||
// starts on the engine's ILT flag and this character's override, not RynthILT's own list.
|
||||
PollServerState(force: true);
|
||||
TryStartBounties();
|
||||
TryStartHub();
|
||||
}
|
||||
|
|
@ -172,6 +175,7 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
while (_typedBounty.TryDequeue(out _)) { }
|
||||
while (_engineCommands.TryDequeue(out _)) { }
|
||||
_settingsModel.Clear();
|
||||
_serverStateJson = string.Empty; // the next character's verdict is read fresh
|
||||
}
|
||||
|
||||
// Plugin unload (hot reload, update, client closing): keep the list and the Hub state for the
|
||||
|
|
@ -191,6 +195,7 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
try { RynthLog.Pump(); } catch { }
|
||||
if (!_loginComplete) return;
|
||||
_ai?.Tick();
|
||||
PollServerState(force: false);
|
||||
if (_bounties == null) TryStartBounties();
|
||||
if (_hub == null) TryStartHub();
|
||||
DrainTypedBounty();
|
||||
|
|
@ -208,6 +213,31 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
catch (Exception ex) { RynthLog.Exception(LogCat.IltHub, ex, "PublishHubFeatures"); }
|
||||
}
|
||||
|
||||
private const long ServerStatePollMs = 2000;
|
||||
private long _serverStateNextAt;
|
||||
private string _serverStateJson = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin tick, every 2 s (and at login): RynthCore's server list (plugin API v86,
|
||||
/// GetServerStateJson) into the settings model, whose "ilt" entry the Hub's world check follows
|
||||
/// (IltEngineVerdict). Parsed only when the text changed. An older engine leaves it empty, and
|
||||
/// RynthILT's own list decides. Without this the engine's verdict and the character's
|
||||
/// "/rc server ilt on|off|auto" override never reached the Hub or the Mini Remote.
|
||||
/// </summary>
|
||||
private void PollServerState(bool force)
|
||||
{
|
||||
long now = Environment.TickCount64;
|
||||
if (!force && now < _serverStateNextAt) return;
|
||||
_serverStateNextAt = now + ServerStatePollMs;
|
||||
try
|
||||
{
|
||||
if (!Host.HasGetServerStateJson || !Host.TryGetServerStateJson(out string json) || json == _serverStateJson) return;
|
||||
_serverStateJson = json;
|
||||
_settingsModel.ApplyServerState(EngineServerState.Parse(json));
|
||||
}
|
||||
catch (Exception ex) { RynthLog.Exception(LogCat.IltHub, ex, "PollServerState"); }
|
||||
}
|
||||
|
||||
/// <summary>Plugin tick: runs the settings and fellowship views' chat commands through the engine.</summary>
|
||||
private void DrainChatCommands()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue