ROM Hack Learning rom hacking on Metal Saga

  • Thread starter Thread starter Morm91
  • Start date Start date
  • Views Views 5,549
  • Replies Replies 21
Thanks Normmatt !

But do you know which "pack_data.pak" is red in this log ? Because i don't find any at 0x27E356C...
And how do you get this log ? With the debug version of NO$GBA ?

I definitely still have a lot to learn :)


0x27E356C is just a FILE pointer. the second argument is the place its read to in memory and third is number of bytes read.

and that /pack_data.pak is the one in root of file system hence the single /

EDIT: The log is from my custom desmume.
 
I've almost figured it out.
Heres what i found :
The first 2 bytes are the number of files in the pack (offset: 0x00000000)
The 4 next are the offset of the pointer table for the files content (offset: 0x00000002)
The 2 next are the offset of another table (offset: 0x00000006)
After that and until the offset of this "other table", there are the files names (offset: 0x00000008)
After that, there is this "other table". (offset: 0x00000034)
After that, there is the pointer table for the files content (offset: 0x0000004A)
And finally after that, there are the files contents (until the end). (offset: 0x00000062)

So the last thing i have to find, is the usage of this "other table". It seems to contain offset for the file names but not just that and i dont find any logical sequences. Here is a screenshot with this "other table" highlighted in blue :
pack_hex.png


Any hint ? :)
 

Site & Scene News

Popular threads in this forum