DarkBlizz

Battle.net R&D => Research => Starcraft II Beta => Topic started by: MiCrOMaN1 on February 21, 2010, 09:03:35 AM

Title: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 09:03:35 AM
The GUI uses Scaleform GFX (http://www.scaleform.com/products/gfx). It's essentially Flash with the 3-byte header signature changed. The .gfx files are .swf and .cwf files. To open a .gfx file in a Flash editor you may have to change the filename to .sqf and the first characters in the file from CFX to CWS. The header signature equivalents between Flash and GFx are FWS = GFX (decompressed) and CWS = CFX (compressed).


How to edit the menu
Use this http://sc2c.pastebin.com/m6b332caf (http://sc2c.pastebin.com/m6b332caf) code to organize the .as extracted from the Sothink SWF Decompiler. To search inside the .as files add this to the registry '[HKEY_CLASSES_ROOT\.as\PersistentHandler];@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"'. Find the code to hack, for example "this.m_playOfflineButton._alpha = 0". Unfortunately changes to this code can not be assembled to a swf. Neither can the exported .fla be assembled to a .swf because Sothink ignores all Actions except 'Frame 0.as' when making the fla. Make the changes with Flasm (the patched version that ignores the CFX header, GFXASM tool (http://darkblizz.org/doku.php?id=tools)) as assumed with this example: Taken fro wiki.

I think that the mistake  ;D  was that you were suppose to convert it to .sqf NOT .swf  ;)
Title: Re: Compiling the .gfx Files
Post by: vctu on February 21, 2010, 09:14:02 AM
great ;)
Title: Re: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 09:20:37 AM
Aw man..still no luck...Does someone know where we can get a free copy of Scaleform GFX! Come on! Someone must have it...Atleast the trial.......
Title: Re: Compiling the .gfx Files
Post by: RaTcHeT302 on February 21, 2010, 09:37:57 AM
You need to register i think..
Title: Re: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 10:16:41 AM
Quote from: RaTcHeT302 on February 21, 2010, 09:37:57 AM
You need to register i think..

http://inquistor.info/darkblizz/wiki/doku.php?id=tools (http://inquistor.info/darkblizz/wiki/doku.php?id=tools)

If just those 4 uploaded links would work.
Title: Re: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 10:22:20 AM
Seriously...Why don't the links posted in the wiki work?! i need the GFXASM tool now, yet the studioaccessible.com links don't work! GAH!
Title: Re: Compiling the .gfx Files
Post by: Fulger on February 21, 2010, 10:27:17 AM
i have gfxasm_fixed
Title: Re: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 10:29:36 AM
Could you upload it or something man..That wud be really helpful.
Title: Re: Compiling the .gfx Files
Post by: Fulger on February 21, 2010, 10:30:53 AM
http://rapidshare.com/files/353805683/gfxasm_fixed.zip.html (http://rapidshare.com/files/353805683/gfxasm_fixed.zip.html)
If this link will not work just tell me to upload on other site
Title: Re: Compiling the .gfx Files
Post by: MiCrOMaN1 on February 21, 2010, 10:49:46 AM
Thanks! Download works perfect, but the stupid GFXASM tool can't convert lol..
Title: Re: Compiling the .gfx Files
Post by: Fulger on February 21, 2010, 10:51:24 AM
You need Scaleform GFX ?
Title: Re: Compiling the .gfx Files
Post by: BeardFist on February 21, 2010, 02:32:44 PM
if you have waffles i am trying to start a torrent for it so that it is easier to get it: http://waffles.fm/details.php?id=635024 (http://waffles.fm/details.php?id=635024)
Title: Re: Compiling the .gfx Files
Post by: ReVoke on February 21, 2010, 02:36:29 PM
That link is invalid, it goes to the main page.
Title: Re: Compiling the .gfx Files
Post by: BeardFist on February 21, 2010, 02:41:15 PM
do you have a waffles account?
because it will only work if you are already logged in.
Title: Re: Compiling the .gfx Files
Post by: Myst on February 21, 2010, 02:43:16 PM
if someone can replace links on the wiki, that'd be great
Title: Re: Compiling the .gfx Files
Post by: BeardFist on February 21, 2010, 02:45:46 PM
anylinks in particular?
Title: Re: Compiling the .gfx Files
Post by: lplpmc on December 04, 2010, 03:40:00 PM
Does this even work for viewing .GFX files?

I followed the first post by changing the header and trying to open them but its not working..

Is it even possible to view the actual icons and graphics contained in the .gfx files?