-
Notifications
You must be signed in to change notification settings - Fork 12
Client Setup & Compilation
Currently, the most stable and recommended method to compile the client is by leveraging JPEXS Flash Decompiler. This tool allows for decompilation of the SWF binary and modification/patches directly.
- Download and install the JPEXS Flash Decompiler tool here: https://github.com/jindrapetrik/jpexs-decompiler/releases
- Navigate to Advanced Settings > Paths and set the following paths.
- Flash Player projector path: found at
./flashplayer_32.exe
- Flash Player projector content debugger path: found at
./flashplayer_32.exe
- PlayerGlobal (.swc) path: found at
./playerglobal.swc
An alternative option which is far superior for debugging and contributions to the codebase, is compilation via our code editor of choice, VSCode, which provides Intellisense and other major features of a standard IDE for fast and seamless development.
Warning: The major drawback about using VSCode to compile the client is, that the recompilation of a decompiled source from JPEXS is not stable, as the tool has it's own library for how to recompile and interpret AS3. Therefore as a result, issues which are not present in JPEXS, may be present when compiling and playing the game via VSCode.
- Download the latest Apache Flex SDK.
- Install the ActionScript & MXML extension in VSCode by clicking on your Extensions tab. (Intellisense)
- Open the codebase in VSCode, and navigate to:
View > Command Palette > ActionScript: Select Workspace SDK > Add more SDKs to this list
- Select your Apache Flex installation from the dropdown
- To compile the application you will see a
tasks.json
in the.vscode
directory.
This is a script which can be executed on Windows with either of the following keyboard shortcuts within VSCode:
-
Ctrl
+Shift
+B
-
Ctrl
+Shift
+P
and type in ">Run Build Task".
This will then allow you to either run the Debug or Release task. Select one, and allow the application to compile and run.
Donate to the development of this project at: https://bymrefitted.com