

The Windows 10 SDK (you might need to use different versions if you don’t have Windows 10).You can download the free version here: ĭownload the Development Kit from this page. You can place the unzipped folder wherever you want keep in mind that’s where your projects will go. Inside the folder you will find a file called Spore ModAPI Templates.vsix.

If you have installed Visual Studio correctly, you will be able to execute the file. Once the installer is open, press Install.įinally, open Visual Studio. In the dialog that opens, ensure that the Language: field is set to Visual C++. Press the button Add… and find the folder called ModAPISnippets, which is inside the ModAPI tools folder we unzipped before. 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.
#Api the forest mods install#
If this is the first time you install it, you can skip this step. Go to the directory %APPDATA%\Microsoft\VisualStudio.There, find the item called Spore ModAPI Templates and uninstall it. There you will see multiple folders, it’s recommended that you do these steps for all of them. Inside each of these folders, you go to ProjectTemplatesCache\Visual C++ Project. If you see a folder called Spore ModAPI Template.zip, delete it.
#Api the forest mods how to#
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. In order to follow this tutorial, basic C++ knowledge is required.įirst, we will create our project. 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.
#Api the forest mods mod#
Name: Insert the name of your mod do not to use whitespaces.Location: Where your mod files will be saved.įor example, I’ll call it “ PlanetBusterMod“.Use the button Browse… to navigate to the Projects folder inside the ModAPI directory you unzipped before. Now, there is one more thing you might need to do. Open the project configuration, ensure the Configuration box is set to All Configurations like shown in the picture below. Now, in the General categories, there are two settings you must pay attention to. Windows SDK Version: Ensure this setting is set to the latest SDK version.Platform Toolset: Ensure this setting is set to Visual Studio 2017 (not necessarily v141).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. 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.

This is the most powerful tool in the ModAPI we’ll explain how to use it in a future tutorial.ĪttachDetouring: This method is for detouring, which is a way to redirect Spore functions, that is, to change their code. Most of the times you won’t have to touch anything. Since we want to add a new cheat, we are interested in the Initialization method.
