feat: IW3 menu dumping#909
Open
michaeloliverx wants to merge 8 commits into
Open
Conversation
Emit numeric tokens without quotes so the linker keeps colour arguments separate. Before: `"0.1" "0.1" "0.12" "0.5"` becomes `"0.10.10.120.5"` After: `0.1 0.1 0.12 0.5` This fixes `mouseExit` colour commands failing to clear menu hover borders.
Keep explicit empty text distinct from null text when dumping menu items. This fixes CD-key values overflowing their input boxes.
michaeloliverx
commented
Jul 18, 2026
| rect 10 20 180 24 1 2 | ||
| style 1 | ||
| type 1 | ||
| visible when((localvarint("ui_highlight")==5&&localvarstring("ui_choicegroup")=="popmenu")); |
Contributor
Author
There was a problem hiding this comment.
The expressions could be printed better but I didn't investigate what it would take.
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
Relates to #626
Adds IW3 menu and menulist dumping. The original source cannot be reproduced exactly because macros and preprocessing are lost, but the output preserves runtime behaviour and can be relinked with the official tools.
Verification
ui_mp.ffmod.ffusing the officiallinker_pcNotes
Loading every
ui_mpmenu in one mod exceeds stock CoD4’s 128-menufile limit:CoD4x can raise the limit for testing:
The stock linker also cannot load four generated menu files because their paths exceed its 63-character path limit. It reports them as missing even though the files exist:
The linker still completes and writes the fastfile.
References