knot126 / Marmalade-Modding

Some quickly made tools working with games made with the Marmalade SDK
4 stars 0 forks source link

Bro I failed to dump the .s3e headers #1

Open Shawn102938 opened 1 week ago

Shawn102938 commented 1 week ago

Game Gunshipbattle:3D helicorpters

error: EXTENDED HEADER extended header length = 0x4fc47180 Traceback (most recent call last): File "C:\Users\Administrator\Desktop\Marmalade-Modding-trunk\dump_s3e_header.py", line 200, in main() File "C:\Users\Administrator\Desktop\Marmalade-Modding-trunk\dump_s3e_header.py", line 106, in main ext_header = memoryview(f.read(ext_length - 4)).cast("I") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: memoryview: length is not a multiple of itemsize

Can you please help me with it?

Shawn102938 commented 1 week ago

I want the elf contents of it , but i don't know how to do

knot126 commented 1 week ago

Hi,

Some older S3E files don't contain an extended header, which I did try to detect but not well. I pushed an update that should be a bit better at detecting when they don't so you might want to update/pull and try again.