Hey, found a little issue with this lib.
Basically I have a Connection list, which has variables, like
So I am collecting info from MCI, and I have made a CompCar variable like so:
When trying to put info from MCI onto this, I get the usual "Object reference not set to an instance of an object" error... so then I tried this:
This pulled up the error : "The type 'Spark.Packets.CompCar' has no constructors defined".
So I was unable to reference the code, so I ended up writing my own structure:
This code solved it.
Nevertheless I think you should define the "constructors" in future updates, to help other coming from LFS_External
Basically I have a Connection list, which has variables, like
public string Username;
public string PlayerName;
So I am collecting info from MCI, and I have made a CompCar variable like so:
public CompCar Car;
When trying to put info from MCI onto this, I get the usual "Object reference not set to an instance of an object" error... so then I tried this:
public CompCar Car = new CompCar();
This pulled up the error : "The type 'Spark.Packets.CompCar' has no constructors defined".
So I was unable to reference the code, so I ended up writing my own structure:
public CarPack Car = new CarPack();
public struct CarPack
{
public short AngVel;
public ushort Direction;
public ushort Heading;
public CompCarFlags Info;
public ushort Lap;
public ushort Node;
public ushort Speed;
public byte PLID;
public byte Position;
public int X;
public int Y;
public int Z;
}
This code solved it.
Nevertheless I think you should define the "constructors" in future updates, to help other coming from LFS_External