![]() ![]() If the build was successful, there should be no errors listed Step 7: When your done coding, build the solution. You can find more information on how to use Harmony here ONI (like many Unity games) is modded by patching the code with Harmony. Step 6: Now you can finally write your code! This simple example just gets the ONI log file to write 'Hello World!'. ![]() dll files into a new folder to keep them with the rest of my mod development files dll files under '\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed' ![]() dll files to see their code using a program such as dnSpy). '0Harmony.dll', 'UnityEngine.dll', '', 'Assembly-CSharp-firstpass.dll' and 'Assembly-CSharp.dll' will cover most peoples needs (you can peek into these. dll file references that you will need for coding your mod. Right click on 'References' and 'Add Reference' Step 4: Now go over to the 'Solution Explorer' on the right side of the work space. Once the necessary files are installed (it's quite large from memory), go back to Step 2 On the new menu that opens, select '.NET desktop development' and then 'Modify'. Step 3: If 'Class Library (.NET Framework)' was not listed as an option in the previous step, click on 'Open Visual Studio Installer' instead. Choose a name for your mod folder and a location to save this folder. If you don't see 'Class Library (.NET Framework)' listed as an option, go to Step 3. Double check that your under '.NET Framework 3.5'! This is the version that ONI uses. Step 2: From the menu that opens, select '.NET Framework 3.5' from the drop down menu, and then 'Class Library (.NET Framework)' from the list of options. Step 1: Start up Visual Studio and create a new project ![]() Sorry Mac and Linux users! The process will be much the same, but you will probably need to use a different IDE If you run into trouble with your mod code, either make a post on this subforum, or pop into the modding channel on the ONI Discordįor this tutorial I will be using MS Visual Studio 2017 under Windows 10. Please note that this tutorial does NOT cover any coding! That's all up to you. > Ladder and pole visualizers do not behave quite as intended.īefore reporting issues please check your mod's version in the mods settings menu and compare it to the most recent version in the listing's change notes.This tutorial is intended to give you a basic overview of how to create a new mod for ONI, get it running, and then upload it to the Steam Workshop. This mod uses Peter Han's excellent PLib under the MIT license: This library shows the version of the mod in the mod settings menu. When a blueprint is selected pressing DELETE (default) will delete it from your hard drive and pressing END (default) will allow you to rename a blueprint.Īll of my mods come with a version displaying library. When using a blueprint, pressing the right or left arrow keys (default) cycles between loaded blueprints. Whenever a blueprint is created it is automatically written to disk (in ~\Documents\Klei\OxygenNotIncluded\blueprints\ on Windows) From here blueprints may easily shared with friends. In addition, blueprints complete instantly in debug or sandbox mode making them ideal for testing large setups and designs! Adds blueprints to Oxygen Not Included! Blueprints allow the player to quickly copy and paste buildings from one area of the map to another.īlueprints automatically place build and dig commands so that the player doesn't have to do any more than is necessary. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |