Added support for build 170934 (March 2026) hotkey format#6
Open
franzjacke wants to merge 3 commits intoPatchnote-v2:mainfrom
Open
Added support for build 170934 (March 2026) hotkey format#6franzjacke wants to merge 3 commits intoPatchnote-v2:mainfrom
franzjacke wants to merge 3 commits intoPatchnote-v2:mainfrom
Conversation
The game changed the .hkp binary layout: every hotkey record is now wrapped in named section markers (HandlerBaseGroupBegin/End, GroupHeaderGuard) and the file is structured with named sections (additionalHotkeysBegin, allUnitCommandHotkeys, detachedHotkeyGroups, etc.) instead of flat count-based arrays. Header changed from 0x40866666 (v4.2) to 0x408a3d71 (v4.32). - Rewrite parse.py with new-format parser/unparser (legacy fallback kept) - Add analyze.py CLI tool for future format reverse-engineering - Fix round-trip: preserve id<=0 sentinel slots via _raw_menus - Detect Base.hkp by filename instead of file size - Filter stale group references (removed hotkeys) from API responses - Add build 170934 default hotkey files, bump CURRENT_VERSION - Update displayed version in frontend Info panel Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CLI tool that reads custom .hkp files and generates the key-value-modded-strings-utf8.txt used by the "TTs visible Hotkeys (Configurable)" AoE2:DE mod to display the correct key labels on the 5x3 command grid in-game. Usage: python -m hotkeys.hkp.keys_for_language Base.hkp [Profile.hkp] [-o output.txt] Maps the 15 Economic Build Menu positions to their custom keycodes and outputs IDS_MOD_TTS_VISIBLE_HOTKEYS_01 through _15 with the correct key labels. Unbound keys are shown as empty strings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Added support for all command-grid panels (Military Build Menu, Barracks, Archery Range, etc.) via --panel flag, plus --best-fit mode that picks the most common key per position across all panels. Added --list-panels. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
|
Reopening, I guess I deleted to much |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
parse.pywith new-format parser/unparseranalyze.pyCLI tool for future format reverse-engineeringTest plan
Edited with Claude