diff --git a/lua_fields.tsv b/lua_fields.tsv index e776fc1..a303069 100644 --- a/lua_fields.tsv +++ b/lua_fields.tsv @@ -21,17 +21,12 @@ Entity_Pickup 0x53c int _shopItemId Entity_Pickup 0x544 int _wait Entity_Player 0x410 bool _isControlsEnabled Entity_Player 0x414 int _controlsCooldown -Entity_Player 0x1340 int _maxHearts -Entity_Player 0x1344 int _hearts -Entity_Player 0x1348 int _eternalHearts -Entity_Player 0x134c int _soulHearts Entity_Player 0x1354 int _jarHearts Entity_Player 0x1358 int _jarFlies Entity_Player 0x136c int _numBlueFlies Entity_Player 0x1370 int _numBlueSpiders Entity_Player 0x1378 int _lastActionTriggers Entity_Player 0x1430 int _tractorBeam -Entity_Player 0x152c int _tearRangeModifier Entity_Player 0x162c int _fireDirection Entity_Player 0x1630 Vector _aimDirection Entity_Player 0x1638 bool _areOpposingShootDirectionsPressed diff --git a/project/isaac.rep/idata/00/~00000000.db/db.24.gbf b/project/isaac.rep/idata/00/~00000000.db/db.26.gbf similarity index 99% rename from project/isaac.rep/idata/00/~00000000.db/db.24.gbf rename to project/isaac.rep/idata/00/~00000000.db/db.26.gbf index c8fd508..322c77d 100644 Binary files a/project/isaac.rep/idata/00/~00000000.db/db.24.gbf and b/project/isaac.rep/idata/00/~00000000.db/db.26.gbf differ diff --git a/scripts/zhl_match.py b/scripts/zhl_match.py index 6a6270f..9338a52 100644 --- a/scripts/zhl_match.py +++ b/scripts/zhl_match.py @@ -99,4 +99,9 @@ with open(os.path.join(os.path.dirname(out), 'zhl_fields.tsv'), 'w') as o: b = re.search(r':\s*public\s+(\w+)', l) if b: o.write('%s\tbase\t%s\n' % (struct_, b.group(1))) m = re.match(r'^\s*([\w:<>,\s\*&]+?)\s*:\s*(0x[0-9a-fA-F]+)\s*;', l) - if m and struct_: o.write('%s\t%s\t%s\n' % (struct_, m.group(2).lower(), ' '.join(m.group(1).split()))) + if not (m and struct_): continue + parts = re.findall(r'([^,:]+?)\s*:\s*(0x[0-9a-fA-F]+)', l.split(';')[0]) # "int _a : 0x0, _b : 0x4;" is two fields + ftype = parts[0][0].split()[:-1] + for decl, off in parts: + words = decl.split() + o.write('%s\t%s\t%s\n' % (struct_, off.lower(), ' '.join((words if len(words) > 1 else ftype + words)))) diff --git a/zhl_fields.tsv b/zhl_fields.tsv index 5937399..84677e4 100644 --- a/zhl_fields.tsv +++ b/zhl_fields.tsv @@ -122,8 +122,15 @@ BeamRenderer 0x118 unsigned int _layer BeamRenderer 0x11c bool _useOverlayData BeamRenderer 0x11d bool _unkBool BeamRenderer 0x120 deque_Point _points -BitSet128 0xc unsigned int ll : 0x0, lh : 0x4, hl : 0x8, hh -BlendMode 0x10 unsigned int _equation : 0x0, _rgbSourceFactor : 0x4, _rgbDestFactor : 0x8, _alphaSourceFactor : 0xc, _alphaDestFactor +BitSet128 0x0 unsigned int ll +BitSet128 0x4 unsigned int lh +BitSet128 0x8 unsigned int hl +BitSet128 0xc unsigned int hh +BlendMode 0x0 unsigned int _equation +BlendMode 0x4 unsigned int _rgbSourceFactor +BlendMode 0x8 unsigned int _rgbDestFactor +BlendMode 0xc unsigned int _alphaSourceFactor +BlendMode 0x10 unsigned int _alphaDestFactor BossPool 0x8ac vector_bool _removedBosses BossPool 0x8bc vector_bool _levelBlacklist BossPool_Entry 0x0 int _id @@ -169,11 +176,18 @@ ChallengeParam 0x80 int _pathType ChallengeParam 0x84 unsigned int _getCurse ChallengeParam 0x88 unsigned int _curseFilter ChallengeParam 0x8c std_vector_int _collectibleTwinList -ColorModState 0x14 float r : 0x0, g : 0x4, b : 0x8, a : 0xc, brightness : 0x10, contrast +ColorModState 0x0 float r +ColorModState 0x4 float g +ColorModState 0x8 float b +ColorModState 0xc float a +ColorModState 0x10 float brightness +ColorModState 0x14 float contrast ColorParams 0x0 int _priority ColorParams 0x4 ColorMod _color -ColorParams 0x34 int _duration1 : 0x30, _duration2 -ColorParams 0x39 bool _fadeout : 0x38, _shared +ColorParams 0x30 int _duration1 +ColorParams 0x34 int _duration2 +ColorParams 0x38 bool _fadeout +ColorParams 0x39 bool _shared CompletionWidget 0x0 int CharacterId CompletionWidget 0x4 ANM2 anm2 Console 0x0 int _state @@ -190,14 +204,21 @@ ConsumableData 0x10 int soulcharges ConsumableData 0x14 int gigabombs ConsumableData 0x18 int poopmana ConsumableData 0x1c int bloodcharges -PlayerCostumeMap 0x8 int _index : 0x0, _layerID : 0x4, _priority +PlayerCostumeMap 0x0 int _index +PlayerCostumeMap 0x4 int _layerID +PlayerCostumeMap 0x8 int _priority PlayerCostumeMap 0xc bool _isBodyLayer CostumeSpriteDesc 0x0 ANM2 _sprite CostumeSpriteDesc 0x114 ItemConfig_Item* _item CostumeSpriteDesc 0x118 int _priority -CostumeSpriteDesc 0x11f bool _itemAnimPlay : 0x11c, _isFlying : 0x11d, _hasOverlay : 0x11e, _hasSkinAlt -CostumeSpriteDesc 0x124 int _defaultSkinColor : 0x120, _skinColor -CostumeSpriteDesc 0x129 bool _overwriteColor : 0x128, _itemStateOnly +CostumeSpriteDesc 0x11c bool _itemAnimPlay +CostumeSpriteDesc 0x11d bool _isFlying +CostumeSpriteDesc 0x11e bool _hasOverlay +CostumeSpriteDesc 0x11f bool _hasSkinAlt +CostumeSpriteDesc 0x120 int _defaultSkinColor +CostumeSpriteDesc 0x124 int _skinColor +CostumeSpriteDesc 0x128 bool _overwriteColor +CostumeSpriteDesc 0x129 bool _itemStateOnly CostumeSpriteDesc 0x12c int _playerType CutsceneEntry 0x0 int _id CutsceneEntry 0x4 std_string _name @@ -210,7 +231,10 @@ DailyChallenge 0x4 unsigned int _seed DailyChallenge 0x8 bool _isPractice DailyChallenge 0xc unsigned int _specialDailyId DailyChallenge 0x10 ChallengeParam _params -DestinationQuad 0x18 Vector _topLeft : 0x0, _topRight : 0x8, _bottomLeft : 0x10, _bottomRight +DestinationQuad 0x0 Vector _topLeft +DestinationQuad 0x8 Vector _topRight +DestinationQuad 0x10 Vector _bottomLeft +DestinationQuad 0x18 Vector _bottomRight Devolve 0x0 int type Devolve 0x4 uint16_t variant Devolve 0x6 uint16_t subtype @@ -491,7 +515,11 @@ Entity_Player 0x1220 vector_CostumeSpriteDesc _costumeSpriteDescs Entity_Player 0x1320 std_string _headAnim Entity_Player 0x1338 int _blinkTime Entity_Player 0x133c int _headDirectionTime -Entity_Player 0x1350 int _maxHearts : 0x1340, _redHearts : 0x1344, _eternalHearts : 0x1348, _soulHearts : 0x134c, _blackHearts +Entity_Player 0x1340 int _maxHearts +Entity_Player 0x1344 int _redHearts +Entity_Player 0x1348 int _eternalHearts +Entity_Player 0x134c int _soulHearts +Entity_Player 0x1350 int _blackHearts Entity_Player 0x135c int _numKeys Entity_Player 0x1360 bool _hasGoldenKey Entity_Player 0x1361 bool _hasGoldenBomb @@ -516,10 +544,20 @@ Entity_Player 0x147c float _tearfallaccel Entity_Player 0x1480 float _tearrange Entity_Player 0x14c0 ColorMod _laserColor Entity_Player 0x1504 TemporaryEffects _temporaryeffects -Entity_Player 0x1530 int _speedModifier : 0x1518, _fireDelayModifier : 0x151c, _damageModifier : 0x1520, _tearRangeModifier : 0x1524, _shotSpeedModifier : 0x1528, _luckModifier +Entity_Player 0x151c int _speedModifier +Entity_Player 0x1520 int _fireDelayModifier +Entity_Player 0x1524 int _damageModifier +Entity_Player 0x1528 int _tearRangeModifier +Entity_Player 0x152c int _shotSpeedModifier +Entity_Player 0x1530 int _luckModifier Entity_Player 0x1534 int _donateLuck Entity_Player 0x1538 int _potatoPeelerCounter -Entity_Player 0x1558 float _edenSpeed : 0x1540, _edenFireDelay : 0x1544, _edenDamage : 0x1548, _edenTearRange : 0x154c, _edenShotSpeed : 0x1550, _edenLuck +Entity_Player 0x1544 float _edenSpeed +Entity_Player 0x1548 float _edenFireDelay +Entity_Player 0x154c float _edenDamage +Entity_Player 0x1550 float _edenTearRange +Entity_Player 0x1554 float _edenShotSpeed +Entity_Player 0x1558 float _edenLuck Entity_Player 0x1560 float _movespeed Entity_Player 0x1564 float _luck Entity_Player 0x1568 bool _canFly @@ -584,7 +622,12 @@ Entity_Player 0x1e84 int _marsUnk1 Entity_Player 0x1e88 int _marsCooldown Entity_Player 0x1e8c int _marsUnk2 Entity_Player 0x1e90 bool _marsUnkBool -Entity_Player 0x1ebc float _rockBottomMoveSpeed : 0x1e94, _rockBottomMaxFireDelay : 0x1e98, _rockBottomDamage : 0x1e9c, _rockBottomTearRange : 0x1ea0, _rockBottomShotSpeed : 0x1ea4, _rockBottomLuck +Entity_Player 0x1ea8 float _rockBottomMoveSpeed +Entity_Player 0x1eac float _rockBottomMaxFireDelay +Entity_Player 0x1eb0 float _rockBottomDamage +Entity_Player 0x1eb4 float _rockBottomTearRange +Entity_Player 0x1eb8 float _rockBottomShotSpeed +Entity_Player 0x1ebc float _rockBottomLuck Entity_Player 0x1ed4 uint32_t _revelationChargeTimer Entity_Player 0x1ed8 uint32_t _montezumaChargeTimer Entity_Player 0x1ee4 uint32_t _maggyHealthDrainCooldown @@ -682,9 +725,11 @@ FXParams 0x0 KColor roomColor FXParams 0x14 float brightness FXParams 0x18 float contrast FXParams 0x1c bool useWaterV2 -FXParams 0x34 KColor waterColor : 0x20, waterColorMultiplier +FXParams 0x20 KColor waterColor +FXParams 0x34 KColor waterColorMultiplier FXParams 0x48 float shadowAlpha -FXParams 0x60 KColor shadowColor : 0x4c, lightColor +FXParams 0x4c KColor shadowColor +FXParams 0x60 KColor lightColor FXParams 0x74 ColorMod waterEffectColor Font 0x0 bool _isLoaded Font 0x4 int16_t _fontSize @@ -990,7 +1035,8 @@ ItemConfig_Pill 0x3c unsigned int announcerVoice ItemConfig_Pill 0x40 unsigned int announcerVoiceSuper ItemConfig_Pill 0x44 unsigned int announcerVoiceDelay ItemConfig_Pill 0x48 unsigned int mimicCharge -ItemConfig_Pill 0x4d uint8_t effectClass : 0x4C, effectSubClass +ItemConfig_Pill 0x4c uint8_t effectClass +ItemConfig_Pill 0x4d uint8_t effectSubClass ItemConfig_PlayerForm 0x00 int id ItemConfig_PlayerForm 0x08 uint64_t tags ItemConfig_PlayerForm 0x10 std_string name @@ -1603,10 +1649,12 @@ PlayerManager 0xb8 RNG _rng PocketItem 0x0 int _id PocketItem 0x4 uint32_t _type Point 0x0 Vector _pos -Point 0xc float _width : 0x8, _spritesheetCoordinate +Point 0x8 float _width +Point 0xc float _spritesheetCoordinate Point 0x10 ColorMod _color Point 0x3c bool _worldSpace -PosVel 0x8 Vector pos : 0x0, vel +PosVel 0x0 Vector pos +PosVel 0x8 Vector vel ProceduralEffect_ConditionData_EntitySpawn 0x4 short variant ProceduralEffect_ConditionData_EntitySpawn 0x6 short type ProceduralEffect_ActionData_UseActiveItem 0x0 int collectibleId @@ -1638,10 +1686,21 @@ ProceduralItem 0x24 float shotspeed ProceduralItem 0x28 float luck ProceduralItemManager 0x10 KAGE_SmartPointer_ImageBase _proceduralItemTexture ProjectileParams 0x0 bool GridCollision -ProjectileParams 0x28 float HeightModifier : 0x4, FallingSpeedModifier : 0x8, FallingAccelModifier : 0xc, VelocityMulti : 0x10, Scale : 0x14, CircleAngle : 0x18, HomingStrength : 0x1c, CurvingStrength : 0x20, Acceleration : 0x24, Spread +ProjectileParams 0x4 float HeightModifier +ProjectileParams 0x8 float FallingSpeedModifier +ProjectileParams 0xc float FallingAccelModifier +ProjectileParams 0x10 float VelocityMulti +ProjectileParams 0x14 float Scale +ProjectileParams 0x18 float CircleAngle +ProjectileParams 0x1c float HomingStrength +ProjectileParams 0x20 float CurvingStrength +ProjectileParams 0x24 float Acceleration +ProjectileParams 0x28 float Spread ProjectileParams 0x2c ColorMod Color ProjectileParams 0x58 uint64_t BulletFlags -ProjectileParams 0x70 Vector PositionOffset : 0x60, TargetPosition : 0x68, FireDirectionLimit +ProjectileParams 0x60 Vector PositionOffset +ProjectileParams 0x68 Vector TargetPosition +ProjectileParams 0x70 Vector FireDirectionLimit ProjectileParams 0x78 float DotProductLimit ProjectileParams 0x7c int32_t WiggleFrameOffset ProjectileParams 0x80 uint64_t ChangeFlags @@ -1853,7 +1912,8 @@ TemporaryEffects 0x4 vector_TemporaryEffect _effects TemporaryEffects 0x10 bool _shouldEvaluateCache TemporaryEffects 0x11 bool _disabled TemporaryEffects 0x14 Entity_Player* _player -Vector 0x4 float x : 0x0, y +Vector 0x0 float x +Vector 0x4 float y WaterClipInfo 0x0 unsigned int bitFlags WaterClipInfo 0x4 float unkFloat Weapon 0x4 Entity* _owner