Enum value names: 1,070 more from prefix brute force and structured candidates #454

Manually merged
github merged 2 commits from github-bot/gh-454 into gh-pr/454/base 2026-11-27 05:17:36 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-27 04:26 UTC · original
holdmysocks:claude/enum-value-names-2 → master · +1082 −3 · 2 files · 2 commits · merged 2026-11-27 05:12 UTC

Follow-up to #426, which merged first.

The enum value table goes from 3,253 to 4,323 values. (Round 4 below was pushed after the merge and is in #464.)

Round 1: prefix brute force

  • Each partly named enum was searched within its shared prefix (INPUT_, EVENT_, VEH_, PCF_, TYPE_, EASE_, RC_, HS_, HBIL_, CT_ and others). Words came from tokens of the known names: 1–2 words from 2,284 tokens and 3 words from the top 150.
  • Control: the same search on 2,000 random hashes gave 5 hits, matching the ~4 expected.

Round 2: sub-prefixes

  • I repeated the search under sub-prefixes taken from the names found so far (INPUT_VEH_, INPUT_MELEE_GRAPPLE_, VEH_SIREN_GLASS_, VFXGROUP_LIQUID_, PCF_Disable…). These covered 1 word from a 15k list and 2 words from the top 600, so the expected chance hits stay around 1 per group.
  • I also added a controls vocabulary for INPUT_ (FRONTEND, CURSOR, GAME_MENU, UD/LR…).

Round 3: the key enums

  • The key enums are rage's input parameters, and their values check the names:
    • The KEY_ values are the Windows virtual-key codes: all 224 KEY_ names whose code is known match it (KEY_F1 = 112).
    • Mouse axes sit at 0x200, the wheel at 0x400, mouse buttons as bits at 0x800, stick axes at 0x1000, pad buttons at 0x2000 (_INDEX) and 0x20000 (L2, R2, L1, R1, RUP… START at 0x2000B), joystick buttons at 0x8000 and POV hats at 0x10000.
  • Names here came from short structured candidate lists, so chance hits are close to zero.

Round 4: enums without a prefix, file types, vehicle parts, name dictionary

  • Enums whose names share no prefix (camel case like BlockAnimals, or upper case) were searched with 1–2 words from the token list and 3 words from the top 120.
    • A control on 6,350 random hashes gave 9 hits, all word salad, against 1,095 real hits.
    • I read through all of the real hits and dropped 14 that looked like salad, so a few chance names may remain.
  • Data file types (…_FILE) were built from a data-file vocabulary: about 100 names, such as HANDLING_FILE, CARCOLS_FILE and AUDIO_GAMEDATA.
  • Vehicle part ids (VEH_) were built from part words with side and number suffixes: 127 names, such as VEH_WHEELHUB_LM1, VEH_WEAPON_2C and VEH_MOD_COLLISION_3, against about 2 expected by chance.
  • The extractor's name dictionary was rehashed case-sensitively in each enum's spelling: 150 names.
  • Two hashes with two competing names each were left out.

Vetting and other changes

  • About 35 word-salad hits were dropped, along with one hash with two competing names. Every kept name matches case-sensitive joaat.
  • Aliases (KEY_PRIOR and KEY_PAGEUP, both 33) get one line per name, and lookups now return the first one listed.
  • Tests check TYPE_QUADRATIC_OUT, RC_CarPark, KEY_F1, the pad L3 and HANDLING_FILE.
  • Still unknown in partly named enums: mostly PCF_ (about 1,060), EVENT_ (about 620) and INPUT_ (about 600). PCF_ and EVENT_ names are mostly 3–5 words.
**@⁠holdmysocks** on GitHub · 2026-11-27 04:26 UTC · [original](https://github.com/holdmysocks/SixNG/pull/454) `holdmysocks:claude/enum-value-names-2` → `master` · +1082 −3 · 2 files · 2 commits · merged 2026-11-27 05:12 UTC Follow-up to #426, which merged first. The enum value table goes from 3,253 to 4,323 values. (Round 4 below was pushed after the merge and is in #464.) **Round 1: prefix brute force** - Each partly named enum was searched within its shared prefix (INPUT_, EVENT_, VEH_, PCF_, TYPE_, EASE_, RC_, HS_, HBIL_, CT_ and others). Words came from tokens of the known names: 1–2 words from 2,284 tokens and 3 words from the top 150. - Control: the same search on 2,000 random hashes gave 5 hits, matching the ~4 expected. **Round 2: sub-prefixes** - I repeated the search under sub-prefixes taken from the names found so far (INPUT_VEH_, INPUT_MELEE_GRAPPLE_, VEH_SIREN_GLASS_, VFXGROUP_LIQUID_, PCF_Disable…). These covered 1 word from a 15k list and 2 words from the top 600, so the expected chance hits stay around 1 per group. - I also added a controls vocabulary for INPUT_ (FRONTEND, CURSOR, GAME_MENU, UD/LR…). **Round 3: the key enums** - The key enums are rage's input parameters, and their values check the names: - The KEY_ values are the Windows virtual-key codes: all 224 KEY_ names whose code is known match it (KEY_F1 = 112). - Mouse axes sit at 0x200, the wheel at 0x400, mouse buttons as bits at 0x800, stick axes at 0x1000, pad buttons at 0x2000 (_INDEX) and 0x20000 (L2, R2, L1, R1, RUP… START at 0x2000B), joystick buttons at 0x8000 and POV hats at 0x10000. - Names here came from short structured candidate lists, so chance hits are close to zero. **Round 4: enums without a prefix, file types, vehicle parts, name dictionary** - Enums whose names share no prefix (camel case like BlockAnimals, or upper case) were searched with 1–2 words from the token list and 3 words from the top 120. - A control on 6,350 random hashes gave 9 hits, all word salad, against 1,095 real hits. - I read through all of the real hits and dropped 14 that looked like salad, so a few chance names may remain. - Data file types (…_FILE) were built from a data-file vocabulary: about 100 names, such as HANDLING_FILE, CARCOLS_FILE and AUDIO_GAMEDATA. - Vehicle part ids (VEH_) were built from part words with side and number suffixes: 127 names, such as VEH_WHEELHUB_LM1, VEH_WEAPON_2C and VEH_MOD_COLLISION_3, against about 2 expected by chance. - The extractor's name dictionary was rehashed case-sensitively in each enum's spelling: 150 names. - Two hashes with two competing names each were left out. **Vetting and other changes** - About 35 word-salad hits were dropped, along with one hash with two competing names. Every kept name matches case-sensitive joaat. - Aliases (KEY_PRIOR and KEY_PAGEUP, both 33) get one line per name, and lookups now return the first one listed. - Tests check TYPE_QUADRATIC_OUT, RC_CarPark, KEY_F1, the pad L3 and HANDLING_FILE. - Still unknown in partly named enums: mostly PCF_ (about 1,060), EVENT_ (about 620) and INPUT_ (about 600). PCF_ and EVENT_ names are mostly 3–5 words.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:31:34 +00:00
github-bot changed title from Enum value names: 303 more from a prefix brute force to Enum value names: 1,070 more from prefix brute force and structured candidates 2026-11-27 05:17:33 +00:00
github-bot changed target branch from master to gh-pr/454/base 2026-11-27 05:17:34 +00:00
github manually merged commit 8a4fa9a0e6 into gh-pr/454/base 2026-11-27 05:17:36 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.