Translations:Save file/11/en

From Treasure Adventure Game Wiki
Revision as of 20:04, 21 July 2023 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
  1. Read the length of the entry - in this example it would be 43.
  2. Read the key of the entry until you encounter a null byte - in this example: chest 20 coins1977102
  3. Read the string value of the entry until you encounter a null byte - in this example: Chest 20 coins1977102
  4. Read the next x bytes, where x = entry_length - (key_length + string_value_length). key_length and string_value_length are lengths of the strings above, without counting the null byte. The string contains the integer value in ASCII form. In this example, x = 43 - (21 + 21) = 1, so we just read 1 character. This character is "1", so our number value is 1.
  5. Repeat the process from step 1 until the end of the file

So, the first entry would translate to:

Key String value Integer value
chest 20 coins1977102 Chest 20 coins1977102 1

The purpose of the string value is currently unknown, and it seems like if the string value is present, the key is always the string value, but lowercase.