The Forum is up for sale: XeNTaX Forum looking for new owner

Mortal Kombat Armageddom PS2

Post questions about game models here, or help out others!
Post Reply
User avatar
dswd2015
veteran
Posts: 87
Joined: Thu Sep 03, 2015 10:33 pm
Has thanked: 13 times
Been thanked: 7 times

Mortal Kombat Armageddom PS2

Post by dswd2015 »

How to extract this game? mkda.pak. Script for this? mkda.pak, script for this format?
You do not have the required permissions to view the files attached to this post.
Hyder61112
ultra-n00b
Posts: 4
Joined: Sun Jul 03, 2016 9:37 pm
Has thanked: 1 time

Re: Mortal Kombat Armageddom PS2

Post by Hyder61112 »

dswd2015 wrote:How to extract this game? mkda.pak. Script for this? mkda.pak, script for this format?
of course. this is the quick bms script

Code: Select all

# Mortal Kombat Armageddon "ssf" (script 0.1.1)
# script for QuickBMS http://quickbms.aluigi.org

math XTYPE = 0
get BASE_SIZE asize
callfunction SEC_EXTRACT

startfunction SEC_EXTRACT
    savepos BASE_OFF
    idstring " CES"
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get FILES long
    endian guess FILES
    get SSF_SIZE long
    if XTYPE == 0
        if SSF_SIZE != BASE_SIZE
            math XTYPE = 1
        endif
    endif
    if XTYPE != 0
        get SSF_SIZE long
    endif

    for i = 0 < FILES
        #http://ps23dformat.wikispaces.com/Mortal+Kombat+Armageddon
        #00 00 00 01- Identification File
        #00 00 00 02-Type 1 Texture File
        #00 00 00 03-Type 2 Texture File
        #00 00 00 04-Mesh File
        #00 00 00 05-Ragdoll Mesh File Animations??
        #00 00 00 06-Nested SEC File
        #00 00 00 07-Animation information for Camera?? Also appears to be using Big-Endian
        #00 00 00 08-Nested SEC File
        #00 00 00 0A-Mesh Weight File

        get TYPE long
        get OFFSET long
        get SIZE long
        if XTYPE != 0
            get DUMMY long
        endif

        if OFFSET != 0
            if TYPE == 6
                math TYPE = 1
            endif
            if TYPE == 8
                math TYPE = 1
            endif

            math OFFSET += BASE_OFF
            savepos TMP
            goto OFFSET
            get SIGN long
            if SIGN == 0x20434553   # " CES"
                math TYPE = 1
            elif SIGN == 0x53454320 # "SEC "
                math TYPE = 1
            else
                math TYPE = 0
            endif
            goto TMP

            if TYPE == 1
                savepos TMP
                goto OFFSET
                math BASE_SIZE = SIZE
                callfunction SEC_EXTRACT
                goto TMP
            else
                log "" OFFSET SIZE
            endif
        endif
    next i
endfunction
User avatar
dswd2015
veteran
Posts: 87
Joined: Thu Sep 03, 2015 10:33 pm
Has thanked: 13 times
Been thanked: 7 times

Re: Mortal Kombat Armageddom PS2

Post by dswd2015 »

Hyder61112 wrote:
dswd2015 wrote:How to extract this game? mkda.pak. Script for this? mkda.pak, script for this format?
of course. this is the quick bms script

Code: Select all

# Mortal Kombat Armageddon "ssf" (script 0.1.1)
# script for QuickBMS http://quickbms.aluigi.org

math XTYPE = 0
get BASE_SIZE asize
callfunction SEC_EXTRACT

startfunction SEC_EXTRACT
    savepos BASE_OFF
    idstring " CES"
    get DUMMY long
    get DUMMY long
    get DUMMY long
    get FILES long
    endian guess FILES
    get SSF_SIZE long
    if XTYPE == 0
        if SSF_SIZE != BASE_SIZE
            math XTYPE = 1
        endif
    endif
    if XTYPE != 0
        get SSF_SIZE long
    endif

    for i = 0 < FILES
        #http://ps23dformat.wikispaces.com/Mortal+Kombat+Armageddon
        #00 00 00 01- Identification File
        #00 00 00 02-Type 1 Texture File
        #00 00 00 03-Type 2 Texture File
        #00 00 00 04-Mesh File
        #00 00 00 05-Ragdoll Mesh File Animations??
        #00 00 00 06-Nested SEC File
        #00 00 00 07-Animation information for Camera?? Also appears to be using Big-Endian
        #00 00 00 08-Nested SEC File
        #00 00 00 0A-Mesh Weight File

        get TYPE long
        get OFFSET long
        get SIZE long
        if XTYPE != 0
            get DUMMY long
        endif

        if OFFSET != 0
            if TYPE == 6
                math TYPE = 1
            endif
            if TYPE == 8
                math TYPE = 1
            endif

            math OFFSET += BASE_OFF
            savepos TMP
            goto OFFSET
            get SIGN long
            if SIGN == 0x20434553   # " CES"
                math TYPE = 1
            elif SIGN == 0x53454320 # "SEC "
                math TYPE = 1
            else
                math TYPE = 0
            endif
            goto TMP

            if TYPE == 1
                savepos TMP
                goto OFFSET
                math BASE_SIZE = SIZE
                callfunction SEC_EXTRACT
                goto TMP
            else
                log "" OFFSET SIZE
            endif
        endif
    next i
endfunction

Thanks for help me.
Post Reply