Skip to content

Addon: [1.9.15] Use full 24-bit range for position encoding#794

Merged
Xian55 merged 1 commit intodevfrom
feature/addon/fixed24
Mar 28, 2026
Merged

Addon: [1.9.15] Use full 24-bit range for position encoding#794
Xian55 merged 1 commit intodevfrom
feature/addon/fixed24

Conversation

@Xian55
Copy link
Copy Markdown
Owner

@Xian55 Xian55 commented Mar 28, 2026

Summary

  • Add fixed24 encoding function that uses the full 24-bit RGB range (0–16,777,215) for normalized 0–1 position coordinates, replacing the generic float encoding that only used ~6% of the range
  • Improves world position precision from ~0.005 yards to ~0.0003 yards, matching WoW API's float32 limit
  • Rename float/GetFixed to fixed20/GetFixed20 for consistency with the new fixed24/GetFixed24 naming convention

Test plan

  • dotnet build MasterOfPuppets.sln passes with 0 errors
  • In-game: verify MapX/MapY values are in 0–100 range
  • Navigation and pathfinding work correctly

🤖 Generated with Claude Code

Replace the generic float encoding (6% of 24-bit range) with a dedicated
fixed24 encoder that uses the full 0-16777215 range for normalized 0-1
position coordinates, improving world precision from ~0.005 to ~0.0003 yards.

Also rename float/GetFixed to fixed20/GetFixed20 for consistency with
the new fixed24/GetFixed24 naming convention.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Xian55 Xian55 added the enhancement This pull request implements a new feature. label Mar 28, 2026
@Xian55 Xian55 merged commit 2b3c890 into dev Mar 28, 2026
1 check passed
@Xian55 Xian55 deleted the feature/addon/fixed24 branch March 28, 2026 22:30
@Xian55 Xian55 added the ai Artificial Intelligence tool has been contributed. label Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai Artificial Intelligence tool has been contributed. enhancement This pull request implements a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant