After sinanju asked me a question in March 2011, I never bothered to answer him or have a look at his request.
Until tonight that is, since I can release V2.05 of my Pitboard now.
V2.05
- Added option to set wether to show the Pitboard config screen on connect or not
I've done the changes for Lapper 5.846 and Lapper 6.012 and included them with this posting.
Just as an aside, some of those Subs are computationally expensive which may slow Lapper down a bit.
As GLscript is an interpreted language, referencing a local variable vs making calls to Lapper to get a value takes quite a few cycles.
e.g. instead of using lots of calls like 'IF ( getLapperVar( "ShortTrackName" ) == "BL1" || getLapperVar( "ShortTrackName" ) == "BL2" ...' etc, use this:
Essentially try and limit the amount of things in your scripts that use multiple "getLapperVar" or "GetPlayerVar" commands that return the same data. Do 1 call into a local variable and query that and your scripts will run faster.
Although this thread is old and hasn't been updated in years, this still would be the right place to mention a new version of this script.
So here is version 2.13 for the 'Pitboard' module.
Changelog Pitboard V2.13
-Added routine to delete data from 'fi_stored' and store it into 'fi_user_value'
-Removed some debug code
-Removed a section of code that has been disabled for a while
Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.
For closed tracks you don't have to set the number of splits.
The Pitboard reads the trackname and then has the number of splits in its code.
For open configs you do need to set the number of splits, otherwise the Pitboard won't know how many splits to display.
Ah, I think I know what the issue is
The latest version I uploaded here (2.13) doesn't work with recent versions of Lapper.
So on my end I am running version 2.16 Beta (for just over 3 years, so I guess it should move into a release now, otherwise I will never happen )
Here we go with version 2.17
Changelog Pitboard V2.17
-Removed some debug code
-Removed a WHILE-loop from sub 'OnRaceStart_Pitboard' and replaced it with a FOREACH-loop
-Removed a WHILE-loop from sub 'OnQualStart_Pitboard' and replaced it with a FOREACH-loop
-Called the wrong array ('$ply_list' instead of '$ply_list_tmp') in Sub 'OnRaceStart_Pitboard'
-Called the wrong array ('$ply_list' instead of '$ply_list_tmp') in Sub 'OnQualStart_Pitboard'
-Looped through wrong array ('$ply_list_pb_racestart' instead of '$ply_list_pb_qualstart') in Sub 'OnQualStart_Pitboard'
-Used a wrong variable ('$uName' instead of '$uName_pitboard') in the FOREACH-loops
Change the extension of the file to .lpr and add it to addonsused.lpr to be able to use it.