Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------------
- //--- 010 Edit0r v6.0.3 B1nary Template
- //
- // File: Hav0k hkxB1naryP@cked (QD - B2S / HR) - BigEndian (PS3)
- // Author: Loomy (With Big Thanks to hkxPack java Authors research <3 )
- // Revision:
- // Purpose: hk_2011.1.0-r1 (Around 2012 // first or Second Havok VISION bundle)
- //--------------------------------------
- ///**** CHANGEto 0 or Offset of hkHdr WaaW 57E057E0
- FSeek(54324);
- BigEndian();
- struct hkHdrFlags
- {
- //ubyte[4] LayoutRules
- ubyte uk;// no.# Flags ? = 4
- ubyte uk1;
- ubyte Endianness; // 01 = BE 00 = LE (Bool)
- ubyte Platform; // ?? 01 = PS3 (Couldbe wrong, or swap with one of above flag)
- };
- int32 classNameOffsetBegin( int32 &num )
- {
- return num ;
- };
- string getString()
- {
- local string s;
- return s;
- };
- local int32 clsNmOff2;
- local int32 dataOffset;
- local int64 dataffset2;
- typedef struct
- {
- //local int64 previousOffset = FTell();
- dataffset2 = FTell() + 48;
- char sectionHdr[16];
- int32 magicFF;
- int32 anotherOffset; // ???
- }classTypes <read=getSectionTypes>;
- typedef struct
- {
- FSeek(dataffset2);
- char sectionHdr[16];
- int32 magicFF;
- int32 SameAsTypesOffset; // ???
- int32 idk1;
- int32 idk2;
- int32 idk3;
- int32 idk4;
- int32 idk5;
- int32 idk6;
- }dataSection <read=getSectionData>;
- typedef struct
- {
- char sectionHdr[16];
- int32 magicFF;
- int32 dataOffset_;
- dataOffset = dataOffset_;
- int32 data1Offset;
- int32 data2Offset;
- int32 data3Offset;
- int32 data4Offset;
- int32 data5Offset;
- int32 dataEndOffset;
- }classNames <read=getSection>;
- typedef struct
- {
- char Magic[8];
- /// This is a user settable tag.
- int32 m_userTag;
- /// Binary file version. Currently 9
- int32 m_fileVersion;
- /// The structure layout rules used by this file.
- //ubyte m_layoutRules[4];
- hkHdrFlags Flags; // ubyte[4]
- /// Number of packfilesections following this header.
- int32 m_numSections;
- /// Where the content's data structure is (section and offset within that section).
- int32 m_contentsSectionIndex;
- int32 m_contentsSectionOffset;
- /// Where the content's class name is (section and offset within that section).
- int32 m_contentsClassNameSectionIndex;
- //*** Start of File + 0x8 Header + offset = classname section, incl Hdr, Int32 mystery, up to magic "FF"
- int32 m_contentsClassNameSectionOffset;
- /// Future expansion
- char m_contentsVersion[16];
- int32 misc;
- int32 magicFFFFF;
- }Header <read=getSectionHdr>;
- string getSection( classNames &cls )
- {
- return cls.sectionHdr;
- }
- string getSectionTypes( classTypes &cls )
- {
- return cls.sectionHdr;
- }
- string getSectionHdr( Header &cls )
- {
- return cls.m_contentsVersion;
- }
- string getSectionData( dataSection &cls )
- {
- return cls.sectionHdr;
- }
- struct old
- {
- Header header;
- };
- Header hkHeader;
- classNames hkClassNames;
- classTypes hkClassTypes;
- dataSection hkData;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement