To build FLoader, you'll need several tools:
- JDK 21+
- Git (optional)
- A copy of Age of History 2: Definitive Edition
- Clone/download the FLoader source code and place it in an empty folder.
- Copy the original
game.jarfile into thelibs/folder in your project directory. - Open a command prompt and enter:
This command will download all dependencies, build the API and the main loader.
./gradlew clean shadowJar
- Go to the
build/libs/folder. - Copy the file
FLoader.jar(NOT .java) into your game's root folder. - (Optional) Copy
libs/floaderapi.jarinto your own mod project to use the API. - Ensure there is an
fmods/directory in your game folder.
Note: You must use Java 21 to run the game with FLoader.
- Windows (PowerShell)
& java -javaagent:"FLoader.jar" -jar game.jar- Linux (WSL/Terminal)
java -javaagent:FLoader.jar -jar game.jar- You can use the
examplemodule as a template for your mod. - Set
game.jarandfloaderapi.jaras provided/system dependencies in your build tool (Maven/Gradle). - Put your resources (images, sounds, etc.) in the
src/main/resources/assets/directory. - Place the built mod
.jarinto thefmods/directory.