Skip to content

Getting Started (For Modders)

Davis Cook edited this page Mar 27, 2018 · 22 revisions

Getting Started With Modding Slay The Spire

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:

  1. The Eclipse IDE: link
  2. The JD-GUI Java Decompiler: link - click the download tab and then grab the .jar version which will look something like jd-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.

Decompiling your game

  1. 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 select desktop-1.0.jar.
  2. This will open a view in which you can look at the decompiled source code.
  3. 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 a zip 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).
Clone this wiki locally