ROM Hack Kyle Hyde Series ".pack" Files

King_Millez

New Member
OP
Newbie
Joined
Oct 22, 2018
Messages
1
Trophies
0
Age
27
XP
54
Country
Australia
So I've been looking into DS rom hacking and thought it'd be cool to see what I could do with the Kyle Hyde games. (Specifically Last Window). I unpacked the .nds file and inside the data folder everything seems to be packed inside ".pack" files. I've looked everywhere for a way to edit/view the contents of these files, but nothing has worked yet. If anyone has any ideas they'd be appreciated :)

I would provide an image but apparently I'm not allowed to. Cool.
 

tehwes

Member
Newcomer
Joined
Aug 19, 2010
Messages
8
Trophies
0
XP
113
Country
Tinke supports opening Last Window .pack files but only if you load the ROM directly and it must have the game code YLUP (and possibly only if the files have .PACK extension in uppercase).

I think I've figured out a more complete format of the .pack files used in the game (might be useful if anything gets to the stage where it needs repacking):

Code:
----------------------
BE = Big Endian, LE = Little Endian
4 bytes - 00 00 00 00
4 bytes - (BE) File Count
4 bytes - (BE) File start offset - 4/pointers section length
4 bytes - (BE) Memory allocation size? Seems to be the size of the whole .pack file, rounded up a bit
----------------------
File info table
----------------------
1 byte - Length of filename (single bytes)
X bytes - Filename
4 bytes - (BE) File length
| repeat |
----------------------
File data starts here, concatenated.
----------------------
Many of the files contained (.bin files in *_Text.pack, .ifb, .ebp, .iba, .bpg) are compressed like this:
----------------------
4 bytes - (LE) Uncompressed length
X-4 bytes - ZLib Compressed content

  • Many of the values seem to be Big Endian, not sure why
  • Many of the files are compressed with ZLib; they have x789C near the start which are the Default Compression flags.
    • You can use Kuriimu here. Tools > Compression > General > ZLib > Decompress (you'll have to first remove the first 4 bytes for the Uncompressed length)
    • Once decompressed the text is readable in ShiftJIS
I've attached some sample decompressed files.
 

Attachments

  • lastwindow-sample.rar
    71.5 KB · Views: 154
  • Like
Reactions: Poa

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Well start walking towards them +1