forked from SkyeStarfall/BaseMod
-
Notifications
You must be signed in to change notification settings - Fork 118
Getting Started (For Modders)
Davis Cook edited this page Mar 27, 2018
·
22 revisions
Slay The Spire is written in Java. So you'll need some prior experience using the Java Programming Language or be willing to learn. This tutorial will use two tools you'll need to download:
- The Eclipse IDE: link
- The JD-GUI Java Decompiler: link - click the download tab and then grab the
.jar
version which will look something likejd-gui-1.4.0.jar
We will be using Eclipse as our development environment for creating the mod and we will use JD-GUI as a way to read a decompiled version of the game's source code.
- Launch JD-GUI with
jd-gui.exe
and then when it prompts you to find a jar to decompile go ahead and navigate to your Slay The Spire folder and selectdesktop-1.0.jar
. - This will open a view in which you can look at the decompiled source code.
- Click File -> Save All Sources and save everything as
desktop-1.0.jar.src.zip
wherever you are going to be doing your modding. The output will be azip
file which you will then have to unzip to access all of the source code (note that it is not actual source code - just reconstructed source code by the decompiler).