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 definitions from both sides cut to the test branch's copy. Highlights: Aelrynth Vault in the Classic and Modern inventory, loot "Add to loot profile" attribute checklist, graphics low-memory safeguard and settings panel, window placement and borderless fixes, chat coordinate links, launcher DXVK toggle, installer stamps experimental plugins with the release calver. Changelog/2026-10-18-sk-port-test-branch-2026.10.18.24.md.
This commit is contained in:
parent
a188f2a322
commit
cbd18a6880
357 changed files with 35835 additions and 903 deletions
|
|
@ -292,6 +292,37 @@ internal static class Program
|
|||
CheckNoPlainText("LEAK-CHECK-PW");
|
||||
});
|
||||
|
||||
Scenario("known servers: picking one fills the profile, saved profiles find theirs", root, () =>
|
||||
{
|
||||
var all = KnownServerCatalog.All;
|
||||
Check(all.Count == 17, $"17 known servers (16 + ILT), got {all.Count}");
|
||||
Check(all.Select(s => s.Id).Distinct(StringComparer.OrdinalIgnoreCase).Count() == all.Count, "ids unique");
|
||||
Check(all.Select(s => s.Host).Distinct(StringComparer.OrdinalIgnoreCase).Count() == all.Count, "hosts unique");
|
||||
Check(all.All(s => s.Port is > 0 and < 65536 && s.PluginName.StartsWith("Rynth", StringComparison.Ordinal)),
|
||||
"every entry has a port and a Rynth plugin");
|
||||
Check(all.Select(s => s.Name).SequenceEqual(all.Select(s => s.Name).OrderBy(n => n, StringComparer.OrdinalIgnoreCase)),
|
||||
"listed by name");
|
||||
|
||||
KnownServer? reef = KnownServerCatalog.FindById("REEFCULL");
|
||||
Check(reef?.Emulator == AcEmulatorKind.Gdle, "Reefcull is GDLE (id lookup ignores case)");
|
||||
Check(KnownServerCatalog.FindById("portalstorm")?.Port == 9020, "PortalStorm uses 9020");
|
||||
|
||||
var p = new LaunchServerProfile { Id = "keep", Alias = "Main", RodatEnabled = true, Host = "x", Port = 1 };
|
||||
KnownServerCatalog.ApplyTo(KnownServerCatalog.FindById("ilt")!, p);
|
||||
Check(p.Name == "Infinite Leaftide" && p.ConnectionString == "game.infiniteleaftide.online:9000" && p.Emulator == AcEmulatorKind.Ace,
|
||||
"ILT fills name, host, port, emulator: " + p.ConnectionString);
|
||||
Check(p.Id == "keep" && p.Alias == "Main" && p.RodatEnabled, "id, alias and Rodat kept");
|
||||
|
||||
Check(KnownServerCatalog.FindByHost("PLAY.COLDEVE.AC.")?.Id == "coldeve", "exact host (case, trailing dot)");
|
||||
Check(KnownServerCatalog.FindByHost("infiniteleaftide.online")?.Id == "ilt", "ILT's parent domain finds ILT");
|
||||
Check(KnownServerCatalog.FindByHost("aelrynth.com")?.Id == "aelrynth", "Aelrynth");
|
||||
Check(KnownServerCatalog.FindByHost("other.ddns.net") == null, "a shared dynamic-DNS domain matches nothing");
|
||||
Check(KnownServerCatalog.FindByHost("harvestbud.gdleac.com") == null, "Reefcull's shared host domain isn't Reefcull");
|
||||
Check(KnownServerCatalog.FindByHost("172.111.230.12") == null, "an IP matches only itself");
|
||||
Check(KnownServerCatalog.FindByHost("172.111.230.127")?.Id == "frostace", "FrostACE by IP");
|
||||
Check(KnownServerCatalog.FindByHost("") == null && KnownServerCatalog.FindByHost(null) == null, "empty host");
|
||||
});
|
||||
|
||||
// ── First Login dialog rules (a new server: no password, no characters yet) ──
|
||||
Scenario("first login on a new server", root, () =>
|
||||
{
|
||||
|
|
@ -382,50 +413,6 @@ internal static class Program
|
|||
Check(!File.Exists(swap.LivePath), "live file removed so the game writes its defaults");
|
||||
});
|
||||
|
||||
// ── First Login dialog rules (a new server: no password, no characters yet) ──
|
||||
Scenario("first login on a new server", root, () =>
|
||||
{
|
||||
var withPw = new LaunchAccountProfile { Id = "ilt", AccountName = "silentkelpie" };
|
||||
withPw.SetPassword(Pw);
|
||||
var noPwSame = new LaunchAccountProfile { Id = "other", AccountName = "SilentKelpie" };
|
||||
var conquest = new LaunchAccountProfile { Id = "new", AccountName = "SK", CharacterName = LaunchAccountProfile.NoneOption };
|
||||
var all = new List<LaunchAccountProfile> { withPw, noPwSame, conquest };
|
||||
|
||||
Check(FirstLoginRules.KnownAccountNames(all, "new").SequenceEqual(new[] { "silentkelpie" }),
|
||||
"known names: the others, distinct ignoring case, not this profile's own");
|
||||
|
||||
Check(FirstLoginRules.SavedPasswordSource(all, "SILENTKELPIE", "new")?.Id == "ilt",
|
||||
"the same name with a saved password can be reused (case ignored)");
|
||||
Check(FirstLoginRules.SavedPasswordSource(all, "SK", "new") == null, "a new name has none to reuse");
|
||||
Check(FirstLoginRules.SavedPasswordSource(all, "silentkelpie", "ilt") == null, "never the profile itself");
|
||||
|
||||
var copy = new LaunchAccountProfile { AccountName = "silentkelpie" };
|
||||
copy.CopyPasswordFrom(withPw);
|
||||
Check(copy.PasswordProtected == withPw.PasswordProtected && copy.TryGetPasswordForLaunch(out string reused, out _) && reused == Pw,
|
||||
"reuse copies the encrypted blob, and it decrypts");
|
||||
|
||||
var none = new List<string>();
|
||||
List<string> firstChoices = FirstLoginRules.LoginChoices(none, conquest.CharacterName);
|
||||
Check(firstChoices.SequenceEqual(new[] { FirstLoginRules.StopAtCharacterSelect }),
|
||||
"no characters yet: only stop at character select (the old (None) isn't listed)");
|
||||
Check(FirstLoginRules.CharacterNameFor(FirstLoginRules.StopAtCharacterSelect, none) == "",
|
||||
"stop with none known saves \"\" so the first character created is picked next time");
|
||||
|
||||
var chars = new List<string> { "Alpha", "Beta" };
|
||||
Check(FirstLoginRules.LoginChoices(chars, "Gamma").SequenceEqual(new[] { FirstLoginRules.StopAtCharacterSelect, "Gamma", "Alpha", "Beta" }),
|
||||
"several characters: all listed, the saved one kept even if not seen yet");
|
||||
Check(FirstLoginRules.CharacterNameFor("Beta", chars) == "Beta", "picking a character saves it");
|
||||
Check(FirstLoginRules.CharacterNameFor(FirstLoginRules.StopAtCharacterSelect, chars) == LaunchAccountProfile.NoneOption,
|
||||
"stop with characters known saves the explicit (None)");
|
||||
|
||||
Check(FirstLoginRules.Problem("SK", "", "", false, AcEmulatorKind.Ace)?.StartsWith("Enter the password") == true, "a password is required");
|
||||
Check(FirstLoginRules.Problem("SK", "a", "b", false, AcEmulatorKind.Ace)?.Contains("don't match") == true, "the confirmation must match");
|
||||
Check(FirstLoginRules.Problem("SK", "pw", "pw", false, AcEmulatorKind.Ace) == null, "name + matching password: ready");
|
||||
Check(FirstLoginRules.Problem("silentkelpie", "", "", true, AcEmulatorKind.Ace) == null, "reusing a saved password needs no typing");
|
||||
Check(FirstLoginRules.Problem("a:b", "pw", "pw", false, AcEmulatorKind.Gdle) != null, "GDLE name with a colon refused");
|
||||
Check(FirstLoginRules.Problem("", "pw", "pw", false, AcEmulatorKind.Ace) != null, "a name is required");
|
||||
});
|
||||
|
||||
// A kill while createdump.exe / WerFault.exe writes a client's crash dump cuts the dump
|
||||
// short; the launcher's kills wait for the writer, then Grace more, at most MaxHold.
|
||||
Scenario("crash dump writers: which client a command line names", root, () =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue