- SLAY THE SPIRE MODS HOW TO
- SLAY THE SPIRE MODS INSTALL
- SLAY THE SPIRE MODS MOD
- SLAY THE SPIRE MODS PATCH
- SLAY THE SPIRE MODS MODS
Private static final String SKILL_PORT_EXAMPLE = "img/cards/bg_skill_1024.png " Private static final String ATTACK_PORT_EXAMPLE = "img/cards/bg_attack_1024.png " Private static final String ENERGY_ORB_EXAMPLE = "img/cards/orb_512.png " Private static final String POWER_EXAMPLE = "img/cards/bg_power_512.png " Private static final String SKILL_EXAMPLE = "img/cards/bg_skill_512.png " //Please write the variable name for the time being Private static final String ATTACK_EXAMPLE = "img/cards/bg_attack_512.png " //This area will be explained later Private static final Color EXAMPLE_COLOR_BG = CardHelper.getColor(100.0f, 50.0f, 50.0f) //This is the background color of the bar when it appears in the card list selection. First, there are variables for basic color settings.
SLAY THE SPIRE MODS PATCH
Import example_mod.patches.* //I'll read the patch I made class Main implementsĮditCardsSubscriber, //Implement when adding a cardĮditStringsSubscriber, //Implement when reading a language file
SLAY THE SPIRE MODS MOD
Now that the preparations are complete, create Main.java or MOD name.java class directly under java / example_mod so that it is easy to understand.
Public class LibraryTypeEnum static CardLibrary.LibraryType EXAMPLE_COLOR //Same as above. Public class AbstractCardEnum static AbstractCard.CardColor EXAMPLE_COLOR //Favorite variable name. Package example_mod.patches //I think it will enter here automatically I think that the structure is like this when the project is created, but the class (program part) is placed under java, and the text and images are placed under resource.įirst, create a directory with the mod name under java, and a directory called patches under it, and create the following two classes. It's a hassle to prepare images, so please start from here. I'm not sure if it was added only in color, so I can add cards at once.Īlso, it's annoying to explain, so if you don't understand well, please see the following repository. Let's go one by one.įirst, add colors and cards.
It's difficult to read and understand this much, so I'll explain it myself from here on. If you want to make a new character, you have to add this COLOR first (although it would be easier if you just put an additional card for these guys). The character class of Slay the Spire is called COLOR, Iron Clad is RED, Silent is GREEN, and Defect is BLUE. Let's do our best until we make a suitable character Color and card addition jar file will be created in the target folder. Now, if you double-click "Lifecycle> package" in the window opened by "View> Tool Windows> Maven Projects", you can build it and a. Then press Ctrl + Alt + Shift + S to bring up the Structure screen, select Modules, and there are 3 Mavens, so check it and Apply. When you finish editing the pom, you will see a pop-up saying "Maven projects need to be imported", so press Import Changes to reflect it. Please write it because it is the output destination after building. Be careful if the directory structure is different from the example.Īlso, I think it was necessary to partially edit the package from line 54 here. Here, the locations of the three jar files that you put in the lib folder and their versions are specified. Well, then suddenly an important thing is written, but I think that pom.xml is directly under the project folder, so edit it. The example is ExampleMod.įinally, finish so that the project file is created in the folder created earlier. Select JDK1.8 and Maven Next, GroupID and ArtifactId should be the name of the mod you are about to create. It says that you should create New Project after starting Intel iJ with.
SLAY THE SPIRE MODS INSTALL
So first install Java SE Development Kit 8 and then InteliJ as well. It was written that it was easy, so I did it with Intel iJ, and I will only explain it after that. Now, regarding the item of "Environment Setup", since it is a development environment, please choose the one you like. Then, in the same folder, find desktop-1.0.jar in the Slay the Spire folder and put it in it. Oh, you can also enter from Steam Workshop. Put BaseMod.jar and ModTheSpire.jar there.īaseMod is a mod API, and Mod The Spire is required to run Slay the Spire with mods.
So, it is said that you can create a folder called "lib" in it, so create it. MOD In a folder with the name I'm going to make a lot (such as my_mods). You can go anywhere, but please create a folder.
Development environmentįirst of all, you are told to create a folder. In the first place, this article is for super beginners. The beginning is the construction of the development environment, but if you have a Java development environment, please read it diagonally. I will explain "Getting Started With Modding Slay The Spire" on the BaseMod wiki because it will not increase the number of people who make it. Introduction to Slay the Spire Mod Development Mod list on the wiki in Mod The Spire's Git
SLAY THE SPIRE MODS HOW TO
That's why it is a course on how to make a mod for Slay the Spire.
SLAY THE SPIRE MODS MODS
I want to enjoy making mods for Slay the Spire