The online racing simulator
Searching in All forums
(7 results)
amaru_amaru
Demo licensed
I tried the SendKeys.Send function but it didn't work ...
Remote gear changing
amaru_amaru
Demo licensed
I don't know if the title says what I want to say. So, i'm trying to make an automatic gear changing system for different types of driving. For that I'm using c#, but I don't know which library to use. I mean I don't even know if it's possible to make that. So that's why I starded a new thread. Can I do it with the InSim library?
amaru_amaru
Demo licensed
Thanks DarkTimes. I made the program. Now i have to put in the left functions and after that i'll put it on the forum.
amaru_amaru
Demo licensed
Yes i tried it.

And yes, i did it also with the Console.WriteLine as in the example on insim.net. With this method i receive the packets, but i need it in the Forms mod.
amaru_amaru
Demo licensed
It gets stucked when i press the start button. It takes the value (eg. 950) and it doesn't update it.
outgauge rpm
amaru_amaru
Demo licensed
I use the insim library for c# and i'm trying to make a panel with gauges.
But the rpm doesn increase. I tried with a while loop, but the same thing.
private void button1_Click(object sender, EventArgs e)
{

/// Create timeout interval.
TimeSpan timeout = TimeSpan.FromSeconds(1);

// Create OutGauge object with the specified timeout.
using (OutGauge outgauge = new OutGauge(timeout))
{
// Attach event handler to packet-received event.
outgauge.PacketReceived += new EventHandler<OutGaugeEventArgs>(outgauge_PacketReceived);
outgauge.TimedOut += new EventHandler(outgauge_TimedOut);

// Start listening for packets from LFS.
outgauge.Connect("127.0.0.1", 30000);

}
}
static void outgauge_TimedOut(object sender, EventArgs e)
{
MessageBox.Show("OutGauge timed out!");
}
private void outgauge_PacketReceived(object sender, OutGaugeEventArgs e)
{
// Handle packet.
float FValue = e.RPM;
int FValue1 = Convert.ToInt16(FValue);
string final = Convert.ToString(FValue1);
if (FValue > 0)
{
while (true)
{
label1.Text = final;
}
}
}

language problem
amaru_amaru
Demo licensed
I want to edit my lfs to be a drifting edition. Anyway. When i try to edit the english language, it says that is saved, but when i open the game, it`s english. Sorry for my bad english
FGED GREDG RDFGDR GSFDG