====== FFDEC Tips and Tricks ====== Authors: Vawser ===== Overview ===== 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. @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\\menu" cd /d %SOURCE_PATH% :: Process for %%F in (*.gfx) do ( echo Converting: %%F %FFDEC_PATH% -swf2xml "%%F" "%%~nF.xml" ) pause 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. @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\\menu" cd /d %SOURCE_PATH% :: Process for %%F in (*.xml) do ( echo Converting: %%F %FFDEC_PATH% -xml2swf "%%F" "%%~nF.gfx" ) pause 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.