The online racing simulator
Searching in All forums
(3 results)
Apeh
Demo licensed
Hello guys!

I have been experimenting with this InSim .NET library, it's really cool, but I've come across a problem which i have not seen anywhere explained.
I can't send two IS_BTN packets with one Send command like this:

InSim inSim = new InSim();
inSim.Initialize(new InSimSettings()
{
Host = "127.0.0.1",
Port = 29999,
});

inSim.Send(new IS_BTN()
{
BStyle = ButtonStyles.ISB_DARK,
ClickID = 0,
UCID = 255,
ReqI = 1,
L = 50,
T = 50,
W = 30,
H = 10,
Text = "heey"
}, new IS_BTN()
{
BStyle = ButtonStyles.ISB_DARK,
ClickID = 1,
UCID = 255,
ReqI = 2,
L = 50,
T = 60,
W = 30,
H = 10,
Text = "hooo"
});

It works perfectly if I send it once at a time, otherwise it throws an ArgumentException.
Why is that?
How to use exactly SMX files in lfs?
Apeh
Demo licensed
Please tell what are they for and how to use them. I want street names and other location on my server, but its quite annying with 2D maps, when i meet with bridges etc. Could SMX files help me, if yes please tell me how. Im using C#. Thank You for answers Smile
Cursor disappearance proplem InSim
Apeh
Demo licensed
I have menu and a few other buttons, when player goes more than a specified speed i make the buttons non-clickable. The problem is when no button is shown which could be cliked, the coursor still appears when i move it which is quite annying if u drive with mouse. Could someone help me with this? Thank You
FGED GREDG RDFGDR GSFDG