The online racing simulator
Quote from Bass-Driver :hi
i have a lil problem with transfer the driftbox from 5.716 to 5.845 . it doenst show the driftbox completly
can someone help me .

openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . $ConfVar["host"] . "^0]" );


Hi,
Use this to show the server name.
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
Quote from Tim NL :Hi,
Use this to show the server name.
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );

k that works
but the other things dont work . i have changed something but it still dont work

look post above
Hi

Couple of things;

You're duplicating a lot of the buttons (about 8).

You've got these after your first THEN, and repeated after your second THEN. Maybe conflict there.

Also, you appear to be missing a line $AngleVelocity = -$AngleVelocity ;

Try the following;

Event OnDriftScore()

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );

IF( $GUI_drift == "yes" )
THEN
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );

IF( $AngleVelocity < 0 )
THEN

$AngleVelocity = -$AngleVelocity ;

SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . $Angle_Reverse);
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "DriftScore") );
ELSE

openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "AngleVelocity" ) );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );

ENDIF
ENDIF
EndEvent

Haven't tested it, but it might help

If still problems, you could look at my drift meter coding at http://www.lfsforum.net/showthread.php?p=1243536#post1243536
Hi, is it possible to define qual groups also if I define qual users from a file?

$RefreshQualUsers = true;
$QualUsers = "&./qualusers2009.txt";
#$QualUsers = "@DefGroup:2:32:1,Lysergic,.....

May I write:
$QualUsers = ""@DefGroup:2:32:1,&./qualusers2009.txt";


Many thanks!
Quote from sinanju :Hi

Couple of things;

You're duplicating a lot of the buttons (about 8).

You've got these after your first THEN, and repeated after your second THEN. Maybe conflict there.

Also, you appear to be missing a line $AngleVelocity = -$AngleVelocity ;

Try the following;

Event OnDriftScore()

<SNIP>

EndEvent


actually all u need now is


<?php 
Event OnDriftScore
() 
          IF( 
$GUI_drift == "yes" )
       
THEN
          openPrivButton
"Score1",1,137,14,5,4,-1,32,"^1" GetCurrentPlayerVar"LastDriftScore" ) );
          
openPrivButton"Angle1",15,137,14,5,4,-1,32,"^1" GetCurrentPlayerVar"AngleVelocity" ) );
          
openPrivButton"TotalScore1",1,147,28,5,4,-1,32,"^1" GetCurrentPlayerVar"LastDriftScore") );
  ENDIF
EndEvent
?>


Quote from lysergic :Hi, is it possible to define qual groups also if I define qual users from a file?

$RefreshQualUsers = true;
$QualUsers = "&./qualusers2009.txt";
#$QualUsers = "@DefGroup:2:32:1,Lysergic,.....

May I write:
$QualUsers = ""@DefGroup:2:32:1,&./qualusers2009.txt";


Many thanks!

you must define @DefGroup:2:32:1 in qualusers2009.txt. This must be done in first line of the file

example in file :

Quote :
DefGroup:3;20;13
lysergic
gai-luron
....

Gai-Luron
Thanks Gai for the answer, but I have a problem. The file qualusers2009.txt is generated by mySQL select into outfile function and it's not possible to add text (or I don't know how to).

May I define two files, one with defGroup and one with qual users? Something like: $QualUsers = "&./defgroup.txt&./qualusers2009.txt";
  1. Insert a temporary username in your mysql table DBS containing qualification user with username like this : DefGroup:3;20;13
  2. then make your sql statement including this row to create file
  3. then erase this row
DefGroup:3;20;13 can be in any line of your qual user file. It's not an obligation to put it in the first line

or better use UNION ( search word on google : "header INTO OUTFILE" )

Here an example

SELECT 'DefGroup:3;20;13'
UNION
SELECT username INTO OUTFILE 'qualuser.txt'
FROM yourTable
WHERE yourquery

Gai-Luron
WOW! Thanks Gai, I'll try it.
It works perfectly, I create a table named "defgroup" with a row TINYTEXT with value "DefGroup:2:32:5" then I added to my select:
SELECT * FROM defgroup
UNION
SELECT .... INTO OUTFILE "qualusers2009.txt"

the result of the file is:

DefGroup:2:32:5
alexio_82
bLb
CARRERA GT
Clegster
Darrajunior
fallen
Il Nonno
kalabas
Logan 5
lysergic
manosf23
MaurizioNaselli
multit
nasoss
neilser
nikosk31
Ostersund
predrag
radziomistrzu
rockclan
roudim
saxakias
scoupegt
sermilan
sh00ter
thanos gr
thereaperlt
therivierakid
tim.ellis
Tzive
Varwnos
Vule
X-treamRaceR
[HUN] K.Buss

now I'll check if LFSLAPPER works ok ... no doubts about it


many thanks again Gai
Does there need to be a cetain place for lapper files to be?

