extract files from some old beat em up oriental games

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
rafhot
ultra-n00b
Posts: 2
Joined: Tue Nov 29, 2011 4:21 pm

extract files from some old beat em up oriental games

Post by rafhot »

The contents of this post was deleted because of possible forum rules violation.
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: 654 times
Contact:

Re: extract files from some old beat em up oriental games

Post by aluigi »

script for QuickBMS:

Code: Select all

# Yainsidae
# script for QuickBMS http://quickbms.aluigi.org

idstring "JoyMax File Manager!\n"
set OFFSET 0x100
set NAME string ""
set PATH string ""
callfunction EXTRACT

startfunction EXTRACT
    goto OFFSET
    string PATH += NAME
    string PATH += /

    for
        savepos MYOFF
        get TYPE byte
        getdstring NAME 0x59
        get TSTAMP longlong
        get TSTAMP longlong
        get OFFSET longlong
        get SIZE long
        get NEXT_OFF longlong
        get DUMMY short
        if TYPE == 0
            break
        elif TYPE == 1
            if NAME != "."
            if NAME != ".."
                savepos SAVE_OFF
                callfunction EXTRACT
                goto SAVE_OFF
            endif
            endif
        elif TYPE == 2
            set FNAME string PATH
            string FNAME += NAME
            log FNAME OFFSET SIZE
        else
            break
            #print "Error: unknown type 0x%TYPE|x% at offset %MYOFF|x%"
            #cleanexit
        endif
        if NEXT_OFF != 0
            goto NEXT_OFF
        endif
    next
endfunction
there are about 10 megabytes not covered in yain.pk2 and I don't know if it's right or not
rafhot
ultra-n00b
Posts: 2
Joined: Tue Nov 29, 2011 4:21 pm

Re: extract files from some old beat em up oriental games

Post by rafhot »

thanks! it worked fine, but now inside the .pk2 the sprites are inside a file .spr, and i have tried all the extractors that google have showed to me without sucsses:(
Post Reply