Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

TXR Zero specific .DAT data extraction

Featured Replies

  • Author
  • Localization

Argonaut, posted Fri Oct 24, 2014 7:34 pm (1176)


Yes, I have returned after a long hiatus for more specific extraction of TXR data, more specifically the map/car files (can't determine which one this is).

After using the script, the biggest file produced is 44MB which could 1) consist of 700kb-1MB car models which is reasonable for the games age, or 2) the entire Map model, which is another plausible explanation.

These files were produced after the script you so thankfully provided aluigi, now I would use the Model rip feature of PCSX2 but of two small problems. 1)- the Model rip feature was removed after a certain version and 2)- The game doesn't function on the version of the emulator which can rip models, but it works on the later ones PLUS this is assumed the only game which does not use backface culling as past this game, all the TXR games use it.

Sample files:


https://www.dropbox.com/s/r46016d9ztpme ... e.zip?dl=0

Cheers! :P
  • Author
  • Localization

aluigi, posted Fri Oct 24, 2014 8:23 pm (1178)


I don't know what compression algorithm is that one, but the rest of the script is the following:
Code:
comtype ??? # what algorithm?

get FILES long
    get OFFSET long
for i = 2 <= FILES
    if i == FILES
        get NEXT_OFFSET asize
    else
        get NEXT_OFFSET long
    endif
    xmath ZSIZE "NEXT_OFFSET - OFFSET"
    savepos TMP
    goto OFFSET
    get ZIP byte
    if ZIP == 0
        math OFFSET = 1
        math ZSIZE  -= 1
        log "" OFFSET ZSIZE
    else
        get SIZE threebyte
        reverselong SIZE
        math SIZE >>= 8
        math OFFSET = 4
        math ZSIZE  -= 4
        clog "" OFFSET ZSIZE SIZE
    endif
    goto TMP
    math OFFSET = NEXT_OFFSET
next i
  • Author
  • Localization

Argonaut, posted Fri Oct 24, 2014 9:16 pm (1180)


aluigi wrote:
I don't know what compression algorithm is that one, but the rest of the script is the following:
Code:
comtype ??? # what algorithm?

get FILES long
    get OFFSET long
for i = 2     if i == FILES
        get NEXT_OFFSET asize
    else
        get NEXT_OFFSET long
    endif
    xmath ZSIZE "NEXT_OFFSET - OFFSET"
    savepos TMP
    goto OFFSET
    get ZIP byte
    if ZIP == 0
        math OFFSET = 1
        math ZSIZE  -= 1
        log "" OFFSET ZSIZE
    else
        get SIZE threebyte
        reverselong SIZE
        math SIZE >>= 8
        math OFFSET = 4
        math ZSIZE  -= 4
        clog "" OFFSET ZSIZE SIZE
    endif
    goto TMP
    math OFFSET = NEXT_OFFSET
next i


Thanks for this, but it returns the error:

the variable index is invalid (-1), there is an error in QuickBMS


Any help? Cheers

(PS: beginning to understand abit of the code thanks to learning Python :) )
  • Author
  • Localization

aluigi, posted Sat Oct 25, 2014 8:36 am (1182)


That's normal, there is no compression algorithm because I don't know it :)
Code:
comtype ???
  • Author
  • Localization

Argonaut, posted Sat Oct 25, 2014 11:42 am (1185)


aluigi wrote:
That's normal, there is no compression algorithm because I don't know it :)
Code:
comtype ???


Alright, no probs, thanks for clearing this up. :idea:
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.