Fixing the decompiled flash files

From CryWiki

Jump to: navigation, search



About
Author ins
Skill Level Beginner
Compatibility All
Requirements Adobe Flash
Date Added 19/08/08
Last Modified 19/08/08
Note
The decompiled flash files can be downloaded from Rapidshare


Contents

Fixing the decompiled flash files

As the original flash source files for the HUD/UI are not included in the Mod SDK, they had to be decompiled.
As such, there are certain errors that need to be fixed so everything works as expected.


Wrong fonts

When opening a flash file, a window will popup that it cannot find 'Font_Body'. It needs to be replaced with Agency FB (Downloadable from this post. Also, some other fonts need to be replaced

  • Font_Body -> Agency FB (bold)
  • Arial -> Agency FB (bold)

Dynamic textfields

Because Crysis is using Scaleform tools, the fonts are not embedded. However, we do not have access to the ScaleForm SDK, so there are some fixes needed.

For EVERY dynamic textfield:

  1. Remove extra enter/space at the end of each textfield
    1. Go into a text field, mark the "space" (which is actually a line break) and hit copy (ctrl+c)
    2. Select 'Search and Replace' from the menu (edit->search and replace).
    3. Select 'Text' as mode and 'Only text fields' as target of the search.
    4. In the search field, paste (ctrl+p) the "space"
    5. Leave the erase field blank
    6. Hit 'Replace all'.
  2. Embed fonts
  3. Make sure 'Render as HTML' is unchecked


Screenshots for clarification
Image:Dynamic_Textfields.jpg
Embed...
Image:Flash_Dynamic_Textfields_Embed.jpg

Compiler errors

In some files, there are some compiler errors.

  • Replace "add" with "+"
  • Replace .default with ["default"]. "default" is a keyword in flash.
Personal tools