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

@ -29,6 +29,7 @@
<Compile Include="..\..\..\RynthCore\src\RynthCore.PluginSdk\Manifest\RynthPluginManifest.cs" Link="Sdk\RynthPluginManifest.cs" />
<!-- The launcher's known-server picker, checked against the plugins it names. -->
<Compile Include="..\..\..\RynthCore\src\RynthCore.App\LaunchServerProfile.cs" Link="Launcher\LaunchServerProfile.cs" />
<Compile Include="..\..\..\RynthCore\src\RynthCore.App\KnownServerCatalog.cs" Link="Launcher\KnownServerCatalog.cs" />
<!-- The RynthAi test tools' check/runner harness (no plugin code in it). -->
<Compile Include="..\RynthCore.RynthAiTests\Harness\Check.cs" Link="Harness\Check.cs" />
<Compile Include="..\RynthCore.RynthAiTests\Harness\Runner.cs" Link="Harness\Runner.cs" />

View file

@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Text.Json;
using RynthCore.Plugin.ServerPack;
using RynthCore.RynthAiTests.Harness;
@ -79,38 +78,7 @@ internal static class ServerPackModelTests
Check.Eq(salvage[1].Bench, "armor", "bench lower-cased");
Check.Eq(salvage[1].Kind, "tink", "default kind");
Check.True(salvage[1].UsesTinkSlot, "slot by default");
Check.Eq(RynthCore.Plugin.Shared.ServerSalvageView.ParseList("{\"id\":\"x\"}").Count, 0, "a profile without the list (older plugins)");
// The optional row fields: absent = off / the default, and the writer leaves them out then.
Check.True(salvage.All(v => v.AppliedInt == 0 && !v.Prepared && v.Order == 0 && !v.AfterCap
&& v.StackGroup.Length == 0 && v.StackCap == 0), "optional fields default when absent");
string plain = ServerPackProfile.BuildJson(withSalvage, "RynthX", "1", true, "X");
Check.True(!plain.Contains("\"applied\"") && !plain.Contains("\"prepared\"") && !plain.Contains("\"order\"")
&& !plain.Contains("\"afterCap\"") && !plain.Contains("\"stackGroup\""), "unset fields are not written");
ServerPackInfo withRules = new("x", "X", new[] { "x.example" }, new[] { "X" })
{
Salvage = new[]
{
new ServerSalvage("melee", 52, "post-cap", "once", UsesTinkSlot: false, Order: 995, AfterCap: true),
new ServerSalvage("jewelry", 71, "stack", UsesTinkSlot: false, Order: 50, StackGroup: "jewelry-stack", StackCap: 10),
new ServerSalvage("trinkets", 20, "tier", "once", UsesTinkSlot: false, AppliedInt: 384, Prepared: true, Order: 10),
},
};
var rules = RynthCore.Plugin.Shared.ServerSalvageView.ParseList(
ServerPackProfile.BuildJson(withRules, "RynthX", "1", true, "X"));
Check.Eq(rules.Count, 3, "rows with rules");
Check.True(rules[0].AfterCap && rules[0].Order == 995 && !rules[0].Prepared && rules[0].StackGroup.Length == 0, "after cap + order");
Check.Eq(rules[1].StackGroup, "jewelry-stack", "stack group");
Check.Eq(rules[1].StackCap, 10, "stack cap");
Check.True(rules[2].Prepared && rules[2].AppliedInt == 384 && rules[2].Order == 10 && !rules[2].AfterCap, "prepared + applied + order");
Check.Eq(RynthCore.Plugin.Shared.ServerSalvageView.ParseList(
"{\"salvage\":[{\"bench\":\"jewelry\",\"material\":64,\"stackGroup\":\"g\"},{\"bench\":\"jewelry\",\"material\":71,\"stackGroup\":\"g\",\"stackCap\":0}]}")
.Count(v => v.StackGroup.Length > 0), 0, "a stack group without a positive cap is no group");
var odd = RynthCore.Plugin.Shared.ServerSalvageView.ParseList(
"{\"salvage\":[{\"bench\":\"melee\",\"material\":52,\"applied\":\"x\",\"prepared\":1,\"order\":null,\"afterCap\":\"yes\"}]}");
Check.True(odd.Count == 1 && odd[0].AppliedInt == 0 && !odd[0].Prepared && odd[0].Order == 0 && !odd[0].AfterCap,
"fields of the wrong type read as absent");
Check.Eq(RynthCore.Plugin.Shared.ServerSalvageView.ParseList("{\"id\":\"ilt\"}").Count, 0, "a profile without the list (RynthILT, older plugins)");
string idle = ServerPackProfile.BuildJson(info, "RynthColdeve", "0.1.2", false, null);
using JsonDocument idleDoc = JsonDocument.Parse(idle);
@ -234,9 +202,9 @@ internal static class ServerPackModelTests
Check.Eq(c.Address, "play.coldeve.ac:9000", "address");
Check.True(c.BottingText.StartsWith("Not published"), "unknown policy says so");
Check.True(c.BottingText.Contains("Discord"), "and points at the Discord");
var lev = new ServerPackInfo("example", "Example", new[] { "play.example.test" }, new[] { "Example" })
{ Botting = BottingPolicy.Forbidden, BottingNote = "no automation" };
Check.Eq(lev.BottingText, "Forbidden - no automation", "forbidden");
var lev = new ServerPackInfo("levistras", "Levistras", new[] { "levistras.acportalstorm.com" }, new[] { "Levistras" })
{ Botting = BottingPolicy.Forbidden, BottingNote = "100% Botting-Free" };
Check.Eq(lev.BottingText, "Forbidden - 100% Botting-Free", "forbidden");
Check.Eq(new ServerPackInfo("x", "", Array.Empty<string>(), Array.Empty<string>()).Address, "", "no host, no address");
Check.True(ServerPackModel.LauncherSteps(c)[0].Contains("play.coldeve.ac:9000"), "setup names the address");
}

