The online racing simulator
A little starting help
(8 posts, started )
A little starting help
Hi
For my last tool I used LFSLib.NET from sdether with vb2005 and earlier vb6.
But now i want to make a bit testing with the new insim.

I understood the packets and can handle them. But i can´t get the tool connect proper to LFS with UDP and with TCP either.

What i need is a little starting help. Perhaps a piece of code for getting in contact with LFS so i can send and receive the packets.

So ... if someone have a funtion or class in vb2005(.net) to handle this it would be nice if i could get it.

Sorry for my bad english
I'm not using .net atm but what's the exact problem?

You can find a lot of example code snippets on the net to see how tcp works in vb#
Quote from GeForz :I'm not using .net atm .....

I know ....

Quote from GeForz :
You can find a lot of example code snippets on the net to see how tcp works in vb#

Well, i found many examples and i can connect to LFS. But the packets my tool seems to receive are some how ... hmmm .... strange

I tried so much arround and it is not getting better.

So i thought if someone have a "connect", "send" and "receive" procedures or classes and share it with me i can concentrate on the packets and what to do with them.
Ok....i got it

But i have big lags between action in LFS and Displaying in the Tool.
Wenn the SHIFTLIGHT is on in LFS, a button (to show this) apears 1 second later.

The lag is only with OutGauge (UDP). Here is a list of the incoming UDP Packets.

Time size Pack
..
..
41:38--228--MCI
41:49--228-- MCI
41:60--228-- MCI
41:72--228-- MCI
41:75--92--OG
41:85--228-- MCI
41:96--228-- MCI
42:72--228-- MCI
42:19--228-- MCI
42:30--228-- MCI
42:43--228-- MCI
42:54--228-- MCI
42:66--228-- MCI
42:75--92-- OG
42:77--228-- MCI
42:90--228-- MCI
43:90--228-- MCI
..
..

Both is set to 100ms
Solved nearly all Problems.
#8 - buedi
Did you start from Scratch? If yes, how do you make the Connection right now? I have the Problem that LFS gets my Insim Init Package and processes it but it doesn´t seem to be able assign the following Packages to the existing Insim Connection.

A little starting help
(8 posts, started )
FGED GREDG RDFGDR GSFDG