Scale
General
If you want to not only change the icons itself, but also their size, you have to edit a few more files.
In the following example, we will double the size of all icons (64x96 -> 128x192).
An icon in the equipment menu is displayed by using a specific texture file (itemgra_c.tm2) whose image and color is being overwritten every time a new equipment is viewed. These icons are extracted from the item_gra??.as7 file and their color from the item_clut.bin file.
This texture file is used as a base for all icons and always includes 2 icons next to each other.
Update File Icon Size
A .tm2 file can be split into different groups with multiple icons. Each icon has their own position and size, which is all defined in the header.
Since the size of all icons in the item_gra??.as7 file is doubled, their position, size and the space to which they will be copied also has be updated. To do that:
Extract the
ps2data/image/ff12/myoshiok/us/tm2_menu/itemgra_c.tm2file via the VBF Browser (usdirectory differs depending on your game language).Unpack
itemgra_c.tm2with The Insurgent's Workshop.Navigate to the
workshop/unpacked/itemgra_c.tm2.dirdirectory.Open
info.jsonwith any text editor.Change the image width and height to
256. (2 icons, width of 128)Change the properties of icon 0 to:
Width: 128
Height: 192
Change the properties of icon 1 to:
X Position: 128
Width: 128
Height: 192
Save all changes.
Open
merged.rawwith an image editor (size:128x128).Change its size to
256x256and save it.Pack it into a new .tm2 with The Insurgent's Workshop.
Move the newly created
workshop/newpack/itemgra_c.tm2to your mod directory.
Update Hardcoded Icon Size
The size of the icons in all item_gra??.as7 files are not saved in the files themselves, but in another one instead. To update the icon size in that file, you have to do the following:
Extract the
jsondata/uisize/uisize.jsonfile via the VBF Browser.Open
uisize.jsonwith any text editor.Change the values of the following properties:
ListItemIconW: 128ListItemIconH: 192
Save all changes.
Move the newly created
uisize.jsonto your mod directory.
Update User Interface
Every texture, text, etc. displayed in the UI is defined in a .mrp file. This file declares where a texture is placed, where it comes from, what size it has, and more. Since you changed the icon size, you also have to update the .mrp file that displays these icons by doing the following:
Extract the
ps2data/image/ff12/myoshiok/us/packfiles/mrppack_ys.binfile via the VBF Browser (usdirectory differs depending on your game language).Unpack
mrppack_ys.binwith The Insurgent's Workshop (first package, then file).Navigate to the
workshop/unpacked/mrppack_ys.bin.dirdirectory.Open
section_008.json.Change the image width and height to
256.Change the properties of group 1 entry 2 (image) to:
X Position: -61
Y Position: 43
Width: 128
Height: 192
Change the properties of group 1 entry 3 (border) to:
X Position: -73
Y Position: 29
Width: 152
Height: 226
Save all changes.
Pack the
section_008.jsonintosection_008.binwith The Insurgent's Workshop.Move the newly created
workshop/newpack/mrppack_ys.bin.dir/section_008.binto your mod directory.
Notes
Last updated