If order to build WilderForge, you must have the following software installed:
- Git
- Java 21 or later
- Wildermyth
Note: This project uses WilderWorkspace to configure itself for IDEs. Currently, WilderWorkspace only supports the Eclipse IDE. Pull Requests to add support for additional IDEs are welcome, and can be submitted at the WilderWorkspace repository
-
Clone the git repository by executing the following command:
git clone [email protected]:WilderForge/WilderForge.git
-
Navigate into the project's main directory:
cd ./wilderforge
-
Setup the project workspace:
./gradlew setupDecompWorkspace
Important: This process will take a while. You will see errors appear in the console. Usually these are related to issues with decompiling koltin files. If you see
BUILD SUCCESSFULafter the command has executed, you may proceed to the next step.Important: by default, WilderWorkspace assumes the base game files are located in the default directory for a steam installation on your operating system.
Please see [WIKI PAGE TO BE CREATED] if you have the game installed in a different location, or you receive a
BUILD FAILEDwith one of the following errors when setting up the workspace:java.io.FileNotFoundException: [STEAM_DIRECTORY]/steamapps/common/Wildermythorg.apache.commons.lang3.NotImplementedException: I don't know where the default install directory for Wildermyth is for the [PLATFORM] platform. Submit a pull request or input a raw path to the installation location.
-
Configure the project for your IDE:
Configure the project for your IDE. If you only want to build the jar, and don't want to modify WilderForge itself, you can skip this step.
Note: This project uses WilderWorkspace to configure itself for IDEs. Currently, WilderWorkspace only supports the Eclipse IDE. Pull Requests to add support for additional IDEs are welcome, and can be submitted at the WilderWorkspace repository
If you're using Eclipse, Execute the following commands to configure the project for your IDE. If you're not using eclipse, you're going to have to figure out how to configure the project for your particular IDE yourself.
- Configure the project
./gradlew eclipse --refresh-dependencies
- Generate run configurations to allow your IDE to start and debug the game:
./gradlew genEclipseRuns
- You should now be able to import the project into your IDE and make changes to WilderForge.
-
Build the project:
To build the project, run:
./gradlew build
This will create the mod jar file in
[project directory]/build/libs/.
The workspace plugin may occasionally receive updates. To update WilderWorkspace, you must do the following:
- Open the following file:
[project root]/gradle/libs.versions.toml
- Change the value of
workspace_versionto the desired version.
- Notify your IDE of the changes:
./gradlew eclipse --refresh-dependencies
Extremely Important: Updating the base game requires deletion of the copy of the game in the workspace, including save data and legacy files. The original game (from Steam, GOG, etc.) will remain unaffected.
If the base game receives an update and you wish to build against it, follow these steps:
-
Ensure the base game is up to date on your system.
-
Execute the following command to delete the old version from the workspace:
./gradlew clearLocalRuntime
-
Setup the project workspace again
./gradlew setupDecompWorkspace
-
Notify your IDE of the changes:
./gradlew eclipse --refresh-dependencies