[Xbox] Star Wars: Ep III - RotS (*.pak)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

[Xbox] Star Wars: Ep III - RotS (*.pak)

Post by Acewell »

Hi, i have some *.pak archives that aren't compressed and i'm hoping someone can unpack the files with names and extensions.

Samples

Code: Select all

https://mega.nz/#!zo13jYAK!5tYYjirEKMCzabSfHBpreCZvry5H-as5WM0JWuWq-p4


Thanks for any help! :D

*update*
so far the best solution is to use QuickBMS to split the pak files at header byte patterns with this script
viewtopic.php?p=10024#p10024

for msh models
A1 03 C2 F8

for stx (dds) textures
53 54 58 00
Last edited by Acewell on Thu Jan 07, 2016 2:36 am, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Star Wars: Ep III - RotS (*.pak)

Post by aluigi »

Chaotic and complex format, I pass.
ggctuk
Posts: 33
Joined: Thu Jan 21, 2016 9:19 pm

Re: [Xbox] Star Wars: Ep III - RotS (*.pak)

Post by ggctuk »

Where exactly do those offsets go in the script? Into "if NEXT_OFFSET" part?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: [Xbox] Star Wars: Ep III - RotS (*.pak)

Post by Acewell »

You replace a1b2 with whatever you are looking for in the file.

for models

Code: Select all

findloc OFFSET binary "\xA1\x03\xC2\xF8"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "\xA1\x03\xC2\xF8" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""



for textures

Code: Select all

findloc OFFSET binary "\x53\x54\x58\x00"
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "\x53\x54\x58\x00" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE -= OFFSET
    savepos TMP
    goto OFFSET
    getdstring DUMMY 0x40
    getdstring NAME 40
    goto TMP
   string NAME + ".stx"
   log NAME OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""



Are you still looking for characters? if so i guess you didn't read my last post on FP..
Last edited by Acewell on Tue Apr 26, 2016 5:47 am, edited 1 time in total.
ggctuk
Posts: 33
Joined: Thu Jan 21, 2016 9:19 pm

Re: [Xbox] Star Wars: Ep III - RotS (*.pak)

Post by ggctuk »

It might have gotten buried (you only get an e-mail for the first reply since your last visit). Characters aren't the only thing I'm looking for though: the SWBFII world models can only be done in so many configurations when you make a map, so I'd like to try extracting a few environment models from this game and using them in SWBF2 (IE to recreate an Invisible Hand map)