ROM Hack Learning rom hacking on Metal Saga

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,189
Country
New Zealand
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.
 

Morm91

Member
OP
Newcomer
Joined
Aug 26, 2014
Messages
12
Trophies
0
Age
36
Location
Paris
XP
43
Country
France
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

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @OctoAori20, Thank you. Hope you're in good spirits today like I am. :)