The online racing simulator
Searching in All forums
(180 results)
riskredruM
S2 licensed
struct IS_PIT // PIT stop (stop at pit garage)
{
char PIT [4];

word LapsDone; // laps completed
word Flags; // player flags
byte Penalty; // current penalty value (see below)
byte NumStops; // number of pit stops
byte Sp2;
byte Sp3;

byte Tyres [4]; // tyres changed

unsigned Work; // pit work (see below)
unsigned Spare;

byte PlyNum; // player's number
byte UniqueId; // player's unique id
word VerifyId;
};

Pit work flags
--------------
PSE_NOTHING 1
PSE_STOP 2
PSE_FR_DAM 4
PSE_FR_WHL 8
PSE_LE_FR_DAM etc...
PSE_LE_FR_WHL
PSE_RI_FR_DAM
PSE_RI_FR_WHL
PSE_RE_DAM
PSE_RE_WHL
PSE_LE_RE_DAM
PSE_LE_RE_WHL
PSE_RI_RE_DAM
PSE_RI_RE_WHL
PSE_BODY_MINOR
PSE_BODY_MAJOR
PSE_SETUP
PSE_REFUEL

Pit lane facts
--------------
PITLANE_EXIT 0 // left pit lane
PITLANE_ENTER 1 // entered pit lane
PITLANE_NO_PURPOSE 2 // entered for no purpose
PITLANE_DT 3 // entered for drive-through
PITLANE_SG 4 // entered for stop-go
Last edited by riskredruM, .
riskredruM
S2 licensed
Quote from haelje :..... u wrote this is done with visual basic ? perhaps we should try to port to lfslib ?

Today i played around with lfslib and vb 2005. But i always get an "System.InvalidOperationException " when creating the InSim.InSimHandler.

There is no chance to control LFS from other PC´s at the moment. Only camera Position can be controled.
hmm .... you can send text messages.

Sure you can store all data given by InSim OutSim OutGauge.
With the latest Testpatch (and perhaps Patch X) InSim includes Pitwork.
riskredruM
S2 licensed
Ok …
Let’s give it a try ….
Send Port: 29999
Password: nothing
Recv Port: 50
Abweichende IP: The IP of the network PC where LFS is running. Nothing means 127.0.0.1 à Your PC

If you want to run it in Network first of all you have to open your cfg.txt.
At the end you will find this:

OutSim Mode 2 Replay and Multiplayer
OutSim Delay 1 Packets are sent every 1ms
OutSim IP 127.0.0.1 there you have to write the IP of the PC the tool is running
OutSim Port 50 ok
OutSim ID 0 if you want to control more than one LFS

OutGauge Mode 2 same as for OutSim
OutGauge Delay 10
OutGauge IP 127.0.0.1
OutGauge Port 50
OutGauge ID 0


After done this you can start LFS. In LFS you have to open Chat (T) and write “/insim 29999”.
You also can edit your LFS Link with “/insim=29999”.
Then start the tool on other PC. Fill the Text fields and click on connect.
The LFS Version has to be shown in Status bar. Then you are connected. Port for Firewall is 50.
Remember to mark “Informationen abrufen” and click on “Racetracker starten”.
Click the Button “Analoganzeigen” and see what will happen.

It´s not perfect but it was my first try.
riskredruM
S2 licensed
Quote from DeXteRrBDN :is your "something like that. But never brought it to an end" easy convertible to PDA compatible ?

or maybe you could realese the source code, so someone could develope it.

I know how to programme, but don't know how to programme for a PDA compatible.

It is made with vb6. So nothing very popular. But i try to write it in vb 2005 at the moment.

Link to last Version.
http://lfs.foren.4players.de/download.php?id=22816

Quote from hughesie89 :
here is my dream for this project

for people like me to be able to download a program run it on a secondary computer have all that data
Lap and split-times.
Fuel.
Speed, Gear, RPM.
Race Information like who is pitting.

and in lfs just type insim/2999/192.168.2.3 (remote ip)

that would be great, can it be done

Up to "Race Information like who is pitting." the tool show this.
riskredruM
S2 licensed
I made something like that. But never brought it to an end.
You can watch the outgauge-data on any PC in local network or internet. The only thing you have to do is giving LFS the IP of that PC.
But things like tire temperature or damage are not visible for anyone but you.
Only things are.
Lap and split-times.
Fuel.
Speed, Gear, RPM.
Race Information like who is pitting.

With all that data you can play around.

Wow, I think I have to go to school for a little. My English is not getting better.
FGED GREDG RDFGDR GSFDG