Extract
Extract Raw Image
Extract the
ps2data/image/ff12/myoshiok/in/bin_menu/item_gra00.as7file via the VBF Browser.Create a directory and put the
ff12-as7.exefile into it.Navigate into that directory.
Press
Ctrl + Lto focus the address bar of the file explorer.Press
Backspace, typecmdand then pressEnterto open the Command Prompt.Type the following code into the Command Prompt:
ff12-as7.exe -u item_gra00.as7 item_gra00.rawPress
Enterto 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.binfile via the VBF Browser.Download
item_gra00.cl2from the Files section (rename file number if necessary).Open
item_clut.binanditem_gra00.cl2with a hex editor.Copy the bytes from
0x0000to0x0400initem_clut.bin(start and end offset depends on file number).Paste the bytes into
item_gra00.cl2, starting at offset0x40, therefore replacing all0xFFbytes.
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.rawwith 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_gra00and the extension to.png.Open
item_gra00.pngwith 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 paletteand then openitem_gra00.cl2.Select
File -> Save Asfrom the top navigation bar (or useCtrl + Shift + S).Set the file name to
item_gra00and the extension to.png.Click on the
Savebutton (changing file saving options isn't necessary).
Notes
Files
Last updated