hooglspot.blogg.se

Subnautica mods not showing
Subnautica mods not showing






subnautica mods not showing
  1. #SUBNAUTICA MODS NOT SHOWING HOW TO#
  2. #SUBNAUTICA MODS NOT SHOWING INSTALL#
  3. #SUBNAUTICA MODS NOT SHOWING MOD#
  4. #SUBNAUTICA MODS NOT SHOWING UPDATE#
  5. #SUBNAUTICA MODS NOT SHOWING PATCH#

Prefix method needs an EscapePod _instance parameter passed to it to replicate seeing 'this.xyz' in the game's code. EscapePod_Patcher is provided as an example of a prefix that overwrites the game's existing method. True will send the code into game's method as normal, False will skip the games method, providing you with a way to overwrite the game's method entirely if you choose. If you are using a prefix it needs to return a boolean. Simply put the postfix tag before the method and then any code you want to run inside that method. Next you choose whether to use a prefix or a postfix.

subnautica mods not showing

#SUBNAUTICA MODS NOT SHOWING UPDATE#

tells it to look at the Player class and tells it to look at the Update method of that class. From the example you can see that we use tags inside to tell Harmony what to look for.

#SUBNAUTICA MODS NOT SHOWING PATCH#

Here I chose to patch the Update method of the Player class. The MainPatcher.cs file is an example of how this file should look.įrom here you need to know what class of the game you want to patch and how.

#SUBNAUTICA MODS NOT SHOWING MOD#

Now to tell your mod to do anything at all we need a simple command that creates the harmony instance and tell's it that patches need to be done. As mentioned above, the basic usage of Harmony is to to inject code into existing methods either before (Prefix) or after (Postfix). Now that your project is set up you're ready to get started. If you are going to be adding or altering existing objects in the game or even want an easy in-game mod config to be added to the menu then you will also want to reference SMLHelper.dll from inside the QMods folder where you installed it earlier. These 5 files are the most basic references needed to make any mod that alters the games code in any way. Now add 0Harmony.dll from the BepInEx/core directory and QModInstaller.dll from the BepInEx\plugins\QModManager directory.

subnautica mods not showing

Right click References in the solution explorer (default on the right of your screen) and choose to Add Reference.īrowse to your Subnautica/Subnautica_Data/Managed or SubnauticaZero/SubnauticaZero_Data/Managed directory and add the following files: Once your new project is created you'll need to add some references. * Name it and in the framework dropdown at the bottom choose '.NET Framework 4.7.2' * Choose 'Class Library (.NET Framework)' Setting up your new project in Visual Studio You'll need to reference and I'll cover it further down. Don't worry about Harmony, QModManager installed the file that This is important because the way we do code injection using the Harmony library is most commonly to modify or attach code toĮxisting methods rather than making new things in a vacuum. From there you can work your way down to the directory to view the game's classes and methods. Or SubnauticaZero/SubnauticaZero_Data/Managed and open the Assembly-CSharp.dll. Browse to Subnautica/Subnautica_Data/Managed Run dnSpy executable and go to File->Open. This is the portion that dnSpy is used for. This mod gets extracted into the QMods folder in the game directory. SMLHelper is a modding Library to make adding mod items and changing existing items easier as well as many other utilities to make modding easier. This will, among other things, create a QMods folder in your subnautica directory.

#SUBNAUTICA MODS NOT SHOWING INSTALL#

You'll also need to install QModManager from Nexus. Place it in a folder somewhere convenient you will be using it A LOT!. Third for looking into the games code you will want to grab dnSpy from github. Subnautica is currently on version 2019.2.17 and BelowZero is currently on 2019.4.9 If you are going to be making new mod items from scratch you'll need Unity. When installing, make sure to select the ".Net desktop development" option from the workloads list. The Community Edition is free for personal use and will be sufficient for There are a few tools you'll want to download before proceeding. Sure that you're learning the right one! Also this tutorial is for modding on a Windows computer. AgainstĮverything that this world has taught us with things similar alphabetically, C# is very different from C and C++ so make Not a programming tutorial so I'd recommend getting a grasp of the basics. If you're new, modding does require some programming skills. Modder that is just looking to start on a new game.

#SUBNAUTICA MODS NOT SHOWING HOW TO#

So you want to learn how to mod Subnautica? This tutorial will get you started whether you're a complete beginner or veteran Please note that NONE OF THE REQUIRED PROGRAMS ARE INCLUDED IN THIS DOWNLOAD.








Subnautica mods not showing