RynthCore as of 2026-11-12 (internal eb12118): release 2026.11.12.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tom Bohar 2026-11-12 19:56:36 -05:00
commit 7f1e7d5039
71 changed files with 3413 additions and 587 deletions

View file

@ -0,0 +1,301 @@
Display//Show Target Stamina / Mana
Display//RynthAi Dashboard Look
Display//Insert Key Releases the UI
Display//Borderless Windowed
Display/Window and HUD Layout/Remember Open Windows and Positions
Display/Window and HUD Layout/Panel Layout Per Character
Display/Window and HUD Layout/Layout for New Characters
Display/Window and HUD Layout/Reset This Character's Layout
Display/Window and HUD Layout/Remember Game Window Position
Display/Window and HUD Layout/Save Layout Now
Display/Colour Theme/Theme
Display/Colour Theme/Save colours as
Display/Colour Theme/Saved scheme
Display/Colour Theme/Accent
Display/Colour Theme/Highlight
Display/Colour Theme/Background
Display/Colour Theme/Title bars
Display/Colour Theme/Buttons
Display/Colour Theme/Borders
Display/Colour Theme/Text
Display/Colour Theme/Muted text
Display/Colour Theme/Reset Colours
Display/Text Size (in-game panels)/All Panels
Display/Text Size (in-game panels)/Toolbar
Display/Text Size (in-game panels)/Toolbar Rows
Display/Text Size (in-game panels)/Toolbar Icons Per Row
Display/Text Size (in-game panels)/Size Each Panel Separately
Display/Text Size (in-game panels)/RynthAi Dashboard
Display/Text Size (in-game panels)/Meta
Display/Text Size (in-game panels)/Damage
Display/Text Size (in-game panels)/Settings
Display/Text Size (in-game panels)/Monsters
Display/Text Size (in-game panels)/Nav
Display/Text Size (in-game panels)/Items
Display/Text Size (in-game panels)/Lua
Display/Text Size (in-game panels)/Radar
Display/Text Size (in-game panels)/Chat Filters
Display/Text Size (in-game panels)/RynthNav
Display/Text Size (in-game panels)/Vision
Display/Text Size (in-game panels)/Status
Display/Text Size (in-game panels)/Log
Display/Text Size (in-game panels)/Tracker
Display/Item Info/Describe Items When Selected
Display/Item Info/Item Info Options
UI/Radar/Hide retail radar
UI/Power Bar/Hide retail power bar
UI/Vitals/Hide retail vitals bar
UI/Vitals/Lock your vitals plate
UI/Vitals/Grey out what debuffs take
UI/Toolbar/Hide retail toolbar
UI/Toolbar/Shortcut bar
UI/Toolbar/Shortcut bar size
UI/Toolbar/Game panel buttons
UI/Toolbar/Game panel buttons size
UI/Toolbar/Selection
UI/Toolbar/Selection size
UI/Toolbar/Day/Night timer
UI/Toolbar/Day/Night timer size
UI/Toolbar/Shortcut bar 2
UI/Toolbar/Shortcut bar 2 size
UI/Toolbar/Shortcut bar 3
UI/Toolbar/Shortcut bar 3 size
UI/Toolbar/Shortcut bar 4
UI/Toolbar/Shortcut bar 4 size
Misc//Enable FPS Limit
Misc//Focused FPS
Misc//Background FPS
Misc//Video patch
Misc//Frame cap while patched
Misc//Close Client on Server Disconnect
Misc//Background Identify
Misc//Hold reloads while in the world
Misc//Give up holding after (min)
Misc//Auto Cram
Misc//Peace Mode When Idle
Misc//Weapons Back After Heals
Misc//Start Macro On Login
Misc//Patrol On Login
Misc//Resume Meta After Reload
Misc//Escape Acid and Lava
Misc//Yield to VTank
Misc//Enable Raycasting
Misc/Missile Arc Velocities (m/s)/Use Arcs for Missile LoS
Misc/Missile Arc Velocities (m/s)/Bow
Misc/Missile Arc Velocities (m/s)/Crossbow
Misc/Missile Arc Velocities (m/s)/Atlatl
Misc/Missile Arc Velocities (m/s)/Magic Arc
Misc/Missile Arc Velocities (m/s)/Arc Clearance (m)
Misc/Missile Arc Velocities (m/s)/LoS Debug Log
Misc/Monster Blacklist/Attempts Before Blacklist
Misc/Monster Blacklist/Blacklist Timeout (sec)
Misc/Monster Blacklist/No Progress Timeout (sec)
Misc/Give Queue/Give Interval (ms)
Recharge/In Combat — target within Monster Range (%)/Heal At
Recharge/In Combat — target within Monster Range (%)/Re-stam At
Recharge/In Combat — target within Monster Range (%)/Re-stam To
Recharge/In Combat — target within Monster Range (%)/Get Mana At
Recharge/Idle Top-Off — no targets in range (%)/Top HP
Recharge/Idle Top-Off — no targets in range (%)/Top Stam
Recharge/Idle Top-Off — no targets in range (%)/Top Mana
Recharge/Kits & Potions/Use Potions
Recharge/Kits & Potions/Use Buff Items
Recharge/Kits & Potions/Make Field Rations Below
Recharge/Kits & Potions/Use Kits In Magic Mode
Recharge/Kits & Potions/Peace Mode For Kits
Recharge/Kits & Potions/Emergency Heal At
Recharge/Kits & Potions/Stamina To Health At
Recharge/Kits & Potions/Stamina To Health Min Stamina
Recharge/Kits & Potions/Kit Min Success %
Recharge/Kits & Potions/Stamina Kit Min Success %
Recharge/Safety Stops/Stop Macro On Death
Recharge/Safety Stops/Stop Macro On No Components
Recharge/Safety Stops/Recall When Low On Components
Recharge/Safety Stops/Low Tapers At
Recharge/Safety Stops/Low Scarabs At
Recharge/Safety Stops/Stop Macro When Pack Full
Recharge/On Death/Recall On Death
Recharge/On Death/Recall Spell
Recharge/On Death/Recall Item
Recharge/Helper Settings (%) — NOT WIRED YET/Heal Others
Recharge/Helper Settings (%) — NOT WIRED YET/Re-stam Others
Recharge/Helper Settings (%) — NOT WIRED YET/Infuse Others
Melee Combat/Attack Power & Height/Use Recklessness
Melee Combat/Attack Power & Height/Melee Auto Power
Melee Combat/Attack Power & Height/Melee Power %
Melee Combat/Attack Power & Height/Melee Attack Height
Melee Combat/Attack Power & Height/Missile Auto Power
Melee Combat/Attack Power & Height/Missile Power %
Melee Combat/Attack Power & Height/Missile Attack Height
Melee Combat/Variable Power (monster rules)/Variable Min %
Melee Combat/Variable Power (monster rules)/Variable Max %
Melee Combat/Hitting the Environment/Missile Response
Melee Combat/Hitting the Environment/Hits to trip
Melee Combat/Hitting the Environment/Window (s)
Melee Combat/Hitting the Environment/Move closer by (m)
Melee Combat/Hitting the Environment/Closest (m)
Melee Combat/Hitting the Environment/Skip target (s)
Melee Combat/Pull Away (Kite)/Pull Distance (m)
Melee Combat/Pull Away (Kite)/Tag Before Fleeing
Melee Combat/Pull Away (Kite)/Use Native Attack
Melee Combat/Pull Away (Kite)/Summon Pets
Melee Combat/Pull Away (Kite)/Pet Min Monsters
Melee Combat/Pull Away (Kite)/Pet Range
Spell Combat/War/Void Casting Settings/Buff Spell Interval (ms)
Spell Combat/War/Void Casting Settings/Attack Spell Delay (ms)
Spell Combat/War/Void Casting Settings/Cast Dispel Self
Spell Combat/War/Void Casting Settings/Use Dispel Items
Spell Combat/War/Void Casting Settings/Auto Fellowship Management
Spell Combat/War/Void Casting Settings/Open fellowship on create
Spell Combat/War/Void Casting Settings/M. Charges When Off
Spell Combat/Ring Spell Override/Min Ring Targets
Spell Combat/Blast Spell Override/Blast Range (yd)
Spell Combat/Blast Spell Override/Min Blast Targets
Spell Combat/Wall Spell Override/Wall Range (yd)
Spell Combat/Wall Spell Override/Min Wall Targets
Spell Combat/Hitting the Environment/Magic Response
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 1
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 2
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 3
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 4
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 5
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 6
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 7
Spell Combat/Spell Difficulty (Min Buffed Skill)/Level 8
Ranges/Standard Ranges (Yards)/Monster Range
Ranges/Standard Ranges (Yards)/Ring Range
Ranges/Standard Ranges (Yards)/Approach Range
Ranges/Standard Ranges (Yards)/Disengage Range
Ranges/Combat Targeting/Targeting
Ranges/Combat Targeting/Target Lock
Ranges/Combat Targeting/Fight the monster I select
Ranges/Corpse Acquisition (Yards)/Corpse Max (yd)
Ranges/Corpse Acquisition (Yards)/Corpse Min (yd)
Navigation//Boost Nav Priority
Navigation//Nav point reach (yd)
Navigation/Infinite Leaftide/Vaulted Dungeons
Navigation/Nav Marker Display/Breadcrumbs
Navigation/Nav Marker Display/Route Overlay
Navigation/Nav Marker Display/Ring Thickness
Navigation/Nav Marker Display/Line Thickness
Navigation/Nav Marker Display/Height Offset
Navigation/Nav Marker Display/Slope Sink
Navigation/Nav Marker Display/Show Terrain Passability
Navigation/Nav Marker Display/Waypoint Labels
Navigation/Nav Marker Display/Guide Line
Navigation/Doors/Open Doors While Navigating
Navigation/Doors/Door Detection Range (yd)
Navigation/Doors/Only Doors On My Path
Navigation/Doors/Auto-Unlock Doors
Navigation/Getting Back On Route/Go To Closest Waypoint
Navigation/Dungeon Patrol/Coverage
Navigation/Dungeon Patrol/Sight Distance (yd)
Navigation/Dungeon Patrol/Skip Dead Ends Up To (cells)
Navigation/Dungeon Patrol/Avoid Lava/Acid Floors
Navigation/Dungeon Patrol/Distance From Walls (yd)
Navigation/Dungeon Patrol/Walk Into Rooms From (yd)
Navigation/Outdoor Hunt/Hunt Range (yd)
Navigation/Outdoor Hunt/Hunt Radius (yd)
Navigation/Outdoor Hunt/Go for
Navigation/Steering/Stop & Turn Angle
Navigation/Steering/Resume Run Angle
Navigation/Steering/Dead Zone
Navigation/Steering/Sweep Detect Mult
Navigation/Steering/Lookahead (yd)
Navigation/Steering/Turn Rate (deg/s)
Navigation/Steering/Post-Portal Delay (s)
Navigation/Tier 2 Tuning/Speed
Navigation/Tier 2 Tuning/Walk Within (yd)
Navigation/Tier 2 Tuning/Stop Distance (yd)
Navigation/Tier 2 Tuning/Reissue Timeout (ms)
Navigation/Tier 2 Tuning/Max Range (yd)
Navigation/Tier 2 Tuning/Max Landblock Dist
Buffing//Enable Buffing
Buffing//Buff Profiles
Buffing//Rebuff When Idle
Buffing//Rebuff With (seconds left)
Buffing//Also Refresh Under (seconds left)
Buffing//Cast buffs even when an item gives them
Buffing//Buffs Left Out
Buffing/Protections (untick to skip)/Armor
Buffing/Protections (untick to skip)/Fire Protection
Buffing/Protections (untick to skip)/Cold Protection
Buffing/Protections (untick to skip)/Acid Protection
Buffing/Protections (untick to skip)/Lightning Protection
Buffing/Protections (untick to skip)/Blade Protection
Buffing/Protections (untick to skip)/Piercing Protection
Buffing/Protections (untick to skip)/Bludgeoning Protection
Buffing/Banes (untick to skip)/Impenetrability
Buffing/Banes (untick to skip)/Flame Bane
Buffing/Banes (untick to skip)/Frost Bane
Buffing/Banes (untick to skip)/Acid Bane
Buffing/Banes (untick to skip)/Lightning Bane
Buffing/Banes (untick to skip)/Blade Bane
Buffing/Banes (untick to skip)/Piercing Bane
Buffing/Banes (untick to skip)/Bludgeoning Bane
Buffing/Buff Difficulty (Min Buffed Skill)/Level 1
Buffing/Buff Difficulty (Min Buffed Skill)/Level 2
Buffing/Buff Difficulty (Min Buffed Skill)/Level 3
Buffing/Buff Difficulty (Min Buffed Skill)/Level 4
Buffing/Buff Difficulty (Min Buffed Skill)/Level 5
Buffing/Buff Difficulty (Min Buffed Skill)/Level 6
Buffing/Buff Difficulty (Min Buffed Skill)/Level 7
Buffing/Buff Difficulty (Min Buffed Skill)/Level 8
Crafting/Missile Ammo Crafting/Enable Missile Crafting
Looting//Enable Looting
Looting//Boost Loot Priority
Looting//Loot Only Rare Corpses
Looting//Learn Unknown Spells
Looting//Pickup with macro off
Looting//Leave the chest open
Looting//Stop Looting When Pack Full
Looting//Jump When Looting
Looting//Jump Height
Looting//Loot Items On Ground
Looting/Corpse Ownership/Loot From
Looting/Corpse Ownership/Recover My Corpse
Looting/Corpse Ownership/Travel Back To My Corpse
Looting/Corpse Ownership/Where Is My Corpse
Looting/Corpse Ownership/Go To My Corpse
Looting/Corpse Ownership/Stop Going To My Corpse
Looting/Inventory Management/Enable Autostack
Looting/Inventory Management/Enable Autocram
Looting/Inventory Management/Unbox Aetheria When Idle
Looting/Inventory Management/Unbox Aetheria Now
Looting/Inventory Management/Combine Salvage Bags
Looting/Inventory Management/Combine Bags During Salvage
Looting/Inventory Management/Tidy Packs Now
Looting/Inventory Management/Floating HUDs
Looting/Inventory Management/Salvage Without The Panel
Looting/Loot Timers (ms)/Optimized defaults
Looting/Loot Timers (ms)/Inter-Item Delay
Looting/Loot Timers (ms)/Content Settle
Looting/Loot Timers (ms)/Empty Corpse Wait
Looting/Loot Timers (ms)/Closing Delay
Looting/Loot Timers (ms)/Assess Window
Looting/Loot Timers (ms)/Loot Retry Timeout
Looting/Loot Timers (ms)/Corpse Open Retry
Looting/Loot Timers (ms)/Corpse Timeout
Looting/Salvage Timers (ms) - First / Fast/Open (First)
Looting/Salvage Timers (ms) - First / Fast/Open (Fast)
Looting/Salvage Timers (ms) - First / Fast/Add Item (First)
Looting/Salvage Timers (ms) - First / Fast/Add Item (Fast)
Looting/Salvage Timers (ms) - First / Fast/Salvage Click
Looting/Salvage Timers (ms) - First / Fast/Result (First)
Looting/Salvage Timers (ms) - First / Fast/Result (Fast)
Vendoring/AutoVendor/Enabled
Vendoring/AutoVendor/Test Mode (only print what it would do)
Vendoring/AutoVendor/Buy
Vendoring/AutoVendor/Sell
Vendoring/AutoVendor/Only Sell From Main Pack
Vendoring/AutoVendor/Show Merchant Info
Vendoring/AutoVendor/Think When Finished
Vendoring//ub vendor open/Tries
Vendoring//ub vendor open/Time Between Tries (ms)
Diagnostics/Logging & Debugging/Debug to chat
Diagnostics/Logging & Debugging/Daily RynthAi log file
Diagnostics/Logging & Debugging/Log Folder
Diagnostics/Logging & Debugging/Old Log Files
Diagnostics/UI Frame Cost/Time the UI frame's parts
Diagnostics/UI Frame Cost/Slow frame (ms)
Diagnostics/UI Frame Cost/Breakdown

