Исправление декомпилированных Flash-файлов

Материал из CryWiki Russia

(Различия между версиями)
Перейти к: навигация, поиск
Строка 61: Строка 61:
== Получение декомпилированных файлов  ==
== Получение декомпилированных файлов  ==
-
Crysis 1.2: [[Image:Crysis Wars Decompiled Flash Files.rar|скачать]]<br>  
+
Crysis 1.2: [[Media:Crysis Wars Decompiled Flash Files.rar|скачать]]<br>  
-
Crysis Wars 1.4: скачать  
+
Crysis Wars 1.4: скачать
== Fixing the decompiled flash files  ==
== Fixing the decompiled flash files  ==

Версия 17:54, 20 октября 2011


О статье
АвторAlex626/ins
СложностьСредне
ТребованияFlash 8 или выше
Дата добавления20.10.2011



Содержание

Получение декомпилированных файлов

Crysis 1.2: скачать

Crysis Wars 1.4: скачать

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:

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


Screenshots for clarification
Dynamic Textfields.jpg
Embed...
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.