Skip to content

feat: FINALV1TERRITORYPRESETHELPER - Territory preset helper, bulk loadout application, and in-game eco upgrade guide - #33

Open
Good627 wants to merge 4 commits into
EdenGuild:masterfrom
Good627:FINALV1TERRITORYPRESETHELPER
Open

Good627 wants to merge 4 commits into
EdenGuild:masterfrom
Good627:FINALV1TERRITORYPRESETHELPER

Conversation

@Good627

@Good627 Good627 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the Territory Preset Helper suite for Wynncraft territory management, fully integrating with both vanilla container screens and Wynntils' Custom Territory Management Screen (including Territory Map Display mode).

Features

  • Preset Management & Controls:
    • Top HUD control bar ([<] [Preset: Name ▾] [>] [Copy] [Paste] [Rename] [Unselect] [Skip]) available across Wynntils map screens and non-Wynntils economy container menus (\Eden: Territories, \Territory Loadouts, \Select Territories).
    • Import and export Base64 preset strings with embedded names and backward compatibility.
    • In-game preset rename modal (\RenamePresetScreen) accessible via right-clicking the preset selector or clicking [Rename].
    • Dropdown selector with quick-select, rename, delete, clipboard import, and live claim saving.
    • Case-insensitive territory deduplication and (HQ)\ suffix stripping across container menus and presets, preventing duplicated entries.
  • Bulk Loadout Application:
    • Automatically identifies and stages multi-territory loadouts (e.g., Fake Medium / Fake High absolute matches) to select all applicable territories in one pass before applying.
    • Cleans up staged territory batches on screen exit.
  • In-Game Upgrade Guide & Visual Overlay:
    • Step-by-step visual highlights with target circles and bounding boxes directing players through optimal territory upgrades, loadout applications, and menu transitions.
    • Bidirectional upgrade diff badges showing target vs current levels.
    • Isolated container slot detection and debounced scanning to eliminate FPS stutters.
    • Upgrade context tracking (\sameContext) to preserve guidance across intermediate clicks and avoid premature completion pulses.
    • Interactive [Skip]\ button supporting left-click (forward) and right-click (backward) navigation with smart back-navigation prompts.
  • Security & Codec Protection:
    • Input size limits (64 KB max clipboard preset length).
    • Decompression zip-bomb protection (512 KB max decompressed payload).
    • Territory count caps (max 400 territories per preset).
  • Configuration & Integration:
    • Master toggle under War settings (\Territory preset helper, defaults to ON).
    • Automatically resets guide state across world join, respawn, and disconnect.
    • Unit tests covering container scanning, preset deduplication, canonical name resolution, and codec security limits (\TerritoryScannerTest, \TerritoryPresetDeduplicationTest).

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.

1 participant