Struct fields only where this exe confirms them; 600 verified fields; generated src/structs.hpp

REPENTOGON targets 1.9.7.12 and its offsets drift, so they are no longer trusted by themselves:
scripts/zhl_fields.py (replaces fix_offsets.py) keeps a REPENTOGON field only when a getter or the
game's Lua field table confirms it, or it sits between two confirmed fields with the same shift.
8 agents verified the rest against code (Game/Manager/Entity_Player shift in steps; Room, ANM2,
EntityConfig unshifted). src/structs.hpp is generated from the confirmed fields with static_asserts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-24 21:37:10 -04:00
1 parent d2b8a9229a
commit 5d1b595294
11 files changed
+5713 -1608

No files matched your search

+10 -1
View File
@@ -1,3 +1,9 @@
ANM2 0x80 int _layerCount
ANM2 0x94 Vector _offset
ANM2 0x9c Vector _scale
ANM2 0x100 bool _isFlipX
ANM2 0x101 bool _isFlipY
ANM2 0x109 bool _isLoaded
Entity 0xdc Vector _spriteOffset
Entity 0xe4 Vector _spriteScale
Entity 0x148 bool _isFlipX
@@ -27,6 +33,7 @@ Entity_Player 0x136c int _numBlueFlies
Entity_Player 0x1370 int _numBlueSpiders
Entity_Player 0x1378 int _lastActionTriggers
Entity_Player 0x1430 int _tractorBeam
Entity_Player 0x1600 int _itemState
Entity_Player 0x162c int _fireDirection
Entity_Player 0x1630 Vector _aimDirection
Entity_Player 0x1638 bool _areOpposingShootDirectionsPressed
@@ -48,6 +55,8 @@ Entity_Projectile 0x448 int _wiggleFrameOffset
Entity_Projectile 0x450 uint64_t _changeFlags
Entity_Projectile 0x45c int _changeTimeout
Entity_Tear 0x7ec Vector _posDisplacement
Font 0x14 short _lineHeight
Font 0x16 short _baselineHeight
Game 0x26500 int _bossRushParTime
Game 0x26504 int _blueWombParTime
Game 0x26560 int _stagesWithoutHeartsPicked
@@ -59,7 +68,6 @@ GridEntity_Door 0xd4 Vector _spriteOffset
GridEntity_Door 0x158 int _slot
GridEntity_Door 0x164 int _direction
GridEntity_Door 0x391 bool _isBusted
GridEntity_Door 0x394 int _targetRoomIndex
Level 0x10 bool _isHeartPicked
Level 0x11 bool _isCanSeeEverything
Level 0x182cc int _roomCount
@@ -87,3 +95,4 @@ Room 0x1d18 int _backdropType
Room 0x7068 int _shopLevel
Room 0x7229 bool _hasTriggerPressurePlates
Room 0x72a0 bool _isFirstEnemyDead
Seeds 0x58 int _countSeedEffects
1 Entity ANM2 0xdc 0x80 Vector _spriteOffset int _layerCount
1 ANM2 0x80 int _layerCount
2 ANM2 0x94 Vector _offset
3 ANM2 0x9c Vector _scale
4 ANM2 0x100 bool _isFlipX
5 ANM2 0x101 bool _isFlipY
6 ANM2 0x109 bool _isLoaded
7 Entity Entity 0xdc 0xdc Vector _spriteOffset Vector _spriteOffset
8 Entity Entity 0xe4 0xe4 Vector _spriteScale Vector _spriteScale
9 Entity Entity 0x148 0x148 bool _isFlipX bool _isFlipX
33 Entity_Player Entity_Player 0x1370 0x1370 int _numBlueSpiders int _numBlueSpiders
34 Entity_Player Entity_Player 0x1378 0x1378 int _lastActionTriggers int _lastActionTriggers
35 Entity_Player Entity_Player 0x1430 0x1430 int _tractorBeam int _tractorBeam
36 Entity_Player 0x1600 int _itemState
37 Entity_Player Entity_Player 0x162c 0x162c int _fireDirection int _fireDirection
38 Entity_Player Entity_Player 0x1630 0x1630 Vector _aimDirection Vector _aimDirection
39 Entity_Player Entity_Player 0x1638 0x1638 bool _areOpposingShootDirectionsPressed bool _areOpposingShootDirectionsPressed
55 Entity_Projectile Entity_Projectile 0x450 0x450 uint64_t _changeFlags uint64_t _changeFlags
56 Entity_Projectile Entity_Projectile 0x45c 0x45c int _changeTimeout int _changeTimeout
57 Entity_Tear Entity_Tear 0x7ec 0x7ec Vector _posDisplacement Vector _posDisplacement
58 Font 0x14 short _lineHeight
59 Font 0x16 short _baselineHeight
60 Game Game 0x26500 0x26500 int _bossRushParTime int _bossRushParTime
61 Game Game 0x26504 0x26504 int _blueWombParTime int _blueWombParTime
62 Game Game 0x26560 0x26560 int _stagesWithoutHeartsPicked int _stagesWithoutHeartsPicked
68 GridEntity_Door GridEntity_Door 0x158 0x158 int _slot int _slot
69 GridEntity_Door GridEntity_Door 0x164 0x164 int _direction int _direction
70 GridEntity_Door GridEntity_Door 0x391 0x391 bool _isBusted bool _isBusted
GridEntity_Door 0x394 int _targetRoomIndex
71 Level Level 0x10 0x10 bool _isHeartPicked bool _isHeartPicked
72 Level Level 0x11 0x11 bool _isCanSeeEverything bool _isCanSeeEverything
73 Level Level 0x182cc 0x182cc int _roomCount int _roomCount
95 Room Room 0x7068 0x7068 int _shopLevel int _shopLevel
96 Room Room 0x7229 0x7229 bool _hasTriggerPressurePlates bool _hasTriggerPressurePlates
97 Room Room 0x72a0 0x72a0 bool _isFirstEnemyDead bool _isFirstEnemyDead
98 Seeds 0x58 int _countSeedEffects