-
Notifications
You must be signed in to change notification settings - Fork 44
SOBJECT and MOBJECT file formats
These files are slightly different from each other but similar enough to list them on one page.
I will write more about them later :).
`//-------------------------------------- //--- 010 Editor v5.0 Binary Template // // File: *.SOBJECT *.MOBJECT // Author: Liam Mitchell // Revision: 0 // Purpose: To read / parse the SOBJECT and MOBJECT // file formats used in Twelve Sky and other Alt1 Games. //--------------------------------------
// Structure for quest info record
typedef struct {
uint uncompressedSize;
uint compressedSize;
byte data[compressedSize];
} compressedData <size=SizeCompressedData>;
int SizeCompressedData( compressedData &r ) { return 8 + // base size of the struct ReadUInt(startof(r)+4); // size of the compressed data }
typedef struct { uint _1; // Usually 1 // Mesh Compressed Object... compressedData model; uint textureUncompressedPlusPaddingSize; // ??? Seems to be size of texture uncompressed + 8 compressedData texture; // Just a compressed DDS Texture DXT1 uint _2; // Seems to always be 0 uint _3; // Seems to always be 0 } record;
LittleEndian(); uint count; record records[count] <optimize=false>; `