STUD/Encryption Key

From owdev
(Redirected from File type 090)
Jump to: navigation, search

Outlines the format for the 090 file blob. To see the generic STUD structure that wraps the blob and array definition, see STUD. The file always starts with a header struct.

STUD Identifier is 0x8F754DFF, Instance Key 0xE68A7714016119F7

 struct header {
   uint local_id;
   uint next_offset; // offset to next STUD instance
   ulong zero1;
   ulong unk1;
   ulong unk2;
   ulong name_offset; // slice
   ulong zero2;
   ulong key_offset; // slice
   ulong zero3;
   uint zero4
   ulong unk3;
 }

Each offset points to a slice identifier.

 struct slice_identifier {
   uint  size;   // size in bytes
   uint  chk;    // CRC32
   ulong offset; // offset to data
 }

Then read size bytes at offset to get the value.

The key name is reversed.