Jump to content

[PSX] Batman & Robin (.MCD)


Sassarai
Go to solution Solved by Rabatini,

Recommended Posts

  • Engineer
Posted (edited)

Well, cant find any toc in slus or MCD file.
Maybe BloodRaynare, can find as per he/she is better digger than I.

I just find some LNZP inside them, wich means that have some sort of LZ custom compression.

A workaround to extract those LZNP

 

# Script by Rabatini (Luke)
# BATMAN AND ROBIN PSX (.MCD)
# Version 0.1b

findloc OFFSET string "LZNP" 0 "" 0
math i = 0
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET string "LZNP" "" 0

     if NEXT_OFFSET == ""

        get SIZE asize
    else
        math SIZE = NEXT_OFFSET

    endif
    math SIZE -= OFFSET
    string NAME p= OFFSET SIZE i
    STRING PATH = NAME
    log "" OFFSET SIZE
    math i += 1
    math OFFSET = NEXT_OFFSET

while NEXT_OFFSET != ""

 

Edited by Rabatini
Link to comment
Share on other sites

I'm not sure about the compression, but the TOC is the first 0x800 bytes of each MCD file.  Each entry is 8 bytes: 2 bytes for size (* 0x800), 2 bytes for start block (* 0x800), then 4 bytes for name.

 

Link to comment
Share on other sites

  • Engineer
  • Solution
Posted (edited)
4 hours ago, Sassarai said:

Hi thanks for the help.

I did extract some LZN files.

is this compressed? how can i descompressed  it?

Could you help?

thanks in advance

 

00000002.zip 24.85 kB · 1 download

I still haven't been able to find any logic in TOC, even with DkDave's comment. The decompression, I remember seeing it before, in the past.

Anyway, I've attached the decompressor; just use the .bat file or command in cmd to use it
Works with LZNP files. (with LZNP magic)


b@0000000000.png.0015b64a8301dcb9cf6cec28dff414af.png9@0000000000.png.72105e5b00b908103853159b8d10e7d7.pngdescompressed@0000000000.png.a1cfc262f779c4b5a33e0742a52246cc.png

 

LZNP-Decompressor.rar

Edited by Rabatini
Link to comment
Share on other sites

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...