Jump to content

Recommended Posts

Posted

Kindly asking for a quickbms script that can extract the contents of the memfs file attached.effect.rar

 

I tried using this script to do it:

# Jakou no Lyla: Allure of Musk (memfs/membody)
#   experimental, there are more filenames than files

open FDDE "memfs"
open FDDE "membody" 1

idstring "RSON"
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
for i = 0
    get TYPE1 byte
    get TYPE2 byte
    get TYPE3 byte
    get TYPE4 byte
    if TYPE4 & 0x20
    else
        break
    endif
    get OFFSET long
    if TYPE4 & 0x10
    else
        get SIZE long
        putarray 0 i OFFSET
        putarray 1 i SIZE
        math i + 1
    endif
next
math FILES = i
goto -4 0 SEEK_CUR
for i = 0
    get TYPE byte
    if TYPE != 0x88
        break
    endif
    get NAMESZ byte
    getdstring NAME NAMESZ
    get ZERO short
    set NAME unicode NAME
    putarray 2 i NAME
next i
for i = 0 < FILES
    getarray OFFSET 0 i
    getarray SIZE   1 i
    getarray NAME   2 i
    log NAME OFFSET SIZE 1
next i

 

And even this one:

idstring "RSON"
get ZERO long
get X short
get Y short
get X short
get Y short
get BITS long
get ZSIZE long
math ZSIZE - 6
goto 0x22
get SIZE long
reverselong SIZE
savepos OFFSET
get NAME basename
string NAME p "%s_%dx%dx%d.raw" NAME X Y BITS
clog NAME OFFSET ZSIZE SIZE

 

but it gives me the attached error everytime. memfsextractionerror.thumb.png.bfeb375176579262e448668019ffde53.png

Thanks in advance to anyone who helps.

  • ikskoks changed the title to Matsurika no Kei memfs file - help with quickbms script

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...