-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hey,
I'm trying to load in a binary level from the decomp in this, and im getting a 'list index out of range' exception, inside get_u8 when accessing data[offset]
I'm loading in ancient lake, from the decomplication:
Decomplication\assets.vanilla\us.v77\levels\models\dino_domain\ancient_lake.bin
Looking at the code, we first get the u32 located at 0x00 which is the texture offset.
If i manually read the first 4 bytes of ancient_lake.bin i get 49644 in decimal in little endian, or 3972071424 in big endian.
The tool then uses this offset to read the subsequent texture data from.
But the ancient_lake.bin file is only 25kb, and even with the smaller offset, that's referencing something outside of the file.
The max offset appears to be ~24896.
Anything I'm missing?