-
Download and install Intellij IDEA Community Edition (not Ultimate)
-
Create a
File->New->Project from Version Control
via: -
Enter the git url
https://github.com/4rg0n/songs-of-syx-mod-example.git
and "clone" the repository: -
Goto
File->Project Structure
and choose to download a JDK: -
Choose
Version 1.8
and a Vendor of your choice and download it: -
Check the README Prerequisite, for the correct game installation paths
-
On the right hand side click on the
M
icon and doubleclick the mavenvalidate
command: -
After that run the
install
command
In the project tree on the left-hand site, you will see External Libraries at the bottom.
Under this you will find a "Maven" dependency called something like com.songsofsyx:songsofsyx:XX.XX
.
There you can browse the game source code.
There are three .xml
files in the .run/
folder:
Main
launches the game directlyMainLaunchLauncher
starts the game launcherDEBUG
starts the game with debug capabilities
You may want to edit the WORKING_DIRECTORY
and anything in <classpathModifications>
to your local game installation path.
It's default set to: C:/Program Files (x86)/Steam/steamapps/common/Songs of Syx
.
For the future: Your package name may also differ in the PATTERN
option.
It's default set to: your.mod.*
They should be automatically available in the IDE:
Run the game at first through the MainLaunchLauncher
and enable the Example Mod
in the launcher.
Once the mod is enabled, you can skip the launcher by running the Main
or DEBUG
command.