Jump to content

Mirai Nikki the 13th Diary Holder Re WRITE (PSP) res.ptd archive


SK91

Recommended Posts

I wanted to get some practice with poking around with games until I can edit the text, kind of foolish since I can't code and make decompression programs. After all the memory viewing to see how the text was displayed, I didn't bother to check if the game files were packed in an archive or not (they were).res.7z 

Link to comment
Share on other sites

  • 2 weeks later...

my research of peta file 

Spoiler

archive using chunk system of 0x800, so each file should start at 0x800, 0x1000 and so...
archive is little-endian

-header- 32b
4b - 'PETA' header
4b - pointer to first file
4b - pointer to end of peta file
4b - pointer to folders table header
4b - total files 
2b - total folders + 1
2b? - unk always 01 00
8b - zero padding
256b - obfuscation bytes table

-folders table header-
4b - pointer to files
76b - zero padding

-folders table-
80b per each folder:
    4b - pointer to first file in folder
    4b - first file number
    4b - files in folder
    4b - zero padding
    64b - folder name zero-terminated

-files table-
64b per each file:
    4b - pointer to file
    4b - file size
    48b - file name zero-terminated

 

Edited by r88
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...