Treasure Mountain Puzzles

From ModdingWiki
Jump to navigation Jump to search

File Format

Decimal Hex Data type Description
0 0x00 UINT16LE QuizStart[360] Starting offset for each of the 360 quizzes
720 0x2D0 char Quizzes[] Quiz content and answers

Quizzes

The quizzes start at offset 0x2D0. To parse each quiz:

  • Read the question until you encounter the first ~ character.
  • After the ~ the answers follow, each separated by newline(return) characters:
    • The first line is the correct answer
    • The next two lines are incorrect answers


Notes:

  • Each quiz begins with 0x2020 and ends with a null terminator (0x00)
  • When this character '`' appears in the quiz text, all following text should be displayed as red until the character appears again.
  • The start position of each quiz is calculated as:
  QuizStart value + 0x2D0

Special Characters

Quizzes may contain placeholder characters that map to words using the PRG_DICT file. This mapping is sequential: both the code and corresponding word. The first word in the PRG_DICT file corresponds to the starting character code 0x80. Each subsequent word is mapped to the next character code by incrementing by 1. For example:

  Replace '€' (0x80) with "the"
  Replace 'ƒ' (0x83) with "word".

Credits

This file format was reverse engineered by Trogdor.