View file

@ -0,0 +1,265 @@
using System.Collections;
using System.Reflection;
namespace SettingsLayoutTests
{
// Reaches RynthCore.Engine's internal settings schema and QuickSettings by reflection. See the csproj.
internal static class Program
{
private static int _fails, _asserts;
private static void Check(bool cond, string msg)
{
_asserts++;
if (!cond) { _fails++; Console.WriteLine($" [FAIL] {msg}"); }
}
private const BindingFlags All = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance;
private static Assembly _engine = null!;
private static Type _schema = null!, _quick = null!;
private static IList Tabs => (IList)_schema.GetField("Tabs", All)!.GetValue(null)!;
private static string Name(object tab) => (string)tab.GetType().GetProperty("Name")!.GetValue(tab)!;
private static IList Rows(object tab) => (IList)tab.GetType().GetProperty("Rows")!.GetValue(tab)!;
private static string Label(object row) => (string?)row.GetType().GetProperty("Label")!.GetValue(row) ?? "";
private static string Kind(object row) => row.GetType().GetProperty("Kind")!.GetValue(row)!.ToString()!;
private static string? KeyOf(object row) => (string?)_quick.GetMethod("KeyOf", All)!.Invoke(null, new[] { row });
private static object? RowOf(string key) => _quick.GetMethod("RowOf", All)!.Invoke(null, new object[] { key });
private static IEnumerable<string> AllKeys()
{
foreach (object tab in Tabs)
foreach (object row in Rows(tab))
if (KeyOf(row) is { } key) yield return key;
}
private static int Main(string[] args)
{
_engine = Assembly.Load("RynthCore.Engine");
_schema = _engine.GetType("RynthCore.Engine.UI.Data.SettingsSchema", throwOnError: true)!;
_quick = _engine.GetType("RynthCore.Engine.UI.QuickSettings", throwOnError: true)!;
// -dump <file>: every pin key of this build's layout, one per line (how OldPinKeys.txt was made).
if (args.Length == 2 && args[0] == "-dump")
{
File.WriteAllLines(args[1], AllKeys());
Console.WriteLine($"wrote {AllKeys().Count()} keys to {args[1]}");
return 0;
}
TabList();
OldPins();
OldTabNames();
Moves();
HuntAndDirtyFighting();
return Finish();
}
// ── Hunt On Login and the Dirty Fighting rotation (rows added 2026-11-11, after the regroup) ──────
private static void HuntAndDirtyFighting()
{
Type settings = _engine.GetType("RynthCore.Engine.UI.Data.RynthAiSettings", throwOnError: true)!;
Type ctxType = _engine.GetType("RynthCore.Engine.UI.Data.RynthAiSettingsJsonContext", throwOnError: true)!;
object ctx = ctxType.GetProperty("Default", All)!.GetValue(null)!;
var info = (System.Text.Json.Serialization.Metadata.JsonTypeInfo)ctxType.GetProperty("RynthAiSettings", All)!.GetValue(ctx)!;
object Parse(string json) => System.Text.Json.JsonSerializer.Deserialize(json, info)!;
object? P(object s, string name) => settings.GetProperty(name, All)!.GetValue(s);
object? Row(string tab, string label)
{
foreach (object t in Tabs)
if (Name(t) == tab)
foreach (object r in Rows(t))
if (Label(r).Trim() == label) return r;
return null;
}
bool Visible(object row, object s) => (bool)row.GetType().GetMethod("IsVisible")!.Invoke(row, new[] { s })!;
double Get(object row, object s) => (double)((Delegate)row.GetType().GetProperty("Get")!.GetValue(row)!).DynamicInvoke(s)!;
void Set(object row, object s, double v) => ((Delegate)row.GetType().GetProperty("Set")!.GetValue(row)!).DynamicInvoke(s, v);
object? hunt = Row("General", "Hunt On Login"), patrol = Row("General", "Patrol On Login");
object? rot = Row("Combat", "Dirty Fighting rotation"), order = Row("Combat", "Effect order"), then = Row("Combat", "Then attack");
Check(hunt != null && patrol != null, "General has Patrol On Login and Hunt On Login");
Check(rot != null && order != null && then != null, "Combat has the Dirty Fighting rotation, its order and its Then attack");
if (hunt == null || patrol == null || rot == null || order == null || then == null) return;
Check(KeyOf(hunt) == "General/Starting Up/Hunt On Login", $"Hunt On Login sits under Starting Up (got {KeyOf(hunt)})");
Check(KeyOf(rot) == "Combat/Attack Power & Height/Dirty Fighting rotation", $"the rotation sits under Attack Power & Height (got {KeyOf(rot)})");
// A RynthAi that doesn't send them: the rows hide, and nothing is claimed.
object older = Parse("{\"PatrolOnLogin\":true}");
Check(!Visible(hunt, older) && !Visible(rot, older) && !Visible(order, older) && !Visible(then, older), "hidden for a RynthAi that doesn't send them");
Check(P(older, "HuntOnLogin") == null && P(older, "DfHeightRotation") == null, "...and their values stay null (a save leaves them alone)");
// One or the other, as RynthAi keeps them.
object s1 = Parse("{\"PatrolOnLogin\":true,\"HuntOnLogin\":false}");
Check(Visible(hunt, s1) && Get(hunt, s1) == 0, "Hunt On Login shows once RynthAi sends it");
Set(hunt, s1, 1);
Check((bool?)P(s1, "HuntOnLogin") == true && (bool)P(s1, "PatrolOnLogin")! == false, "ticking Hunt On Login clears Patrol On Login");
Set(patrol, s1, 1);
Check((bool)P(s1, "PatrolOnLogin")! && (bool?)P(s1, "HuntOnLogin") == false, "ticking Patrol On Login clears Hunt On Login");
Set(patrol, s1, 0);
Check(!(bool)P(s1, "PatrolOnLogin")! && (bool?)P(s1, "HuntOnLogin") == false, "unticking one leaves the other as it was");
object s2 = Parse("{\"PatrolOnLogin\":false}");
Set(patrol, s2, 1);
Check(P(s2, "HuntOnLogin") == null, "Patrol On Login with a RynthAi that has no Hunt On Login sends no Hunt On Login");
// The rotation: its two choices show while it's on; RynthAi's values both ways.
object d = Parse("{\"DfHeightRotation\":false,\"DfHeightOrder\":\"HML\",\"DfDefaultHeight\":-1}");
Check(Visible(rot, d) && !Visible(order, d) && !Visible(then, d), "the rotation shows; its order and Then attack only while it's on");
Set(rot, d, 1);
Check((bool?)P(d, "DfHeightRotation") == true && Visible(order, d) && Visible(then, d), "on: the order and Then attack show");
Check(Get(order, d) == 0 && Get(then, d) == 0, "HML is the first order; -1 is 'Attack Height setting'");
Set(order, d, 5);
Set(then, d, 3);
Check((string?)P(d, "DfHeightOrder") == "LMH" && (int?)P(d, "DfDefaultHeight") == 2, "the last order is LMH; High is 2");
object d2 = Parse("{\"DfHeightRotation\":true,\"DfHeightOrder\":\"mlh\",\"DfDefaultHeight\":0}");
Check(Get(order, d2) == 3 && Get(then, d2) == 1, "RynthAi's MLH (any case) and Low (0) read back as theirs");
var items = (string[])order.GetType().GetProperty("Items")!.GetValue(order)!;
Check(items.Length == 6 && items[0] == "High, Medium, Low" && items[5] == "Low, Medium, High", "the order choices read as RynthAi's window shows them");
}
// ── The tabs, in order, and the sidebar's groups ───────────────────────────────
private static void TabList()
{
string[] want =
{
"Interface", "Game Client", "Hotkeys",
"General", "Recharge", "Combat", "Spell Combat", "Ranges", "Navigation", "Buffing", "Looting", "Inventory", "Vendoring",
"Diagnostics",
};
string[] got = Tabs.Cast<object>().Select(Name).ToArray();
Check(got.SequenceEqual(want), $"the tabs, in order (got {string.Join(", ", got)})");
var groups = new List<string>();
foreach (object tab in Tabs)
if (tab.GetType().GetProperty("Group")!.GetValue(tab) is string g) groups.Add(Name(tab) + "=" + g);
Check(groups.SequenceEqual(new[] { "Interface=RynthCore · this PC", "General=RynthAi · saved in the profile", "Diagnostics=Support" }),
$"the sidebar's three group headings sit over Interface, General and Diagnostics (got {string.Join("; ", groups)})");
// Every pinnable row has its own key (a duplicate would make two rows one pin).
var keys = AllKeys().ToList();
Check(keys.Count == keys.Distinct(StringComparer.OrdinalIgnoreCase).Count(),
"no two pinnable rows share a pin key: " + string.Join(", ", keys.GroupBy(k => k, StringComparer.OrdinalIgnoreCase).Where(g => g.Count() > 1).Select(g => g.Key)));
// No tab starts or ends on an empty heading, and no tab is empty.
foreach (object tab in Tabs)
{
IList rows = Rows(tab);
Check(rows.Count > 0, $"{Name(tab)} has rows");
if (rows.Count == 0) continue;
Check(Kind(rows[rows.Count - 1]!) is not ("Section" or "Spacer"), $"{Name(tab)} doesn't end on a heading or a spacer");
}
}
// ── Every pin of the old layout still finds its row ───────────────────────────
private static void OldPins()
{
string file = Path.Combine(AppContext.BaseDirectory, "OldPinKeys.txt");
Check(File.Exists(file), "OldPinKeys.txt is beside the test");
if (!File.Exists(file)) return;
string[] old = File.ReadAllLines(file).Where(l => l.Trim().Length > 0).ToArray();
Check(old.Length > 250, $"OldPinKeys.txt holds the old layout's keys ({old.Length})");
MethodInfo? migrate = _quick.GetMethod("MigrateKey", All);
Check(migrate != null, "QuickSettings.MigrateKey exists");
if (migrate == null) return;
string? Migrate(string k) => (string?)migrate.Invoke(null, new object[] { k });
// Rows taken out of the panel on purpose (their values stay in the payload).
var gone = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"Misc//Auto Cram", // the same switch as Inventory > Packs > Enable Autocram
"Recharge/Helper Settings (%) — NOT WIRED YET/Heal Others", // inert sliders: hidden until they do something
"Recharge/Helper Settings (%) — NOT WIRED YET/Re-stam Others",
"Recharge/Helper Settings (%) — NOT WIRED YET/Infuse Others",
};
int moved = 0;
foreach (string key in old)
{
string? now = Migrate(key);
if (gone.Contains(key))
{
// Auto Cram's pin goes to the one Autocram switch left; the inert sliders' pins go nowhere.
if (key == "Misc//Auto Cram") Check(now != null && RowOf(now) is { } r && Label(r) == "Enable Autocram", $"{key} -> Enable Autocram (got {now})");
else Check(now == null, $"{key}: its row is gone, so the pin leads nowhere (got {now})");
continue;
}
// Labels and sections can hold '/', so the old key must end with the row's whole label.
object? row = now == null ? null : RowOf(now);
Check(row != null && key.EndsWith("/" + Label(row).Trim(), StringComparison.Ordinal) && now!.EndsWith("/" + Label(row).Trim(), StringComparison.Ordinal),
$"{key} -> the row with the same label (got {now ?? "nothing"})");
if (now != null && !string.Equals(now, key, StringComparison.OrdinalIgnoreCase)) moved++;
}
Check(moved > 80, $"a good share of the old keys moved ({moved})");
// The owner's two pins (2026-11-11), by name.
Check(Migrate("Misc//Video patch") == "Game Client/Performance/Video patch", "Misc//Video patch -> Game Client/Performance/Video patch");
Check(Migrate("Spell Combat/Ring Spell Override/Min Ring Targets") == "Spell Combat/Ring Spell Override/Min Ring Targets", "a pin that didn't move stays as it is");
Check(Migrate("Nowhere/At All/Nothing") == null, "a key no layout ever had leads nowhere (kept in the file, not drawn)");
}
// ── /rc settings <old name> still opens the tab ───────────────────────────────
private static void OldTabNames()
{
MethodInfo? find = _schema.GetMethod("FindTab", All);
Check(find != null, "SettingsSchema.FindTab exists");
if (find == null) return;
string? Find(string n) => find.Invoke(null, new object[] { n }) is { } t ? Name(t) : null;
foreach (var (from, to) in new[]
{
("Display", "Interface"), ("ui", "Interface"), ("misc", "General"), ("Melee Combat", "Combat"), ("melee", "Combat"),
("Crafting", "Combat"), ("interface", "Interface"), ("game client", "Game Client"), ("inventory", "Inventory"),
("buffing", "Buffing"), ("Hotkeys", "Hotkeys"), ("Diagnostics", "Diagnostics"),
})
Check(Find(from) == to, $"'{from}' opens {to} (got {Find(from) ?? "nothing"})");
Check(Find("No Such Tab") == null, "an unknown name opens nothing");
}
// ── Where a few rows went (the ones other code finds by tab or label) ─────────
private static void Moves()
{
string? Where(string label)
{
foreach (object tab in Tabs)
foreach (object row in Rows(tab))
if (Label(row).Trim() == label && KeyOf(row) is { } k) return k;
return null;
}
foreach (var (label, key) in new[]
{
("Hide retail radar", "Interface/Hide The Game's Own/Hide retail radar"),
("Lock your vitals plate", "Interface/Your Vitals/Lock your vitals plate"),
("Borderless Windowed", "Game Client/Game Window/Borderless Windowed"),
("Insert Key Releases the UI", "Hotkeys//Insert Key Releases the UI"),
("Enable FPS Limit", "Game Client/Performance/Enable FPS Limit"),
("Close Client on Server Disconnect", "Game Client/Disconnects And Updates/Close Client on Server Disconnect"),
("Vaulted Dungeons", "General/Server Features/Vaulted Dungeons"),
("Auto Fellowship Management", "General/Fellowship/Auto Fellowship Management"),
("Stop Macro On Death", "General/Safety Stops/Stop Macro On Death"),
("Recall On Death", "General/On Death/Recall On Death"),
("Buff Spell Interval (ms)", "Buffing//Buff Spell Interval (ms)"),
("Use Buff Items", "Buffing//Use Buff Items"),
("Targeting", "Combat/Targeting/Targeting"),
("Attempts Before Blacklist", "Combat/Targeting/Attempts Before Blacklist"),
("Enable Raycasting", "Combat/Line Of Sight/Enable Raycasting"),
("Magic Response", "Combat/Hitting the Environment/Magic Response"),
("Enable Missile Crafting", "Combat/Missile Ammo Crafting/Enable Missile Crafting"),
("Enable Autostack", "Inventory/Packs/Enable Autostack"),
("Give Interval (ms)", "Inventory/Giving And Trading/Give Interval (ms)"),
("Describe Items When Selected", "Inventory/Item Info/Describe Items When Selected"),
("Monster Range", "Ranges/Standard Ranges (Yards)/Monster Range"),
("Corpse Max (yd)", "Ranges/Corpse Acquisition (Yards)/Corpse Max (yd)"),
("Coverage", "Navigation/Dungeon Patrol/Coverage"),
})
Check(Where(label) == key, $"{label} is at {key} (got {Where(label) ?? "nothing"})");
Check(Where("Auto Cram") == null, "the duplicate Auto Cram row is gone (Inventory > Packs > Enable Autocram stays)");
Check(Where("Heal Others") == null, "the inert Helper sliders are hidden");
}
private static int Finish()
{
Console.WriteLine(_fails == 0 ? $"PASS ({_asserts} checks)" : $"FAIL: {_fails} of {_asserts} checks");
return _fails == 0 ? 0 : 1;
}
}
}

View file

@ -0,0 +1,33 @@
<Project Sdk="Microsoft.NET.Sdk">
<!--
Offline checks for the Settings panel's layout (2026-11-11 regroup: Display + UI became Interface, Misc
became General, Melee Combat became Combat, the Crafting tab folded into Combat, and Game Client and
Inventory were added). OldPinKeys.txt is every pin key ("Tab/Section/Label", UI/QuickSettings.cs) the
layout before the regroup had, dumped from that build with dotnet run -c Release -dump OldPinKeys.txt.
Each one must still lead to its row, so a player's My settings drawer keeps its pins, and the old tab
names must still open their tab (/rc settings misc).
The engine has no test seam for SettingsData.cs (it pulls in the whole ImGui layer), so this references
the built engine assembly and reaches the internal types by reflection. x86, like the engine: needs the
x86 .NET runtime (C:\Program Files (x86)\dotnet).
Run: dotnet run -c Release (exit 0 = pass, 1 = fail)
-->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<PlatformTarget>x86</PlatformTarget>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<Platforms>x86</Platforms>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<RootNamespace>SettingsLayoutTests</RootNamespace>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\RynthCore.Engine\RynthCore.Engine.csproj" />
<None Include="OldPinKeys.txt" CopyToOutputDirectory="PreserveNewest" Condition="Exists('OldPinKeys.txt')" />
</ItemGroup>
</Project>