Coder Social home page Coder Social logo

Comments (6)

MarijnS95 avatar MarijnS95 commented on August 22, 2024

Duplicate of #91.

from nitrox.

Staudey avatar Staudey commented on August 22, 2024

Copied from another issue report:

"Download dnSpy from releases here: https://github.com/0xd4d/dnSpy/releases
Save the files from the .zip somewhere on your computer (I recommend ProgramFiles because it's a program).
Launch dnSpy from the dnSpy.exe (there are many files but it's there somewhere)
Inside dnSpy, hit ctrl+O(as in Open) or File->Open.
Navigate to Subnautica game directory and find CsharpAssembly.dll. Should be here: Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\Assembly-CSharp.dll
Select and tell dnSpy to open it.
dnSpy should add new entrys on the left most list. Find "Assembly-Csharp" and select it.
In dnSpy click the search icon at the top of the program and type "GameInput".
At the bottom of dnSpy it should show "GameInput" and other classes of the game, find "GameInput" and double click it to open it in the edit view.
Press ctrl+F and now search for Awake. It should navigate you to: private void Awake(). That is the method you need to change.
Put the cursor inside that method (between the { and }) and press ctrl+shift+e.
dnSpy should open a new window. At the bottom left of that window click the open file icon.
In the open file dialog select NitroxPatcher.dll. If you followed all instructions prior it should be besides the CSharp-Assembly.dll you found earlier (same directory). If not, redo those instructions (mainly, building with Visual Studio).
After you opened NitroxPatcher.dll it should close the open file dialog and you're back at the Awake method.
Add the following to the bottom of that method (on the line before the close bracket }): NitroxPatcher.Main.Execute();.
Hit compile on the bottom right of the window. Wait for it to finish.
Close dnSpy (just hit all the X buttons on all the windows in order) and tell it to save everything (say yes and ok)."

from nitrox.

werichff avatar werichff commented on August 22, 2024

love you :D thanks so much :)

from nitrox.

Pantking avatar Pantking commented on August 22, 2024

1

Where to write this :

Add the following to the bottom of that method (on the line before the close bracket }): NitroxPatcher.Main.Execute();.

from nitrox.

Measurity avatar Measurity commented on August 22, 2024

@Pantking The guide should be clear enough for anyone with programming experience. We expect this from people that want to test/help out this mod because the mod is not stable yet. It won't be enjoyable for you.

If you want to help out developing this mod I recommend learning a bit of C#/programming. The docs can help you out a lot:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/methods

from nitrox.

Pantking avatar Pantking commented on August 22, 2024

Where to get

NitroxPatcher.dll

i can't find in my Subnautica installation folder

from nitrox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.