feat(rynthai): enhance T11 item support and logging
- Added new command `/ra t11` for T11 loot management, including wield counters and aug overrides. - Improved logging for item info requests and decisions, providing clearer insights into item handling. - Updated item info processing to accommodate T11-specific attributes and conditions. - Enhanced settings to allow for T11 item augmentation overrides. - Adjusted various components to ensure compatibility with T11 features, including loot rules and item descriptions. This update aims to streamline the integration of T11 mechanics into the RynthAi plugin, enhancing user experience and functionality.
This commit is contained in:
parent
7bcc954ecc
commit
2f38fd6baf
25 changed files with 1993 additions and 39 deletions
71
Changelog/2026-10-05-release-0.5.17-item-info-format.md
Normal file
71
Changelog/2026-10-05-release-0.5.17-item-info-format.md
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
# RynthAi 0.5.17-legacy-ui: item info line matches the ACECustom appraisal
|
||||
|
||||
Date: 2026-10-05
|
||||
Branch: `feat/t11-loot-support` (uncommitted, on top of 0.5.16)
|
||||
|
||||
## Problem
|
||||
|
||||
The item info line (`/ra iteminfo`, ID on click) printed values that disagreed with the
|
||||
appraisal panel. Example, a T11 Fire Staff:
|
||||
|
||||
```
|
||||
Flaming Quarter Staff (Fire Staff), Craft 9
|
||||
FireRend, CritMult (2.66), 1,789.68-2069, 0.14v, 20%a, 20%md
|
||||
[CD 24]
|
||||
```
|
||||
|
||||
The appraisal panel shows Damage 1790 - 2069, Crushing Blow 3.66x, Fire Rending +176%,
|
||||
Attack +20%, Melee Defense +20.0%, Weapon Grade S (100%) and "Wield requires: 2,000 Item
|
||||
Augmentations".
|
||||
|
||||
## Fixes (`ItemInfo/MagItemDescriber.cs`)
|
||||
|
||||
- **Damage range:** the low end is rounded to a whole number like the client
|
||||
(`2069 * (1 - 0.135)` gives 1790), with no group separator or decimals. Variance now shows
|
||||
three places (`0.135v`), so values ending in 5 are no longer rounded off.
|
||||
- **Attack and defense bonuses** are signed like the appraisal panel (`+20%a`, `+20%md`).
|
||||
Penalties keep their `-`. A bonus that rounds to 0 is no longer printed.
|
||||
- **Crushing Blow:** shows the multiplier a crit actually deals, 1 + CriticalMultiplier
|
||||
(`Crushing Blow 3.66x`), instead of the raw `CritMult (2.66)`. As on the server, a stored 1.0
|
||||
(a normal 2x crit) is not shown.
|
||||
- **Biting Strike:** shown as a crit chance (`Biting Strike 15%`) instead of `CritFreq (0.15)`.
|
||||
- **Imbue strengths** are read from the "Property Details:" text: `FireRend +176%`,
|
||||
`AR 30.0%`, `CS +12.5%`, `CB 2.5x`. Rendings are matched by damage keyword, and a culture
|
||||
space before `%` is accepted. Items without detail text keep the bare Mag labels (`CS AR`).
|
||||
- **T11 data from the item text:**
|
||||
- weapon grade on the identity line (`Grade S (100%)`, under the Damage field setting);
|
||||
- item-aug, Triune Weave and charm wield gates on the requirements line
|
||||
(`Wield 2,000 Item Augs`, under the Wield setting);
|
||||
- Cast on Strike procs (`Proc Force Arc 13%`, under the Imbues setting);
|
||||
- zone modifiers on the ratings line (`Mods: Damage Resist +6, Max Health +100`, under the
|
||||
Ratings setting).
|
||||
- A raw `WieldRequirement.Int64Stat` (13) requirement no longer prints as `Skill 9008 2500`.
|
||||
|
||||
Result for the staff above:
|
||||
|
||||
```
|
||||
Flaming Quarter Staff (Fire Staff), Grade S (100%), Craft 9
|
||||
FireRend +176%, Crushing Blow 3.66x, 1790-2069, 0.135v, +20%a, +20%md
|
||||
[CD 24] Wield 2,000 Item Augs
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
||||
`Tools/RynthCore.RynthAiHostTests/Tests/MagItemDescriberTests.cs` adds 5 tests:
|
||||
- the staff from the report, line for line;
|
||||
- Biting Strike and a defense penalty;
|
||||
- bare and detailed imbue labels;
|
||||
- Int64 wield requirement hidden;
|
||||
- T11 armor modifiers and Triune gate.
|
||||
|
||||
All 5 pass. In the full host run, the only failure is the dungeon map bake check, which reads
|
||||
the real dat files and is unrelated to this change.
|
||||
|
||||
## Build 0.5.17-legacy-ui
|
||||
|
||||
- `HandWrittenVersion` = `0.5.17-legacy-ui`.
|
||||
- NativeAOT publish (win-x86), `-p:Version=0.5.17-legacy-ui`, staged at
|
||||
`D:\rynth-merge\stage-suite\RynthAi-0.5.17\` (17,387,008 bytes, file version 0.5.17.0).
|
||||
- Deploy: the live 0.5.16 DLL is saved to
|
||||
`C:\Games\RynthSuite\RynthAi\PreviousReleases\0.5.16\`, then replaced. AC was running at
|
||||
build time, so the copy waited for it to close; deployed 2026-10-06 00:14.
|
||||
113
Changelog/2026-10-05-t11-loot-support.md
Normal file
113
Changelog/2026-10-05-t11-loot-support.md
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
# T11 loot support (ACECustom tier 11+ items)
|
||||
|
||||
Date: 2026-10-05
|
||||
Branch: `feat/t11-loot-support`
|
||||
RynthAi plugin version: 0.5.16-legacy-ui (the deployed build was 0.5.15-legacy-ui from
|
||||
`fix/restore-sk-features`; the branch's interim 0.5.1 / 0.5.2 numbers would have collided with
|
||||
existing `PreviousReleases` folders)
|
||||
|
||||
## Build 0.5.16-legacy-ui
|
||||
|
||||
- NativeAOT publish (win-x86): `-p:Version=0.5.16-legacy-ui`, staged at
|
||||
`D:\rynth-merge\stage-suite\RynthAi-0.5.16\` (17,372,672 bytes, file version 0.5.16.0).
|
||||
- Deploy: the live 0.5.15 DLL is saved to
|
||||
`C:\Games\RynthSuite\RynthAi\PreviousReleases\0.5.15\`, then replaced with 0.5.16.
|
||||
- Server tiers are capped at 25 for now, so the tier estimate is capped at 25
|
||||
(`T11Catalog.MaxTier`).
|
||||
|
||||
## Why
|
||||
|
||||
ACECustom's tier 11+ drops don't look like retail items to a loot engine:
|
||||
|
||||
- Every drop is renamed `T11 - <name>` and has no material.
|
||||
- The appraisal strips the item-augmentation wield requirement (PropertyInt 158/159/160,
|
||||
`WieldRequirement.Int64Stat = 13`) and prints it as text instead
|
||||
(`Wield requires: 2,000 Item Augmentations`, plus Triune Weave and charm gates).
|
||||
- Weapon grade (`- Weapon Grade: B+ (86% of max damage)`), Cast on Strike and the rolled
|
||||
zone modifiers (`Modifiers:` block, `- Damage Rating +41 [14-69]`) exist only as text.
|
||||
Weapons carry it in LongDesc, armor, clothing and jewelry in the Use string.
|
||||
- A Gear* rating that comes from a modifier is removed from the appraisal's ratings, so
|
||||
`TotalRatings` and `GearDamage >= N` rules read 0 on T11 gear.
|
||||
- The player's item-augmentation and charm counts aren't sent at login.
|
||||
|
||||
The change is client-only. Nothing changes on the server.
|
||||
|
||||
## What changed
|
||||
|
||||
### LootSdk (`Shared/RynthCore.LootSdk/T11/`)
|
||||
|
||||
- `T11ItemInfo.Parse(name, longDesc, use)` reads the server's exact text: grade, damage %,
|
||||
wield gates (any thousands separator), Cast on Strike, zone lock and the modifier block.
|
||||
Modifier lines get their value, roll band and roll %, and unknown server keys
|
||||
(`Modifier N`) are kept. Malformed text never throws.
|
||||
- `T11Catalog` holds the ZoneModifiers catalog (key, name, Gear* rating), the weapon
|
||||
sub-grades (S = 16 ... F- = 1) and the tier estimate from the wield gates. The item-aug
|
||||
gate gives T11-T15 (2,000 = T11, 2,500 = T12, +500 per tier, frozen at 4,000 from T15).
|
||||
From T16 the server adds a Triune Weave gate of 500 x (tier - 15), which gives T16-T25
|
||||
(500 = T16 ... 5,000 = T25, capped at 25).
|
||||
- `T11PlayerAugs` / `T11AugReportParser` read the `/aug` reply (item augmentations,
|
||||
Triune Weave, the four charms) and decide whether every wield gate is met.
|
||||
- `T11Keys` adds virtual long keys in the block `0x52590000`, so they can't collide with
|
||||
real properties:
|
||||
|
||||
| Key | Value |
|
||||
|-----|-------|
|
||||
| T11: Is T11 | 1 / 0 |
|
||||
| T11: Tier (est.) | 11-25 |
|
||||
| T11: Weapon Grade | 16 = S ... 1 = F- (named in the editor) |
|
||||
| T11: Damage % of Max | 0-100 |
|
||||
| T11: Wield Item Augs / Wield Triune Weave | the gate amounts |
|
||||
| T11: Can Wield | 1 yes, 0 no, -1 unknown (no `/aug` read, or not appraised yet) |
|
||||
| T11: Modifier Count / Modifier Ratings / Avg Roll % / Best Roll % | from the modifier block |
|
||||
| T11: Has Slot Special / Cast on Strike Count / Zone Locked | flags and counts |
|
||||
| T11 Mod: <name> | one key per catalog modifier (its rolled value) |
|
||||
|
||||
- `LootRuleText`: the T11 keys and NetherResistRating (377) are now in the long-key picker.
|
||||
The Use (14) and LongDesc (16) string keys and wield requirement 13 "Int64 Property" were
|
||||
added, and Weapon Grade gets a value table.
|
||||
|
||||
### RynthAi plugin
|
||||
|
||||
- `WorldObject.Values(int)` answers the T11 virtual keys. For T11-named items it restores the
|
||||
stripped keys when the live value is absent or 0:
|
||||
158 = 13, 159 = 9008, 160 = the item-aug gate, and 370-379 from the modifier lines.
|
||||
As a result, existing wield-requirement rules, `TotalRatings` and `Gear*` rules work on
|
||||
T11 gear without being edited. A value the item really has always wins.
|
||||
- `T11ItemSupport` caches parsed text per object (re-parses only when the text changes,
|
||||
drops entries on object delete and logout) and holds the player's counters.
|
||||
- The `/aug` reply is read from chat. The ILT Hub already requests it at login.
|
||||
- New command `/ra t11`:
|
||||
- `/ra t11` shows the counters the loot rules use;
|
||||
- `/ra t11 augs <n|auto>` saves an item-augmentation override (`T11ItemAugsOverride`,
|
||||
-1 = automatic);
|
||||
- `/ra t11 refresh` sends `/aug`;
|
||||
- `/ra t11 item [0xId]` shows how the selected item was read and its T11 key values.
|
||||
- `StringValueKey.Use = 14` added.
|
||||
|
||||
## Tests
|
||||
|
||||
- `Tools/RynthCore.LootSdkTests`: new `LootT11Tests.cs` covers the parser on server-format
|
||||
weapon and armor text, non-T11 and malformed input, tier estimates, the `/aug` reader and
|
||||
its time window, wield checks, every virtual key, the stripped-key fallbacks and the
|
||||
editor names. The wield-requirements length check is now 14. The T16 armor fixture uses
|
||||
the server's real gate (500 Triune Weave), and T16-T25 cases cover the Triune gate,
|
||||
the fallback without one, the T25 cap and a T25 weapon. Result: 8022 assertions, 0 failed.
|
||||
- `Tools/RynthCore.RynthAiHostTests`: new `T11LootTests.cs` runs T11 items through
|
||||
`VTankLootEvaluator`, covering virtual keys, restored 158/159/160, TotalRatings from
|
||||
modifiers, live values winning, retail items untouched, and Can Wield from `/aug` and the
|
||||
override. All 6 pass. The suite's one failure (map bake against local dats) fails the
|
||||
same way without this change.
|
||||
- The RynthAi NativeAOT publish (win-x86) builds with no warnings.
|
||||
|
||||
## Limits
|
||||
|
||||
- The tier estimate uses the server's default weapon-scaling table (ACECustom
|
||||
`WeaponScalingManager.BuildDefaults`). A server owner who retunes it changes the gates,
|
||||
but not the parser. The admin `/weaponscaling` command prints the live table, which a
|
||||
later change could read.
|
||||
- Without a Triune Weave gate (before an ID, or on a server that disables it) T16+ items
|
||||
read as T15.
|
||||
- A `/aug` line format change on the server needs a parser update. `/ra t11 augs <n>` is
|
||||
the fallback.
|
||||
- Item text is only available after an ID. Before that, a T11 item reads as T11 (from its
|
||||
name) with unknown gates.
|
||||
48
Changelog/2026-10-06-release-0.5.18-item-info-click.md
Normal file
48
Changelog/2026-10-06-release-0.5.18-item-info-click.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# RynthAi 0.5.18-legacy-ui: item info replaces the loot rule line on select / click
|
||||
|
||||
Date: 2026-10-06
|
||||
Branch: `feat/t11-loot-support` (uncommitted, on top of 0.5.17)
|
||||
|
||||
## Problem
|
||||
|
||||
With item info set to print on a left or right mouse click, selecting an item printed the
|
||||
loot inspect verdict (`<item>: [Keep] New Rule`) instead of the configured item info output.
|
||||
|
||||
Cause, in `RynthAiPlugin.OnSelectedTargetChange`:
|
||||
- Loot inspect is on by default (`_lootInspectMode = true`) and printed its verdict for every
|
||||
item selected, whatever the item info settings were.
|
||||
- Item info on select was queued from inside that loot inspect block. It only ran while loot
|
||||
inspect was on, and it ignored the "Print on select" setting (`OnSelect`).
|
||||
- No item info trigger wrote anything to the logs, so the logs couldn't show what happened.
|
||||
|
||||
## Fixes
|
||||
|
||||
- **Item info replaces the loot verdict.** When item info is enabled for the selected item's
|
||||
class (on select or on a mouse click), the loot rule line is no longer printed. With item info
|
||||
off, the loot verdict prints as before. `/ra lootcheck` still prints it on demand, and
|
||||
`/ra lootcheck off` turns the automatic line off.
|
||||
- **"Print on select" is honoured.** The select trigger only queues item info when `OnSelect`
|
||||
is on, and it no longer depends on loot inspect being on. The click trigger is unchanged.
|
||||
- **Logging.** Each trigger decision writes one `[ItemInfo]` line to the engine log
|
||||
(`C:\Games\RynthCore\Logs\RynthCore.<pid>.log`) and the daily RynthAi diagnostics file:
|
||||
- on-select queue;
|
||||
- click queue, or why a click was skipped (nothing selected, not cached, class filter);
|
||||
- deduped by the other trigger;
|
||||
- waiting for ID data;
|
||||
- printed (line count, identified flag, first line), or why nothing printed.
|
||||
|
||||
## Note on settings
|
||||
|
||||
Silentkelpie's item info prefix is an empty string, so its lines print without the
|
||||
`[RynthAi] ` prefix. Set it in the Item Info window if the prefix is wanted.
|
||||
|
||||
## Build 0.5.18-legacy-ui
|
||||
|
||||
- `HandWrittenVersion` = `0.5.18-legacy-ui`.
|
||||
- NativeAOT publish (win-x86), `-p:Version=0.5.18-legacy-ui`, staged at
|
||||
`D:\rynth-merge\stage-suite\RynthAi-0.5.18\` (17,391,616 bytes, file version 0.5.18.0).
|
||||
- Host tests: 418 passed. The one failure is the unrelated dungeon map bake check, which reads
|
||||
the real dat files.
|
||||
- Deploy: the live 0.5.17 DLL is saved to
|
||||
`C:\Games\RynthSuite\RynthAi\PreviousReleases\0.5.17\`, then replaced. AC was running, so
|
||||
the copy waited for it to close; deployed 2026-10-06 00:32.
|
||||
Loading…
Reference in a new issue