Users browsing this thread: 1 Guest(s)
Help with World of Final Fantasy TEX files (PC version) [Editing with PNG uploads]
#3
(11-23-2017, 07:51 AM)puggsoy Wrote: So basically all of these appear to have a chunk of compressed data at 0x90, which the file very kindly points out is ZLIB compression, and even gives the sizes for. This can easily be extracted into raw data with this QuickBMS script:

Code:
# World of Final Fantasy .tex
#
# Written by puggsoy
# script for QuickBMS http://quickbms.aluigi.org

endian big
idstring "\x00xet"

goto 0x80
idstring "BILZ"
get SIZE long
get ZSIZE long
get DUMMY long
get NAME basename
string NAME += ".dec"
savepos OFFSET

comtype zlib
clog NAME OFFSET ZSIZE SIZE

Now the file this extracts is also pretty simple, it looks like it's just 8bpp stuff. Main problem is the lack of a palette. That being said, this is probably because the font can be any colour the game needs and so the pixel values are just the "brightness". In this case the best way to extract is then probably white or black against a transparent background.

It's quite late and I'm pretty tired now but I'll try come up with something tomorrow, if nobody else does first.

Here I've opened one of the files after extracting it with QuickBMS and your script (the one named "font_large_0"), and after a few attempts, I've found this:
[Image: Tile_GGD_Attempt_001.png]

This is one of the fonts, and it is very large, but I don't know if it is the real size or maybe I need to setup more things inside the TileGGD in order to have a better look of the texture.

By the way, I'm going to upload here more TEX files related to HUD, and maybe we can see if they need to be unpacked in a different way, or with the same script (there are about 3000 files with .tex format, so I need time to upload them, or at least, the most important ones).

UPDATE:

I tried with one of the TEX files regarding the rest of the HUD, and it seems that every image (fonts, backgrounds, etc) needs different settings inside TileGGD in order to show them correctly. This one is from a file called "ch001_01", that I'm going to upload with all the TEX files later:
[Image: Tile_GGD_Attempt_002.png]

Also, this one is huge, and I think it works it's a 64bit image, so I cannot see it completely in TileGGVery Sad
[Image: Tile_GGD_Attempt_003.png]

I think we are very close to unpack them all. We just need to do it in a batch process, unpacking the .tex files, and converting the resulting .dec files into PNG.

UPDATE:
Here are the rest of the TEX files (there are folders with some other files, just ignore them, because they are just game data, nothing related with textures or 2D data, I guess):
WoFF TEX Files
Reply
Thanked by:


Messages In This Thread
RE: Help with World of Final Fantasy TEX files (PC version) - by Oscar92player - 11-23-2017, 09:15 AM

Forum Jump: