One Piece Pirate Warriors 3 (*.g1l)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

One Piece Pirate Warriors 3 (*.g1l)

Post by happyend »

Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: One Piece Pirate Warriors 3 (*.g1l)

Post by Allen »

Code: Select all

#script for quickbms
# By Allen
#2015-9-2 One Piece Pirate Warriors 3 (.g1l)

idstring "_L1G0000"
get fsize long
get hdSize long
get dummy long
get numFiles long
set flag long 0
for i = 0 < numFiles
    get offset long
    savepos TMP
    if offset != hdsize
        math flag = 1
    else
        math flag = 0
    endif
    if i == 0
        math flag = 1
    endif
   
    if flag == 1
        goto offset
        getdstring type 4
        if type == "KOVS"
            get size long
            math size += 0x20
            set name string i
            string name += .
            string name += type
            log name offset size
        elif type == "ATSL"
            savepos base
            math base -= 4
            goto 16 0 SEEK_CUR
            get numEntry long
            goto 16 0 SEEK_CUR
            math numEntry /= 2
            for j = 0 < numEntry
                get id long
                get soffset long
                math soffset += base
                get size long
                goto 28 0 SEEK_CUR
                set name string i
                string name += /
                string name += j
                string name += .
                string name += "KOVS"
                log name soffset size
            next j
        endif
    endif
    goto TMP
next i
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: One Piece Pirate Warriors 3 (*.g1l)

Post by happyend »

Perfect script,GJ Allen,THX!!!
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: One Piece Pirate Warriors 3 (*.g1l)

Post by makc_ar »

Mask *.g1l?
futballo
Posts: 3
Joined: Fri Apr 24, 2015 8:36 pm

Re: One Piece Pirate Warriors 3 (*.g1l)

Post by futballo »

After using the code I get a bunch of "KOVS" files. I believe those are ogg files but with a weird header?
I would like to listen to these files and then replace them with my own. I dislike the ost of the original game and I would like to play it with the anime BGM. How could I do that?