Extract
Extract Raw Image
Extract the
ps2data/image/ff12/myoshiok/in/bin_menu/item_gra00.as7
file via the VBF Browser.Create a directory and put the
ff12-as7.exe
file into it.Navigate into that directory.
Press
Ctrl + L
to focus the address bar of the file explorer.Press
Backspace
, typecmd
and then pressEnter
to open the Command Prompt.Type the following code into the Command Prompt:
Press
Enter
to convert the .as7 to a .raw file.
Extract Color Look Up Table (CLUT)
The item_clut.bin
file contains the color of all 7 .raw images in order, each one being 1024 (0x0400) bytes.
The color data of item_gra00.raw
is at 0x0000
to 0x0400
, the color data of item_gra01.raw
is at 0x0400
to 0x0800
, and so on.
The start offset is File Number * 0x0400
, and the end offset is Start Offset + 0x0400
.
To load a raw image with its associated clut, you will first need to extract its clut from the item_clut.bin
to its own file (.cl2). To do that:
Extract the the
ps2data/image/ff12/myoshiok/in/bin_menu/item_clut.bin
file via the VBF Browser.Download
item_gra00.cl2
from the Files section (rename file number if necessary).Open
item_clut.bin
anditem_gra00.cl2
with a hex editor.Copy the bytes from
0x0000
to0x0400
initem_clut.bin
(start and end offset depends on file number).Paste the bytes into
item_gra00.cl2
, starting at offset0x40
, therefore replacing all0xFF
bytes.
Merge Raw Image & Clut
Now that you have both the raw image and the clut, you can merge them. To do that:
Open
item_gra00.raw
with an image editor.Once the image size is requested, provide it based on the calculation from here (e.g.
64x6144
).Save it by setting the file name to
item_gra00
and the extension to.png
.Open
item_gra00.png
with Optpix Image Studio.Select the color palette right from the image. If its not there, press
Ctrl + L
.Right-click on the color palette, select
load palette
and then openitem_gra00.cl2
.Select
File -> Save As
from the top navigation bar (or useCtrl + Shift + S
).Set the file name to
item_gra00
and the extension to.png
.Click on the
Save
button (changing file saving options isn't necessary).
Notes
When assembling a .cl2
file, make sure that the file size stays the same. Its always 0x0440 bytes. 0x40 for the header and 0x0400 for the color data.
Files
Last updated