Thanks a lot! I've updated my script:
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.
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.