From 9ca537a0d03b1fead08485b2d0da65cef42faa49 Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Mon, 12 Oct 2026 00:32:35 -0400 Subject: [PATCH] feat(tracker): Lum/5m and pass-up rows from RynthTracker 0.4.0 See Changelog/2026-10-11-tracker-lum5m-passup.md. --- Changelog/2026-10-11-tracker-lum5m-passup.md | 44 ++++++++++++++++++++ src/RynthCore.Engine/ImGui/Panels/P1Faces.cs | 6 ++- src/RynthCore.Engine/UI/Data/PanelSources.cs | 13 +++++- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 Changelog/2026-10-11-tracker-lum5m-passup.md diff --git a/Changelog/2026-10-11-tracker-lum5m-passup.md b/Changelog/2026-10-11-tracker-lum5m-passup.md new file mode 100644 index 0000000..ef4e5b4 --- /dev/null +++ b/Changelog/2026-10-11-tracker-lum5m-passup.md @@ -0,0 +1,44 @@ +# Tracker panel: Lum/5m and pass-up rows + +Pairs with RynthTracker 0.4.0 in RynthSuite. + +## What changed + +RynthTracker and RynthAi's Mini Remote now share one session-stats engine (RynthSuite +`Plugins/Shared/SessionStats.cs`), so the Tracker panel and the Mini Remote count XP, luminance and +kills the same way. The Tracker panel shows the new figures: + +- **Lum/5m:** luminance earned in the last five minutes. It shows when RynthTracker sends it + (0.4.0 and later), so an older RynthTracker still gets the old rows. +- **Pass/hr and Pass-up:** allegiance pass-up luminance per hour and for the session. These rows + appear only where RynthTracker can tell pass-up apart, which is on ACECustom, where the bank + luminance is read. Fellowship and Zone Share splits arrive the same silent way and are included; + the label tooltip says so. +- **Row order:** + 1. Session + 2. XP/hr + 3. Lum/hr + 4. Lum/5m + 5. [Pass/hr] + 6. [Rad/hr] + 7. Kls/hr + 8. XP + 9. Lum + 10. [Pass-up] + 11. [Rad] + 12. Kills + 13. XP/kl + 14. Deaths + + Rows in brackets appear only on some servers. + +## Files + +- `src/RynthCore.Engine/UI/Data/PanelSources.cs`: `TrackerSource` reads `l5`, `pk`, `ph` and `pt`; + `TrackerSnapshot.DefaultLabels` includes Lum/5m. +- `src/RynthCore.Engine/ImGui/Panels/P1Faces.cs`: tooltips on the Lum/5m and pass-up labels. + +## Testing + +- The engine builds in Release, and ItemHudTests pass (63 assertions). +- Not yet checked in game. diff --git a/src/RynthCore.Engine/ImGui/Panels/P1Faces.cs b/src/RynthCore.Engine/ImGui/Panels/P1Faces.cs index 1c84844..d1c7f66 100644 --- a/src/RynthCore.Engine/ImGui/Panels/P1Faces.cs +++ b/src/RynthCore.Engine/ImGui/Panels/P1Faces.cs @@ -210,7 +210,7 @@ internal sealed unsafe class LogFace : IImGuiPanel } } -/// Tracker: nine session-stat rows over an adjustable-opacity background. +/// Tracker: the session-stat rows (TrackerSource) over an adjustable-opacity background. internal sealed class TrackerFace : IImGuiPanel { private static readonly Vector4 TitleColor = RynthTheme.Vec(0xFFE6B450); @@ -275,6 +275,10 @@ internal sealed class TrackerFace : IImGuiPanel float rowRight = ImGuiNET.ImGui.GetCursorPosX() + ImGuiNET.ImGui.GetContentRegionAvail().X; if (ImGuiNET.ImGui.GetCursorScreenPos().Y + rowH > gripTop) rowRight -= grip; ImGuiNET.ImGui.TextColored(LabelColor, labels[i]); + if (labels[i].StartsWith("Pass", StringComparison.Ordinal)) + ImGuiNET.ImGui.SetItemTooltip("Luminance that reached your bank without a \"You've banked\" line: your vassals' pass-up.\nFellowship and Zone Share splits arrive the same silent way and are included."); + else if (labels[i] == "Lum/5m") + ImGuiNET.ImGui.SetItemTooltip("Luminance earned in the last five minutes."); string value = values != null && i < values.Length ? values[i] : "—"; ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Mono9)); float w = ImGuiNET.ImGui.CalcTextSize(value).X; diff --git a/src/RynthCore.Engine/UI/Data/PanelSources.cs b/src/RynthCore.Engine/UI/Data/PanelSources.cs index 103ac9d..737d586 100644 --- a/src/RynthCore.Engine/UI/Data/PanelSources.cs +++ b/src/RynthCore.Engine/UI/Data/PanelSources.cs @@ -33,10 +33,13 @@ internal sealed class LogSource : UiSource } } -/// The Tracker panel's rows, formatted: nine, plus two Radiance rows on Aelrynth once earned. +/// +/// The Tracker panel's rows, formatted: ten (Lum/5m from RynthTracker 0.4.0), plus two pass-up rows +/// on ACECustom (the bank is read) and two Radiance rows on Aelrynth once earned. +/// internal sealed record TrackerSnapshot(string[] Labels, string[] Values) { - public static readonly string[] DefaultLabels = { "Session", "XP/hr", "Lum/hr", "Kls/hr", "XP", "Lum", "Kills", "XP/kl", "Deaths" }; + public static readonly string[] DefaultLabels = { "Session", "XP/hr", "Lum/hr", "Lum/5m", "Kls/hr", "XP", "Lum", "Kills", "XP/kl", "Deaths" }; } /// @@ -82,11 +85,17 @@ internal sealed unsafe class TrackerSource : UiSource string Xp(long v) => maxLevel ? "max level" : FormatNum(v); var labels = new List { "Session", "XP/hr", "Lum/hr" }; var values = new List { FormatTime(Num("ss")), Xp((long)Num("xh")), FormatNum((long)Num("lh")) }; + // Luminance of the last five minutes (RynthTracker 0.4.0; an older one doesn't send it). + if (r.TryGetProperty("l5", out _)) { labels.Add("Lum/5m"); values.Add(FormatNum((long)Num("l5"))); } + // Allegiance pass-up: only where the plugin can tell it apart (ACECustom's bank is read). + bool passUp = Num("pk") > 0; + if (passUp) { labels.Add("Pass/hr"); values.Add(FormatNum((long)Num("ph"))); } // Radiance (Aelrynth's Bank session total): rows only once some has been earned. long rad = (long)Num("rt"); if (rad > 0) { labels.Add("Rad/hr"); values.Add(FormatNum((long)Num("rh"))); } labels.AddRange(new[] { "Kls/hr", "XP", "Lum" }); values.AddRange(new[] { Num("kh").ToString("F1", ic), Xp((long)Num("xt")), FormatNum((long)Num("lt")) }); + if (passUp) { labels.Add("Pass-up"); values.Add(FormatNum((long)Num("pt"))); } if (rad > 0) { labels.Add("Rad"); values.Add(FormatNum(rad)); } labels.AddRange(new[] { "Kills", "XP/kl", "Deaths" }); values.AddRange(new[] { ((long)Num("kt")).ToString(ic), Xp((long)Num("xk")), ((long)Num("dt")).ToString(ic) });