The online racing simulator
Searching in All forums
(30 results)
2
BabyOnWheels
S3 licensed
Quote from Soeren Scharf :
I suggest you tell us, what do you need the detection of the green light for? Maybe someone has an idea for a different solution.

The program checks pit stops. If it was made in right time = when pit the stop window is opened. Otherwise it isn't counted in requested pit-stop counts.

It can be defined by lap (isn't problem to detect it) and by time. I am detecting the car speed on start. It is ok, but the time is a bit shifted. (I start the timer(s), when this is detected).

But it seem I will have to change it too, because, there is some delay untir the packet comes and I detect it. At all for Pit-stop window it is ok. I am just interested, if there is any possibility how to detect it exactly (better)
BabyOnWheels
S3 licensed
Quote from Krammeh :how about tracking the MCI's, and detecting any movements? once they all move ,its pretty safe to say its green?

Yes this is exactly the "dirty hack" which I am using now. But I think the advice "A.Fedorov" will be cool. I am looking forward to evening = I will test it. Thanks a lot.
BabyOnWheels
S3 licensed
Quote from A.Fedorov :using TINY_RES
if (ISP_RES.ETime > 0) { GreenLigth = true; }

thanks a lot
BabyOnWheels
S3 licensed
Quote from A.Fedorov :may be use if it possible when race start time?

I am not sure, when the race start (packet comes) the cars are on start grid and waits until green flag.
InSim and LFSUsername + detection of green light + IP address of LFS server
BabyOnWheels
S3 licensed
Hi Guys,
I started write some small application which finally should calculate times and laps for “shorter” endurance races.
Now I finished first necessary stuff for our cup. It should test the speed limit during first lap and if it is exceed the player is penalized.
Next step will be “warm-up” checker + restart.

And why I am writing here? Of course I have some questions. I am using LFSlib (.NET)

I don’t know:
1)How to obtain LFS user name. If it is possible. (solved, thanks guys)

2)When I am connecting to dedicated server. I need to obtain its IP address. Exist there any possibilities how to translate “LFS server name to IP name”

I think this isn’t possible in InSim, but I have to ask J
1)Exist there any possibility how to detect the green lights (on start-semaphore). I am detecting the car-speed. But this is a bit dirty hack J
2)Exist there any possibility how to handle the start-semaphore?

When anyone wants to test it, download it from: www.interregion.cz/jarda/EGT.ZIP


But keep in mind. It is in development phase (not all from UI is implemented in code, only necessary parts and a lot of UI are missing now) and globally for me it is test, what all I am able to do with InSim. Source code added and is free for use.

On purpose the setting is stored into XML instead any DB. DB is planned for web-appl.

Edit: at 1) I tested it offline and there the connect packet doesn't exist (comes) of-course, my stupidity, as usually
Last edited by BabyOnWheels, .
2
FGED GREDG RDFGDR GSFDG