Wiki

Clone wiki

ultima-exodus / U2_Player_File_Format

U2 Player File Format

The PLAYER file stores save game data for the current player. It is a 256 byte file.

  • 0x00-0x0f - player name
  • 0x10 - gender 'M' or 'F'
  • 0x11 - class (0-3)
  • 0x12 - race (0-3)
  • 0x13 - map number
    • 0 = legends
    • 1-4 = earth map
    • 1-9 = galactic map
  • 0x14 - submap number (always 0 when saved)
  • 0x15 - strength (BCD)
  • 0x16 - agility (BCD)
  • 0x17 - stamina (BCD)
  • 0x18 - charisma (BCD)
  • 0x19 - wisdom (BCD)
  • 0x1a - intelligence (BCD)
  • 0x1b-0x1c - health (BCD)
  • 0x1d-0x1e - food (BCD)
  • 0x1f - food counter (BCD)
  • 0x20-0x21 - experience (BCD)
  • 0x22-0x23 - gold (BCD)
  • 0x24 - player x position
  • 0x25 - player y position
  • 0x2b - readied weapon (0-9)
  • 0x2c - readied armor (0-6)
  • 0x2d - readied spell (0-6)
  • 0x2e - torches (BCD)
  • 0x2f - keys (BCD)
  • 0x30 - tools (BCD) ; galactic
  • 0x33 - rocket launch flag
  • 0x34 - rocket x position
  • 0x35 - rocket y position
  • 0x36 - galactic map flag (00 = earth)
  • 0x37 - current moongate number (00,02,04,06)
  • 0x38 - moongate counter (from 08 to 00, decrements each turn)
  • 0x39 - tile under current moongate
  • 0x40 - (unused)
  • 0x41 - daggers (BCD)
  • 0x42 - maces (BCD)
  • 0x43 - axes (BCD)
  • 0x44 - bows (BCD)
  • 0x45 - swords (BCD)
  • 0x46 - great swords (BCD)
  • 0x47 - light swords (BCD)
  • 0x48 - phasers (BCD)
  • 0x49 - quick swords (BCD)
  • 0x60 - (unused)
  • 0x61 - cloth (BCD)
  • 0x62 - leather (BCD)
  • 0x63 - chain (BCD)
  • 0x64 - plate (BCD)
  • 0x65 - reflect (BCD)
  • 0x66 - power (BCD)
  • 0x80 - (unused)
  • 0x81 - lights (BCD)
  • 0x82 - down ladders (BCD)
  • 0x83 - up ladders (BCD)
  • 0x84 - passwalls (BCD)
  • 0x85 - surfaces (BCD)
  • 0x86 - prayers (BCD)
  • 0xa0 - rings (BCD)
  • 0xa1 - wands (BCD)
  • 0xa2 - staffs (BCD)
  • 0xa3 - boots (BCD)
  • 0xa4 - cloaks (BCD)
  • 0xa5 - helms (BCD)
  • 0xa6 - gems (BCD)
  • 0xa7 - ankhs (BCD)
  • 0xa8 - red gems (BCD)
  • 0xa9 - skull keys (BCD)
  • 0xaa - green gems (BCD)
  • 0xab - brass buttons (BCD)
  • 0xac - blue tassles (BCD)
  • 0xad - strange coins (BCD)
  • 0xae - green idols (BCD)
  • 0xaf - trilithium (BCD)

The following fields were added by the Ultima 2 Upgrade:

  • 0xfe - player vehicle tile
  • 0xff - map type (ā€˜Xā€™ = earth, ā€˜Gā€™ = galactic)

Updated