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

FFXI PlayOnline Tetra Master

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

FFXI PlayOnline Tetra Master

Post by finale00 »

Found this today while cleaning my hard drive. Kind of surprised, but I liked the game and thought getting the resources easily wasn't a bad deal.

It is recursively defined but there's only one level of recursion so I didn't really bother.
Though, I'm kind of interested why I couldn't make a path name by combining the FOLDER with "/" and NAME. FOLDER kept giving me some weird character.

Code: Select all

#PlayOnline TetraMaster .dat unpack
#written by Tsukihime
#script for QuickBMS http://aluigi.org/papers.htm#quickbms

for i
  get TYPE long
  if TYPE != 32768
    cleanexit
  endif
  
  getdstring FOLDER 4
  getdstring unk 8
  get STARTOFS long
  get SIZE long
  get unk long
  get unk long
  
  savepos curr
  
  goto STARTOFS
  for j
    get TYPE long
    if TYPE != 16384
      break
    endif
    getdstring NAME 12
    get OFFSET long
    get SIZE long
    get unk long
    get unk long
    
    string NAME += ".png"
    math OFFSET += STARTOFS
    log NAME OFFSET SIZE
  next j

  goto curr
next i
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 136 times

Re: FFXI PlayOnline Tetra Master

Post by WRS »

(slightly) better script to extract with correct filenames. also this game rocks.

Code: Select all

for
  savepos last
  get type long

  if type == 0x8000
    getdstring lastFolder 12
    get a long
    get b long
    get c long
    get d long
    savepos pos
    goto a

    for
      savepos last2
      get type2 long

      if type2 == 0x4000
        getdstring lastFile 12
        get a2 long
        get b2 long
        get c2 long
        get d2 long

        string NAME = "extracted_"
        string NAME += lastFolder
        string NAME += "/"
        string NAME += lastFile
        string NAME += ".png"

        math OFFSET = a
        math OFFSET += a2

        log NAME OFFSET b2
      else
        break # no more files here
      endif
    next

    goto pos
  else
    print "Done"
    cleanexit
  endif
next
Useful tool links:
pixellegolas
ultra-veteran
ultra-veteran
Posts: 423
Joined: Mon Aug 11, 2008 11:30 pm
Has thanked: 27 times
Been thanked: 15 times

Re: FFXI PlayOnline Tetra Master

Post by pixellegolas »

is there a way to grab models + animations and export yet?
Post Reply