![]() The first sets the privacy level of the variable. VariablesBut before any methods are made you setup the variables you want to use in the class. The brackets make up where the class begins and ends, the same thing goes for methods, loops and other functions and methods that needs to have a group of commands. For the class to use this template it has to have certain methods like Initialize(), Update() and GetName(). The ISrPlugin is because this class is an ISrPlugin, and therefore uses ISrPlugin as its template. Its public, so that it can be referenced from other classes, the ModName is the ModName, should have the same name as the project. The last one makes sure you got Unity commands available. The first one is about needing regular C# commands, the second one is about using collections like arrays or lists, so you can store a group of certain types of objects. ![]() These lines are about what the file might need. Lets go through the standard way a mod is set up in its cs file: As far as I know, its not possible to add new graphics and new sounds yet, but not sure, it might just be about knowing how to do it. There are many custom classes and such in this game, and those are the important ones to know, to make mods. Its recommendable to follow some C# guides to learn how to program in it in general. Probably still room for improvement, but I will share what tips I have for modding so far.įirst off, its good to know that this is regular C# coding and Unity coding, so if you know how to code C# and / or how to code in Unity, it should help quite a bit. I have been trying to figure out what commands to use for what, which have required a lot of trial and error to figure this out. That is it for now, I will add more sections later. Copy this DLL to the "Mods" folder in your Satellite Reign installation folder, and you are ready to test your mod by running Satellite Reign. Open the bin folder, then the debug or release folder depending on your project settings, and a DLL should be in the folder by the same name as the project. Just search for Satellite Reign in the templates the next time you open Visual Studio.Īfter building the mod you find the DLL by selecting the build menu in VS2015 and clicking build solution or clicking F6, then you right click on the project you made the mod in, it should be in the solution explorer to the right, and click "Open Folder in File Explorer". Then you can make a new project, based on a template for the pause mod in visual studio when you make a new project or add a new project to your solution. Like this:ĭocuments\Visual Studio 2015\Templates\ProjectTemplates It needs to be put into a Visual Studio folder. I have found that it helps to also add:Īnother way to do all this, might be by using a template. In this folder you will find the DLL files mentioned above. $SR INSTALLATION FOLDER$\SatelliteReignWindows_Data\Managed The DLLs you need to add are not directly in the installtion folder, you need to find: That is also the folder where you need to make a folder called "Mods" later, for the DLL you compile from this project so the game will use the mod you made. If you got the Steam version, its likely to be something like:Ĭ:\Program Files (x86)\Steam\steamapps\common\SatelliteReign So click browse, then find the Satellite Reign installation folder. A window opens where you can search for and select what to add, but since this is a bit custom, you need to manual add them. Right click it and click "Add Reference.". You do this by select the project you want to edit, select the branch called "references". ![]() The guide from 5Lives tells us to reference: The different projects probably need you to manually add references to some extra DLL files. One with cheats, one with a unstuck function and one with ways to make your agents look different to try to customize them. Here is a Visual Studio solution with 4 mods, the one 5Lives has shared as an example and 3 I made. Visual Studio has a Community Edition that is free. Hopefully it means we can also make stuff for the game in Unity at some point, but I have not figured out how yet. 5Lives write that you also need Unity 5 or higher, I am not sure if that is true, because you get the Unity DLL files from the game anyway. You will need Microsoft Visual Studio, I think it might have to be Visual Studio 2015. I will go over the same things here though. The official 5Lives mod here has some text about how to get started:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |