- Home /
Question by
MissKillshot · Aug 08, 2018 at 03:41 PM ·
error messagefunctioncommanderror-handling
Object reference not set to an instance of an object with Assembly-CSharp
Hey guys Ive been working on a mod tool for The Long Dark and I cant seem to call a function/command in the game.
I have Assembly-CSharp.dll for a reference & Unity Engine.
Error is - Object reference not set to an instance of an object.'
What im trying todo!
private void Button_Click_2(object sender, RoutedEventArgs e)
{
processname = Process.GetProcessesByName("tld");
if (processname.Length == 1)
{
ConsoleManager.CONSOLE_god(); // this is the issue
}
else
{
}
}
CONSOLE_God() is a Long dark command inside ConsoleManager in Assembly-CSharp that im calling. I must be missing a key factor as Im slightly new when it comes to executing pc mods.
From my understanding when I call it, the command has no return/Off&On option, but I can be wrong.
If someone can take their time to help me out as I said im median level when it comes to coding but this seems to be the only obstacle im having. Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612172440im_/https://answers.unity.com/themes/thub/images/avi.jpg)