STUD/Inventory Master

From owdev
Jump to: navigation, search

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

Instance Table ID is 0x86A4F1BD3291EAB8, Local ID is 0x33F56AC1

Common Types

 struct record_t {
   ulong padding; // 0xfff...
   ulong key;
 }
 struct group_t {
   ulong zero1;
   ulong offset_records; // array_definition of record_t pointing to 0A5 files
   ulong zero2;
   EVENT event;
 }
 enum EVENT : ulong {
   DEFAULT = 0
   SUMMER_GAMES_2016 = 1,
   HALLOWEEN_2016 = 2
 }

Format

 struct header {
   uint id;
   uint next_instance;
   ulong zero0;
   ulong offset_achievable; // not available in lootboxes, array_definition of record_t pointing to 0A5 files
   ulong zero1;
   ulong offset_defaults;   // items that are always unlocked, array_definition of group_t
   ulong zero2;
   ulong offset_items;      // unlockable items, array_definition of group_t
   ulong zero;
 }