View file

@ -19,6 +19,7 @@ internal static class ServerProjectsTests
r.Add("server projects: ids, plugin names and hosts are unique", Unique);
r.Add("server projects: no server's host is claimed by another server's list", NoHostOverlap);
r.Add("server projects: each new server plugin has ServerData.cs and imports the shared props", Layout);
r.Add("server projects: the launcher's known servers match the plugins RynthCore loads for them", LauncherCatalog);
}
private sealed record Project(string Dir, string PluginName, string Id, string Name, string[] Hosts, string[] Worlds, bool Shared);
@ -27,7 +28,7 @@ internal static class ServerProjectsTests
private static readonly string[] Expected =
{
"coldeve", "ilt", "frostace", "reefcull", "conquest", "dreamweave", "portalstorm", "sundering",
"achard", "leafdawn", "derptide", "frostcull", "thistlecrown", "eversong", "leafdawning", "aelrynth",
"achard", "leafdawn", "levistras", "derptide", "frostcull", "thistlecrown", "eversong", "leafdawning", "aelrynth",
};
private static string PluginsDir()
@ -104,4 +105,42 @@ internal static class ServerProjectsTests
}
}
/// <summary>
/// A profile made from the launcher's picker connects to the catalog's host; RynthCore's load
/// gate then picks the plugin whose hosts claim it. So each entry must name a real server plugin
/// with the same id, that plugin (and no other) must claim the host, and the port and emulator
/// must agree with the plugin's ServerData.cs (the card shows those).
/// </summary>
private static void LauncherCatalog()
{
List<Project> projects = Load();
var catalog = RynthCore.App.KnownServerCatalog.All;
Check.Eq(catalog.Count, projects.Count, "one known server per server plugin");
foreach (RynthCore.App.KnownServer known in catalog)
{
Project? p = projects.FirstOrDefault(x => string.Equals(x.PluginName, known.PluginName, StringComparison.Ordinal));
Check.True(p != null, $"{known.Name}: plugin {known.PluginName} exists");
if (p == null) continue;
Check.Eq(p.Id, known.Id, known.PluginName + " server id");
foreach (Project candidate in projects)
{
var server = new RynthPluginServer { Id = candidate.Id, Hosts = candidate.Hosts.ToList() };
bool claims = server.MatchesHost(known.Host, out _);
if (candidate == p)
Check.True(claims, $"{p.PluginName} claims the launcher's host {known.Host}");
else
Check.False(claims, $"{candidate.PluginName} does not claim {known.Name}'s host {known.Host}");
}
if (p.Id == "ilt") continue; // RynthILT has no ServerData.cs
string data = File.ReadAllText(Path.Combine(p.Dir, "ServerData.cs"));
var port = System.Text.RegularExpressions.Regex.Match(data, @"\bPort\s*=\s*(\d+)");
int dataPort = port.Success ? int.Parse(port.Groups[1].Value) : 9000;
Check.Eq(known.Port, dataPort, known.PluginName + " port matches ServerData.cs");
var emu = System.Text.RegularExpressions.Regex.Match(data, @"\bEmulator\s*=\s*""([^""]+)""");
string dataEmu = emu.Success ? emu.Groups[1].Value : "ACE";
Check.Eq(known.Emulator.ToString().ToUpperInvariant(), dataEmu.ToUpperInvariant(), known.PluginName + " emulator matches ServerData.cs");
}
}
}