Users browsing this thread: 2 Guest(s)
Problem ripping some TID images
#6
Thanks a lot! I've updated my script:

Code:
# Wand of Fortune R and Reine des Fleurs TID format
#
# Written by puggsoy
# GFXtract Script (https://github.com/puggsoy/GFXtract/releases)

idstring TID
get TYPE byte

if TYPE == 0x90
    set ORDER RGBA
elif TYPE == 0x92
    set ORDER ARGB
else
    print "Unsupported type!"
    exit
endif

get FSIZE long
get OFFSET long

goto 0x08 cur
get BPC long

goto 0x08 cur
getdstring NAME 0x20
get DUMMY long
get WIDTH long
get HEIGHT long
get BPP long

get DUMMY long
get PALLEN long
get DATSIZE long
get OFFSET long

set PALOFF OFFSET
math PALOFF -= PALLEN

if PALLEN == 0
    setformat BPP ORDER
else
    setformat BPP ORDER 1 BPC PALOFF
endif

goto OFFSET
read IMG WIDTH HEIGHT
savepng IMG

You might not need it, but it's here for anybody interested.

It works for the event CG of both games and the BGs from Reine des Fleurs. It doesn't work with the WoFR BGs or RdF Event BGs though; they use DXT encoding which GFXtract doesn't currently support.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Reply
Thanked by: NonStop, Meiberu


Messages In This Thread
Problem ripping some TID images - by NonStop - 02-21-2017, 07:03 AM
RE: Problem ripping some TID images - by puggsoy - 02-21-2017, 09:22 AM
RE: Problem ripping some TID images - by NonStop - 02-21-2017, 10:03 AM
RE: Problem ripping some TID images - by puggsoy - 02-22-2017, 08:45 AM
RE: Problem ripping some TID images - by NonStop - 02-22-2017, 10:27 AM
RE: Problem ripping some TID images - by puggsoy - 02-23-2017, 03:58 AM

Forum Jump: