STUD/StateScript

From owdev
Jump to: navigation, search

01B files are complicated STUD files, for this particular STUD file it's easier to parse it per instance record rather than from the first instance header.

This page will only be describing the STUD file on a per-instance basis.

Refer to http://www.gdcvault.com/play/1024653/Networking-Scripted-Weapons-and-Abilities

Common Types

 struct record_t {
   ulong padding;
   ulong key;
 }

Binding Record

Instance Table ID 0x0DECF2BA78E343C9, Local ID 0xE53C2921

 struct header {
   uint id;
   uint next_instance;
   ulong zero;
   record_t bindingRecord; // 003 file.
 }

STUConfigVarInt

Instance Table ID 0xF6ED9C3A376B9B60, Local ID 0x3AE7427E

 struct Header0xF6ED9C3A376B9B60 {
   uint id;
   uint next_instance;
   ulong unk1; // zero
   ulong value; 
   ulong unk3; // zero
 }

Child Game Parameter

Instance Table ID 0x6D3AAC865595D4FF, Local ID 0x04E83493

 struct header {
   uint id;
   uint next_instance;
   ulong zero;
   record_t param; // 01B file.
 }