Site Tools


tutorial:ffdec-tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorial:ffdec-tutorial [2025/03/08 23:01] – created admintutorial:ffdec-tutorial [2025/03/08 23:09] (current) admin
Line 3: Line 3:
  
 ===== Overview ===== ===== Overview =====
-The [[https://github.com/jindrapetrik/jpexs-decompiler|JPEXS Free Flash Decompiler]] (or FFDEC) +The [[https://github.com/jindrapetrik/jpexs-decompiler|JPEXS Free Flash Decompiler]] (or FFDEC) is an open-source decompiler for Flash SWF files. Various From Software games make use of these files to configure the user interface, mainly from Dark Souls III onwards. 
 + 
 +Although FFDEC has an graphical interface for editing ''GFX'' files, it is recommended that you convert the ''GFX'' files into ''XML'' files, as other tutorials may assume that you are working with the ''XML'' representation. 
 + 
 +==== GFX to XML Script ==== 
 +This is a Windows batch script that lets you easily convert all ''GFX'' files within a specified folder into ''XML'' files. 
 + 
 +<code> 
 +@echo off 
 +setlocal 
 + 
 +:: Path to FFDec (Update this if needed) 
 +set FFDEC_PATH="C:\Program Files (x86)\FFDec\ffdec.bat" 
 +set SOURCE_PATH="F:\SteamLibrary\steamapps\common\Sekiro\<mod name>\menu" 
 + 
 +cd /d %SOURCE_PATH% 
 + 
 +:: Process 
 +for %%F in (*.gfx) do ( 
 +    echo Converting: %%F 
 +    %FFDEC_PATH% -swf2xml "%%F" "%%~nF.xml" 
 +
 + 
 +pause 
 +</code> 
 + 
 + 
 +Change the ''FFDEC_PATH'' to match the location of the ffdec.bat after you've installed the JPEXS Free Flash Decompiler. 
 + 
 +Change the ''SOURCE_PATH'' to match the location of the ''GFX'' files you want to convert. 
 + 
 +==== XML to GFX Script ==== 
 +This is a Windows batch script that lets you easily convert all ''XML'' files (of GFX origin) within a specified folder into ''GFX'' files. 
 + 
 +<code> 
 +@echo off 
 +setlocal 
 + 
 +:: Path to FFDec (Update this if needed) 
 +set FFDEC_PATH="C:\Program Files (x86)\FFDec\ffdec.bat" 
 +set SOURCE_PATH="F:\SteamLibrary\steamapps\common\Sekiro\<mod name>\menu" 
 + 
 +cd /d %SOURCE_PATH% 
 + 
 +:: Process 
 +for %%F in (*.xml) do ( 
 +    echo Converting: %%F 
 +    %FFDEC_PATH% -xml2swf "%%F" "%%~nF.gfx" 
 +
 + 
 +pause 
 +</code> 
 + 
 +Change the ''FFDEC_PATH'' to match the location of the ffdec.bat after you've installed the JPEXS Free Flash Decompiler. 
 + 
 +Change the ''SOURCE_PATH'' to match the location of the ''XML'' files you want to convert. 
tutorial/ffdec-tutorial.1741474907.txt.gz · Last modified: by admin