Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

Post by AlphaTwentyThree »

Hi everybody!
I just wrote a script that extracts the files from the two big PK2 containers using the HSH information file. Use the script on the HSH.
Hope I could help someone with this. :)

Code: Select all

open FDSE "PS2PAK_0.PK2" 1
open FDSE "PS2PAK_1.PK2" 2

get FSIZE asize
DO
    getCT NAME string 0x20
    getDstring FILE 1
    get DUMMY byte
    getCT SIZE string 0x20
    set NUM SIZE
    callfunction STR2NUM 1
    set SIZE NUM
    getCT OFFSET string 0x0D
    set NUM OFFSET
    callfunction STR2NUM 1
    set OFFSET NUM
    get DUMMY byte
    savepos MYOFF
    if FILE == "0"
        log NAME OFFSET SIZE 1
    elseif FILE == "1"
        log NAME OFFSET SIZE 2
    endif
WHILE MYOFF != FSIZE

startfunction STR2NUM
    set TONUM 0
    strlen l NUM
    for i = 0 < l
        set EXP l
        math EXP -= i
        math EXP -= 1
        set B 0xA
        math B p EXP
        getVarChr T NUM i
        math T -= 0x30
        math T *= B
        math TONUM += T
    next i
    set NUM TONUM
endfunction
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

Post by Acewell »

Thanks for sharing your script but how do you use it?
Does it do the same thing as the tool Jockel released HERE about 5 years ago?
Last edited by Acewell on Wed Apr 11, 2012 5:43 am, edited 2 times in total.
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

Post by AlphaTwentyThree »

This is a QuickBMS script. Save it in a text file as *.bms and open with QuickBMS (http://aluigi.altervista.org/papers.htm#quickbms)
I don't know about the other tools.
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

[PS2] Star Wars: Ep III: Revenge of the Sith *.hsh/*.pk2

Post by Acewell »

AlphaTwentyThree wrote:This is a QuickBMS script
Okay Thanks, i wasn't 100% sure. :D

Jockel's tool can extract, rebuild and relink the files.
ginev
n00b
Posts: 10
Joined: Mon Feb 15, 2016 11:53 am

Re: Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

Post by ginev »

Ok i extracted the pk2 files.Now how to open the pak files since i think this files contain the models.Waht to do now?
StrangeUsernames
ultra-n00b
Posts: 6
Joined: Thu Jan 09, 2020 4:34 am

Re: Star Wars: Episode III: Revenge of the Sith *.hsh/*.pk2

Post by StrangeUsernames »

Can you share with me all the textures and models you got. How did you get them? I tried using NinjaRipper running pcsx2 and don't want to go through the hassel.
Post Reply