The online racing simulator
Searching in All forums
(5 results)
ibrahim_Erd
Demo licensed
Quote from dawesdust_12 :Does your LFS cfg.txt say 25000 for port as well?

yes
ibrahim_Erd
Demo licensed
Quote from dawesdust_12 :Port can be any number. (30000 or so is a safe range). Mode of 0 disables outsim.

Make sure that the port in your Application matches the port in your cfg.txt. That's the only really important part to the connection.

If you're having issues receiving data, it might be the method you're connecting with. I'll check a bit later at using XI4N (LFS client library written in Javascript) and see if I can get Outsim data. If I can, then it might be a case of the library you're using not being used correctly.

my outsim connect code
try
{

out_sim = new OutSim();
out_sim.Connect("127.0.0.1", 25000);


MessageBox.Show("connect geçti");

bool acaba = out_sim.IsConnected;
if (acaba == true)
MessageBox.Show("outsm baglandı");
else if (acaba == false)
MessageBox.Show("outsim baglı değil");
out_sim.PacketReceived += new EventHandler<OutSimEventArgs>(out_sim_PacketReceived);

}
catch
{
MessageBox.Show("connect de sıkıntı");
}

and working catch and i cant connect with outsim and i cant get datas
OutSim ip and port
ibrahim_Erd
Demo licensed
hi guys i have problem about outSim i wanna take datas in lfs (speed,pos exp.)
can i take datas with outsim.?
and last question outSim ip = "127.0.0.1"; port = 35001;
but in cfg.txt ip = "127.0.0.1" port = 0;
and mode = 0;

can u give me your connection ip and host or ip and port in your cfg.txt
ibrahim_Erd
Demo licensed
Quote from dawesdust_12 :In your cfg.txt file, inside your LFS directory, have you enabled OutSim? That means switching the mode from 0 to 1 or 2.

i chanced OutSim port and OutSim mod but i' taking same warning mode=1 port = 35001

i have checking outsim.connected it is return false.

and have you another idea ?
OutSim Connect
ibrahim_Erd
Demo licensed
hello.
i work first time about InSİmDotNet and LFS and i have problem OutSimConnect
icant connect to game i dont find mistake can you help me.
thanks.
internal static void outsimbaglantı()
{

try
{
out_sim = new OutSim();
out_sim.Connect("127.0.1.1", 35001);
MessageBox.Show("connect geçti");
out_sim.PacketReceived += new EventHandler<OutSimEventArgs>(out_sim_PacketReceived);

}
catch
{
MessageBox.Show("connect de sıkıntı");
}
bool acaba = out_sim.IsConnected;
if (acaba == true)
MessageBox.Show("outsm baglandı");
else if (acaba == false)
MessageBox.Show("outsim baglı değil");
}

FGED GREDG RDFGDR GSFDG