Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
savegame:tr1 [2017/02/01 18:48] – created zdimension | trs:savegame:tr1 [2017/02/23 22:57] – zdimension | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code cpp> | <code cpp> | ||
- | struct tr1_savegame | + | struct tr1_savegame |
{ | { | ||
- | uint8_t SaveName[33]; // ASCII C string; null-terminated (rdata after \0 is ignored); for accents see String Array section of TOMBPC.DAT page | + | uint8_t SaveName[75]; // ASCII C string; null-terminated (there is always random data after \0, it is ignored); for accents see String Array section of TOMBPC.DAT page |
- | | + | |
- | uint16_t | + | uint8_t Unknown2[15]; |
- | uint8_t Unknown2[47]; | + | |
// First level use block 0, second use block 1... so that at the end of the game, | // First level use block 0, second use block 1... so that at the end of the game, | ||
// it sums up everything and/or checks if you found all secrets, etc | // it sums up everything and/or checks if you found all secrets, etc | ||
Line 18: | Line 17: | ||
uint8_t SmallMedipacks; | uint8_t SmallMedipacks; | ||
uint8_t LargeMedipacks; | uint8_t LargeMedipacks; | ||
- | uint8_t | + | uint8_t |
- | /* 00000001 | + | /* 0 None |
+ | * 1 Climbing | ||
+ | * 2 ? | ||
+ | | ||
+ | * 4 Combat? | ||
+ | */ | ||
+ | uint8_t HandStatus; | ||
+ | /* 0 None | ||
+ | * 1 Pistols | ||
+ | * 2 Magnums | ||
+ | * 3 Uzis | ||
+ | * 4 Shotgun | ||
+ | */ | ||
+ | uint8_t Weapon; // current held weapon | ||
+ | /* 00000001 | ||
* 00000010 Pistols | * 00000010 Pistols | ||
* 00000100 Magnums | * 00000100 Magnums | ||
* 00001000 Uzis | * 00001000 Uzis | ||
* 00010000 Shotgun | * 00010000 Shotgun | ||
+ | * 00100000 Midas Hand | ||
*/ | */ | ||
uint8_t Weapons; | uint8_t Weapons; | ||
uint8_t Unknown2; | uint8_t Unknown2; | ||
- | } Blocks[19]; | + | } LevelInitData[21]; // for the 21 levels (315 bytes) |
uint32_t ElapsedTime; | uint32_t ElapsedTime; | ||
uint32_t Kills; | uint32_t Kills; | ||
- | | + | |
- | * 00000010 Jade | + | |
- | * 00000100 Gold | + | uint8_t |
- | */ | + | |
- | uint8_t Secrets; | + | |
- | | + | |
- | uint8_t | + | |
- | uint8_t | + | |
uint8_t UnlimitedAmmo; | uint8_t UnlimitedAmmo; | ||
+ | uint8_t HasItem141; // From decompiled game source. | ||
+ | uint8_t HasItem142; // Strangely, those (unknown) items aren't present in any official TR1 level | ||
+ | uint8_t Puzzle[4]; | ||
+ | uint8_t Keys[4]; | ||
+ | uint8_t Pickup; // the pickup item | ||
+ | uint8_t LevelInitDataCRC; | ||
+ | // 10240 bytes starting from now | ||
+ | uint8_t RoomsAreSwapped; | ||
+ | uint8_t FlipFlags[10]; | ||
+ | | ||
+ | | ||
uint8_t ReadToEOF[]; | uint8_t ReadToEOF[]; | ||
}; | }; | ||
Line 45: | Line 65: | ||
===== Identifications ===== | ===== Identifications ===== | ||
- | TODO | + | ==== Levels ==== |
+ | |||
+ | ^ ID ^ Level ^ Filename ^ Cameras ^ Items ^ Secrets ^ Puzzle ^^^^ Key ^^^^ | ||
+ | ^ ::: ^ ::: ^ ::: ^ ::: ^ ::: ^ ::: ^ 1 ^ 2 ^ 3 ^ 4 ^ 1 ^ 2 ^ 3 ^ 4 ^ | ||
+ | | 0 | Lara's Home | '' | ||
+ | | 1 | Caves | '' | ||
+ | | 2 | City of Vilcabamba | ||
+ | | 3 | Lost Valley | ||
+ | | 4 | Tomb of Qualopec | ||
+ | | 5 | St. Francis' | ||
+ | | 6 | Colosseum | ||
+ | | 7 | Palace Midas | '' | ||
+ | | 8 | The Cistern | ||
+ | | 9 | Tomb of Tihocan | ||
+ | | 10 | City of Khamoon | ||
+ | | 11 | Obelisk of Khamoon | ||
+ | | 12 | Sanctuary of the Scion | '' | ||
+ | | 13 | Natla' | ||
+ | | 14 | Atlantis | ||
+ | | 15 | The Great Pyramid | ||
+ | | 16 | Cut Scene 1 | '' | ||
+ | | 17 | Cut Scene 2 | '' | ||
+ | | 18 | Cut Scene 3 | '' | ||
+ | | 19 | Cut Scene 4 | '' | ||
+ | | 20 | Title | '' | ||
+ | | 21 | Current Position | ||
+ | |||
+ | <note important> |