feat: SK backlog from test through 2026.11.22.48 (Trade Shop + inventory/loot/chat/nav)
Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop Storefront, loot checklist editor, chat routing, window placements, and related engine work. See Changelog/2026-11-22-sk-backlog-test-merge.md.
This commit is contained in:
parent
3fafd29133
commit
c6e8bb8dbf
438 changed files with 39545 additions and 1271 deletions
91
docs/ACCLIENT_HOOK_INVENTORY.md
Normal file
91
docs/ACCLIENT_HOOK_INVENTORY.md
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
# ACClient Hook Inventory
|
||||
|
||||
This file tracks RynthCore hook targets against the user's real AC client binary, with the AC client decompile used for semantics and the live binary used as the source of truth for hook placement.
|
||||
|
||||
## Client Fingerprint
|
||||
|
||||
- Path: `C:\Turbine\Asheron's Call\acclient.exe`
|
||||
- File size: `4,841,472` bytes
|
||||
- SHA256: `BCA95BBEBED4B9ED1FF09D0DA83144E2FC4208F63AD7ADA5CB47C3CA207CCBA9`
|
||||
- PE machine: `0x014C` (`x86`)
|
||||
- PE image size: `0x0056D000`
|
||||
|
||||
## Rules For This Inventory
|
||||
|
||||
- Use the decompile to understand semantics, call order, and callback behavior.
|
||||
- Use the live `acclient.exe` to derive patterns, validate uniqueness, and choose the real hook address.
|
||||
- Do not ship fixed RVAs from the decompile unless they have been validated against the live binary.
|
||||
- Prefer hooking the AC client function that already implements the desired behavior over lower-level memory access.
|
||||
- Every production hook should eventually have:
|
||||
- a primary binary pattern
|
||||
- at least one fallback pattern or alternate seam when practical
|
||||
- runtime validation
|
||||
- an explicit unsupported-state log/UI message
|
||||
|
||||
## Priority Inventory
|
||||
|
||||
### Lifecycle And UI
|
||||
|
||||
| Surface | Decompiled seam | Actual-binary plan for this client | Status | Priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `OnLoginComplete` | `CPlayerSystem::SendLoginCompleteNotification` in `CPlayerSystem.cpp:4017-4031` | Pattern-scan the containing function using the unique `SetDisplayInventory(1)` plus `BroadcastGlobalMessage(..., 0xB, 0)` sequence, then hook the containing `thiscall` function. | Live in RynthCore | P0 |
|
||||
| `OnUIInitialized` | `ClientUISystem::OnStartup` in `ClientUISystem.cpp:48` and `APIManager::SetUIReady(1)` in `APIManager.cpp:134` | Hook the tiny `OnStartup -> SetUIReady(1)` wrapper or the `SetUIReady(1)` transition path. Prefer the wrapper if the pattern is unique in the live binary. | Not implemented | P0 |
|
||||
| `OnBusyCountIncremented` | `ClientUISystem::IncrementBusyCount` in `ClientUISystem.cpp:630` | Hook the wrapper that increments `m_cBusy` and updates cursor state when crossing `0 -> 1`. | Not implemented | P1 |
|
||||
| `OnBusyCountDecremented` | `ClientUISystem::DecrementBusyCount` in `ClientUISystem.cpp:641` | Hook the wrapper that decrements `m_cBusy` and updates cursor state when crossing `1 -> 0`. | Not implemented | P1 |
|
||||
|
||||
### Chat And Command
|
||||
|
||||
| Surface | Decompiled seam | Actual-binary plan for this client | Status | Priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `OnChatWindowText` | `ClientSystem.cpp:108` | Hook the function that allocates a BSTR from `i_text`, calls `GetACPlugin()->OnChatWindowText`, then checks `bEat` before continuing UI output. | Ready for binary patterning | P0 |
|
||||
| `OnChatBarEnter` | `ClientCommunicationSystem.cpp:14407` | Hook the function that allocates a BSTR from the entered line, calls `GetACPlugin()->OnChatBarEnter`, and returns early when the plugin consumes the line. | Ready for binary patterning | P0 |
|
||||
|
||||
### World, Target, And Object Flow
|
||||
|
||||
| Surface | Decompiled seam | Actual-binary plan for this client | Status | Priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `OnDeleteObject` | `ACCObjectMaint::DeleteObject` in `ACCObjectMaint.cpp:73-85` | Hook the clean wrapper that checks `APIIsReady`, calls `OnDeleteObject`, then calls `ACCWeenieObject::SetCorpseDeleted` and `CObjectMaint::DeleteObject`. | Ready for binary patterning | P0 |
|
||||
| `OnSelectedTargetChange` | `ACCWeenieObject.cpp:710` and `ACCWeenieObject.cpp:1997` | Hook the selected-target setter path after `CM_UI::SendNotice_SelectionChanged` and before the direct plugin callback. | Ready for binary patterning | P0 |
|
||||
| World/object dispatch | `ACSmartBox::DispatchSmartBoxEvent` in `ACSmartBox.cpp:37-171` | Hook the SmartBox dispatch seam as the high-value world/object/network filter layer. This is the likely replacement for many WorldFilter-style surfaces. | Ready for binary patterning | P0 |
|
||||
| Object creation | `ACCObjectMaint::CreateObject` in `ACCObjectMaint.cpp:196` | Hook the object creation wrapper for higher-level object lifecycle callbacks when we need richer data than a raw SmartBox event. | Ready for binary patterning | P1 |
|
||||
| Object inventory updates | `ACCObjectMaint::UpdateObjectInventory` in `ACCObjectMaint.cpp:377` | Hook the inventory update path for container/item-change compatibility events. | Ready for binary patterning | P1 |
|
||||
| Update/create/delete server dispatch | `CM_Physics::DispatchSB_CreateObject`, `DispatchSB_UpdateObject`, `DispatchSB_DeleteObject` in `CM_Physics.cpp` | Use as fallback seams if the outer SmartBox dispatcher proves too broad or unstable. | Decompile-confirmed | P1 |
|
||||
|
||||
### Combat And Trade
|
||||
|
||||
| Surface | Decompiled seam | Actual-binary plan for this client | Status | Priority |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `OnCombatModeChange` | `ClientCombatSystem.cpp:1564` | Hook the branch that invokes the plugin callback after the combat mode change resolves and auto-targeting logic runs. | Ready for binary patterning | P1 |
|
||||
| Trade window opened | `ClientTradeSystem.cpp:525` | Hook `Handle_Trade__Recv_RegisterTrade` after `CM_Trade::SendNotice_RegisterTrade` and before the internal attempt-to-trade follow-up. | Ready for binary patterning | P1 |
|
||||
| Trade item added | `ClientTradeSystem::Handle_Trade__Recv_AddToTrade` in `ClientTradeSystem.cpp:560+` | Hook the direct wrapper that calls `CM_Trade::SendNotice_AddItemToTrade` and then `OnTradeWindowItemAdded`. | Ready for binary patterning | P1 |
|
||||
| Trade completed | `ClientCommunicationSystem.cpp:3106` | Hook the message-switch case for `0x529` (`Trade Complete!`) that directly invokes `OnTradeCompleted`. | Ready for binary patterning | P1 |
|
||||
| Trade accept/decline/close/clear | `ClientTradeSystem.cpp` | Hook the direct trade-system wrappers that invoke the corresponding plugin callback. | Decompiled seam confirmed, binary anchor still needed | P1 |
|
||||
|
||||
## Host Call Surface To Expose Through RynthCore
|
||||
|
||||
These are not plugin callback hooks, but they are part of the host API surface we should expose once the callback layer is in place.
|
||||
|
||||
| API surface | Decompiled seam | Notes | Priority |
|
||||
| --- | --- | --- | --- |
|
||||
| `WriteToChat` | `APIManager__IAsheronsCallImpl.cpp` | Safe early host helper. | P0 |
|
||||
| Selection get/set | `APIManager__IAsheronsCallImpl.cpp` | Pairs naturally with target-change callbacks. | P0 |
|
||||
| `UseObject`, `UseObjectOn`, `UseEquippedItem` | `APIManager__IAsheronsCallImpl.cpp` | Good interaction helpers once lifecycle is stable. | P1 |
|
||||
| `MoveItemExternal`, `MoveItemInternal` | `APIManager__IAsheronsCallImpl.cpp` | Useful once inventory callbacks exist. | P1 |
|
||||
| `IsStandingStill`, `StopCompletely`, `TurnToHeading`, `SetAutoRun` | `APIManager__IAsheronsCallImpl.cpp` | Movement helper layer. Some of this already overlaps with existing RynthCore action hooks. | P0 |
|
||||
| `GetCurCoords`, `GetPlayerID`, `GetGroundContainerID` | `APIManager__IAsheronsCallImpl.cpp` | Good basic state helpers. | P0 |
|
||||
| `GetScreenDimensions`, `ItemIsKnown`, `GetItemName` | `APIManager__IAsheronsCallImpl.cpp` | Low-risk host helpers. | P1 |
|
||||
| `IssueChatBarCommand` | `APIManager__IAsheronsCallImpl.cpp` | Treat as stub-like until runtime behavior is validated against the live client. | Hold |
|
||||
| `GetCombatMode`, `GetBusyCount`, salvage panel APIs | `APIManager__IAsheronsCallImpl_vtbl.cpp` | Declared but not yet fully validated in the split. | Hold |
|
||||
|
||||
## Implementation Waves
|
||||
|
||||
1. Finish lifecycle/UI: `OnLoginComplete`, `OnUIInitialized`, busy count.
|
||||
2. Add chat interception: `OnChatWindowText`, `OnChatBarEnter`.
|
||||
3. Add world/object seams: SmartBox dispatch, delete/create/inventory, selected target.
|
||||
4. Add combat/trade callbacks.
|
||||
5. Expose the confirmed `IAsheronsCall` subset through RynthCore-native host APIs.
|
||||
|
||||
## Notes
|
||||
|
||||
- The split decompile is still very useful, but the login-complete work already showed that its function RVAs do not always line up with the user's live client binary.
|
||||
- For this reason, future hook work should be tracked here first against the fingerprint above, then implemented in RynthCore with pattern scanning rather than fixed addresses.
|
||||
85
docs/DXVK_TEXTURE_SMOKE.md
Normal file
85
docs/DXVK_TEXTURE_SMOKE.md
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
# DXVK drop-in smoke checklist (textures / overlay)
|
||||
|
||||
Preferred path: launcher **Launch Behavior → Enable DXVK** (opt-in) plus **Fetch / update DXVK**. That copies x86 `d3d9.dll` from `<RynthCore>\Runtime\dxvk\` next to `acclient.exe` (and removes it when unchecked). Installer seeds the same cache; `scripts\Fetch-Dxvk.ps1` can refresh it.
|
||||
|
||||
Manual drop-in still works the same for smoke without the launcher toggle.
|
||||
|
||||
Live AC installs used for this checklist:
|
||||
- `C:\Turbine\Asheron's Call-ryn\` (Rynth-launched clients; cwd in recent logs)
|
||||
- `C:\Turbine\Asheron's Call\` (retail copy; same drop-in applied)
|
||||
|
||||
Engine logs: `C:\Games\RynthCore\Logs\RynthCore.<pid>.log`
|
||||
Cache / drop-in: **DXVK 3.1.1** `x32/d3d9.dll` (+ `dxvk.conf`).
|
||||
|
||||
## 0. Prerequisites
|
||||
|
||||
- [ ] **32-bit (x86) DXVK** (AC is 32-bit). Launcher Fetch / installer seed handle this.
|
||||
- [ ] Decal **off** for first pass (fewer moving parts).
|
||||
- [ ] Optional: set `DXVK_HUD=1` or `DXVK_LOG_LEVEL=info` in the environment to confirm Vulkan is active.
|
||||
|
||||
## 1. Files to place (beside `acclient.exe`)
|
||||
|
||||
| File | Required | Notes |
|
||||
|---|---|---|
|
||||
| `d3d9.dll` | Yes | From DXVK `x32` / win32 package |
|
||||
| `dxvk.conf` | Optional | See sample below |
|
||||
| `d3d11.dll` / `dxgi.dll` | No | AC only needs d3d9 |
|
||||
|
||||
Sample `dxvk.conf` (conservative for old clients):
|
||||
|
||||
```ini
|
||||
# dxvk.conf — Asheron's Call / Rynth smoke
|
||||
dxgi.deferSurfaceCreation = True
|
||||
d3d9.maxFrameLatency = 1
|
||||
d3d9.presentInterval = 1
|
||||
```
|
||||
|
||||
## 2. AC alone (no Rynth)
|
||||
|
||||
1. Launch AC from the folder that has the drop-in `d3d9.dll`.
|
||||
2. Log in to world.
|
||||
3. Pass if: world renders, no black screen, FPS roughly sane, optional DXVK HUD visible.
|
||||
4. Fail if: crash on device create, pure software fallback, or no Vulkan device.
|
||||
|
||||
## 3. AC + Rynth (no Decal)
|
||||
|
||||
1. With DXVK still in place, launch via Rynth as usual.
|
||||
2. Open `C:\Games\RynthCore\Logs\RynthCore.<pid>.log` and grep:
|
||||
|
||||
| Look for | Meaning |
|
||||
|---|---|
|
||||
| `DxvkDetection: DXVK detected` | Harness saw DXVK version resource / `dxvk.conf` |
|
||||
| `forcing software overlay textures` | Shared-HANDLE path disabled; LockRect path forced |
|
||||
| `D3D9Bootstrapper: d3d9.dll loaded` | Bootstrap saw the module |
|
||||
| `EndSceneHook: INSTALLED successfully` | Hook installed |
|
||||
| `EndSceneHook: Warmup complete - initializing ImGui` | First backbuffer frames OK |
|
||||
| `DX9Backend: CreateTexture failed` | **Fail** — font/icon upload broken |
|
||||
| `OverlayTextureRenderer: CreateTexture` / `Created … overlay texture` | Software overlay upload working |
|
||||
| `D3D9Ex shared-texture consumption is unavailable` | Expected under DXVK if Angle path still probed |
|
||||
| `EndSceneHook: FAILED` / `vtable discovery returned null` | **Fail** — PE/NULLREF discovery needs work |
|
||||
|
||||
3. In-game pass criteria:
|
||||
- [ ] ImGui / Rynth panels draw
|
||||
- [ ] Script / DAT icons visible (not solid magenta or blank)
|
||||
- [ ] Avalonia HUD / Mini Remote readable (may be slightly blurrier on software path)
|
||||
- [ ] Pop-outs: optional; `GetRenderTargetData` can flake — note fail, don’t block Phase 0
|
||||
|
||||
## 4. Env overrides (no rebuild)
|
||||
|
||||
| Variable | Effect |
|
||||
|---|---|
|
||||
| `RYNTHCORE_DISABLE_ANGLE_BRIDGE=1` | Force software overlay even without DXVK |
|
||||
| `DXVK_HUD=1` | Confirm DXVK is the active D3D9 |
|
||||
| `DXVK_LOG_PATH=<dir>` | DXVK’s own log next to game |
|
||||
|
||||
## 5. Rollback
|
||||
|
||||
1. Quit AC + Rynth.
|
||||
2. Delete or rename game-dir `d3d9.dll` (and `dxvk.conf`).
|
||||
3. Relaunch — logs should show `DxvkDetection: stock system d3d9.dll`.
|
||||
|
||||
## 6. Known non-goals for this smoke
|
||||
|
||||
- D3D9Ex **shared HANDLE** Avalonia interop (expected broken / forced off).
|
||||
- Decal coexistence under DXVK (second pass only if alone+Rynth passes).
|
||||
- Shipping DXVK inside the Rynth installer.
|
||||
117
docs/ub-hub-merge-playbook.md
Normal file
117
docs/ub-hub-merge-playbook.md
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
# UB Hub → RynthCore / RynthSuite — Implementation Playbook
|
||||
|
||||
**Audience:** George Blankenship
|
||||
**Purpose:** Working checklist for the ILT Hub merge — what landed, what is still open. Assessment detail lives in the Cursor project store (`ub-hub-merge-plan.md`, `repo-remote-sync.md`).
|
||||
**Hub code lives in RynthSuite** (`feat/ilt-hub`). This Core copy is tracking only.
|
||||
**Repo tracking homes (keep uniform):**
|
||||
- Suite: `Docs/ub-hub-merge-playbook.md` on **`feat/ilt-hub`** and **`SK-local`**
|
||||
- Core: `docs/ub-hub-merge-playbook.md` on **`SK-local`** (Core has no `feat/ilt-hub`)
|
||||
Do **not** put the playbook only on a docs-only PR branch — keep it with the Hub / SK worktrees.
|
||||
**This doc does not implement more product code.**
|
||||
|
||||
---
|
||||
|
||||
## Status (2026-10-04)
|
||||
|
||||
| Track | State |
|
||||
|-------|--------|
|
||||
| Assessment + playbook | **Done** — plan + this playbook (Pet: SummonPets mechanics + breeding) |
|
||||
| Remotes / aelrynth overlay | **Done on `main`** — Core [#1](https://github.com/BlankenshipG/RynthCore/pull/1), Suite [#1](https://github.com/BlankenshipG/RynthSuite/pull/1) |
|
||||
| ILT Hub P0–P2 | **On Suite `feat/ilt-hub`** — `ad61194` (0.5.1 Hub) + `18b4579` (0.5.2 diagnostics/security). **Not on `main`. No Hub PR yet.** |
|
||||
| SK-local unified (2026-10-04) | **Done** — Core + Suite `SK-local` contain `main`, `feat/full-installer`, `feat/ilt-hub`, `SK`, PR #2. RynthAi **0.6.10** fixes Hub creation on late settings load and the world-name wait in the login probe. ub-Rythai 3.1.10 is an optional installer component. |
|
||||
| Pet: SummonPets / breeding | **Partial** — picker/charms/HealingBuddy/rosters + hardened empty-summon. **Still open:** deepen PetManager; bond/potency UI; **breeding** if `pet_breeding_enabled` |
|
||||
| ACECustom `/ilt features` | **Not done** — still “Coming Soon” |
|
||||
| In-AC smoke | **Not done in this project** |
|
||||
| AutoXp / AutoTinker | **Out of scope** |
|
||||
|
||||
**Next:** PR Suite `feat/ilt-hub` → `main`, smoke, then Pet follow-on (SummonPets + breeding). Keep this file current on **`feat/ilt-hub`** and **`SK-local`**.
|
||||
|
||||
**Home:** Suite `Plugins/RynthCore.Plugin.RynthAi/IltHub/` + `Combat/PetManager.cs`. ACECustom breeding: `PET_BREEDING_PLAYER_GUIDE.md` / `PET_BREEDING_REFERENCE.md`.
|
||||
|
||||
---
|
||||
|
||||
## When to use / desired result
|
||||
|
||||
**Use when** reviewing, merging, or finishing leftover Hub work.
|
||||
|
||||
**Desired result:** ImGui **ILT Hub** (Character · Pet · Banking · Gear · Games), server-option gated, per-char Hub state. Pet tab **updates** `SummonPets` / pet mechanics and adds **breeding only when `pet_breeding_enabled`**.
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites (locked)
|
||||
|
||||
| Repo | Branches for this playbook | Notes |
|
||||
|------|----------------------------|--------|
|
||||
| **RynthSuite** | **`feat/ilt-hub`**, **`SK-local`** | Hub code + `Docs/ub-hub-merge-playbook.md` |
|
||||
| **RynthCore** | **`SK-local`** | Tracking copy only (`docs/…`); no Hub product code |
|
||||
| **UB** | `ILT_Customizations` (source) | Read-only for Hub |
|
||||
| **ACECustom** | — | `/ilt features`, bond, potency, `pet_breeding_*` |
|
||||
|
||||
**Locked decisions:** ImGui not Avalonia/VVS; `IltServerOptions` per feature; Hub state ≠ `/ra settings`; Games greenfield; Pet = update SummonPets + picker + item-check + breeding if server on; Guardian Hand on Gear.
|
||||
|
||||
---
|
||||
|
||||
## Done vs remaining
|
||||
|
||||
### Phase 1 — Shell + state + IltServerOptions — **coded** (PR + `/ilt features` dump open)
|
||||
|
||||
### Phase 2 — Banking — **coded** (smoke open)
|
||||
|
||||
### Phase 3 — Pet — **partial**
|
||||
|
||||
| | |
|
||||
|--|--|
|
||||
| **Landed** | Essence picker → Pet rules; SummonPets / min-mobs / spirit refill; refill + mastery charms; hardened `AllowSummonOnEmpty`; HoldSummons; HealingBuddy; `/pets` `/shinies` |
|
||||
| **Still to do** | Deepen PetManager (range UI, mastery usability, bond/potency columns); breeding panel iff `pet_breeding_enabled` (appraisal readiness, annex hint, dance QoL — no client litter math); smoke |
|
||||
|
||||
### Phases 4–6 — Character / Gear / Games — **coded** (smoke, Guardian Hand WCID, quests.xml open)
|
||||
|
||||
### Phase 7 — Hardening — **0.5.2 on branch** (diagnostics + security); ship/verify open
|
||||
|
||||
---
|
||||
|
||||
## Remaining work
|
||||
|
||||
1. PR Suite **`feat/ilt-hub`** → `main`
|
||||
2. In-AC smoke on ILT
|
||||
3. Pet follow-on: SummonPets mechanics + breeding when enabled → bump **0.5.3**
|
||||
4. ACECustom `/ilt features` (include pet_breeding / bond / potency / refill)
|
||||
5. Guardian Hand WCID when published
|
||||
6. Optional: quests.xml, UB settings import, USD smoke
|
||||
7. Keep playbook identical on Suite `feat/ilt-hub` + `SK-local` and Core `SK-local`
|
||||
|
||||
---
|
||||
|
||||
## Explicit non-goals
|
||||
|
||||
- Second pet summon system (update PetManager instead)
|
||||
- Client breeding math when `pet_breeding_enabled` is false
|
||||
- VVS XML / AutoXp / AutoTinker / Avalonia RynthAiPanel / force-replace `main`
|
||||
|
||||
---
|
||||
|
||||
## Version / changelog
|
||||
|
||||
- **0.5.1** — Hub landing · **0.5.2** — diagnostics + Hub security (on `feat/ilt-hub`)
|
||||
- Next Pet wave: **0.5.3** + `Changelog/` note. Don’t bump Core API unless host APIs change.
|
||||
|
||||
---
|
||||
|
||||
## Gate cheat sheet
|
||||
|
||||
| Surface | Enable when | Keep off when |
|
||||
|---------|-------------|----------------|
|
||||
| Whole Hub | ILT-like or Force **and** ≥1 bit | Retail, Force off |
|
||||
| Pet breeding | `pet_breeding_enabled` | Off / Unknown |
|
||||
| Pet bond / potency | `pet_bond_enabled` / `pet_potency_enabled` | Flags false |
|
||||
| Pet empty-summon | Charm + confirmed `pet_refill` | Not confirmed |
|
||||
| Banking / Powerball / Quests / Clap | Per existing IltServerOptions rules | Unknown / Off |
|
||||
|
||||
---
|
||||
|
||||
## Pointers
|
||||
|
||||
- Plan/remotes (project store): `ub-hub-merge-plan.md`, `repo-remote-sync.md`
|
||||
- Suite Hub branch: **`feat/ilt-hub`** @ `18b4579` (0.5.2) · also **`SK-local`**
|
||||
- Changelogs: `Changelog/RynthAi-0.5.1-ilt-hub.md`, `Changelog/RynthAi-0.5.2-diagnostics-security.md`
|
||||
- ACECustom: `pet_breeding_enabled`, `PetDevice_Breeding.cs`
|
||||
Loading…
Reference in a new issue