Deprecated: Assigning the return value of new by reference is deprecated in /home/clonesa/public_html/Stats/lib/io.php on line 151
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/clonesa/public_html/Stats/lib/io.php:151)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/clonesa/public_html/Stats/lib/io.php:151)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/clonesa/public_html/Stats/lib/io.php:151)
[phpBB Debug] PHP Notice: in file /home/clonesa/public_html/wiki/inc/actions.php on line 163: Cannot modify header information - headers already sent by (output started at /home/clonesa/public_html/Stats/lib/io.php:151)
ModsRUs.com - Wiki (dow2:formats:gfx)
Recent changes RSS feed

 

GFX

.GFX files are Scaleform GFX files, which in turn are essentially decompressed Flash movies (FWS). DoW2 uses the Scaleform GFX library for 2d art assets such as menus and HUDs.

Editing

The first step to editing is hex editing the .gfx files into valid .swf files. The first 3 bytes should be the characters 'G', 'F' and 'X'. Change these to 'F', 'W' ans 'S' and then rename the file extension to .swf.

If the 3 first bytes are “CFX”, instead of “GFX”, this means the file is compressed and you should change the data to “CWS”

The second step is to find a program that can edit, decompile or convert the swf file in order to make changes. I recommend Flash Decompiler Trillix by Eltima, which can perform some limited editing directly or convert the file to .fla, which allows it to be edited with Adobe Flash CS. Flasm can also be used to convert the files to .flm, which are text readable files containing byte code (flash assembly).

The third step is to reverse the previous steps and convert the file back into a valid .GFX file.

 
dow2/formats/gfx.txt · Last modified: 2011/11/28 17:20 (external edit)