Closed ChAos48 closed 5 years ago
so verifying, and then re installing Nitrox on the client fixed it. do I have to do that each time a new version comes out?, or how can I add the mod from my compiled bins?
You have inject the code in the wrong place: your code:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using NitroxPatcher;
using UnityEngine;
// Token: 0x0200045D RID: 1117
public partial class GameInput : MonoBehaviour
{
// Token: 0x06001982 RID: 6530 RVA: 0x000AC16C File Offset: 0x000AA36C
private void Awake()
{
Main.Execute();
if (GameInput.instance != null)
{
UnityEngine.Object.Destroy(base.gameObject);
return;
}
GameInput.instance = this;
GameInput.instance.Initialize();
for (int i = 0; i < GameInput.numDevices; i++)
{
GameInput.SetupDefaultBindings((GameInput.Device)i);
}
}
}
The right code:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using NitroxPatcher;
using UnityEngine;
// Token: 0x0200045D RID: 1117
public partial class GameInput : MonoBehaviour
{
// Token: 0x06001982 RID: 6530 RVA: 0x000AC16C File Offset: 0x000AA36C
private void Awake()
{
if (GameInput.instance != null)
{
UnityEngine.Object.Destroy(base.gameObject);
return;
}
GameInput.instance = this;
GameInput.instance.Initialize();
for (int i = 0; i < GameInput.numDevices; i++)
{
GameInput.SetupDefaultBindings((GameInput.Device)i);
Main.Execute();
}
}
}
that fixed it thank you
so I followed the Setting up a development environment for Nitrox guide. and after injecting the NitroxPatcher into Aasembly-CSharp, the game gets stuck in "loading..." before the menu.
to inject the Patcher I modified Assembly-CSharp.GameInput.Awake() this is what it looks like:
I did notice the Output_log.txt had an game Error ing
Not sure if it makes a differance but Ive changed all the framework versions in my .sln to .net 4.0.0 to fix the issue at #446