Catacomb Highscore Format

From ModdingWiki
Jump to navigation Jump to search
Catacomb Highscore Format
Format typeConfiguration
StoringScores
Games

Catacomb highscore files are always 45 bytes long. Each highscore entry is 9 bytes long with a constant total of 5 entries.

The highscore file is named TOPSCORS.CAT for Catacomb I and SCORES.CA2 for Catacomb II

Format

Format for a single highscore:

Data type Name Description
INT32LE score The total score that the player received.
INT16LE level The level that the player died on.
char[3] name The name the player enters in.

Source code example in C:

#define MAX_HIGHSCORES 5
    
typedef struct {
    int     score;
    short   level;
    char    name[3];
} highscore_t;

highscore_t highscores[MAX_HIGHSCORES];

Notes

  • The highscores must be ordered manually in the file from greatest to smallest.
    • Highscores at the beginning of the file will be displayed first regardless of score.
  • By default, the scores list contains {100, 1, "JDC"} for every highscore.

Credits

This file format was reverse engineered by Eros. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)