Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

Kuroko no Basuke - -pak files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Honoire
ultra-n00b
Posts: 5
Joined: Sat Aug 04, 2012 11:29 am

Kuroko no Basuke - -pak files

Post by Honoire »

Last time you guys did a great job while supporting with Corpse Party, this time it's a different game.

After searching for a while I found the usual .cpk file, which contained a lot of .bins, a sound folder and another folder filled with .pak files. Now, I'm not really into extracting/repack tools creation but I was stucked with a similar problem with .pac files, which I think are archives like the .pak ones - judging by the size, I'm quite sure these are text-based. Since they're very small I believe it's possible to leave a sample here, just to let someone of you play a little with it. If it's possible to open and repack them somehow, it would be of great help. Thanks in advance, hope it isn't too much of a bother.
You do not have the required permissions to view the files attached to this post.
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 1183 times
Contact:

Re: Kuroko no Basuke - -pak files

Post by aluigi »

try the following and let me know how works with the other files:

Code: Select all

# Kuroko no Basuke
# script for QuickBMS http://quickbms.aluigi.org

get SIZE asize
callfunction EXTRACT_OFS3

startfunction EXTRACT_OFS3
    idstring "OFS3"
    get DUMMY long
    get NUM short
    get DUMMY short
    get NAMES_OFF long
    savepos BASE_OFF
    math NAMES_OFF += BASE_OFF
    math NAMES_OFF_LIMIT = SIZE
    math NAMES_OFF_LIMIT += BASE_OFF
    math NAMES_OFF_LIMIT -= 0x10
    get FILES long
    for i = 0 < FILES
        get OFFSET long
        get SIZE long
        math OFFSET += BASE_OFF

        if SIZE != 0
            if NAMES_OFF < NAMES_OFF_LIMIT
                savepos TMP
                goto NAMES_OFF
                get NAME string
                savepos NAMES_OFF
                goto TMP
            else
                set NAME string ""
            endif

            savepos TMP
            goto OFFSET
            getdstring SIGN 4
            if SIGN == "OFS3"
                goto OFFSET
                callfunction EXTRACT_OFS3
            else
                log NAME OFFSET SIZE
            endif
            goto TMP
        endif
    next i
endfunction
Honoire
ultra-n00b
Posts: 5
Joined: Sat Aug 04, 2012 11:29 am

Re: Kuroko no Basuke - -pak files

Post by Honoire »

Worked with all the .pak files and with .pk too, thank you.
At this time I'm a little concerned about the content of them, which seems to be a bunch of .trb files (first time I encounter these but, I suppose they're related to bigger image/model files) - in the end, no text to be found. Which is a little weird considering this is a game with a lot of text and dialogues.
Post Reply