Hi guys! Maybe somebody can help me with scene files.
I'm trying to avoid reading the Scene SNO records on-the-fly from the memory, so I'm trying to pre-build a database of the .scn files.
I found the structures in DarthTon's framework, but I'm not sure in a few things.
So, this is the structure of the .scn file and I have to add 0x10 to each offset because the "deadbeef" prefix of the files. Am I right?Code:class SNOScene { public: MemHeader header; // 0x000 AABB AABBBounds; // 0x010 AABB AABBMarketSetBounds; // 0x028 NavMeshDef navmesh; // 0x040 DataPtr2 Exclusions; // 0x168 DWORD pad_170[14]; // 0x170 DataPtr2 Inclusions; // 0x1A8 DWORD pad_1B0[14]; // 0x1B0 DataPtr2 MarkerSets; // 0x1E8 DWORD pad_1F0[14]; // 0x1F0 char lootlink[64]; // 0x228 DataPtr2 MapTrigEvent; // 0x268 DWORD pad_270[4]; // 0x270 NavZoneDef NavZone; // 0x280 DWORD SNOAppearance; // 0x304 DWORD SNOPhysMesh; // 0x308 };
NavMeshDef and NavZoneDef are embedded sub-structures, so that should be no problem - but what should I do with pointers, like NavZone's NavCells field ?