API FAQ

Discussion in 'Empyrion API' started by Xango2000, Apr 27, 2017.

  1. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Can an API mod be included as part of a scenario?
     
    #61
    Mortlath likes this.
  2. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    mod loads just fine on my localhost but when I upload to a real server this error message happens

    26-23:21:14.872 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename unknown>:0

    any idea what i'm doing wrong?
    it's a pretty basic mod. I'm thinking my references are the cause, is it possible Visual Studio is using Absolute paths to mif.dll and protobuf.dll rather than relative?
    is it possible to force relative paths?
     
    #62
  3. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    Can you add some more logging to see which object is null?
     
    #63
  4. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    server staff just sent me a bunch of lines that say that...

    6-23:21:14.871 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename unknown>:0 at Assembly-CSharp.LineTree.ExtractOptions (CmdId , UInt16 , System.Object ) [0x00000] in <filename unknown>:0 26-23:21:14.871 19_21 -ERR- Error on executing Player_Info in mod Mod1 26-23:21:14.872 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename unknown>:0 at Assembly-CSharp.LineTree.ShowPane (UInt16 , ErrorType ) [0x00000] in <filename unknown>:0 26-23:21:14.872 19_21 -ERR- Error on executing Player_Info in mod Mod1 26-23:21:14.872 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename unknown>:0 at Assembly-CSharp.LineTree.ShowPane (UInt16 , ErrorType ) [0x00000] in <filename unknown>:0 26-23:21:14.872 19_21 -ERR- Error on executing Player_Info in mod Mod1 26-23:21:14.872 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename unknown>:0 at Assembly-CSharp.LineTree.ShowPane (UInt16 , ErrorType ) [0x00000] in <filename unknown>:0 26-23:21:14.872 19_21 -ERR- Error on executing Player_Info in mod Mod1 26-23:21:14.872 19_21 -EXC- System.NullReferenceException: Object reference not set to an instance of an object at XangosBackpack.MyEmpyrionMod.Game_Event (CmdId cmdId, UInt16 seqNr, System.Object data) [0x00000] in <filename
     
    #64

Share This Page