User Tools

Site Tools


openomf:language

Language Files (ENGLISH.DAT and GERMAN.DAT)

This file format was reverse engineered by bveina and this documentation is based on his notes

The language files (OMF ships with english and german translations) are structured as follows:

N String Blocks:

String Offset: 1 DWORD
String Description: 32 byte null padded string

Data Block extending to end of file.

The String offset from the string block tells you the start point of that particular string. The end point of the string is the start point of the next string. The string data is encrypted in a similar way to the CHR file data.

Decryption is as follows:

  • Obtain the length of the string (next string' start point - current string's start point)
  • Obtain the 'seed' value. This is the low byte of the length (length & 0xFF)
  • Loop over data character by character until the end point is met
  • At each loop iteration: XOR the result with the seed to obtain the decrypted character and increment the seed each iteration.

When you get to a block that has its string offset as a point after the end of the file, you're done.

openomf/language.txt · Last modified: 2015/04/10 12:22 by 127.0.0.1