Jump to content

Wangan Midnight [PS3] .dat .toc archive


Recommended Posts

I'm interested in car models from Wangan Midnight PS3 which was made by Genki, the main devs of Tokyo Xtreme Racer (Shutokou Battle in Japan) games. I was wonderin if anyone can look into tis sample dat archive for dumping assets, and I've seen in archived forum of xentax regarding that game topic and found some quickbms script of it.

Sample WMN.dat

Sample toc file

Edited by UndercoverBoy833
Link to comment
Share on other sites

  • UndercoverBoy833 changed the title to Wangan Midnight [PS3] .dat .toc archive

I tried to use TXRExtractor to extract Wangan Midnight PS3 archive but it gave me unsupported archive error. Does it identify the legal copy?

Link to TXRExtractor: https://github.com/fatalhalt/TXRExtractor

image.png.642c6eb524a55d66cdeba9065b3c7e2c.png

In the meantime, I found the xentax archive about this

https://web.archive.org/web/20230513170928fw_/https://forum.xentax.com/viewtopic.php?t=12775

 

i also found the bms script of Wangan midnight PS3

# Wangan Midnight
# script for QuickBMS http://quickbms.aluigi.org

open FDDE "TOC"

idstring "BLDh"
get ZERO long
savepos NEXT_OFFSET
get TOC_SIZE asize
for NEXT_OFFSET = NEXT_OFFSET < TOC_SIZE
    goto NEXT_OFFSET
    getdstring TYPE 4
    get SIZE long
    savepos OFFSET
    xmath NEXT_OFFSET "OFFSET + SIZE"

    if TYPE == "def "
        get DUMMY long
        get FILES long
        get DUMMY longlong
        get ALIGN long

    elif TYPE == "inf "
        for i = 0 < FILES
            get OFFSET long
            get ZSIZE long
            get SIZE long
            get DUMMY long
            get ZERO long
            get ZERO long
            getdstring DUMMY7 0xc
            get ZERO long

            math OFFSET * ALIGN
            putarray 0 i OFFSET
            putarray 1 i ZSIZE
            putarray 2 i SIZE
        next i

    elif TYPE == "tbl "
        for i = 0 < FILES
            get NAME string
            putarray 3 i NAME
        next i
    endif
next

open FDDE "DAT"
math CHUNK_SIZE = 0x40000

for i = 0 < FILES
    getarray OFFSET 0 i
    getarray ZSIZE  1 i
    getarray SIZE   2 i
    getarray NAME   3 i

    if SIZE == 0
        log NAME OFFSET ZSIZE
    else
        goto OFFSET
        idstring "GARC"
        get DUMMY long
        idstring "zlib"
        get SIZE long
        idstring "inf "
        get TYPE_SIZE long
        getdstring DUMMY TYPE_SIZE
        idstring "dat "
        get ZSIZE long
        savepos OFFSET

        putvarchr MEMORY_FILE SIZE 0
        log MEMORY_FILE 0 0
        append
        for MEM_SIZE = 0 < SIZE
            goto OFFSET
            padding 4
            get CHUNK_ZSIZE long
            get ZERO long
            savepos OFFSET
            clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE
            math OFFSET + CHUNK_ZSIZE
            get MEM_SIZE asize MEMORY_FILE
        next
        append

        log NAME 0 SIZE MEMORY_FILE
    endif
next i

If anyone have tried this tool, I'd appreciate your response because I wanted to extract the specific car model.

Link to comment
Share on other sites

5 hours ago, swiftlie said:

Your files look encrypted. Maybe try an other version.

unfortunately, that's the only version of TXRExtractor tool I know in github for ripping Wangan Midnight PS3. I also left the archived xentax forum link regarding this game topic, but I didn't understood what the topic creator and others did.

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