Skip to content
Marnanel Thurman edited this page Nov 23, 2024 · 4 revisions

dna256 is the format for saved games in Avaricius. It is briefly documented here for completeness. It is both a container format and a game data format. The extension is .ASG, for "Avvy saved game". It was obsoleted by the Edna format.

Most of this information is taken from edna.pas in Avalot.

The structure as a whole

  • offset 11: four-byte magic number, "Avvy"
  • offset 31: four-byte version string (e.g. "1.00"). There is no length byte or stop byte; the string must be exactly four characters long
  • offset 47: description of the game, as a 39-byte Pascal string (so, 40 bytes in total)
  • offset 87: an array of 256 signed 2-byte integers; see below
  • there must have been strings following this, for the questionnaire answers

The array of integers

THE INDEXES ARE 1-BASED. I don't know why. I was young and foolish.

Index Purpose
6 number of times saved
7 day of month (1-based)
8 month of year (1-based)
9 year
30 currency in hand (measured in denarii)
36 score
70 room number

There were others, but we no longer have the source.

Cheat codes

You can set these values during the game by using the command CRYO followed with three decimal values, all separated by spaces. The arguments are:

  1. must be 90
  2. index
  3. new value

If you set 70 (room number), this has the side-effect of moving you to the room immediately.

This is only based on my recollection; I haven't tried it. You might need to enable it somehow.

Clone this wiki locally