Page 1 of 1

extract files from some old beat em up oriental games

Posted: Tue Nov 29, 2011 4:46 pm
by rafhot
The contents of this post was deleted because of possible forum rules violation.

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

Posted: Sat Dec 03, 2011 6:37 pm
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

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

Posted: Wed Dec 07, 2011 7:26 am
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:(