STUD/Achievement

From owdev
Jump to: navigation, search

Outlines the format for the 068 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.

Common Types

 struct record_t {
   ulong padding;	// 0xfff...
   ulong key;
 }

 struct string_t {
   uint length;
   uint crc32;
   ulong offset;
   char* string[length];	// at offset 
 }

Instances

Header

Instance ID is 0x7CE5C1B2

 struct header {
   record_t name;	// name; 07C String file
   record_t desc;	// description; 07C String file
   record_t unk1;	// zero
   record_t unk2;	// zero
   record_t reward;	// 0A5 Inventory Item file
   record_t icon;	// 004 Texture file
   ulong offset_inst;	// points to a string_t, is instance name.
 }