feat(suite): ILT Server restore, progress lum/Enl, Oracle Benediction, Handler ring evade
RynthILT: restore RynthILT.Server for Oracle/Mini Remote; aug/enl planners use character AvailableLuminance. RynthOracle: Asheron Lesser Benediction via lesserbenedictionaug; Skills tabs. RynthAi: Empyrean Handler lethal-ring back-jump evade (face Handler then xs); pet CD already on sk. Inventory/Sort: GInv/RSort off bar; inventory links and autostack polish.
This commit is contained in:
parent
ee846559fe
commit
23efcfee87
42 changed files with 882 additions and 98 deletions
26
Changelog/2026-10-16-autostack-group-by-wcid-2026.10.16.2.md
Normal file
26
Changelog/2026-10-16-autostack-group-by-wcid-2026.10.16.2.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# 2026.10.16.2 - AutoStack: group by WCID, respect max stack
|
||||
|
||||
Previous ProductVersion: 2026.10.16.1.
|
||||
HandWrittenVersion: `0.5.0-legacy-ui` (upstream sk policy; unchanged).
|
||||
|
||||
## Why
|
||||
|
||||
Silentkelpie kept getting server "not compatible for stacking" spam. AutoStack
|
||||
grouped by display name, so different Coalesced Mana weenies (WCID 42517 vs
|
||||
42518) were merge-attempted forever. It also tried merges that overflowed
|
||||
MaxStackSize (e.g. 67+50 into a 100 cap).
|
||||
|
||||
## What
|
||||
|
||||
- AutoStack groups by weenie class id (Decal Type / WCID); name is only a
|
||||
cold-start fallback when WCID is unknown.
|
||||
- Candidate pairs must satisfy `source + target <= MaxStackSize`.
|
||||
|
||||
## Files
|
||||
|
||||
- `Plugins/RynthCore.Plugin.RynthAi/Loot/InventoryManager.cs`
|
||||
|
||||
## Deploy
|
||||
|
||||
`dotnet publish` RynthAi with `-p:Version=2026.10.16.2` → `C:\Games\RynthSuite\RynthAi\`
|
||||
(reload plugins / reinject).
|
||||
26
Changelog/2026-10-16-bank-balance-chat-spam-0.2.12.md
Normal file
26
Changelog/2026-10-16-bank-balance-chat-spam-0.2.12.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# RynthILT 0.2.12 - Bank balances: no chat spam
|
||||
|
||||
Previous: 0.2.11. ProductVersion: 2026.10.16.1 (previous live 2026.10.15.8).
|
||||
|
||||
## Why
|
||||
|
||||
Silentstorm was getting a full `[BANK] Your balances are:` dump in chat every
|
||||
120 seconds while Mini Remote was open. RynthILT's AutoRefresh (default 120)
|
||||
re-issued quiet `/bank` refreshes; those lines still reached chat.
|
||||
|
||||
## What
|
||||
|
||||
- Default `AutoRefreshSeconds` is **0** (login probe + manual Refresh only).
|
||||
- `[BANK]` balance lines are eaten unless the player typed `/bank` / bare `/b`,
|
||||
or asked for a loud refresh (`RequestRefresh(quiet: false)`).
|
||||
- Existing hub.json files that still had 120 were zeroed on this deploy for
|
||||
local chars (Silentstorm and any other with AutoRefresh > 0).
|
||||
|
||||
## Files
|
||||
|
||||
- `Hub/IltBanking.cs`, `Hub/IltHubState.cs`, `RynthILTPlugin.cs`
|
||||
|
||||
## Deploy
|
||||
|
||||
`dotnet publish` RynthILT `-p:Version=2026.10.16.1` → `C:\Games\RynthSuite\RynthILT\`
|
||||
(reload plugins).
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# RynthAi — Empyrean Handler lethal-ring back-jump evade
|
||||
|
||||
Previous ProductVersion: 2026.10.16.5. HandWritten on `sk` stays `0.5.0-legacy-ui`.
|
||||
|
||||
## What
|
||||
|
||||
When combat hears the Empyrean Handler channel line
|
||||
|
||||
> The handler briefly channels infused Empyrean hatred to release a lethal ring.
|
||||
|
||||
and the character is still inside the ring danger radius (max of 12 yards and
|
||||
Skills RingRange), combat cancels the current attack and back-jumps away
|
||||
(Jumper `xs` — run backward), then re-engages the same target. Outside that
|
||||
range it logs and stays put. The ring cannot be melee-evaded.
|
||||
|
||||
## Files
|
||||
|
||||
- `Combat/CombatManager.cs` — chat trigger, range check, Think hold, re-engage
|
||||
- `RynthAiPlugin.cs` — wires Jumper + routes chat into `HandleChatForRingEvade`
|
||||
|
||||
## Deploy
|
||||
|
||||
`dotnet publish` RynthAi `-p:Version=2026.10.16.6` → `C:\Games\RynthSuite\RynthAi\`
|
||||
(reload plugins / re-enter world).
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
# RynthAi — Empyrean Handler lethal-ring evade fix
|
||||
|
||||
Previous ProductVersion: 2026.10.16.6. HandWritten on `sk` stays `0.5.0-legacy-ui`.
|
||||
|
||||
## Problem
|
||||
|
||||
The Handler channel line
|
||||
|
||||
> The handler briefly channels infused Empyrean hatred to release a lethal ring.
|
||||
|
||||
never started an evade: it arrives as Emote (0x0C), and `ChatSource.IsPlayerAuthored`
|
||||
treats Emote as player speech, so combat skipped every real line. Separately, the
|
||||
jump faced *away* from the Handler then used Jumper `xs` (back + run), which leaped
|
||||
*into* the ring.
|
||||
|
||||
## Fix
|
||||
|
||||
- Match the unique phrase as a line start (player copies are `Name says, "..."`).
|
||||
- Face the Handler, then back-jump (`xs`) so the body moves out of ring range.
|
||||
- Slightly longer jump charge (750 ms) so the run-back clears ~12 m.
|
||||
|
||||
Outside ring danger (max of 12 m and Skills RingRange) combat still stays put;
|
||||
after the jump settles it re-engages the same target.
|
||||
|
||||
## Files
|
||||
|
||||
- `Combat/CombatManager.cs`
|
||||
- `RynthAiPlugin.cs` (wire comment)
|
||||
|
||||
## Deploy
|
||||
|
||||
`dotnet publish` RynthAi `-p:Version=2026.10.16.7` → `C:\Games\RynthSuite\RynthAi\`
|
||||
(reload plugins / re-enter world). Watch `[CombatEvade]` in the RynthCore log.
|
||||
13
Changelog/2026-10-16-ginv-no-bar-button-0.1.2.md
Normal file
13
Changelog/2026-10-16-ginv-no-bar-button-0.1.2.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RynthInventory 0.1.2 - Global Inventory off the bar
|
||||
|
||||
Previous: 0.1.1 / ProductVersion 2026.10.16.4.
|
||||
|
||||
## Change
|
||||
|
||||
Global Inventory no longer asks for its own RynthCore bar button (`BarButton =
|
||||
false`). It stays in the Scripts menu (`ShowInBar`) and opens from Inventory's
|
||||
GInv button, Character / Mini Remote menus, or `/ginv`.
|
||||
|
||||
## Files
|
||||
|
||||
- Plugins/RynthCore.Plugin.RynthInventory/RynthInventoryPlugin.cs
|
||||
42
Changelog/2026-10-16-ilt-server-interface-restore-0.2.13.md
Normal file
42
Changelog/2026-10-16-ilt-server-interface-restore-0.2.13.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# RynthILT 0.2.13 - Restore RynthILT.Server for Oracle / Mini Remote readers
|
||||
|
||||
Previous: HandWritten 0.2.12, ProductVersion 2026.10.16.4.
|
||||
|
||||
## Problem
|
||||
|
||||
Oracle (and anything else that polls `RynthILT.Server`) showed Infinite Leaftide
|
||||
as detected — RynthCore's server pick is correct — but never received feature bits,
|
||||
fellowship rules, or the `/qb` list from RynthILT. Mini Remote Hub tabs still worked
|
||||
(`RynthILT.Hub`); charms/bank use `RynthILT.Data`. The feature-profile channel was
|
||||
gone.
|
||||
|
||||
## Cause
|
||||
|
||||
When `RynthServer.Profile` (identity + salvage) was added, `ServerInterface.cs` and
|
||||
the Hub's `ProfileJson` rebuild were dropped from `RynthPluginQueryInterface`. Oracle's
|
||||
`IltServerLink` kept asking for `RynthILT.Server` and always got a null table.
|
||||
|
||||
## Fix
|
||||
|
||||
- Restore `ServerInterface` and export it again from `PluginExports.QueryInterface`.
|
||||
- Rebuild `IltHubController.ProfileJson` about once a second (features, fellowship, qb).
|
||||
- Restore `IltQuestBonus.Snapshot()` for the qb object in that JSON.
|
||||
- Bank quiet-refresh defaults (AutoRefresh 0 + typed `/bank` may show) from the same
|
||||
hot push so Mini Remote open does not spam `[BANK]` while balances still update on
|
||||
login / Refresh.
|
||||
|
||||
## Files
|
||||
|
||||
- Plugins/RynthCore.Plugin.RynthILT/ServerInterface.cs (restored)
|
||||
- Plugins/RynthCore.Plugin.RynthILT/PluginExports.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltHubController.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltQuestBonus.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltBanking.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltHubState.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/RynthILTPlugin.cs
|
||||
|
||||
## Deploy
|
||||
|
||||
`dotnet publish` RynthILT `-p:Version=2026.10.16.5` → `C:\Games\RynthSuite\RynthILT\`
|
||||
(reload plugins / re-enter world). Confirm Oracle Fellowship / Quests qb and About
|
||||
see RynthILT features after a few seconds.
|
||||
41
Changelog/2026-10-16-inventory-ginv-links-2026.10.16.4.md
Normal file
41
Changelog/2026-10-16-inventory-ginv-links-2026.10.16.4.md
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# 2026.10.16.4 - Inventory / Global Inventory link cleanup
|
||||
|
||||
Previous: RynthAi ProductVersion 2026.10.16.2, RynthInventory 0.1.0 / 2026.10.15.7,
|
||||
RynthILT 0.2.12.
|
||||
|
||||
## Change
|
||||
|
||||
Wire every Inventory / Item Count / Global Inventory / Banking entry to the right
|
||||
surface, and stop treating `/ginv bank` as a search for the word "bank".
|
||||
|
||||
### RynthInventory 0.1.1
|
||||
|
||||
- `/ginv bank` and `/ginv banking` open Global Inventory (same as the old Mini Remote
|
||||
Banking tab). They no longer fill the search box with "bank".
|
||||
- Help text lists the bank alias.
|
||||
|
||||
### RynthAi (HandWrittenVersion stays `0.5.0-legacy-ui`)
|
||||
|
||||
- Character / Mini Remote menu: Global Inventory (`/ginv`).
|
||||
- Banking (ILT) still uses `/ginv bank`; tooltips say Global Inventory, not a
|
||||
fictional Banking tab.
|
||||
- Inventory / Item Count / HUD setup tooltips distinguish the Item Count panel from
|
||||
the floating pack item count HUD.
|
||||
- `MovedTabs.GlobalInventory = "/ginv"`; HomeOf maps both bank aliases to Global Inventory.
|
||||
- Host test: banking redirects to `/ginv bank`.
|
||||
|
||||
### RynthILT 0.2.13
|
||||
|
||||
- Banks / Banking tooltips and feature catalog point at Global Inventory (`/ginv bank`).
|
||||
|
||||
## Files
|
||||
|
||||
- Plugins/RynthCore.Plugin.RynthInventory/RynthInventoryPlugin.cs
|
||||
- Plugins/RynthCore.Plugin.RynthAi/Huds/MiniRemoteHud.cs
|
||||
- Plugins/RynthCore.Plugin.RynthAi/Huds/MovedTabs.cs
|
||||
- Plugins/RynthCore.Plugin.RynthAi/Huds/SectionsManifest.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltHubUi.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltSections.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/Hub/IltFeatureCatalog.cs
|
||||
- Plugins/RynthCore.Plugin.RynthILT/RynthILTPlugin.cs
|
||||
- Tools/RynthCore.RynthAiHostTests/Tests/SectionsTests.cs
|
||||
27
Changelog/2026-10-16-oracle-skills-tabs-0.3.0.md
Normal file
27
Changelog/2026-10-16-oracle-skills-tabs-0.3.0.md
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# RynthOracle 0.3.0 / RynthAi — Skills tabs + buffing cleanup
|
||||
|
||||
Calver stamp with engine: **2026.10.16.1**. Previous Oracle handwritten: 0.2.9.
|
||||
|
||||
## RynthOracle 0.3.0
|
||||
|
||||
Adds **Skills**, **Attributes**, and **Progress** tabs. The engine paints the
|
||||
former Skills panel body into those tabs (raise/train, attributes/vitals, ILT
|
||||
planners). Commands: `/ro skills`, `/ro attrs`, `/ro progress`.
|
||||
|
||||
Augs / Character / Society stay as they were (no duplicate raise UI).
|
||||
|
||||
## RynthAi
|
||||
|
||||
Options → Buffing: removed the **Protections and Banes** tick grid. Spell buff
|
||||
profiles own which prots/banes to cast. `DisabledBuffs` still loads for older
|
||||
profiles. Mini Remote Character menu opens Oracle Skills / Attributes / Progress.
|
||||
|
||||
On standing branch `sk`, RynthAi `HandWrittenVersion` stays `0.5.0-legacy-ui`.
|
||||
|
||||
## Files
|
||||
|
||||
- `Plugins/RynthCore.Plugin.RynthOracle/Views/OracleView.cs`, `SkillsTabs.cs`
|
||||
- `Plugins/RynthCore.Plugin.RynthOracle/RynthOraclePlugin.cs`, `OracleContext.cs`
|
||||
- `Plugins/RynthCore.Plugin.RynthOracle/PluginExports.cs`, `Views/AboutTab.cs`
|
||||
- `Plugins/RynthCore.Plugin.RynthAi/LegacyUi/LegacyAdvancedSettingsUi.cs`
|
||||
- `Plugins/RynthCore.Plugin.RynthAi/Huds/MiniRemoteHud.cs`
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Progress / Aug / Enl — character lum + Benediction + Enl calculator
|
||||
|
||||
Previous: RynthILT 0.2.13 (ProductVersion 2026.10.16.5), RynthOracle 0.3.0
|
||||
(ProductVersion 2026.10.16.1). Engine Skills UI: 2026.10.16.9.
|
||||
|
||||
## RynthILT 0.2.14
|
||||
|
||||
- Augmentation and Enl planners use PropertyInt64 AvailableLuminance on the
|
||||
character (not `/bank` banked luminance) for costs and "still need".
|
||||
- Enl JSON already emitted the calculator (`levels` / `materials` / `chain`);
|
||||
blockers and plan lines now name character lum explicitly.
|
||||
|
||||
## RynthOracle 0.3.1
|
||||
|
||||
- Asheron's Lesser Benediction is detected from the permanent quest flag
|
||||
`lesserbenedictionaug` (Donatello Linante / Blackmoor's Page), not left as "?".
|
||||
|
||||
## Deploy
|
||||
|
||||
- Engine: `Publish-EngineCoreClr.ps1 -EngineOnly -p:Version=2026.10.16.9`
|
||||
- RynthILT: `dotnet publish` `-p:Version=2026.10.16.6` → `C:\Games\RynthSuite\RynthILT\`
|
||||
- RynthOracle: `dotnet publish` `-p:Version=2026.10.16.2` → `C:\Games\RynthSuite\RynthOracle\`
|
||||
|
||||
Reload plugins / re-enter world. Open Skills → Progression for Aug + Enl;
|
||||
Oracle → Augmentations for Benediction.
|
||||
13
Changelog/2026-10-16-rsort-no-bar-button-0.3.2.md
Normal file
13
Changelog/2026-10-16-rsort-no-bar-button-0.3.2.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# RynthSort 0.3.2 - Off the bar; open from Inventory
|
||||
|
||||
Previous: 0.3.1 / ProductVersion 2026.10.15.7.
|
||||
|
||||
## Change
|
||||
|
||||
`BarButton = false` on the main window. Still in the Scripts menu (`ShowInBar`).
|
||||
Open from Inventory's Sort button or `/rsort`.
|
||||
|
||||
## Files
|
||||
|
||||
- Plugins/RynthCore.Plugin.RynthSort/RynthSortPlugin.cs
|
||||
- Plugins/RynthCore.Plugin.RynthSort/PluginExports.cs
|
||||
|
|
@ -1878,6 +1878,203 @@ public partial class CombatManager : IDisposable
|
|||
/// <summary>Test seam: one judged magic cast with no damage.</summary>
|
||||
internal void MagicMissForTest(int tid) => NoteMagicMissForResync(tid);
|
||||
|
||||
// ── Empyrean Handler lethal-ring evade (chat-triggered back-jump) ─────────
|
||||
// ACECustom Handler emote: "The handler briefly channels infused Empyrean hatred
|
||||
// to release a lethal ring." The ring can't be melee-evaded — if the character is
|
||||
// inside its cast radius they die. On that line, when still in range of a Handler,
|
||||
// cancel the current swing/cast and back-jump away, then resume combat (target kept).
|
||||
private const string HandlerRingChannelHint = "channels infused Empyrean hatred to release a lethal ring";
|
||||
private const string HandlerRingChannelStart = "The handler briefly channels";
|
||||
private const string HandlerNameHint = "Empyrean Handler";
|
||||
/// <summary>Yards: Handler lethal ring is treated as at least this wide (RingRange when larger).</summary>
|
||||
internal const double HandlerRingDangerYards = 12.0;
|
||||
/// <summary>Back-jump charge (ms) — run-back + jump must clear ~ring radius.</summary>
|
||||
private const int HandlerRingJumpHoldMs = 750;
|
||||
private const double HandlerRingEvadeCooldownMs = 4_000;
|
||||
|
||||
private DateTime _handlerRingEvadeAt = DateTime.MinValue;
|
||||
private DateTime _handlerRingEvadeUntil = DateTime.MinValue;
|
||||
private int _handlerRingEvadeId;
|
||||
private bool _handlerRingJumpStarted;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin wires this to <c>Jumper.Start("xs", faceHeading, ms)</c> — face the Handler
|
||||
/// then run-back jump (x+s) so the body moves away. Returns false if the jumper refused.
|
||||
/// </summary>
|
||||
public Func<float, int, bool>? RequestBackJump { get; set; }
|
||||
|
||||
/// <summary>True while the wired jumper is mid-turn / charge / settle.</summary>
|
||||
public Func<bool>? JumpBusy { get; set; }
|
||||
|
||||
/// <summary>True while a Handler-ring evade is holding combat (jump or settle).</summary>
|
||||
public bool RingEvadeActive =>
|
||||
_handlerRingEvadeUntil != DateTime.MinValue && DateTime.Now < _handlerRingEvadeUntil;
|
||||
|
||||
/// <summary>
|
||||
/// Chat line from RynthAiPlugin.OnChatWindowText. Starts a back-jump evade when the
|
||||
/// Handler channels its lethal ring and the character is still inside ring range.
|
||||
/// </summary>
|
||||
public void HandleChatForRingEvade(string? text, int chatType = -1)
|
||||
{
|
||||
if (string.IsNullOrEmpty(text)) return;
|
||||
// Handler channel is an Emote (0x0C). ChatSource.IsPlayerAuthored treats Emote as
|
||||
// player speech, which would skip every real Handler line — anchor on the unique
|
||||
// phrase starting the line instead (player copies are "Name says, \"...\").
|
||||
bool anchored =
|
||||
RynthCore.Plugin.Shared.ChatSource.StartsWithMarker(text, HandlerRingChannelStart, StringComparison.OrdinalIgnoreCase)
|
||||
|| (RynthCore.Plugin.Shared.ChatSource.StartsWithMarker(text, "The handler", StringComparison.OrdinalIgnoreCase)
|
||||
&& text.IndexOf(HandlerRingChannelHint, StringComparison.OrdinalIgnoreCase) >= 0);
|
||||
if (!anchored)
|
||||
{
|
||||
// Mid-line only when the type is clearly not player speech (some clients strip "The ").
|
||||
if (chatType is RynthCore.Plugin.Shared.ChatSource.Speech
|
||||
or RynthCore.Plugin.Shared.ChatSource.Tell
|
||||
or RynthCore.Plugin.Shared.ChatSource.OutgoingTell
|
||||
or RynthCore.Plugin.Shared.ChatSource.Channel
|
||||
or RynthCore.Plugin.Shared.ChatSource.ChannelSend
|
||||
or RynthCore.Plugin.Shared.ChatSource.Allegiance
|
||||
or RynthCore.Plugin.Shared.ChatSource.Fellowship)
|
||||
return;
|
||||
if (text.IndexOf(HandlerRingChannelHint, StringComparison.OrdinalIgnoreCase) < 0) return;
|
||||
if (text.IndexOf(" says,", StringComparison.OrdinalIgnoreCase) >= 0
|
||||
|| text.IndexOf(" tells you,", StringComparison.OrdinalIgnoreCase) >= 0)
|
||||
return;
|
||||
}
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
if (_handlerRingEvadeAt != DateTime.MinValue
|
||||
&& (now - _handlerRingEvadeAt).TotalMilliseconds < HandlerRingEvadeCooldownMs)
|
||||
return;
|
||||
|
||||
if (!TryFindHandlerForRingEvade(out int handlerId, out double dist, out string name))
|
||||
{
|
||||
_host.Log("[CombatEvade] Handler lethal-ring channel heard, but no Empyrean Handler is nearby — no jump.");
|
||||
return;
|
||||
}
|
||||
|
||||
double danger = Math.Max(HandlerRingDangerYards, Math.Max(1, _settings.RingRange));
|
||||
if (dist > danger)
|
||||
{
|
||||
_host.Log($"[CombatEvade] Handler lethal-ring channel; '{name}' at {dist:0.0} m (outside {danger:0.#} m) — staying put.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Face the Handler, then Jumper "xs" (back + run) moves the body away from it.
|
||||
// Facing away + back-jump would leap into the ring.
|
||||
float faceHandler = 0f;
|
||||
if (TryGetHeadingTo(handlerId, out double toHandler, out _))
|
||||
faceHandler = (float)(toHandler % 360.0);
|
||||
else if (_host.TryGetPlayerHeading(out float curr))
|
||||
faceHandler = curr;
|
||||
|
||||
_handlerRingEvadeAt = now;
|
||||
_handlerRingEvadeId = handlerId;
|
||||
_handlerRingJumpStarted = false;
|
||||
// Hold combat long enough for turn + charge + land + one re-engage tick.
|
||||
_handlerRingEvadeUntil = now.AddMilliseconds(HandlerRingJumpHoldMs + 2_200);
|
||||
|
||||
// Stop the bound melee/missile attack so the jump isn't eaten by the swing servo.
|
||||
try
|
||||
{
|
||||
if (_host.HasCancelAttack) _host.CancelAttack();
|
||||
ReleaseHeldTurn();
|
||||
}
|
||||
catch { }
|
||||
|
||||
bool started = RequestBackJump?.Invoke(faceHandler, HandlerRingJumpHoldMs) == true;
|
||||
if (started)
|
||||
{
|
||||
_handlerRingJumpStarted = true;
|
||||
_host.Log($"[CombatEvade] Empyrean Handler lethal ring — back-jump away from '{name}' " +
|
||||
$"at {dist:0.0} m (danger {danger:0.#} m), face {faceHandler:0}° then xs.");
|
||||
}
|
||||
else
|
||||
{
|
||||
_handlerRingEvadeUntil = DateTime.MinValue;
|
||||
_handlerRingEvadeId = 0;
|
||||
_host.Log("[CombatEvade] Empyrean Handler lethal ring heard in range, but the back-jump did not start.");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Holds Think from attacking while the Handler-ring back-jump runs. Keeps the target
|
||||
/// so combat re-engages as soon as the jumper settles.
|
||||
/// </summary>
|
||||
private bool TickRingEvade()
|
||||
{
|
||||
if (_handlerRingEvadeUntil == DateTime.MinValue) return false;
|
||||
DateTime now = DateTime.Now;
|
||||
bool jumperBusy = JumpBusy?.Invoke() == true;
|
||||
|
||||
// Jump never started / failed: clear early.
|
||||
if (_handlerRingJumpStarted && !jumperBusy && now >= _handlerRingEvadeUntil)
|
||||
{
|
||||
_handlerRingEvadeUntil = DateTime.MinValue;
|
||||
_handlerRingEvadeId = 0;
|
||||
_handlerRingJumpStarted = false;
|
||||
_host.Log("[CombatEvade] Handler ring evade done — re-engaging.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (jumperBusy || now < _handlerRingEvadeUntil)
|
||||
{
|
||||
LastCombatSkipReason = "handler-ring-evade";
|
||||
_tickWait = CombatLatencyTracker.Wait.Other;
|
||||
return true;
|
||||
}
|
||||
|
||||
_handlerRingEvadeUntil = DateTime.MinValue;
|
||||
_handlerRingEvadeId = 0;
|
||||
_handlerRingJumpStarted = false;
|
||||
_host.Log("[CombatEvade] Handler ring evade done — re-engaging.");
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>Nearest Empyrean Handler (active target preferred when it is one).</summary>
|
||||
private bool TryFindHandlerForRingEvade(out int handlerId, out double dist, out string name)
|
||||
{
|
||||
handlerId = 0; dist = double.MaxValue; name = "";
|
||||
int me = _host.GetPlayerId() == 0 ? 0 : (int)_host.GetPlayerId();
|
||||
if (me == 0) return false;
|
||||
|
||||
int bestId = 0;
|
||||
double bestDist = double.MaxValue;
|
||||
string bestName = "";
|
||||
|
||||
void Consider(int id, string? nm)
|
||||
{
|
||||
if (id == 0 || string.IsNullOrEmpty(nm)) return;
|
||||
if (nm.IndexOf(HandlerNameHint, StringComparison.OrdinalIgnoreCase) < 0) return;
|
||||
double d = _worldFilter.Distance(me, id);
|
||||
if (d < 0 || d >= bestDist) return;
|
||||
bestDist = d; bestId = id; bestName = nm;
|
||||
}
|
||||
|
||||
if (activeTargetId != 0)
|
||||
Consider(activeTargetId, _worldFilter[activeTargetId]?.Name);
|
||||
|
||||
foreach (var s in _scannedTargets)
|
||||
Consider(s.Id, s.Name);
|
||||
|
||||
// Landscape fallback when the scan hasn't listed it yet (channel can land mid-approach).
|
||||
if (bestId == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (WorldObject wo in _worldFilter.GetLandscape())
|
||||
{
|
||||
if ((int)wo.ObjectClass != (int)AcObjectClass.Monster) continue;
|
||||
Consider(wo.Id, wo.Name);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
if (bestId == 0) return false;
|
||||
handlerId = bestId; dist = bestDist; name = bestName;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void ReportDamageOnTarget(int targetId)
|
||||
{
|
||||
_magicMissesSinceHit = 0; // something we cast landed: the server's position is fine
|
||||
|
|
@ -2878,6 +3075,11 @@ public partial class CombatManager : IDisposable
|
|||
return true;
|
||||
}
|
||||
|
||||
// Empyrean Handler lethal-ring back-jump: hold casts/swings until the jump settles,
|
||||
// then fall through and re-engage the same target.
|
||||
if (TickRingEvade())
|
||||
return true;
|
||||
|
||||
double acDistanceLimit = _settings.MonsterRange;
|
||||
// Hysteresis: a locked target is retained (and kept under attack) out to
|
||||
// the larger disengage distance, while new targets are still only
|
||||
|
|
|
|||
|
|
@ -889,11 +889,16 @@ internal sealed class MiniRemoteHud
|
|||
// The character, its session and charms are RynthOracle's Character tab (2026-10-13).
|
||||
if (ImGui.MenuItem("Character##mrcharacter", MovedTabs.OracleCharacter)) _hud.RunEngineCommand(MovedTabs.OracleCharacter);
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Character tab: the character, this session and the ILT charms list.");
|
||||
// Every character's bank on this server: RynthInventory's Global Inventory (ILT's /bank).
|
||||
// Every character's saved packs / storage: RynthInventory's Global Inventory.
|
||||
// On ILT the old "Banking" label still opens the same window (/ginv bank).
|
||||
if (ImGui.MenuItem("Global Inventory##mrginv", MovedTabs.GlobalInventory))
|
||||
_hud.RunEngineCommand(MovedTabs.GlobalInventory);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip("Global Inventory (/ginv): every character's saved packs and storage.");
|
||||
if (IltActive(_hud.Remote()))
|
||||
{
|
||||
if (ImGui.MenuItem("Banking##mrbanking", MovedTabs.GlobalBank)) _hud.RunEngineCommand(MovedTabs.GlobalBank);
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Global Inventory > Banking: every character's bank on this server, deposits, withdrawals and transfers.");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Global Inventory (/ginv bank): every character's saved packs and storage (banks when Include Storage is on).");
|
||||
// ILT pet breeding: RynthOracle's tab, fed by RynthILT (the Pets tab's Breeding sub-tab is the same tracker).
|
||||
if (ImGui.MenuItem("Pet Breeding##mrbreeding", MovedTabs.OracleBreeding)) _hud.RunEngineCommand(MovedTabs.OracleBreeding);
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Pet Breeding tab: essences ready to breed, rest and charge timers, growth, boosters, supplies and this server's breeding rules.");
|
||||
|
|
@ -904,11 +909,20 @@ internal sealed class MiniRemoteHud
|
|||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Quest Timers window: your tracked quests and the time left on each.");
|
||||
if (ImGui.MenuItem("Fellowship##mrfellow", "/ro fellowship")) _hud.RunEngineCommand("/ro fellowship");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Fellowship tab: members, levels, XP sharing, and ILT's /fship buttons on Infinite Leaftide.");
|
||||
if (ImGui.MenuItem("Skills##mrskills", "/rc skills")) _hud.RunEngineCommand("/rc skills toggle");
|
||||
// Skills live under RynthOracle (Skills / Attributes / Progress tabs).
|
||||
if (ImGui.MenuItem("Skills##mrskills", "/ro skills")) _hud.RunEngineCommand("/ro skills");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Skills tab: raise and train skills.");
|
||||
if (ImGui.MenuItem("Attributes##mrattrs", "/ro attrs")) _hud.RunEngineCommand("/ro attrs");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Attributes tab: attributes and vitals.");
|
||||
if (ImGui.MenuItem("Progress##mrprogress", "/ro progress")) _hud.RunEngineCommand("/ro progress");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("RynthOracle's Progress tab: ILT progression planners.");
|
||||
if (ImGui.MenuItem("Inventory##mrinv", "/rc inventory")) _hud.RunEngineCommand("/rc inventory");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("This character's packs (Inventory panel). Count / GInv buttons there open Item Count and Global Inventory.");
|
||||
if (ImGui.MenuItem("Item Count##mritemcount", "/rc itemcount")) _hud.RunEngineCommand("/rc itemcount");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Item Count panel (/rc itemcount): how many of each named item you carry. Distinct from the floating pack item count HUD.");
|
||||
}
|
||||
if (ImGui.MenuItem("Inventory HUDs setup...##mrsetup")) s.ShowSetup = true;
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Show / hide the floating pack item count HUD and the Mini Remote (/ra huds).");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -942,7 +956,7 @@ internal sealed class MiniRemoteHud
|
|||
// (with the retired Quests tab, now RynthOracle's).
|
||||
if (tab != null && (MiniRemoteTabs.Parse(tab) != null || tab.Equals("quests", StringComparison.OrdinalIgnoreCase))) continue;
|
||||
// Character / Charms / Banking (an older RynthCore still lists them) moved out: they are
|
||||
// under Character above (RynthOracle's Character tab, Global Inventory > Banking).
|
||||
// under Character above (RynthOracle's Character tab, Global Inventory).
|
||||
if (tab != null && MovedTabs.CommandFor(tab) != null) continue;
|
||||
bool enabled = tab == null || TabAvailable(remote, tab);
|
||||
if (ImGui.MenuItem(item.Label + "##mrsrv_" + g.Id, item.Command, false, enabled))
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
// RynthILT's Character, Charms and Banking tabs left the Mini Remote:
|
||||
// Character, Charms -> RynthOracle's Character tab ("/ro character"): the character, its
|
||||
// session and the ILT charms list (fed by "RynthILT.Data");
|
||||
// Banking -> RynthInventory's Global Inventory "Banking" tab ("/ginv bank"): every
|
||||
// character's bank on this server.
|
||||
// Banking -> RynthInventory's Global Inventory ("/ginv bank"): every character's
|
||||
// saved packs and storage (including banks when Include Storage is on).
|
||||
// RynthCore's Mini Remote "Char" section is "Session Stats" now (RynthAi's session stats), and a
|
||||
// server is forced only in RynthCore Options > Diagnostics ("/rc diagnostics").
|
||||
// Old saved tab ids, links and "/ra hub open|tab <name>" land on the new home through CommandFor.
|
||||
|
|
@ -22,9 +22,12 @@ internal static class MovedTabs
|
|||
/// <summary>RynthOracle's Pet Breeding tab (Infinite Leaftide; the same tracker as the Pets tab's Breeding sub-tab).</summary>
|
||||
public const string OracleBreeding = "/ro breeding";
|
||||
|
||||
/// <summary>RynthInventory's Global Inventory "Banking" tab.</summary>
|
||||
/// <summary>RynthInventory's Global Inventory (alias used by the old Banking tab).</summary>
|
||||
public const string GlobalBank = "/ginv bank";
|
||||
|
||||
/// <summary>RynthInventory's Global Inventory window.</summary>
|
||||
public const string GlobalInventory = "/ginv";
|
||||
|
||||
/// <summary>RynthCore Options > Diagnostics (the server picker; RynthCore 2026.10.5.54+).</summary>
|
||||
public const string Diagnostics = "/rc diagnostics";
|
||||
|
||||
|
|
@ -47,7 +50,7 @@ internal static class MovedTabs
|
|||
{
|
||||
OracleCharacter => "RynthOracle's Character tab",
|
||||
OracleBreeding => "RynthOracle's Pet Breeding tab",
|
||||
GlobalBank => "Global Inventory > Banking",
|
||||
GlobalBank or GlobalInventory => "Global Inventory",
|
||||
_ => command,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
// Quests are RynthOracle's (since 2026-10-13), and RynthILT draws its ILT session extras and /fship
|
||||
// views itself (its own manifest), so neither is listed here. RynthILT's Character, Charms and
|
||||
// Banking tabs moved out on 2026-10-13 (MovedTabs.cs): RynthOracle's Character tab and
|
||||
// RynthInventory's Global Inventory "Banking" tab.
|
||||
// RynthInventory's Global Inventory (/ginv bank).
|
||||
// Each view is a surface "section:<name>" RynthCore draws through RynthPluginRenderEmbed. An ILT
|
||||
// view whose feature the server hasn't reported is listed but not enabled, with a note.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -201,14 +201,6 @@ internal sealed class LegacyAdvancedSettingsUi
|
|||
catch { return false; }
|
||||
}
|
||||
|
||||
/// <summary>One cell of the Protections and Banes grid: ticked = cast it.</summary>
|
||||
private void BuffToggle((string Buff, string Label) toggle)
|
||||
{
|
||||
bool on = !_settings.IsBuffDisabled(toggle.Buff);
|
||||
if (ImGui.Checkbox($"{toggle.Label}##buff_{toggle.Buff}", ref on))
|
||||
_settings.SetBuffEnabled(toggle.Buff, on);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// One loot timer: the input, then "baseline" when it matches LootBaseline, or "baseline N" when
|
||||
/// it doesn't (hover for what the timer does).
|
||||
|
|
@ -885,30 +877,8 @@ internal sealed class LegacyAdvancedSettingsUi
|
|||
ImGui.SameLine();
|
||||
if (ImGui.Button("Cancel##cancelBuff") && _cancelBuff != null) _cancelBuff();
|
||||
|
||||
ImGui.Spacing();
|
||||
ImGui.Separator();
|
||||
ImGui.Text("Protections and Banes");
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip(
|
||||
"Untick a protection or bane to stop the bot casting it.\n" +
|
||||
"Unticked buffs are skipped and never hold the bot in Buffing.\n" +
|
||||
"All on by default.");
|
||||
if (ImGui.BeginTable("##protsBanes", 2, ImGuiTableFlags.SizingStretchSame))
|
||||
{
|
||||
ImGui.TableSetupColumn("Protections");
|
||||
ImGui.TableSetupColumn("Banes");
|
||||
ImGui.TableHeadersRow();
|
||||
int rows = Math.Max(BuffManager.ToggleProtections.Length, BuffManager.ToggleBanes.Length);
|
||||
for (int i = 0; i < rows; i++)
|
||||
{
|
||||
ImGui.TableNextRow();
|
||||
ImGui.TableSetColumnIndex(0);
|
||||
if (i < BuffManager.ToggleProtections.Length) BuffToggle(BuffManager.ToggleProtections[i]);
|
||||
ImGui.TableSetColumnIndex(1);
|
||||
if (i < BuffManager.ToggleBanes.Length) BuffToggle(BuffManager.ToggleBanes[i]);
|
||||
}
|
||||
ImGui.EndTable();
|
||||
}
|
||||
// Protections and Banes grid removed: spell buff profiles (Spells window) own
|
||||
// which prots/banes to cast. DisabledBuffs still loads for old profiles.
|
||||
|
||||
ImGui.Spacing();
|
||||
ImGui.Separator();
|
||||
|
|
|
|||
|
|
@ -12,9 +12,10 @@ namespace RynthCore.Plugin.RynthAi.Loot;
|
|||
/// AutoCram moves non-equipped loose items out of the player's main pack into
|
||||
/// sub-packs so the main pack stays empty for new loot pickups.
|
||||
///
|
||||
/// AutoStack merges two partial stacks of the same item (arrows, components,
|
||||
/// salvage, pyreals, etc.) by dropping the smaller one onto the larger one's
|
||||
/// slot — the server auto-merges stackable same-type items at the same slot.
|
||||
/// AutoStack merges two partial stacks of the same weenie (arrows, components,
|
||||
/// pyreals, etc.) by dropping the smaller one onto the larger one's slot — the
|
||||
/// server merges only same-WCID stackables. Groups by WCID (not display name) and
|
||||
/// skips pairs that would overflow MaxStackSize.
|
||||
/// </summary>
|
||||
public sealed class InventoryManager
|
||||
{
|
||||
|
|
@ -259,10 +260,12 @@ public sealed class InventoryManager
|
|||
if (inPlayerScope) playerItems.Add(item);
|
||||
}
|
||||
|
||||
// Group by name, keep only stackable items with >1 in the same group.
|
||||
// Group by weenie class id (WCID), not display name. Same-name stacks that are
|
||||
// different weenies (e.g. Coalesced Mana 42517 vs 42518) cannot merge — the server
|
||||
// answers "not compatible for stacking" and AutoStack used to retry forever.
|
||||
var groupList = playerItems
|
||||
.Where(x => GetMaxStackSize(x) > 1)
|
||||
.GroupBy(x => x.Name)
|
||||
.GroupBy(StackGroupKey)
|
||||
.Where(g => g.Count() > 1)
|
||||
.ToList();
|
||||
|
||||
|
|
@ -300,6 +303,9 @@ public sealed class InventoryManager
|
|||
{
|
||||
for (int si = parts.Count - 1; si > ti; si--)
|
||||
{
|
||||
// Server rejects merges that would overflow MaxStackSize.
|
||||
if (parts[ti].Count + parts[si].Count > max)
|
||||
continue;
|
||||
string key = parts[ti].Item.Id + "_" + parts[si].Item.Id;
|
||||
// Confirm-via-snapshot: a prior merge of this pair either consumed
|
||||
// the source (id vanished from inv) or grew the target. Either =>
|
||||
|
|
@ -400,7 +406,20 @@ public sealed class InventoryManager
|
|||
foreach (var k in dead) map.Remove(k);
|
||||
}
|
||||
|
||||
// ── Stack-size lookup ─────────────────────────────────────────────────
|
||||
// ── Stack-size / group-key lookup ─────────────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// AutoStack group key: WCID when known (Decal Type / TryGetObjectWcid), else name.
|
||||
/// Name-only is a cold-start fallback; once WCID is known, incompatible same-name
|
||||
/// weenies stay in separate groups.
|
||||
/// </summary>
|
||||
private static string StackGroupKey(WorldObject item)
|
||||
{
|
||||
int wcid = item.Values(unchecked((int)WorldObjectCache.DecalTypeKey), 0);
|
||||
if (wcid > 0) return "w:" + wcid.ToString();
|
||||
string n = item.Name ?? "";
|
||||
return "n:" + n;
|
||||
}
|
||||
|
||||
private static int GetMaxStackSize(WorldObject item)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -695,6 +695,10 @@ public sealed partial class RynthAiPlugin : RynthPluginBase
|
|||
_combatManager.ManaReserveHold = spellId => _buffManager?.OffensiveCastHold(spellId); // the mana reserve
|
||||
_combatManager.ManaCanEverAfford = spellId => _buffManager?.CanEverAfford(spellId) ?? true; // script hook: never-payable spells
|
||||
_combatManager.SetStaleBusyCallback(OnCombatBusyStale);
|
||||
// Empyrean Handler lethal-ring: face the Handler, run-back jump (Jumper "xs"), re-engage.
|
||||
// Read _jumper at call time — it is constructed later in this session setup.
|
||||
_combatManager.RequestBackJump = (faceHeading, ms) => _jumper != null && _jumper.Start("xs", faceHeading, ms);
|
||||
_combatManager.JumpBusy = () => _jumper?.IsBusy == true;
|
||||
_buffManager?.SetStaleBusyCallback(OnCombatBusyStale); // a heal ahead of a leftover busy count
|
||||
if (_buffManager != null)
|
||||
_buffManager.OffhandStowed = id => _combatManager?.NoteOffhandStowed(id);
|
||||
|
|
@ -2308,6 +2312,7 @@ public sealed partial class RynthAiPlugin : RynthPluginBase
|
|||
_combatManager?.TraceCastChat(text, chatType);
|
||||
_combatManager?.HandleChatForDebuffs(text);
|
||||
_combatManager?.HandleChatForDamage(text, chatType);
|
||||
_combatManager?.HandleChatForRingEvade(text, chatType);
|
||||
_missileCraftingManager?.HandleChat(text);
|
||||
_scrollLearner?.OnChat(text);
|
||||
_metaManager?.HandleChat(text, chatType);
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@
|
|||
// are bound (deposit and withdraw only); pyreal peas and luminance tokens deposit only.
|
||||
// Deposit, withdraw and transfer share the server's bank_command_limit throttle; a balance
|
||||
// refresh doesn't, so it has its own (client-side) spacing.
|
||||
// Balance lines are parsed whenever they appear (player-typed /bank too) but only EATEN
|
||||
// when the Hub asked. Transfers always need a confirmation (UB had none).
|
||||
// Balance lines are parsed whenever they appear. They are EATEN for quiet Hub refreshes
|
||||
// (login probe, auto-refresh, Banking tab Refresh) and shown only when the player asked
|
||||
// (typed /bank, or RequestRefresh(quiet: false)). Transfers always need a confirmation.
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
@ -57,6 +58,12 @@ internal sealed class IltBanking : IIltFeature
|
|||
private long _moveUntil;
|
||||
/// <summary>How long after a deposit / withdrawal reply the moved amounts are not income (covers the balance re-read).</summary>
|
||||
private const long MoveWindowMs = 12_000;
|
||||
/// <summary>
|
||||
/// Until this tick, [BANK] balance lines may show in chat (player typed /bank or asked for a
|
||||
/// loud refresh). Quiet Hub / login probes leave this at 0 so the lines stay hidden.
|
||||
/// </summary>
|
||||
private long _showBankReplyUntil;
|
||||
private const long ShowBankReplyWindowMs = 15_000;
|
||||
|
||||
// Render-thread form state.
|
||||
private string _amountText = string.Empty;
|
||||
|
|
@ -116,6 +123,16 @@ internal sealed class IltBanking : IIltFeature
|
|||
|
||||
// ── Commands ────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// Player typed /bank (or /b with no verb) in the chat bar: the next balance dump may show.
|
||||
/// Pump thread.
|
||||
/// </summary>
|
||||
public void NoteTypedBalanceCommand()
|
||||
{
|
||||
_showBankReplyUntil = IltHubContext.NowMs + ShowBankReplyWindowMs;
|
||||
RynthLog.Trace(LogCat.IltBanking, "NoteTypedBalanceCommand: next [BANK] dump may show in chat");
|
||||
}
|
||||
|
||||
/// <summary>Queues a /bank balance refresh (eaten when <paramref name="quiet"/>).</summary>
|
||||
public void RequestRefresh(bool quiet)
|
||||
{
|
||||
|
|
@ -124,6 +141,8 @@ internal sealed class IltBanking : IIltFeature
|
|||
long now = IltHubContext.NowMs;
|
||||
if (now - _lastBalanceAt < BalanceSpacingMs) return;
|
||||
_lastBalanceAt = now;
|
||||
if (!quiet)
|
||||
_showBankReplyUntil = now + ShowBankReplyWindowMs;
|
||||
_ctx.Capture.Enqueue(new IltChatRequest
|
||||
{
|
||||
Command = "/bank",
|
||||
|
|
@ -294,7 +313,11 @@ internal sealed class IltBanking : IIltFeature
|
|||
if (text.StartsWith("[BANK]", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
ParseBalanceLine(text);
|
||||
return false; // eating is decided by the capture queue
|
||||
// Capture.Eat already hides quiet refreshes; this is the backstop when that miss
|
||||
// (Silentstorm 2026-10-16: Mini Remote open + 120s auto-refresh leaked every dump).
|
||||
// Show only while the player asked (typed /bank or loud RequestRefresh).
|
||||
bool show = IltHubContext.NowMs < _showBankReplyUntil;
|
||||
return !show;
|
||||
}
|
||||
// A deposit or withdrawal reply (ours or a typed /b): the next balance and pack changes are moves.
|
||||
if (text.StartsWith("Deposited ", StringComparison.Ordinal) || text.StartsWith("Withdrew ", StringComparison.Ordinal))
|
||||
|
|
@ -438,8 +461,10 @@ internal sealed class IltBanking : IIltFeature
|
|||
|
||||
int refresh = Bank.AutoRefreshSeconds;
|
||||
ImGui.SetNextItemWidth(120);
|
||||
if (ImGui.InputInt("Auto-refresh seconds (0 = off)", ref refresh, 30))
|
||||
if (ImGui.InputInt("Auto-refresh seconds (0 = login/manual only)", ref refresh, 30))
|
||||
Bank.AutoRefreshSeconds = refresh <= 0 ? 0 : Math.Max(30, refresh);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip("While Mini Remote / Banking is open, re-read /bank this often. 0 = only at login and when you press Refresh (recommended; avoids chat spam).");
|
||||
|
||||
ImGui.Separator();
|
||||
RenderDepositWithdraw();
|
||||
|
|
|
|||
|
|
@ -79,9 +79,9 @@ internal static class IltFeatureCatalog
|
|||
public static readonly IltFeatureInfo[] All =
|
||||
{
|
||||
// Character progression and money.
|
||||
new("bank", "Banking", GroupCharacter, "Global Inventory > Banking (/ginv bank); Remote tab bank line",
|
||||
new("bank", "Banking", GroupCharacter, "Global Inventory (/ginv bank); Remote tab bank line",
|
||||
"Bank pyreals, luminance, keys and coins; deposit, withdraw and transfer (/bank).", IltFeature.Bank, IltKnown.Checked),
|
||||
new("bank_notes", "Trade note banking", GroupCharacter, "Global Inventory > Banking (/ginv bank, notes)",
|
||||
new("bank_notes", "Trade note banking", GroupCharacter, "Global Inventory (/ginv bank); trade notes",
|
||||
"Deposit trade notes as pyreals, withdraw any note from I to MMD, transfer note value (/bank d n).", "bank_notes"),
|
||||
new("guardian", "Guardian (infinite base attributes)", GroupCharacter, "Guardian panel (/rc guardian)",
|
||||
"Temple of Enlightenment guardians raise base attributes past the retail cap.", null),
|
||||
|
|
|
|||
|
|
@ -47,6 +47,11 @@ internal sealed class IltHubController
|
|||
private volatile string _bankJson = string.Empty;
|
||||
private List<IltBankExport.Row> _siblings = new();
|
||||
|
||||
// "RynthILT.Server" profile JSON (Oracle Fellowship / Quests qb / feature list). Rebuilt ~1 s.
|
||||
private const long ProfileRebuildMs = 1000;
|
||||
private long _profileBuiltAt;
|
||||
private volatile string _profileJson = string.Empty;
|
||||
|
||||
public IltBanking Banking { get; }
|
||||
public IltSessionRates Rates { get; }
|
||||
/// <summary>The quest bonus list (/qb): the Quests tab's section and the Temple tracker's stamps.</summary>
|
||||
|
|
@ -102,6 +107,25 @@ internal sealed class IltHubController
|
|||
options.ProbeReplyTap = OnProbeReply;
|
||||
_ui = new IltHubUi(this, _ctx);
|
||||
_ctx.ShowTab = section => _ctx.Ai.MiniRemoteTab(IltSections.TabId(section), "show");
|
||||
RebuildProfile();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The latest "RynthILT.Server" profile JSON: Leaftide features, fellowship rules, and the /qb
|
||||
/// list (Plugins/Shared/RynthIltServerApi.cs). Rebuilt on the pump about once a second so any
|
||||
/// thread (ServerInterface) may read it.
|
||||
/// </summary>
|
||||
public string ProfileJson => _profileJson;
|
||||
|
||||
/// <summary>Rebuilds <see cref="ProfileJson"/> from the current server options. Pump thread.</summary>
|
||||
private void RebuildProfile()
|
||||
{
|
||||
IltServerOptions o = _ctx.Options;
|
||||
bool ilt = o.IsIltLikeWorld;
|
||||
_profileJson = IltFeatureCatalog.BuildProfileJson(
|
||||
ilt, o.WorldName, _ctx.State.ForceLeaftideFeatures,
|
||||
o.Source ?? string.Empty, o.LastRefreshUtc, o.Get,
|
||||
QuestBonus.Snapshot());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -286,6 +310,14 @@ internal sealed class IltHubController
|
|||
try { RebuildReaderData(now); }
|
||||
catch (Exception ex) { RynthLog.Exception(LogCat.IltHub, ex, "RebuildReaderData"); }
|
||||
|
||||
// Profile other plugins read (RynthILT.Server): world, feature states, fellowship, /qb.
|
||||
if (now - _profileBuiltAt >= ProfileRebuildMs)
|
||||
{
|
||||
_profileBuiltAt = now;
|
||||
try { RebuildProfile(); }
|
||||
catch (Exception ex) { RynthLog.Exception(LogCat.IltHub, ex, "RebuildProfile"); }
|
||||
}
|
||||
|
||||
// "Mini Remote on screen" gates bank auto-refresh and the gear / split-arrow scans.
|
||||
_ctx.State.WindowVisible = _ctx.Ai.MiniRemoteVisible;
|
||||
|
||||
|
|
|
|||
|
|
@ -85,8 +85,12 @@ public sealed class IltBankState
|
|||
public int WithdrawIndex;
|
||||
public int WithdrawNoteIndex = 9;
|
||||
|
||||
/// <summary>Re-issue /bank every N seconds while the Hub is open (0 = manual only).</summary>
|
||||
public int AutoRefreshSeconds = 120;
|
||||
/// <summary>
|
||||
/// Re-issue /bank every N seconds while the Hub (or a Banking reader) is open.
|
||||
/// Default 0 (2026-10-16): login probe + manual Refresh only — a 120s timer with Mini Remote
|
||||
/// open was spamming [BANK] lines into chat when quiet-eat missed.
|
||||
/// </summary>
|
||||
public int AutoRefreshSeconds = 0;
|
||||
}
|
||||
|
||||
/// <summary>One "Transferred …" / "Received …" bank line seen in chat.</summary>
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ internal sealed class IltHubUi
|
|||
/// <summary>A button that opens a moved section's new home (posted: the command runs on the pump).</summary>
|
||||
private void MovedLink(IltSection section, string command)
|
||||
{
|
||||
string home = command == IltSections.GlobalBankCommand ? "Global Inventory > Banking" : "RynthOracle > Character";
|
||||
string home = command == IltSections.GlobalBankCommand ? "Global Inventory" : "RynthOracle > Character";
|
||||
ImGui.TextDisabled($"{IltSections.Label(section)} moved to {home}.");
|
||||
if (ImGui.SmallButton($"Open {home}##moved{(int)section}"))
|
||||
_ctx.Post(() => _hub.OpenMoved(section, command));
|
||||
|
|
@ -204,7 +204,7 @@ internal sealed class IltHubUi
|
|||
ImGui.TextDisabled("Bank: not loaded yet");
|
||||
ImGui.SameLine();
|
||||
if (ImGui.SmallButton("Load##mrbank")) _ctx.Post(() => _hub.Banking.RequestRefresh(quiet: true));
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Reads your bank balances (/bank, reply hidden). Global Inventory > Banking (/ginv bank) has the details.");
|
||||
if (ImGui.IsItemHovered()) ImGui.SetTooltip("Reads your bank balances (/bank, reply hidden). Global Inventory (/ginv bank) has every character's saved packs and storage.");
|
||||
BankLink();
|
||||
return;
|
||||
}
|
||||
|
|
@ -221,14 +221,14 @@ internal sealed class IltHubUi
|
|||
ImGui.EndTable();
|
||||
}
|
||||
|
||||
/// <summary>The Bank line's link to RynthInventory's Global Inventory "Banking" tab (every character here).</summary>
|
||||
/// <summary>The Bank line's link to RynthInventory's Global Inventory (every character here).</summary>
|
||||
private void BankLink()
|
||||
{
|
||||
ImGui.SameLine();
|
||||
if (ImGui.SmallButton("Banks##mrbanklink"))
|
||||
_ctx.Post(() => _hub.OpenMoved(IltSection.Banking, IltSections.GlobalBankCommand));
|
||||
if (ImGui.IsItemHovered())
|
||||
SafeImGui.SetTooltip("Global Inventory > Banking (/ginv bank): deposits, withdrawals, transfers and\nevery character's bank on this server.");
|
||||
SafeImGui.SetTooltip("Global Inventory (/ginv bank): every character's saved packs and storage\n(banks when Include Storage is on).");
|
||||
}
|
||||
|
||||
private static void Stat(string label, string value)
|
||||
|
|
|
|||
|
|
@ -78,6 +78,10 @@ internal sealed class IltInventory
|
|||
public const uint QuadTotalXp = 1;
|
||||
public const uint QuadAvailableXp = 2;
|
||||
public const uint QuadItemTotalXp = 4;
|
||||
/// <summary>ACE PropertyInt64.AvailableLuminance — lum on the character (not the bank).</summary>
|
||||
public const uint QuadAvailableLuminance = 6;
|
||||
/// <summary>ACE PropertyInt64.MaximumLuminance.</summary>
|
||||
public const uint QuadMaximumLuminance = 7;
|
||||
/// <summary>ACECustom PropertyInt64.BankedLuminance (sent with each XP batch).</summary>
|
||||
public const uint QuadBankedLuminance = 9005;
|
||||
public const uint BoolNeverChunk = 9030;
|
||||
|
|
|
|||
|
|
@ -71,6 +71,9 @@ internal sealed class IltProgression : IIltFeature
|
|||
// Cached player facts for the render thread (refreshed in Tick).
|
||||
private volatile int _enl, _level, _freeSlots;
|
||||
private long _unassignedXp;
|
||||
/// <summary>PropertyInt64 AvailableLuminance on the character (not banked /bank lum).</summary>
|
||||
private long _characterLum;
|
||||
private long _bankedLum;
|
||||
private volatile bool _peace, _hasVitae;
|
||||
private readonly long[] _enlHave = new long[4]; // tokens, medallions, sigils, crests
|
||||
// 301-325 sigil chain stock (pack items by name; EnlightenedCoins = bank + pack). Pump thread only.
|
||||
|
|
@ -261,6 +264,9 @@ internal sealed class IltProgression : IIltFeature
|
|||
_enl = inv.PlayerInt(IltInventory.IntEnlightenment);
|
||||
_level = inv.PlayerInt(IltInventory.IntLevel);
|
||||
_unassignedXp = inv.PlayerQuad(IltInventory.QuadAvailableXp);
|
||||
// Aug / Enl planners use character AvailableLuminance, not /bank's banked line.
|
||||
_characterLum = inv.PlayerQuad(IltInventory.QuadAvailableLuminance);
|
||||
_bankedLum = _ctx.State.Bank.Luminance;
|
||||
_peace = inv.InPeaceMode;
|
||||
_freeSlots = inv.FreeMainPackSlots();
|
||||
_enlHave[0] = inv.CountByWcid(IltInventory.WcidEnlToken);
|
||||
|
|
@ -315,7 +321,8 @@ internal sealed class IltProgression : IIltFeature
|
|||
: string.Empty;
|
||||
list.Add($"Need {cost.Count} {cost.Item} (have {HaveFor(cost.Wcid)}{craft}).");
|
||||
}
|
||||
if (cost.Lum > 0 && _ctx.State.Bank.Luminance < cost.Lum) list.Add($"Need {IltParse.Compact((double)cost.Lum)} banked luminance.");
|
||||
if (cost.Lum > 0 && _characterLum < cost.Lum)
|
||||
list.Add($"Need {IltParse.Compact((double)cost.Lum)} character luminance (have {IltParse.Compact(_characterLum)}).");
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
@ -462,7 +469,12 @@ internal sealed class IltProgression : IIltFeature
|
|||
Str(sb, "short", coinsShort > 0
|
||||
? $"Coins short: {IltParse.N0(coinsShort)}" + (lumPerCoin > 0 ? $" (~{IltParse.Compact((double)coinsShort * lumPerCoin)} luminance to buy)" : "")
|
||||
: string.Empty);
|
||||
Str(sb, "banked", $"Banked luminance: {IltParse.Compact(_ctx.State.Bank.Luminance)}");
|
||||
// "banked" key kept for older SkillsFace builds; text is character AvailableLuminance.
|
||||
decimal haveLum = _characterLum;
|
||||
decimal stillNeed = Math.Max(0, totalLum - haveLum);
|
||||
Str(sb, "banked", $"Character luminance: {IltParse.Compact(_characterLum)}"
|
||||
+ (stillNeed > 0 ? $" still need ~{IltParse.Compact((double)stillNeed)} for this plan" : " covers this plan")
|
||||
+ (_bankedLum > 0 ? $" (banked {IltParse.Compact(_bankedLum)}, not used here)" : ""));
|
||||
Str(sb, "copyDiscord", AugDiscordText(plan));
|
||||
Str(sb, "copyIngame", AugIngameText(plan));
|
||||
AppendAugCostJson(sb);
|
||||
|
|
@ -593,7 +605,7 @@ internal sealed class IltProgression : IIltFeature
|
|||
bool firstLine = true;
|
||||
foreach (var kv in totals) { StrItem(sb, $"{IltParse.N0(kv.Value)} {kv.Key}", ref firstLine); }
|
||||
if (lumTotal > 0)
|
||||
StrItem(sb, $"{IltParse.Compact((double)lumTotal)} luminance (banked {IltParse.Compact(_ctx.State.Bank.Luminance)})", ref firstLine);
|
||||
StrItem(sb, $"{IltParse.Compact((double)lumTotal)} luminance (character {IltParse.Compact(_characterLum)})", ref firstLine);
|
||||
sb.Append(']');
|
||||
|
||||
int coinsPerToken = C.EnlightenedCoinsPerToken;
|
||||
|
|
@ -633,9 +645,9 @@ internal sealed class IltProgression : IIltFeature
|
|||
/// </summary>
|
||||
private void AppendEnlCalculatorJson(StringBuilder sb, int enl, int target, Dictionary<string, long> totals, decimal lumTotal)
|
||||
{
|
||||
// Simulated stock: tokens, medallions, crests on hand, sigils via the chain, banked luminance.
|
||||
// Simulated stock: tokens, medallions, crests on hand, sigils via the chain, character lum.
|
||||
long tok = _enlHave[0], med = _enlHave[1], crest = _enlHave[3];
|
||||
decimal lum = (decimal)_ctx.State.Bank.Luminance;
|
||||
decimal lum = (decimal)_characterLum;
|
||||
var chain = _chain.Clone();
|
||||
long sigilCraftable = IltSigilChain.Fulfillable(chain);
|
||||
|
||||
|
|
@ -668,7 +680,7 @@ internal sealed class IltProgression : IIltFeature
|
|||
// Material summary: Still need = demand minus what is on hand.
|
||||
long sigilsNeed = totals.TryGetValue("Enlightenment Sigils", out long sn) ? sn : 0;
|
||||
var shortfall = IltSigilChain.Shortfall(sigilsNeed, _chain);
|
||||
decimal bankLum = (decimal)_ctx.State.Bank.Luminance;
|
||||
decimal haveLum = (decimal)_characterLum;
|
||||
sb.Append(",\"materials\":[");
|
||||
bool firstMat = true;
|
||||
void Mat(string label, string need, string have, bool ok)
|
||||
|
|
@ -683,8 +695,9 @@ internal sealed class IltProgression : IIltFeature
|
|||
}
|
||||
if (lumTotal > 0)
|
||||
{
|
||||
decimal lumStill = Math.Max(0, lumTotal - bankLum);
|
||||
Mat("Luminance", lumStill > 0 ? IltParse.Compact((double)lumStill) : "0", IltParse.Compact((double)bankLum), lumStill == 0);
|
||||
decimal lumStill = Math.Max(0, lumTotal - haveLum);
|
||||
Mat("Luminance (character)", lumStill > 0 ? IltParse.Compact((double)lumStill) : "0",
|
||||
IltParse.Compact((double)haveLum), lumStill == 0);
|
||||
}
|
||||
void Item(string key, string label, long have, bool extraOk = false)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -125,6 +125,12 @@ internal sealed class IltQuestBonus : IIltFeature
|
|||
/// <summary>Increments each time a "/qb list" reply is parsed (0 = not loaded this session).</summary>
|
||||
public int QbGeneration => _qbGeneration;
|
||||
|
||||
/// <summary>
|
||||
/// Snapshot for the "RynthILT.Server" profile JSON (Oracle Quests / Fellowship). Pump thread.
|
||||
/// </summary>
|
||||
public IltQuestBonusInfo Snapshot() =>
|
||||
new(_ctx.Options.IsOff(IltFeature.Qb), _qbGeneration, _qbCount, _qbStatus, _qbCompleted, _qbIncomplete);
|
||||
|
||||
/// <summary>True when the last "/qb list" (completed or incomplete) contains the flag.</summary>
|
||||
public bool QbHasFlag(string flag)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
// override lives only in RynthCore Options > Diagnostics) and RynthOracle's
|
||||
// Character tab ("/ro character");
|
||||
// Charms -> RynthOracle's Character tab, a list fed by "RynthILT.Data" ("/ro character");
|
||||
// Banking -> RynthInventory's Global Inventory "Banking" tab, every character on this server
|
||||
// ("/ginv bank").
|
||||
// Banking -> RynthInventory's Global Inventory ("/ginv bank"), every character's packs
|
||||
// and storage on this server.
|
||||
// Their names still parse, so old links and commands land on the new home (MovedCommand).
|
||||
using System;
|
||||
using System.Numerics;
|
||||
|
|
@ -26,7 +26,7 @@ internal enum IltSection
|
|||
{
|
||||
/// <summary>Moved out (2026-10-13): RynthOracle's Character tab.</summary>
|
||||
Character,
|
||||
/// <summary>Moved out (2026-10-13): RynthInventory's Global Inventory "Banking" tab.</summary>
|
||||
/// <summary>Moved out (2026-10-13): RynthInventory's Global Inventory.</summary>
|
||||
Banking,
|
||||
Gear,
|
||||
Games,
|
||||
|
|
@ -55,7 +55,7 @@ internal static class IltSections
|
|||
/// <summary>RynthOracle's Character tab: the character, its session and the charms list.</summary>
|
||||
public const string OracleCharacterCommand = "/ro character";
|
||||
|
||||
/// <summary>RynthInventory's Global Inventory "Banking" tab: every character's bank on this server.</summary>
|
||||
/// <summary>RynthInventory's Global Inventory (alias used by the old Banking tab).</summary>
|
||||
public const string GlobalBankCommand = "/ginv bank";
|
||||
|
||||
public static string Label(IltSection s) => s switch
|
||||
|
|
|
|||
|
|
@ -11,12 +11,13 @@ public static unsafe class PluginExports
|
|||
{
|
||||
internal static readonly RynthPluginRuntime<RynthILTPlugin> Runtime = new();
|
||||
|
||||
// Typed interfaces (host GetPluginInterface, API v68): "RynthILT.Hub" v1, the ILT tabs and
|
||||
// sections RynthAi's Mini Remote hosts (Plugins/Shared/RynthIltHubApi.cs, HubInterface.cs), and
|
||||
// "RynthServer.Profile" v1, ILT's settings and tinkering salvage for any reader, as every server
|
||||
// plugin serves its own (Plugins/Shared/RynthServerProfileApi.cs, ProfileInterface.cs), and
|
||||
// "RynthILT.Data" v1, the charms list and bank balances with their actions
|
||||
// (Plugins/Shared/RynthIltDataApi.cs, DataInterface.cs).
|
||||
// Typed interfaces (host GetPluginInterface, API v68):
|
||||
// "RynthILT.Hub" v1 — Mini Remote ILT tabs/sections (RynthIltHubApi.cs, HubInterface.cs)
|
||||
// "RynthILT.Server" v1 — Leaftide feature / fellowship / qb profile JSON (RynthIltServerApi.cs,
|
||||
// ServerInterface.cs; RynthOracle Fellowship & Quests). Must stay alongside Hub — it was
|
||||
// dropped when RynthServer.Profile landed and Oracle kept polling an empty table.
|
||||
// "RynthServer.Profile" v1 — identity + tinkering salvage (ProfileInterface.cs)
|
||||
// "RynthILT.Data" v1/v2 — charms, bank, breeding (DataInterface.cs)
|
||||
// Fixed signature: void* (const char* iface, uint version).
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginQueryInterface", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
private static IntPtr QueryInterface(IntPtr ifaceAnsi, uint version)
|
||||
|
|
@ -26,6 +27,8 @@ public static unsafe class PluginExports
|
|||
string iface = ifaceAnsi == IntPtr.Zero ? "" : Marshal.PtrToStringAnsi(ifaceAnsi) ?? "";
|
||||
IntPtr table = HubInterface.Query(iface, version);
|
||||
if (table != IntPtr.Zero) return table;
|
||||
table = ServerInterface.Query(iface, version);
|
||||
if (table != IntPtr.Zero) return table;
|
||||
table = ProfileInterface.Query(iface, version);
|
||||
return table != IntPtr.Zero ? table : DataInterface.Query(iface, version);
|
||||
}
|
||||
|
|
@ -44,6 +47,7 @@ public static unsafe class PluginExports
|
|||
// An exception escaping an UnmanagedCallersOnly export fail-fasts the client under NativeAOT.
|
||||
try { Runtime.Shutdown(); } catch { }
|
||||
try { HubInterface.Release(); } catch { }
|
||||
try { ServerInterface.Release(); } catch { }
|
||||
try { ProfileInterface.Release(); } catch { }
|
||||
try { DataInterface.Release(); } catch { }
|
||||
foreach (IntPtr p in new[] { Interlocked.Exchange(ref _bountiesPtr, IntPtr.Zero), Interlocked.Exchange(ref _progressionPtr, IntPtr.Zero),
|
||||
|
|
|
|||
|
|
@ -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.10.
|
||||
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.2.11");
|
||||
// Previous release: 0.2.13 (ProductVersion 2026.10.16.5).
|
||||
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.2.14");
|
||||
|
||||
/// <summary>
|
||||
/// The settings view's surface. No longer in the sections manifest (the force-server override
|
||||
|
|
@ -473,6 +473,13 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
_typedBounty.Enqueue(trimmed);
|
||||
return;
|
||||
}
|
||||
// Player-typed /bank (or bare /b): allow the [BANK] dump in chat; Hub quiet refreshes stay hidden.
|
||||
if (IsTypedBankBalanceCommand(trimmed))
|
||||
{
|
||||
try { _hub?.Banking.NoteTypedBalanceCommand(); }
|
||||
catch (Exception ex) { RynthLog.Exception(LogCat.IltBanking, ex, "NoteTypedBalanceCommand"); }
|
||||
return;
|
||||
}
|
||||
if (!trimmed.Equals("/ilt", StringComparison.OrdinalIgnoreCase)
|
||||
&& !trimmed.StartsWith("/ilt ", StringComparison.OrdinalIgnoreCase))
|
||||
return;
|
||||
|
|
@ -480,6 +487,22 @@ public sealed class RynthILTPlugin : RynthPluginBase
|
|||
_commands.Enqueue(trimmed.Split(' ', StringSplitOptions.RemoveEmptyEntries));
|
||||
}
|
||||
|
||||
/// <summary>True for a chat-bar /bank or bare /b that asks the server for balances (not /b d, /b w, …).</summary>
|
||||
private static bool IsTypedBankBalanceCommand(string trimmed)
|
||||
{
|
||||
if (trimmed.Equals("/bank", StringComparison.OrdinalIgnoreCase)) return true;
|
||||
if (trimmed.Equals("/b", StringComparison.OrdinalIgnoreCase)) return true;
|
||||
// "/bank " with only spaces, or "/bank balances" style — still a balance read.
|
||||
if (trimmed.StartsWith("/bank ", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
string rest = trimmed.Substring(6).Trim();
|
||||
return rest.Length == 0
|
||||
|| rest.Equals("balances", StringComparison.OrdinalIgnoreCase)
|
||||
|| rest.Equals("balance", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// The server's killer notification: this character landed the killing blow.
|
||||
public override void OnKillNotification(string? deathMessage) => _bounties?.OnKill();
|
||||
|
||||
|
|
|
|||
81
Plugins/RynthCore.Plugin.RynthILT/ServerInterface.cs
Normal file
81
Plugins/RynthCore.Plugin.RynthILT/ServerInterface.cs
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
// ServerInterface.cs - RynthILT's side of the "RynthILT.Server" interface (Plugins/Shared/RynthIltServerApi.cs):
|
||||
// the profile JSON other plugins read (RynthOracle's Fellowship / Quests qb list / feature list):
|
||||
// the Leaftide feature list with the server's state for each, and the server's fellowship rules.
|
||||
//
|
||||
// Restored 2026-10-16: this export was dropped when "RynthServer.Profile" (salvage / identity) was
|
||||
// added, so Oracle still detected ILT via RynthCore but never received feature / qb / fellowship
|
||||
// data from RynthILT. Hub + Data stay separate; this table is the feature-profile channel.
|
||||
//
|
||||
// The table is allocated once per loaded copy of RynthILT and never freed (a plugin DLL is never
|
||||
// unloaded); after Release() it reports Version 0 and GetProfileJson answers 0. Before login there
|
||||
// is no controller, so the profile is the not-ILT default (every feature unknown, retail fellowships).
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using RynthCore.Plugin.RynthILT.Hub;
|
||||
using RynthCore.Plugin.Shared;
|
||||
|
||||
namespace RynthCore.Plugin.RynthILT;
|
||||
|
||||
internal static unsafe class ServerInterface
|
||||
{
|
||||
private static RynthIltServerApiV1* _table;
|
||||
private static volatile bool _released;
|
||||
|
||||
/// <summary>The profile before any login: not an ILT world, nothing known (built once).</summary>
|
||||
private static readonly string NotLoggedInJson =
|
||||
IltFeatureCatalog.BuildProfileJson(false, string.Empty, false, string.Empty, DateTime.MinValue, _ => IltTri.Unknown);
|
||||
|
||||
/// <summary>The table for (<paramref name="iface"/>, <paramref name="version"/>), or 0 when it isn't ours.</summary>
|
||||
public static IntPtr Query(string iface, uint version)
|
||||
{
|
||||
if (iface != RynthIltServerApiV1.InterfaceName || version < 1 || version > RynthIltServerApiV1.InterfaceVersion || _released)
|
||||
return IntPtr.Zero;
|
||||
if (_table == null)
|
||||
{
|
||||
var t = (RynthIltServerApiV1*)NativeMemory.AllocZeroed((nuint)sizeof(RynthIltServerApiV1));
|
||||
t->StructSize = (uint)sizeof(RynthIltServerApiV1);
|
||||
t->GetProfileJson = &GetProfileJson;
|
||||
t->Version = RynthIltServerApiV1.InterfaceVersion;
|
||||
_table = t;
|
||||
}
|
||||
return (IntPtr)_table;
|
||||
}
|
||||
|
||||
/// <summary>Plugin shutdown: readers see Version 0 and re-query; GetProfileJson answers 0.</summary>
|
||||
public static void Release()
|
||||
{
|
||||
_released = true;
|
||||
if (_table != null) _table->Version = 0;
|
||||
}
|
||||
|
||||
/// <summary>The JSON to hand out now: the live controller's snapshot, or the not-logged-in default.</summary>
|
||||
internal static string CurrentJson()
|
||||
=> (_released ? null : PluginExports.Runtime.Plugin?.Hub?.ProfileJson) ?? NotLoggedInJson;
|
||||
|
||||
[UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
private static int GetProfileJson(byte* buffer, int capacity)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_released) return 0;
|
||||
return Write(CurrentJson(), buffer, capacity);
|
||||
}
|
||||
catch { return 0; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies <paramref name="json"/> as NUL-terminated UTF-8 into the caller's buffer when it fits,
|
||||
/// and returns its byte length either way (length >= capacity: too small, nothing written).
|
||||
/// </summary>
|
||||
internal static int Write(string json, byte* buffer, int capacity)
|
||||
{
|
||||
int length = Encoding.UTF8.GetByteCount(json);
|
||||
if (buffer == null || capacity <= length) return length;
|
||||
fixed (char* src = json)
|
||||
Encoding.UTF8.GetBytes(src, json.Length, buffer, capacity);
|
||||
buffer[length] = 0;
|
||||
return length;
|
||||
}
|
||||
}
|
||||
|
|
@ -26,7 +26,7 @@ namespace RynthCore.Plugin.RynthInventory;
|
|||
/// </summary>
|
||||
public sealed class RynthInventoryPlugin : RynthPluginBase
|
||||
{
|
||||
public const string Version = "0.1.0";
|
||||
public const string Version = "0.1.2";
|
||||
|
||||
private const long IdentityRetryMs = 1000;
|
||||
private const long AccountWaitMs = 15_000;
|
||||
|
|
@ -90,9 +90,12 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
|
|||
_vault = new VaultFeed(text => Host.InvokeChatParser(text));
|
||||
|
||||
_view = new InventoryView(_c);
|
||||
// No bar button of its own: open from Inventory's GInv / Count row, Character menu, or /ginv.
|
||||
// Still ShowInBar so it stays in the Scripts menu.
|
||||
_window = _ui.Add(new UiWindow("RynthInventory/Main", "Global Inventory")
|
||||
{
|
||||
DefaultWidth = 640f, DefaultHeight = 600f, MinWidth = 420f, MinHeight = 300f,
|
||||
BarButton = false,
|
||||
});
|
||||
|
||||
Host.Log($"[RynthInventory] {Version} initialized. /ginv opens the window. Files: {_c.Store.Root}");
|
||||
|
|
@ -214,6 +217,12 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
|
|||
case "":
|
||||
if (_window != null) { _window.Visible = !_window.Visible; _window.NeedsPass = true; }
|
||||
break;
|
||||
// Old Mini Remote "Banking" tab ("/ginv bank"): open Global Inventory (don't search
|
||||
// for "bank"). Storage containers still show when Include Storage is on.
|
||||
case "bank":
|
||||
case "banking":
|
||||
if (_window != null) { _window.Visible = true; _window.NeedsPass = true; }
|
||||
break;
|
||||
case "scan":
|
||||
case "rescan":
|
||||
_scheduler.RequestFullScan();
|
||||
|
|
@ -238,7 +247,7 @@ public sealed class RynthInventoryPlugin : RynthPluginBase
|
|||
break;
|
||||
case "help":
|
||||
case "?":
|
||||
_c.Print("/ginv (window), /ginv <text> (search), /ginv scan (rescan and save now), /ginv keep (record the open container as storage), /ginv vault (read the Aelrynth account vault now), /ginv reload, /ginv status");
|
||||
_c.Print("/ginv (window), /ginv bank (same), /ginv <text> (search), /ginv scan (rescan and save now), /ginv keep (record the open container as storage), /ginv vault (read the Aelrynth account vault now), /ginv reload, /ginv status");
|
||||
break;
|
||||
default:
|
||||
_view?.SetSearch(arg);
|
||||
|
|
|
|||
|
|
@ -28,6 +28,12 @@ internal sealed class Augmentation
|
|||
private static readonly int[] InnateAttributeIds = { 218, 219, 220, 221, 222, 223 };
|
||||
private static readonly int[] InnateResistanceIds = { 240, 241, 242, 243, 244, 245, 246 };
|
||||
|
||||
/// <summary>
|
||||
/// Permanent flag set when Asheron's Lesser Benediction is granted (Donatello Linante /
|
||||
/// Blackmoor's Page). ACE / wiki "lesserbenedictionaug".
|
||||
/// </summary>
|
||||
public const string LesserBenedictionFlag = "lesserbenedictionaug";
|
||||
|
||||
public bool IsHeading => Id == 0;
|
||||
public bool IsXp => Category == "XP";
|
||||
public bool IsLuminance => Category == "Luminance";
|
||||
|
|
@ -49,14 +55,16 @@ internal sealed class Augmentation
|
|||
if (Flag.Length > 0 && !IsQuestComplete(flags)) return 0;
|
||||
if (IsInnateAttributes) return InnateAttributeIds.Sum(id => prop((uint)id));
|
||||
if (IsInnateResistances) return InnateResistanceIds.Sum(id => prop((uint)id));
|
||||
if (IsBenediction) return 0; // upstream counts the item in inventory; not ported (see IsUnknown)
|
||||
// Lesser Benediction: permanent quest flag (not a PropertyInt).
|
||||
if (IsBenediction)
|
||||
return flags.TryGet(LesserBenedictionFlag, out QuestFlag b) && b.Solves > 0 ? 1 : 0;
|
||||
if (IsLumSpecialization) return Math.Max(prop((uint)Math.Abs(Id)) - 5, 0);
|
||||
if (Id <= 0) return 0;
|
||||
return Math.Min(prop((uint)Id), TimesTotal);
|
||||
}
|
||||
|
||||
/// <summary>Rows RynthOracle can't read (Asheron's Lesser Benediction is an item, not a property).</summary>
|
||||
public bool IsUnknown => IsBenediction;
|
||||
/// <summary>True only for rows with no readable source (none today; Benediction uses the quest flag).</summary>
|
||||
public bool IsUnknown => false;
|
||||
|
||||
public bool IsComplete(Func<uint, int> prop, QuestFlagStore flags)
|
||||
{
|
||||
|
|
@ -64,6 +72,7 @@ internal sealed class Augmentation
|
|||
if (IsInnateAttribute) return InnateAttributeIds.Sum(id => prop((uint)id)) >= 10;
|
||||
if (IsInnateResistance) return InnateResistanceIds.Sum(id => prop((uint)id)) >= 2;
|
||||
if (IsSeer) return IsQuestComplete(flags);
|
||||
if (IsBenediction) return Times(prop, flags) >= 1;
|
||||
return Times(prop, flags) >= TimesTotal;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ internal sealed class OracleContext
|
|||
/// <summary>Set by the plugin: runs a chat command through RynthCore's plugin dispatch (another plugin's window).</summary>
|
||||
public Func<string, bool> RunCommand = _ => false;
|
||||
|
||||
/// <summary>
|
||||
/// Set by the plugin: tells the engine which SkillsFace body to embed in Oracle
|
||||
/// (0 Skills, 1 Attributes, 2 Progress, -1 off). Bridge is /rc oracle-skills.
|
||||
/// </summary>
|
||||
public Action<int> SkillsEmbedChanged = _ => { };
|
||||
|
||||
/// <summary>Set by the plugin: shows or hides the Quest Timers window.</summary>
|
||||
public Action<bool> SetQuestTimersWindow = _ => { };
|
||||
/// <summary>Set by the plugin: whether the Quest Timers window is showing.</summary>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public static unsafe class PluginExports
|
|||
public static IntPtr GetVersion()
|
||||
{
|
||||
// Keep in step with RynthOraclePlugin.Version (a u8 literal can't be built from a const string).
|
||||
try { return LiteralPointer("0.2.8"u8); }
|
||||
try { return LiteralPointer("0.3.1"u8); }
|
||||
catch { return IntPtr.Zero; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<!-- Plugin manifest (embedded in the DLL; Plugins\Directory.Build.targets). minEngineApi is the
|
||||
highest API use NOT behind a Has*/version check. Script windows (v71, HasUi) draw its window and titles/server info (v75) are guarded with fallbacks; below v71 it runs without a window (/ro status), as on an engine with ImGui off. -->
|
||||
<RynthPluginMinEngineApi>66</RynthPluginMinEngineApi>
|
||||
<RynthPluginDescription>Quests, character, titles and leaderboards.</RynthPluginDescription>
|
||||
<RynthPluginDescription>Quests, character, skills/attributes/progress, titles and leaderboards.</RynthPluginDescription>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
{
|
||||
// Previous release: 0.2.5.
|
||||
// Previous release: 0.2.8.
|
||||
public const string Version = "0.2.9";
|
||||
public const string Version = "0.3.1";
|
||||
|
||||
private const long QuestReadDelayMs = 6000; // after login, before the hidden /myquests
|
||||
private const long CharacterReadMs = 1000;
|
||||
|
|
@ -63,6 +63,9 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
_c.RequestQuests = RequestQuests;
|
||||
_c.Send = cmd => _c.InWorld && Host.InvokeChatParser(cmd);
|
||||
_c.RunCommand = cmd => _c.InWorld && Host.InvokeChatParser(cmd);
|
||||
// SkillsFace embed: engine /rc oracle-skills bridge (works logged out too for tab prep).
|
||||
_c.SkillsEmbedChanged = tab =>
|
||||
Host.InvokeChatParser(tab < 0 ? "/rc oracle-skills off" : $"/rc oracle-skills {tab}");
|
||||
_c.ToggleCharm = ToggleCharm;
|
||||
_c.BreedingCommand = BreedingCommand;
|
||||
_ui.Log = msg => Host.Log(msg);
|
||||
|
|
@ -376,6 +379,21 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
// RynthAi, RynthILT and RynthCore's menus link here; it shows, never toggles off.
|
||||
ShowTab(OracleView.TabCharacter);
|
||||
break;
|
||||
case "skills":
|
||||
case "skill":
|
||||
// Engine SkillsFace body (raise/train) embedded under Oracle.
|
||||
ShowTab(OracleView.TabSkills);
|
||||
break;
|
||||
case "attrs":
|
||||
case "attributes":
|
||||
case "vitals":
|
||||
ShowTab(OracleView.TabAttributes);
|
||||
break;
|
||||
case "progress":
|
||||
case "progression":
|
||||
// ILT progression planners (was Skills → Progression).
|
||||
ShowTab(OracleView.TabProgress);
|
||||
break;
|
||||
case "breeding":
|
||||
case "breed":
|
||||
case "pets":
|
||||
|
|
@ -397,13 +415,15 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
ShowTab(OracleView.TabAbout);
|
||||
break;
|
||||
default:
|
||||
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), /ro void (Void window), "
|
||||
_c.Print("Commands: /ro (window), /ro character (Character tab: status, session, charms), "
|
||||
+ "/ro skills|attrs|progress (raise/train and ILT planners), /ro void (Void window), "
|
||||
+ "/ro timers (Quest Timers window), /ro fellowship (Fellowship tab), /ro breeding (Pet Breeding tab, Infinite Leaftide), "
|
||||
+ "/ro quests (read quest flags), /ro status, "
|
||||
+ "/ro about (About tab: settings, server features)");
|
||||
break;
|
||||
}
|
||||
if (arg is "" or "void" or "timers" or "timer" or "fellowship" or "fellow" or "fship" or "character" or "char" or "charms" or "charm"
|
||||
or "skills" or "skill" or "attrs" or "attributes" or "vitals" or "progress" or "progression"
|
||||
or "breeding" or "breed" or "pets" or "about" or "features" && !Host.HasUi && !_noUiLogged)
|
||||
{
|
||||
_noUiLogged = true;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,9 @@ internal sealed partial class OracleView
|
|||
w.SeparatorText("Commands");
|
||||
w.BulletText("/ro open or close this window");
|
||||
w.BulletText("/ro character the Character tab (status, session)");
|
||||
w.BulletText("/ro skills raise and train skills");
|
||||
w.BulletText("/ro attrs attributes and vitals");
|
||||
w.BulletText("/ro progress ILT progression planners");
|
||||
w.BulletText("/ro timers open or close the Quest Timers window");
|
||||
w.BulletText("/ro fellowship the Fellowship tab");
|
||||
w.BulletText("/ro about this tab (settings, server)");
|
||||
|
|
|
|||
|
|
@ -73,15 +73,15 @@ internal sealed partial class OracleView
|
|||
w.SeparatorText(a.Name);
|
||||
continue;
|
||||
}
|
||||
if (a.IsUnknown) w.TextColored(UiColors.Grey, "?");
|
||||
else DoneMark(w, a.IsComplete(prop, flags));
|
||||
DoneMark(w, a.IsComplete(prop, flags));
|
||||
w.SameLine(50f);
|
||||
w.Text(a.IsUnknown ? "" : a.Text(prop, flags));
|
||||
w.Text(a.Text(prop, flags));
|
||||
w.SameLine(100f);
|
||||
Augmentation row = a;
|
||||
w.Selectable(Cut(a.Name, 26), "a.r." + a.Category + a.Id + a.Flag + a.Name, false,
|
||||
() => PrintEntry(row.Name, row.Flag, row.Effect, row.Hint, row.Url), 190f);
|
||||
if (a.IsUnknown) w.Tooltip("Asheron's Lesser Benediction is an item; RynthOracle can't count it.");
|
||||
() => PrintEntry(row.Name, row.Flag.Length > 0 ? row.Flag : (row.Id == -3 ? Augmentation.LesserBenedictionFlag : ""), row.Effect, row.Hint, row.Url), 190f);
|
||||
if (a.Id == -3)
|
||||
w.Tooltip("Detected from the lesserbenedictionaug quest flag (after Donatello Linante / Blackmoor's Page). Refresh Quests if this looks stale.");
|
||||
w.SameLine(300f);
|
||||
w.Text(Cut(a.Effect, 34));
|
||||
string cost = a.CostText(prop, flags);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,9 @@ namespace RynthCore.Plugin.RynthOracle.Views;
|
|||
/// </summary>
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
public const string TabQuests = "Quests", TabCharacter = "Character", TabAugs = "Augs", TabSociety = "Society",
|
||||
public const string TabQuests = "Quests", TabCharacter = "Character",
|
||||
TabSkills = "Skills", TabAttributes = "Attributes", TabProgress = "Progress",
|
||||
TabAugs = "Augs", TabSociety = "Society",
|
||||
TabMarkers = "Markers", TabTitles = "Titles", TabVoid = "Void", TabFellowship = "Fellowship",
|
||||
TabBoards = "Leaderboards", TabConquest = "Conquest", TabBreeding = "Pet Breeding", TabAbout = "About";
|
||||
|
||||
|
|
@ -18,6 +20,8 @@ internal sealed partial class OracleView
|
|||
|
||||
private readonly OracleContext _c;
|
||||
private readonly TabDef[] _tabs;
|
||||
/// <summary>Last SkillsFace embed tab signalled to the engine (-2 = never).</summary>
|
||||
private int _lastSkillsEmbed = -2;
|
||||
|
||||
/// <summary>Asks the plugin to show or hide the Void window (the Void tab's button).</summary>
|
||||
public Action<bool>? SetVoidWindow;
|
||||
|
|
@ -31,6 +35,10 @@ internal sealed partial class OracleView
|
|||
{
|
||||
new(TabQuests, any, DrawQuests, true),
|
||||
new(TabCharacter, any, DrawCharacter, true),
|
||||
// Skills / Attributes / Progress: engine SkillsFace body embedded by ScriptWindowFace.
|
||||
new(TabSkills, any, DrawSkillsEmbed, true),
|
||||
new(TabAttributes, any, DrawAttributesEmbed, true),
|
||||
new(TabProgress, any, DrawProgressEmbed, true),
|
||||
new(TabAugs, any, DrawAugs, true),
|
||||
new(TabSociety, any, DrawSociety, true),
|
||||
new(TabMarkers, any, DrawMarkers, false),
|
||||
|
|
@ -98,12 +106,34 @@ internal sealed partial class OracleView
|
|||
}
|
||||
w.Separator();
|
||||
|
||||
// Keep the engine SkillsFace embed in sync with the selected Oracle tab.
|
||||
int embed = tab switch
|
||||
{
|
||||
TabSkills => 0,
|
||||
TabAttributes => 1,
|
||||
TabProgress => 2,
|
||||
_ => -1,
|
||||
};
|
||||
if (embed != _lastSkillsEmbed)
|
||||
{
|
||||
_lastSkillsEmbed = embed;
|
||||
_c.SkillsEmbedChanged(embed);
|
||||
}
|
||||
|
||||
if (!_c.InWorld && tab != TabAbout)
|
||||
{
|
||||
w.TextDisabled("Log in to a character to see this page.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Skills-family tabs: leave the body empty so ScriptWindowFace can paint SkillsFace
|
||||
// into the remaining content region after the script tab strip.
|
||||
if (embed >= 0)
|
||||
{
|
||||
(current?.Draw ?? DrawSkillsEmbed)(w);
|
||||
return;
|
||||
}
|
||||
|
||||
w.BeginChild("page." + tab, 0f, 0f, border: false);
|
||||
(current?.Draw ?? DrawAbout)(w);
|
||||
w.EndChild();
|
||||
|
|
|
|||
26
Plugins/RynthCore.Plugin.RynthOracle/Views/SkillsTabs.cs
Normal file
26
Plugins/RynthCore.Plugin.RynthOracle/Views/SkillsTabs.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// ============================================================================
|
||||
// RynthCore.Plugin.RynthOracle - Views/SkillsTabs.cs
|
||||
// Skills / Attributes / Progress tabs: the engine draws SkillsFace into this
|
||||
// window after the Oracle tab strip (ScriptWindowFace + OracleSkillsEmbed).
|
||||
// These Draw methods only reserve the page and document the hand-off.
|
||||
// ============================================================================
|
||||
|
||||
using RynthCore.Plugin.RynthOracle.Ui;
|
||||
|
||||
namespace RynthCore.Plugin.RynthOracle.Views;
|
||||
|
||||
internal sealed partial class OracleView
|
||||
{
|
||||
/// <summary>Skills: raise / train (was the standalone Skills panel).</summary>
|
||||
private void DrawSkillsEmbed(UiWindow w)
|
||||
{
|
||||
// Placeholder only: ScriptWindowFace draws SkillsFace into the remaining space.
|
||||
w.Dummy(0f, 1f);
|
||||
}
|
||||
|
||||
/// <summary>Attributes & vitals: same engine body, attributes tab.</summary>
|
||||
private void DrawAttributesEmbed(UiWindow w) => w.Dummy(0f, 1f);
|
||||
|
||||
/// <summary>Progress: ILT progression planners (was Skills → Progression).</summary>
|
||||
private void DrawProgressEmbed(UiWindow w) => w.Dummy(0f, 1f);
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@ public static unsafe class PluginExports
|
|||
public static IntPtr GetName() => LiteralPointer("RynthSort"u8);
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginVersion", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
public static IntPtr GetVersion() => LiteralPointer("0.3.1"u8);
|
||||
public static IntPtr GetVersion() => LiteralPointer("0.3.2"u8);
|
||||
|
||||
private static IntPtr LiteralPointer(ReadOnlySpan<byte> literal)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace RynthCore.Plugin.RynthSort;
|
|||
/// </summary>
|
||||
public sealed class RynthSortPlugin : RynthPluginBase
|
||||
{
|
||||
public const string Version = "0.3.1";
|
||||
public const string Version = "0.3.2";
|
||||
private const long IdentityRetryMs = 1000;
|
||||
private const long SaveDelayMs = 750;
|
||||
private const long PassIntervalMs = 500;
|
||||
|
|
@ -77,9 +77,11 @@ public sealed class RynthSortPlugin : RynthPluginBase
|
|||
Warnings = () => _warnings,
|
||||
Character = () => _identityKnown ? _character : string.Empty,
|
||||
};
|
||||
// No bar button of its own: open from Inventory's Sort button, Scripts menu, or /rsort.
|
||||
_window = _ui.Add(new UiWindow("RynthSort/Main", "RynthSort")
|
||||
{
|
||||
DefaultWidth = 360f, DefaultHeight = 420f, MinWidth = 300f, MinHeight = 200f,
|
||||
BarButton = false,
|
||||
});
|
||||
Host.Log($"[RynthSort] {Version} initialized. /rsort shows or hides the window; /rsort on|off|now|tidy|clean|unpack. Files: {_store.Root}");
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -22,16 +22,20 @@ internal static class SectionsTests
|
|||
r.Add("sections: RynthAi's manifest passes the engine parser unchanged", ManifestRoundTrip);
|
||||
r.Add("sections: the engine catalog places RynthAi's views by server", CatalogPlacement);
|
||||
r.Add("sections: tab surfaces map back to their tabs; foreign ids are refused", SurfaceRoundTrip);
|
||||
r.Add("sections: Character redirects to RynthOracle; Charms and Banking stay RynthILT's tabs", MovedTabRedirects);
|
||||
r.Add("sections: Character and Banking redirect; other ILT tabs stay on the Mini Remote", MovedTabRedirects);
|
||||
}
|
||||
|
||||
private static void MovedTabRedirects()
|
||||
{
|
||||
foreach (string tab in new[] { "character", "Char", " rates " })
|
||||
Check.Eq(MovedTabs.CommandFor(tab), MovedTabs.OracleCharacter, tab + " -> RynthOracle's Character tab");
|
||||
foreach (string tab in new[] { "charms", "banking", "gear", "games", "pets", "crafting", "", null })
|
||||
foreach (string tab in new[] { "banking", "bank" })
|
||||
Check.Eq(MovedTabs.CommandFor(tab), MovedTabs.GlobalBank, tab + " -> Global Inventory");
|
||||
foreach (string tab in new[] { "charms", "gear", "games", "pets", "crafting", "", null })
|
||||
Check.True(MovedTabs.CommandFor(tab) == null, (tab ?? "null") + " is still a Mini Remote tab (or none)");
|
||||
Check.Eq(MovedTabs.OracleCharacter, "/ro character", "the Oracle command");
|
||||
Check.Eq(MovedTabs.GlobalBank, "/ginv bank", "the Global Inventory banking alias");
|
||||
Check.Eq(MovedTabs.GlobalInventory, "/ginv", "the Global Inventory command");
|
||||
Check.Eq(MovedTabs.Diagnostics, "/rc diagnostics", "the engine's Diagnostics command");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue