NullReferenceException: Object reference not set to an instance of an object
at ConVar.Global.quit (ConsoleSystem+Arg args) [0x00000] in <77f05a477f174543b9c9c594e7c62fe7>:0
at Oxide.Plugins.SmoothRestarter+SmoothRestart.RestartNow () [0x0000a] in <e0adcb9ee167429198efbab626b2cc52>:0
at Oxide.Plugins.SmoothRestarter+SmoothRestart+<InitRestartRoutine>d__35.MoveNext () [0x00092] in <e0adcb9ee167429198efbab626b2cc52>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <470ec865e9cd405cbc45cdbc22bb3c0c>:0
Error on September Force Wipe
me too
Same here. Fix in the works?
I got out of the situation like this.
void RestartNow()
{
Instance.KickAll();
//Global.quit(null);
ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "save");
ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "restart 3");
} it works, thxkolumasI got out of the situation like this.
void RestartNow() { Instance.KickAll(); //Global.quit(null); ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "save"); ConsoleSystem.Run(ConsoleSystem.Option.Server.Quiet(), "restart 3"); }
This is broken for me as well.
"Object not set to an instance of an object." when it is time to restart
I did a fix that corrected the call to Global.quit(). It can no longer handle a null, so I passed an empty Arg object instead.
At line 15, I added
using Facepunch;
And changed line 1772 (?) to
Global.quit(new ConsoleSystem.Arg(ConsoleSystem.Option.Server,""));
when server restarts it justs kicks people but does not restart
Change line 1772 from
"Global.quit(null);"
To
"Global.quit(new ConsoleSystem.Arg(ConsoleSystem.Option.Server,""));"
This will Resolve Septemer 2024 Rust Patch
TheDevRyanXYZ
Change line 1772 from
"Global.quit(null);"
To
"Global.quit(new ConsoleSystem.Arg(ConsoleSystem.Option.Server,""));"
This will Resolve Septemer 2024 Rust Patch
I was having trouble with my team resetting after a restart. This fix solved it!
this finally worked for me, when nothing else worked: