The rules have been updated, read them now: Rules!
The Original Forum. Game archives, full of resources. How to open them? Get help here.
-
AlphaTwentyThree
- double-veteran

- Posts: 984
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 75 times
- Been thanked: 640 times
Post
by AlphaTwentyThree » Fri Oct 01, 2010 8:09 pm
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
-
Acewell
- VIP member

- Posts: 1329
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2683 times
- Been thanked: 836 times
Post
by Acewell » Sun Oct 03, 2010 4:33 am
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.
-
Acewell
- VIP member

- Posts: 1329
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2683 times
- Been thanked: 836 times
Post
by Acewell » Fri Oct 08, 2010 6:18 am
AlphaTwentyThree wrote:This is a QuickBMS script
Okay Thanks, i wasn't 100% sure.
Jockel's tool can extract, rebuild and relink the files.
-
ginev
- n00b
- Posts: 10
- Joined: Mon Feb 15, 2016 11:53 am
Post
by ginev » Wed Oct 05, 2016 8:06 pm
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: 4
- Joined: Thu Jan 09, 2020 4:34 am
Post
by StrangeUsernames » Sat Jan 11, 2020 3:13 am
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.