Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| trs:psx:gamewad [2019/08/09 23:46] – [Hidden messages] zdimension | trs:psx:gamewad [2021/04/29 21:37] (current) – zdimension | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| //By: Gh0stBlade// | //By: Gh0stBlade// | ||
| - | |||
| <code cpp> | <code cpp> | ||
| - | |||
| //The number of file entries stored in GAMEWAD.OBJ. | //The number of file entries stored in GAMEWAD.OBJ. | ||
| #define NUM_GAMEWAD_FILE_ENTRIES 51 | #define NUM_GAMEWAD_FILE_ENTRIES 51 | ||
| Line 13: | Line 11: | ||
| struct GamewadEntry | struct GamewadEntry | ||
| { | { | ||
| - | int fileOffset; | + | |
| - | int fileSize; | + | int fileSize; |
| }; | }; | ||
| struct GamewadHeader | struct GamewadHeader | ||
| { | { | ||
| - | struct GamewadEntry entries[NUM_GAMEWAD_FILE_ENTRIES]; | + | |
| - | char reserved[GAMEWAD_HEADER_MAX_LENGTH - (NUM_GAMEWAD_FILE_ENTRIES * sizeof(GamewadEntry))]; | + | char reserved[GAMEWAD_HEADER_MAX_LENGTH - (NUM_GAMEWAD_FILE_ENTRIES * sizeof(GamewadEntry))]; |
| }; | }; | ||
| enum GamewadFiles | enum GamewadFiles | ||
| { | { | ||
| - | NONE, // Used to initialise Gamewad offset to 0. | + | |
| - | CUTSEQ, | + | CUTSEQ, |
| - | TITLE, | + | TITLE, |
| - | ANDREA1, // Guessed | + | ANDREA1, // Guessed |
| - | ANDREA2, | + | ANDREA2, |
| - | ANDREA3, | + | ANDREA3, |
| - | JOBY2, | + | JOBY2, |
| - | JOBY3, | + | JOBY3, |
| - | JOBY4, | + | JOBY4, |
| - | JOBY5, | + | JOBY5, |
| - | ANDY1, | + | ANDY1, |
| - | ANDY2, | + | ANDY2, |
| - | ANDY3, | + | ANDY3, |
| - | RICH1, | + | RICH1, |
| - | RICH2, | + | RICH2, |
| - | RICHCUT2, | + | RICHCUT2, |
| - | RICH3, | + | RICH3, |
| - | RESERVED_17, // 0 bytes | + | GIBBY, // 0 bytes |
| - | RESERVED_18, // 0 bytes | + | DEL, // 0 bytes |
| - | RESERVED_19, // 0 bytes | + | TOM, // 0 bytes |
| - | RESERVED_20, | + | RESERVED_20, |
| - | RESERVED_21, | + | RESERVED_21, |
| - | RESERVED_22, | + | RESERVED_22, |
| - | RESERVED_23, | + | RESERVED_23, |
| - | RESERVED_24, | + | RESERVED_24, |
| - | RESERVED_25, | + | RESERVED_25, |
| - | RESERVED_26, | + | RESERVED_26, |
| - | RESERVED_27, | + | RESERVED_27, |
| - | RESERVED_28, | + | RESERVED_28, |
| - | RESERVED_29, | + | RESERVED_29, |
| - | UNKNOWN_30, // 16bpp TR5 Extras Storyboards (ENG) 512x | + | |
| - | UNKNOWN_31, // 16bpp TRN Extras Storyboards 512x | + | |
| - | UNKNOWN_32, // 16bpp TR5 Extras Storyboards (ENG) 512x | + | |
| - | RESERVED_33, | + | RESERVED_33, |
| - | RESERVED_34, | + | RESERVED_34, |
| - | RESERVED_35, | + | RESERVED_35, |
| - | RESERVED_36, | + | RESERVED_36, |
| - | RESERVED_37, | + | RESERVED_37, |
| - | RESERVED_38, | + | RESERVED_38, |
| - | RESERVED_39, | + | RESERVED_39, |
| - | RESERVED_40, | + | RESERVED_40, |
| - | UNKNOWN_41, // 16bpp TR5 Legal Screen (ENG) 512x256 & 16bpp Loading CD (64x64) | + | |
| - | UNKNOWN_42, // 16bpp TR4 Legal Screen (FR) | + | |
| - | UNKNOWN_43, // 16bpp TR4 Legal Screen (US) | + | |
| - | UNKNOWN_44, // 16bpp TR4 Legal Screen (ENG) 512x256 & 16bpp Placeholder loading CD (64x64) | + | |
| - | UNKNOWN_45, // 16bpp TR4 Legal Screen (ENG) 512x256 & 16bpp Placeholder loading CD (64x64) | + | |
| - | UNKNOWN_46, // 16bpp TR5 Legal Screen (ENG) 512x256 & 16bpp Loading CD (64x64) | + | |
| - | UNKNOWN_47, // 16bpp TR4 Legal Screen (US) | + | |
| - | UNKNOWN_48, // 16bpp TR4 Legal Screen (ENG) 512x256 & 16bpp Placeholder loading CD (64x64) | + | |
| - | UNKNOWN_49, // 4bpp TR4 Logo | + | |
| - | UNKNOWN_50 | + | |
| }; | }; | ||
| + | |||
| </ | </ | ||
| - | The original PlayStation engine loads 512 bytes of data (GAMEWAD_HEADER_MAX_LENGTH) into the gamewad buffer. | + | The original PlayStation engine loads 512 bytes of data (GAMEWAD_HEADER_MAX_LENGTH) into the gamewad buffer. Level file entries contain 3 other files prior to the level file itself. |
| - | Level file entries contain 3 other files prior to the level file itself. | + | |
| - | - 262144 bytes of data is a 16bpp 512x256 | + | - 262144 bytes of data is a 16bpp 512×256 |
| - | - 8192 bytes of data is a 16bpp 64x64 BGR spinning CD image. | + | - 8192 bytes of data is a 16bpp 64×64 |
| - 42012 is " | - 42012 is " | ||
| - | UNKNOWN_41 | + | UKPIK_START |
| <note tip>For the file to be loadable by the PSX engine, all the file offsets must aligned to 2048 ('' | <note tip>For the file to be loadable by the PSX engine, all the file offsets must aligned to 2048 ('' | ||
| Line 97: | Line 96: | ||
| === Tomb Raider 5 === | === Tomb Raider 5 === | ||
| - | == Game : Tomb Raider 5 PSX Beta, file : '' | + | == Game : Tomb Raider 5 Beta, file : '' |
| < | < | ||
| - | TR5 DATA FILE (C) 2000 Core Design... ' | + | TR5 DATA FILE (C) 2000 Core Design... ' |
| </ | </ | ||
| - | == Game : Tomb Raider 5 PSX (US), file : '' | + | == Game : Tomb Raider 5 (US), file : '' |
| < | < | ||
| - | TR5 DATA FILE (C) 2000 Core Design... ' | + | TR5 DATA FILE (C) 2000 Core Design... ' |
| </ | </ | ||
| Line 118: | Line 119: | ||
| EVERQUEST RULES... | EVERQUEST RULES... | ||
| ADSL ROCKS, when it works... | ADSL ROCKS, when it works... | ||
| - | someone really should kill BT , they suck. | + | someone really should kill BT , they suck. |
| </ | </ | ||
| - | == Game : Tomb Raider 5 ??? (I don't remember where I got it from), file : '' | + | == Game : Tomb Raider 5 (JP), file : '' |
| < | < | ||
| TR5 DATA FILE (C) 2000 Core Design... ' | TR5 DATA FILE (C) 2000 Core Design... ' | ||
| + | |||
| </ | </ | ||
| Line 137: | Line 140: | ||
| ADSL ROCKS, when it works... | ADSL ROCKS, when it works... | ||
| someone really should kill BT , they suck. | someone really should kill BT , they suck. | ||
| + | |||
| </ | </ | ||
| + | |||
| + | |||
