LFSpitboard by Vain
Version R4, 09.07.2014

* Caution: This is an early release and may crash, display wrong data, cause physical injury or start the third world war. Use at your own risk.

LFSpitboard may be extracted to any folder, though I suggest .../LFS/LFSpitboard. In the standard configuration it will attempt to start LFS.exe in the folder below it (works if installed in .../LFS/LFSpitboard) with LFS's insim-port set to 12500.
Step-by-step instructions:
1. Start LFSpitboard.exe
LFS should be starting now.
2. After having loaded LFS should now report that LFSpitboard connected in the top left corner. LFSpitboard will state that has connected to LFS.
3. Start a race or qualification or join a host.
Note: If the above procedure doesn't work or you want to disable it for any other reason you can open cfg.xml in LFSpitboard's folder and search for the value "start" in the line "LFSExec" and set start="0". LFSpitboard won't attempt to start LFS.exe anymore then. You will have to start LFS manually and manually type "/insim=12500" (12500 being the configured InSim-port in cfg.xml) into a chatbox to allow LFSpitboard to connect.

LFSpitboard's behaviour when joining a race mid-race is not correct since it can't track the race properly. It will only supply reliable data once the race has restarted. It will also only work properly in races or qualification. It won't do anything in practice mode. This is planned for later releases.

Please report any problems or suggestions in the LFSforums.
Have fun.

Changelog for R4:
- Recompiled for InSim V5.

Changelog for R3:
- Basic qualification functionality.
LFSpitboard tracks the best times of all cars and shows the position of the viewed car. It calculates the gaps from the viewed car's best time and the best time of the car in front and behind on the laptimes-table. It also displays the last done laptime by the viewed player.
- In a race LFSpitboard will now calculate the amount of fuel you need to finish the race and automatically set it if you are running out of fuel (this only works if you don't have the F12 menu displayed while crossing the s/f line). This feature currently only makes sense if you need less than 100% fuel to finish the race. More in-depth functionality like editable strategy and tyre-advice will come later.
- LFSpitboard can now start LFS by itself. In cfg.xml under the category "LFSExec" there is the option "start" which determins wether LFSpitboard attempts to start LFS (can be 1 or 0). If 1 LFSpitboard will try to load "LFS.exe" which is located in the path given by the location-variable (which is relative to the position of LFSpitboard.exe). The standard configuration is set up so it works if LFSpitboard.exe resides in .../LFS/LFSpitboard. If "InvokeInSim" is 1 LFSpitboard will set the "/insim="-parameter to its InSimport so LFS automatically initializes InSim.
- During a race the pitboards now use color-coding to inform you about the development of the displayed values. Position and gaps are colored if they get worse or improve. The pit-instructions are colored red if you ran over them once.
- There is now an additional fourth line on the pitboard that is displayed if LFSpitboards has additional information, like the amount of fuel the driver should set before pitting. In this line LFSpitboard will also anounce the last lap.
- Fixed a bug in the laptime-lookup function that could cause negative fuel usage to incur.
- Removed some debug output from code-sections that seem to work properly.

Changelog for R2:
- Pitboards now disappear after a specified amount of time (default = 15 seconds).
- LFSpitboard now supports loading a configuration filevia the library IrrXML. cfg.xml hold InSim port, OutGauge port, the admin-pass for LFS and the default timeout duration for the pitboard.
- LFSpitboard will display "PIT" in the lower right corner of the board if you have fewer fuel than 3 times of what you use per lap. That means, when LFSpitboard warns you you can at do at least two full laps.

R1:
First release. Tracks the race and displays position, lap, gap forward & gap backward, last laptime, penalty and mandatory race.