Skip to content

fix(items): a carried spell focus no longer blocks inventory completeness - #226

Merged
eriknihlen merged 1 commit into
eriknihlen:mainfrom
davidc-smith:fix/focus-inventory-complete-upstream
Oct 19, 2026
Merged

eriknihlen merged 1 commit into
eriknihlen:mainfrom
davidc-smith:fix/focus-inventory-complete-upstream

Conversation

@davidc-smith

Copy link
Copy Markdown
Contributor

What this changes

A character carrying a spell focus never had a complete inventory, so anything waiting on HasCompleteInventory (plugin inventory sorting, the auto-vendor sell check) waited forever.

ClientObjectTable.HasCompleteInventory wants a contents listing for the owner and for every item in a container slot. A focus (container type 2) takes a container slot, but the server never sends a contents listing for one, since a focus holds nothing. So the walk never finished. It now skips foci, using the existing InventoryContainerPlacementPolicy.IsFocus, which already treats a focus as holding nothing. Packs and nested packs still have to be listed.

Test: InventoryCompletenessTests.SpellFocusNeverListedDoesNotBlockCompleteness. A manifest with a pack (type 1) and a focus (type 2) is not complete until the pack is listed, then complete with the focus never listed. It fails without the fix.

Verified live: a plugin inventory sort on a character carrying a focus used to stop after 60 s with "the inventory never finished loading"; with the fix it runs.

Original behavior

Client-side bookkeeping only; nothing the client does in the world changes. The server sends no contents listing for a focus, as seen on a live server: the focus appears in the login container list, and its listing never arrives.

Checklist

  • dotnet build AcDream.slnx -c Release is green
  • The portable test filter passes locally (see CONTRIBUTING.md)
  • One topic per PR
  • No code copied from ACEmulator, ACViewer, or holtburger
  • No comments describing the original client's internals

https://claude.ai/code/session_01Lm9T9oP2Hi5FEjwsLmXeyN

…ness

HasCompleteInventory wanted a contents listing for every container-slot
item, but ACE never sends one for a focus (container type 2), since it
holds nothing. Anyone carrying a focus never had a complete inventory,
so plugin Sort waited 60 s and gave up. Skip foci when walking packs.

Claude-Session: https://claude.ai/code/session_01Lm9T9oP2Hi5FEjwsLmXeyN
@eriknihlen
eriknihlen merged commit 1c06ad7 into eriknihlen:main Oct 19, 2026
eriknihlen added a commit that referenced this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants