Debugging SWF

From the CreationKit Wiki
Revision as of 11:51, 18 May 2019 by imported>Scrivener07 (This page is clearly a work in progress but I fixed the internal link to use the File: protocol with some size parameters.)
Jump to navigation Jump to search

Debugging swf files is fun and interesting, try it out!

1) Install an Java IDE - for example, Apache Netbeans IDE 10.0.
(mundane details: config config config... get it working, you need to able to open and build a existing project)
2) Download the source code for a Flash decompiler, for example the ffdec project (aka JPEXS Flash Decompiler) (more mundane: config config, get it building and working in a debug session through the Java IDE)
3) Debug the decompiler from source, while also interacting with it as you normally would.   Set a breakpoint in the Java IDE to trigger on a UI event.

Java IDE Decompiler UI Breakpoint.jpeg

4) Extract your installation's Data\Fallout4 - Interface.ba2 file.
Create a read-only version, so you can recover from any mistakes.
5) Explore the various swf files inside and what they do. Open your favorite swf file via the decompiler's UI.
6) Get a deeper line-of-sight into the decompiler's scaffolding around the swf object.