This version is outdated by a newer approved version.DiffThis version (2017/08/29 19:59) was approved by zdimension.The Previously approved version (2017/08/29 19:52) is available.Diff

This is an old revision of the document!


SETUP.MOD (TR5 NTSC 1.0)

SETUP.MOD is a container based file format which holds multiple “modules”. These modules are pre-game “SETUP” routines which have been bundled externally from the main game's executable. The SETUP.MOD module is located inside GAMEWAD.OBJ. It's stored right after the loading screen+loading cd bitmap data. Based on Tomb Raider 1's “TOMB.map” it is known that there is a file called “SETUP.C”. The file in question is not present in the PlayStation TR5 codebase judging by the symbol data. It's safe to assume the SETUP.mod module contains the same/similar code as listed in TR1's SETUP.C.

The first GAMEWAD.OBJ entry contains the file size for SETUP.MOD.

SETUP.MOD has it's own header which consists of various pointers as follows:

enum modules
{
    UNKNOWN_0,
    UNKNOWN_1,
    UNKNOWN_2,
    UNKNOWN_3,
    UNKNOWN_4,
    UNKNOWN_5,
    UNKNOWN_6,
    MODULE_LEVEL_LOAD,//Contains the code which loads a level file into the game and setups up various game structs/calls initialisation routines.
    NUM_MODULES
};
 
struct SETUP
{
    uint32_t pModule[NUM_MODULES];
};
Module pointers appear to be offset by 8 bytes.
trs/psx/setupmod.1504036784.txt.gz · Last modified: 2017/08/29 19:59 by zdimension
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0