new server and i didnt set it up is there a certain way i use ftp atm i have it in a folder called lapper...

Thanks In Advance
Hi again, I'm trying to use Lapper 5.845 on Windows 2003 Server x-64 but I have this error

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Mono.Data.SqliteClient
at Mono.Data.SqliteClient.Sqlite.sqlite3_open16(String dbname, IntPtr& handle)
at Mono.Data.SqliteClient.SqliteConnection.Open()
at LFSDbs.DbsAccess..ctor(Debug pmyDebug, String DbName) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\DbsAccess.cs:line 45
at LFSDbs.gripDbs..ctor(Debug pmyDebug, String puniqueConnectionId, String DbName, Int32 LapTimeUsedForPbPar, String FtpServer, String FtpLogin, String FtpPasswd, String FtpRemotePath, String dateFormat) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\gripdbs.cs:line 72
at LFSLapper.LFSClient.init(String pip, Int32 pport, String pWorkingDir, String pIniFile, String pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 558
at LFSLapper.LFSClient..ctor(String pip, Int32 pport, String pWorkingDir, String pInifile, String pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 254
at LFSLapper.LFSListen.Listen.goWorkMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 82
at LFSLapper.LFSListen.Listen.start() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 126
Int32 sqlite3_open16(System.String, IntPtr ByRef)
Closing Instance...

Could You help me? Is this caused by 64bit system?
Quote from lysergic :...<snip>Could You help me? Is this caused by 64bit system?

Looks that way...is there any options to run it in a 32 bit mode if you create a shortcut and modify the shortcuts environment?

Otherwise, see if there is a 64 bit SQLite dll avaiable for download and try copying that into the Lapper directory. Try here: http://blog.quiziqal.com/post/ ... -Vista-64-Bit-Part-2.aspx
i get this

-----------------------------------------------------------------------------
9/20/2009 4:32:13 PM
Lapper Instance 127.0.0.1/17468 abort!
Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.listPlayers.updateGap(Int32 PLID, Int32 split, lexConfigurator newCfg, Boolean modifyOnlyPos) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Players\ListPlayers.cs:line 137
at LFSLapper.LFSClient.managePacket(MCI mci) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\managePacket.cs:line 717
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\loop.cs:line 944
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 630
at LFSLapper.LFSListen.Listen.goWorkMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 85
at LFSLapper.LFSListen.Listen.startStbMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 270
Void updateGap(Int32, Int32, Configurator.lexConfigurator, Boolean)
Closing Instance...
-----------------------------------------------------------------------------

Quote from Tur8o :i get this

-----------------------------------------------------------------------------
9/20/2009 4:32:13 PM
Lapper Instance 127.0.0.1/17468 abort!
Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.listPlayers.updateGap(Int32 PLID, Int32 split, lexConfigurator newCfg, Boolean modifyOnlyPos) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Players\ListPlayers.cs:line 137
at LFSLapper.LFSClient.managePacket(MCI mci) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\managePacket.cs:line 717
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\loop.cs:line 944
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 630
at LFSLapper.LFSListen.Listen.goWorkMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 85
at LFSLapper.LFSListen.Listen.startStbMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 270
Void updateGap(Int32, Int32, Configurator.lexConfigurator, Boolean)
Closing Instance...
-----------------------------------------------------------------------------


bug in ur lpr :S least thats what i get when i have a bug
I have a dedicated server 2003 unit in germany i host lfs from.
I can run the lapper mod from my home pc in england and connect to the server remote, it works fine, but if i put the lapper files on the server machine itself and try to run it from the server ,machine, i get the following error when i join the game and type !start the lapper goes right back to standby mode.

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Mono.Data.SqliteClient
at Mono.Data.SqliteClient.Sqlite.sqlite3_open16(String dbname, IntPtr& handle)
at Mono.Data.SqliteClient.SqliteConnection.Open()
at LFSDbs.DbsAccess..ctor(Debug pmyDebug, String DbName) in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\DbsAccess.cs:line 45
at LFSDbs.gripDbs..ctor(Debug pmyDebug, String puniqueConnectionId, String DbName, Int32
LapTimeUsedForPbPar, String FtpServer, String FtpLogin, String FtpPasswd, String FtpRemotePath, String
dateFormat) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\gripdbs.cs:line 72
at LFSLapper.LFSClient.init(String pip, Int32 pport, String pWorkingDir, String pIniFile, String
pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 558
at LFSLapper.LFSClient..ctor(String pip, Int32 pport, String pWorkingDir, String pInifile, String
pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 247
at LFSLapper.LFSListen.Listen.goWorkMode() in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 82
at LFSLapper.LFSListen.Listen.startStbMode() in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 270
Int32 sqlite3_open16(System.String, IntPtr ByRef)
Closing Instance...

Any ideas ?

In 3 years i have not been able to get any version of lapper working from my server 2003 machine :-S this is the 1st time i see a error report with version 5.846
Quote from m4ccy :I have a dedicated server 2003 unit in germany i host lfs from.
I can run the lapper mod from my home pc in england and connect to the server remote, it works fine, but if i put the lapper files on the server machine itself and try to run it from the server ,machine, i get the following error when i join the game and type !start the lapper goes right back to standby mode.

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Mono.Data.SqliteClient
at Mono.Data.SqliteClient.Sqlite.sqlite3_open16(String dbname, IntPtr& handle)
at Mono.Data.SqliteClient.SqliteConnection.Open()
at LFSDbs.DbsAccess..ctor(Debug pmyDebug, String DbName) in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\DbsAccess.cs:line 45
at LFSDbs.gripDbs..ctor(Debug pmyDebug, String puniqueConnectionId, String DbName, Int32
LapTimeUsedForPbPar, String FtpServer, String FtpLogin, String FtpPasswd, String FtpRemotePath, String
dateFormat) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\Dbs\gripdbs.cs:line 72
at LFSLapper.LFSClient.init(String pip, Int32 pport, String pWorkingDir, String pIniFile, String
pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 558
at LFSLapper.LFSClient..ctor(String pip, Int32 pport, String pWorkingDir, String pInifile, String
pSuperUsers) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 247
at LFSLapper.LFSListen.Listen.goWorkMode() in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 82
at LFSLapper.LFSListen.Listen.startStbMode() in
D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 270
Int32 sqlite3_open16(System.String, IntPtr ByRef)
Closing Instance...

Any ideas ?

In 3 years i have not been able to get any version of lapper working from my server 2003 machine :-S this is the 1st time i see a error report with version 5.846

64 bit?
i have a lil problem with my "driftbox"
when someone do !drfon it turns driftbox on for himself
but if someone else go drift with driftbox off ,then it turns the driftbox automaticly on


###################################
#Event triggered when lapper start#
###################################
GlobalVar $driftbox;
$driftbox = "no";


i think this is the problem
i need to change "GlobalVar"in something else
in version 5.617 was this PlayerVar but this doesnt work in 5.845
Quote from Bass-Driver :i have a lil problem with my "driftbox"
when someone do !drfon it turns driftbox on for himself
but if someone else go drift with driftbox off ,then it turns the driftbox automaticly on

###################################
#Event triggered when lapper start#
###################################
GlobalVar $driftbox;
$driftbox = "no";

i think this is the problem
i need to change "GlobalVar"in something else
in version 5.617 was this PlayerVar but this doesnt work in 5.845

Hi,
GlobalVar $driftbox; $driftbox = "no"; This is a globar var ( will counts for everybody)

For playervars use this

SetCurrentPlayerVar( "driftbox","no" );
and
GetCurrentPlayerVar( "driftbox" );
oh i screwed something up
could u change it pls??
Attached files
Driftboxsection.txt - 4.6 KB - 334 views
Thx it works
now i know how to use
SetCurrentPlayerVar(
GetCurrentPlayerVar(
Quote from Tim NL :Hi,
GlobalVar $driftbox; $driftbox = "no"; This is a globar var ( will counts for everybody)

For playervars use this

SetCurrentPlayerVar( "driftbox","no" );
and
GetCurrentPlayerVar( "driftbox" );

do these reset every time insim does?
what this mean?
-----------------------------------------------------------------------------
10/7/2009 9:19:22 PM

Lapper Instance 78.110.160.85/29000 abort!

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
mscorlib
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at InSim.Decoder.SMALL..ctor(Byte[] packet) in C:\Users\T3ChARmy\Desktop\desktop\src\InSim4.cs:line 828
at LFSLapper.LFSClient.Loop(Connect insimConnection) in C:\Users\T3ChARmy\Desktop\desktop\src\LFSClient\loop.cs:line 878
at LFSLapper.LFSClient.doloop() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSClient\lfsclient.cs:line 632
at LFSLapper.LFSListen.Listen.goWorkMode() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSListen\Listen.cs:line 85
at LFSLapper.LFSListen.Listen.start() in C:\Users\T3ChARmy\Desktop\desktop\src\LFSListen\Listen.cs:line 126
Void ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)
Closing Instance...
-----------------------------------------------------------------------------

Can lapper be configured to manage a multi-class start?

What I'd like is to have all the cars enabled and as an example have say 3-fxo's, 4-fox's & 4-bf1's on the track then a) have the fxo's start first - third, the fox's fourth - seventh, the bf1's eighth - eleventh b)in order as per their qualify positions within their own grouping and c) held back from starting until the previous group is a reasonable time away.

Yes I know this puts the fast cars at the back but it's the hardest so I thought I would at least ask... besides a normal qualify puts the fast cars up front - where's the fun in that
This thread is closed

Config help
(1112 posts, closed, started )
FGED GREDG RDFGDR GSFDG