Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------------
- //--- 010 Editor v5.0 Binary Template
- //
- // File:
- // Author:
- // Revision:
- // Purpose:
- //--------------------------------------
- int GetOffset(uint32 offset)
- {
- if (offset == 0)
- return 0;
- else
- return offset & 0x0fffffff;
- }
- void CSeek(uint32 offset)
- {
- FSeek(offset&0xFFFFFFF+0x10);
- }
- void GSeek(uint32 offset)
- {
- FSeek(offset&0xFFFFFFF+0x2010);
- }
- BigEndian();
- struct{
- uint32 RSC7;
- uint32 RSC7version;
- uint32 RSC7system_flag;
- uint32 RSC7graphics_flag;
- local int CPUBLOCKSTART=0x10;
- struct{
- struct {
- uint32 VTable;
- uint32 BlockMapAddress;
- uint32 ShaderGroup;
- uint32 SkeletonData;
- struct{
- float x;
- float y;
- float z;
- float w;
- }Vectors[3]<optimize=false>;;
- long modelCollection;
- long lodCollections[3];
- struct{
- float x;
- float y;
- float z;
- float w;
- }maxVector<optimize=false>;;
- uint32 unk1;
- uint32 neg[3];
- float unk2;
- uint32 unks[5];
- FSeek(0x10+(modelCollection&0xFFFFFFF));
- struct
- {
- uint32 modelCollectionPointer;
- uint16 count;
- uint16 count2;
- } modelCollection;
- FSeek(0x10+(modelCollection.modelCollectionPointer&0xFFFFFFF));
- uint32 models[modelCollection.count];
- local uint16 i;
- for(i=0; i<modelCollection.count; i++)
- {
- FSeek(0x10+(models[i]&0xFFFFFFF));
- struct
- {
- uint32 VTable;
- uint32 GeometryCollectionOffset;
- uint16 size1;
- uint16 size2;
- uint32 VectorCollectionOffset;
- uint32 MaterialCollectionOffset;
- FSeek(0x10 + (GeometryCollectionOffset&0xFFFFFFF));
- uint32 GeometryOffsetArray[4];
- for(i=0; i<4; i++)
- {
- FSeek((GeometryOffsetArray[i]&0xFFFFFFF) + 0x10);
- struct
- {
- uint32 VTable;
- uint32 null1;
- uint32 null2;
- uint32 VBOffset;
- uint32 null3;
- uint32 null4;
- uint32 null5;
- uint32 IBOffset;
- uint32 null6;
- uint32 null7;
- uint32 null8;
- uint32 indexCount;
- uint32 faceCount;
- uint16 vertCount;
- uint16 unkn_primitiveType;
- struct
- {
- FSeek((VBOffset&0xFFFFFFF) + 0x10);
- uint32 VTable;
- uint16 stride;
- uint16 unknown1;
- uint32 dataOffset;
- uint32 vertCount;
- uint32 dataOffset;
- uint32 null1;
- uint32 cpuOffset1;
- uint32 cpuOffset2;
- FSeek((dataOffset&0xFFFFFFF) + 0x2010);
- struct
- {
- float x, y, z;
- if(stride == 28)
- float w;
- uint32 color;
- float tu, tv;
- } verts[vertCount]<optimize=false>;
- } VBO;
- }geometry;
- }
- } model;
- }
- local int ok=0;
- }CPUBlock;
- FSeek(0x2000+CPUBLOCKSTART);
- struct{
- }GPUBlock;
- }xdr;
- }RSC7_Container;
Advertisement
Add Comment
Please, Sign In to add comment