Acewell wrote:i don't know where you getting these from though
get DUMMY long
get OFFSET long
get SIZE long
All the offsets were supposed to be in the file, right?
Code: Select all
00003300 00 00 01 00 04 00 00 00 01 00 00 00 00 00 80 3F ..............€?
00003310 74 04 00 00 7C F9 CC EC 0F 09 00 00 7C F9 40 F2 t...|ùÌì....|ù@ò
00003320 0F 09 00 00 7C F9 A5 F1 0F 09 00 00 7C F9 CC EC ....|ù¥ñ....|ùÌì
00003330 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
00003340 6E 3E 00 7F CC F1 5C E9 0F 09 00 00 CC F1 CB EF n>..Ìñ\é....ÌñËï
00003350 0F 09 00 00 CC F1 14 EF 0F 09 00 00 CC F1 5C E9 ....Ìñ.ï....Ìñ\é
00003360 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
00003370 6F 3E 00 7F CE FA A3 E5 0F 09 00 00 CE FA 23 ED o>..Îú£å....Îú#í
00003380 0F 09 00 00 CE FA 4D EC 0F 09 00 00 CE FA A3 E5 ....ÎúMì....Îú£å
00003390 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
000033A0 6F 3E 00 7F CE FA A3 E5 0F 09 00 00 CE FA 23 ED o>..Îú£å....Îú#í
000033B0 0F 09 00 00 CE FA 4D EC 0F 09 00 00 CE FA A3 E5 ....ÎúMì....Îú£å
000033C0 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
000033D0 6F 3E 00 7F CC F1 5C E9 0F 09 00 00 CC F1 CB EF o>..Ìñ\é....ÌñËï
000033E0 0F 09 00 00 CC F1 14 EF 0F 09 00 00 CC F1 5C E9 ....Ìñ.ï....Ìñ\é
000033F0 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
00003400 6F 3E 00 7F 7E F5 18 E3 0F 09 00 00 7E F5 53 EB o>..~õ.ã....~õSë
00003410 0F 09 00 00 7E F5 69 EA 0F 09 00 00 7E F5 18 E3 ....~õiê....~õ.ã
00003420 0F 09 00 00 00 00 00 00 00 F0 00 00 00 00 00 00 .........ð......
What you're seeing here is the first bytes of a files stored in an .PKG archive. If I don't know where the offsets of these file are then in any case I'm screwed if I don't know at least a bit of reverse engineering file formats. I've already took the risk of doing so anyway, and the results weren't pretty.
I tried to make the script extract the files, but instead of seeking through an offset of a file stored in an archive file, it got beyond even the filesize(more than 1GB to be exact). Now all I'm doing is making several revisions to make sure the script works correctly with the file. And don't even get me started with detecting the filenames, which I'm currently struggling with right now.
EDIT: Now it finally got the filenames right. All I did was to move "goto 0x40" out of the "for i = 0 < FILES" section. Still, figuring out the archive will be a challenge.