
- How to install modapi how to#
- How to install modapi mod#
- How to install modapi windows 10#
- How to install modapi code#
- How to install modapi simulator#
Here is when comes the real thing.įirst we must know what classes and functions we are going to use you can see all the classes available in the online documentation.We want to mess with the space stage most of the things related with gameplay are in the Simulator namespace.
How to install modapi code#
Now the cursor has moved to the function that contains the code that is called every time the cheat is executed. Once you are done editing the fields, press the Enter key. Now press Tab to move to the next editable field, which is the description of the cheat (which is shown when calling the help cheat). In this case, the first editable field that is selected by default is the name the player has to type to call our cheat. In this case, we are interested in the ModAPICheat one, so press Ctrl+Space and type it.Īll code snippets have editable fields, you can move between them pressing the Tab key you can also hover the mouse over them to see a brief description of what they do. To use them, press Ctrl+Space and write their name you will see a small pop-up, click on it and the code will autogenerate. One of the features the Development Kit includes is Code Snippets, autogenerated code for the main things you can do in the ModAPI. Since we want to add a new cheat, we are interested in the Initialization method. Most of the times you won’t have to touch anything.
How to install modapi how to#
This is the most powerful tool in the ModAPI we’ll explain how to use it in a future tutorial.
AttachDetouring: This method is for detouring, which is a way to redirect Spore functions, that is, to change their code. How to install modapi mod#
Most of your mod will go in this method, including cheats, rendering functions, adding game modes,… When this method is called, most Spore systems are ready to use, but nothing has been shown to the player yet.
Initialization: A method executed a moment after Spore is opened. Once the project has been created, use the Solution Explorer (by default, the panel on the right side of the screen) to find a file called dllmain.cppĭouble-click the file, you will see its contents are shown in the editor. Platform Toolset: Ensure this setting is set to Visual Studio 2017 (not necessarily v141). Windows SDK Version: Ensure this setting is set to the latest SDK version. Now, in the General categories, there are two settings you must pay attention to.
Open the project configuration, ensure the Configuration box is set to All Configurations like shown in the picture below. Now, there is one more thing you might need to do. Use the button Browse… to navigate to the Projects folder inside the ModAPI directory you unzipped before.
Location: Where your mod files will be saved. For example, I’ll call it “ PlanetBusterMod“. Name: Insert the name of your mod do not to use whitespaces. Now in the bottom part of the dialog there are two fields you must modify: A dialog will open under the tab Visual C++, select the template called Spore ModAPI Template. In order to follow this tutorial, basic C++ knowledge is required.įirst, we will create our project. Now the ModAPI Development Kit is successfully installed! In order to show you the basics, following this tutorial we will teach you how to create a simple mod: it adds a cheat called planetBuster that, if called while in the space stage, will give you a certain amount of planet buster bombs. If you see a folder called Spore ModAPI Template.zip, delete it. Inside each of these folders, you go to ProjectTemplatesCache\Visual C++ Project. There you will see multiple folders, it’s recommended that you do these steps for all of them. Go to the directory %APPDATA%\Microsoft\VisualStudio. There, find the item called Spore ModAPI Templates and uninstall it. If this is the first time you install it, you can skip this step. If you had already installed previous versionsįor those that installed older versions of the ModAPI Development Kit, we need to take an extra step to get this working. Press the button Add… and find the folder called ModAPISnippets, which is inside the ModAPI tools folder we unzipped before. In the dialog that opens, ensure that the Language: field is set to Visual C++. Once the installer is open, press Install.įinally, open Visual Studio. If you have installed Visual Studio correctly, you will be able to execute the file. Inside the folder you will find a file called Spore ModAPI Templates.vsix. You can place the unzipped folder wherever you want keep in mind that’s where your projects will go. You can download the free version here: ĭownload the Development Kit from this page. How to install modapi windows 10#
The Windows 10 SDK (you might need to use different versions if you don’t have Windows 10):. You need a few programs in order to use the ModAPI Development Kit. Installing the Development Kit Pre-requisites Basically, knowing what methods, variables, classes and includes are. Be warned though, this tutorial requires some minimum understanding of C++.