Jump to content

Wangan Midnight [PS3] .dat .toc archive


UndercoverBoy833
Go to solution Solved by UndercoverBoy833,

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

7 hours ago, Thief1987 said:

Where did you get these files? Maybe incorrectly ripped? Because they are certaunly encrypted or just corrupted, and they shouldn't, because tools for unpacking doesn't have any decrypt algorithms.

I downloaded the game from the internet but I cannot tell you which website I got it from. So TXRExtractor tool is only supported physical copy I guess.

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution

okaayyyyy... turns out my previous copy of Wangan Midnight PS3 I downloaded from was a very bad copy which is why I got this error, so I downloaded another copy and now it finally works with TXRExtractor right now. At least I can finally open new topic for ripping Wangan Midnight PS3 model/textures.

 

image.png.3755e175df116c650b8337807058d3fb.png

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