Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
trs:savegame:tr2 [2024/12/04 13:28] – [TR2] stohrendorftrs:savegame:tr2 [2024/12/05 12:18] (current) – [TR2] stohrendorf
Line 32: Line 32:
          * 7 Harpoon gun          * 7 Harpoon gun
          */          */
-        uint8_t weapon; // current held weapon+        uint8_t weapon; // equipped weapon
         /* 00000001 Level unlocked         /* 00000001 Level unlocked
          * 00000010 Pistols          * 00000010 Pistols
Line 70: Line 70:
     uint32_t roomsAreFlipped;     uint32_t roomsAreFlipped;
     uint8_t flipStates[10];     uint8_t flipStates[10];
-    uint8_t unknown6[128];+    uint16_t trackFlags[64];
     uint8_t cameraFlags[]; // size depends on number of cameras in level     uint8_t cameraFlags[]; // size depends on number of cameras in level
     uint8_t itemData[]; // item-specific savegame data, needs to be studied     uint8_t itemData[]; // item-specific savegame data, needs to be studied
Line 124: Line 124:
     uint32_t unknown11;     uint32_t unknown11;
     uint32_t laraItemPtr;     uint32_t laraItemPtr;
 +    uint32_t gameEffectsPtr;
 +    uint16_t firstFreeEffect;
 +    uint16_t firstFreeItem;
 +    uint16_t firstActiveItem;
 +    uint16_t lastEffect;
 +    uint16_t bodyListHead; // for "clear bodies" floordata
          
-    // remainder needs to be studied+    if(weapon1 != -1) { 
 +        // data about this weapon 
 +        uint16_t weaponObjectId; 
 +        uint16_t weaponAnimNumber; 
 +        uint16_t weaponFrame; 
 +        uint16_t weaponAnimState; 
 +        uint16_t goalAnimState; 
 +    } 
 +     
 +    uint32_t currentFlipEffect; 
 +    uint32_t flipEffectDuration; 
 +    uint32_t unknown12; 
 +    uint32_t activeFlares; 
 +     
 +    struct FlareInfo { 
 +        int32_t x, y, z; 
 +        int16_t rotX, rotY, rotZ; 
 +        uint16_t room; 
 +        uint16_t speed; 
 +        uint16_t fallspeed; 
 +        uint32_t unknown; 
 +    }; 
 +     
 +    FlareInfo flareInfos[numFlares]; 
 +     
 +    // remainder is unused
     uint8_t readToEOF[];     uint8_t readToEOF[];
 }; };
trs/savegame/tr2.1733318915.txt.gz · Last modified: 2024/12/04 13:28 by stohrendorf
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0