The online racing simulator
LFSLapper insim4 Release
(2101 posts, closed, started )
That exception is raised when a socket tries to listen on a host/port that's already in use.

Open the console and type 'netstat /a' to check if the port is being used by something else.
Hello,

this is a beta version an only one Lapper can be run on one computer ( Due to the socket error ).
The reason is because the console admin use a socket and tcp to manage LFSLapper. On Beta this is harcoded to a specified port ( not yet finished ).
In fact actually, there is a server and a client in LFSLapper for the admin like insim even if you don't see it.

i hope you understand what i say!

Gai-Luron

PS: I have some problem and i don't dev this past days but i continue to read yours feed back.
Feature Request: Possibility to upload the Grip/DriftPB.dbs files in the automatic upload system...

Is that possible (in the feature?)
Hi All,
Is it possible to use 2 $argv's in same command, Like....

$argv1 and $argv2 to get 2 inputs from LFS text area, if so how do you do it please.
Thx your answer
ok, thank you about the answer

Quote from Gai-Luron :Hello,

this is a beta version an only one Lapper can be run on one computer ( Due to the socket error ).
The reason is because the console admin use a socket and tcp to manage LFSLapper. On Beta this is harcoded to a specified port ( not yet finished ).
In fact actually, there is a server and a client in LFSLapper for the admin like insim even if you don't see it.

i hope you understand what i say!

Gai-Luron

PS: I have some problem and i don't dev this past days but i continue to read yours feed back.

Quote from Andy King :Hi All,
Is it possible to use 2 $argv's in same command, Like....

$argv1 and $argv2 to get 2 inputs from LFS text area, if so how do you do it please.

No, every textinput has to go to it's own variable.
Nice
hallo,

never tried to run multiple servers from one exe/config... running only 2 servers - demo/s2.

i just think its not ideal to have only global ban without possibility to ban on single server too.

btw its more wider problem - managing multiple servers with single lapper leads to additional config files - like in airio - every server needs different configuration -> exceptions...

Quote from Yisc[NL] :Hallo? Are you dutch
Anyway, When running multiple servers you should use one central ban file.
I've got 8 running at the moment (10 again soon) and they are all using the same LFS.exe and ban file. So banned on one servers, means banned on all of them.
No function for Lapper since LFS handles this very nice.

Quote from Bladerunner :Another thing that I cant understand is...everytime Lapper starts and connects to one of the servers, it changes the car to FBM..
I have checked the *.lpr files, but can find nothing in there that would make this happen..suggestions please?

Hi all,

A update config GUI Ver 1.0.4b

I fixed some bug's in the track selector and removed the part that set alway's the car to FBM.

It's (still) not posible to detect what car's are used. So only the first time that the config gui start it shows a "?" in case of the current car(s).

In the following part of the guiconfig.lpr file you can setup your dedi server when LFSLapper (re)start.
### SET THE FOLLOWING VAR'S TO SETUP YOUR SERVER WHEN LFSLAPPER (RE)START ####
$GUI_Lap = 5 ; #Number of race laps
$GUI_qual = 10 ; #Number of qual minutes
$GUI_wind = 0 ; #0=no wind 1=low wind 2=hard wind
$GUI_weather = 1 ; #set type of wheather 0,1 or 2
$GUI_mustpit = "no" ; #need to pit yes or no
$GUI_fcv = "no" ; #Force cockpit view yes or no
$GUI_drift = "no" ; #Drift option yes or no ( see the part at end of this script)
$GUI_midrace = "yes" ; #Join midrace yes or no
$GUI_start = "finish" ; #Race start order : fixed/finish/reverse/random
$GUI_current_car = "?" ; #You can set here the default car. If not set,the first time when the config GUI start its show's a "?".
### END ###

So here the new version 1.0.4b
Attached files
guiconfig 1.0.4b.zip - 7 KB - 286 views
Hi Gai & Yisc,
Thats a shame as wanted to allow my Admins to /bam John Doe 365 but is 2 argv's can't be used its inmpossible to have adjustable days.

I have a points system running on AKM Servers now but like Tim would like the new variable so we know how many drivers are starting a race to make race points adjustable. I would like another so lapper knows how many cars are ontrack at anytime on an event like passing a split or finishing a lap.

Thanks Gai program is sweet,
Quote from Andy King :Hi Gai & Yisc,
Thats a shame as wanted to allow my Admins to /bam John Doe 365 but is 2 argv's can't be used its inmpossible to have adjustable days.

I have a points system running on AKM Servers now but like Tim would like the new variable so we know how many drivers are starting a race to make race points adjustable. I would like another so lapper knows how many cars are ontrack at anytime on an event like passing a split or finishing a lap.

Thanks Gai program is sweet,

Hi Andy,

Maybe is did an idea or work around.
!ban365 for a year, !ban30 for a month and so on.


CASE "!ban365":
IF( UserInGroup( "admin",$userName ) == 1 )
THEN
privMsg( GetCurrentPlayerVar( "Nickname" ) . " Ban " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/ban " . $argv . " 365" );
ENDIF
CASE "!ban30":
IF( UserInGroup( "admin",$userName ) == 1 )
THEN
privMsg( GetCurrentPlayerVar( "Nickname" ) . " Ban " . GetPlayerVar( $argv, "Nickname" ) );
cmdLFS( "/ban " . $argv . " 30" );
ENDIF

very easy Question for you guys :)
I Installed LFSlapper 5.7.16..

I am trying to make LFSLapper read the DriftPB.txt but i couldnt...i created it in the bin folder..i think its because i am not directing it to the right path..

The File is located in (D:Games/LFS/LFSLapper/bin/DriftPB.txt)...

so how do I write it in the lapper.cfg file

Is it like this??

$DriftDatabase = "D:Games/LFS/LFSLapper/bin/DriftPB.txt";


Thanks Guys!!
And Thanks For the hard work that you guys do...((((Just For The Love Of The Game))))!!
Hi Tim,
Thats exactly what I have already done lol as a work around for now.
Quote from Fahad911 :I Installed LFSlapper 5.7.16..

I am trying to make LFSLapper read the DriftPB.txt but i couldnt...i created it in the bin folder..i think its because i am direting the right path..

The File is located in (D:Games/LFS/LFSLapper/bin/DriftPB.txt)...

so how to I write it in the lapper.cfg file

Is it like this??

$DriftDatabase = "D:Games/LFS/LFSLapper/bin/DriftPB.txt";

Thanks Guys!!

And Thanks For the hard work that you guys do...((((Just For The Love Of The Game))))!!

Hi,
you have only to remove the /* and */ in the drift options part to make it working.
Here's a working part.


############
#Drifting options#
############
# This is the filepath for a file containing the collected data.
# This file will be created if it doesnt exist yet.
# You must ensure read/write access to this path.
#-------------------------------------------------------------------
$DriftDatabase = "./DriftPB.txt";
# Actions to do on new personal best drift lap.

Event DriftPBAction()
cmdLFS( "/msg " . $Nickname . "^3 made new PB: ^7" . $DriftScore . " ^3pts!" );
EndEvent

# Actions to do to when total lap drift score is higher or equal to MinimumDriftScore.
Event DriftLapAction()
cmdLFS("/msg " . $Nickname . " ^3drifted to ^7" . $DriftScore . " ^3pts" );
EndEvent
# Message to get on end of each drift.
# Possible variables to use:
Event OnDriftScore()
privMsg( "Score: ^7" . $DriftScore . " ^3" . $LastDriftScore );
EndEvent
$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score
Event GoodDriftAction()
privMsg( $Nickname . " ^3made excellent drift: ^7" . $LastDriftScore ." ^3pts" );
EndEvent
$MinimumDriftScore = 10; # Minimum drift score required
# Actions to do at end of lap if MinimumDriftScore is not achieved.
/*
Event DriftTooLowAction()
privMsg( $Nickname . "^3 disqualified" );
cmdLFS( "/spec " . $Nickname };
EndEvent
*/
$MinimumDriftSpeed = 50; # Minimum speed in km/h to maintain. Driving below that speed will reset score
$MinimumDriftAngle = 15; # Minimum angel to maintain. When angle is below value, score is reset
$MaximumDriftAngle = 100; # Maximum angel to maintain. When angle is above value, score is reset


Quote from Tim NL :Hi all,

A update config GUI Ver 1.0.4b

I fixed some bug's in the track selector and removed the part that set alway's the car to FBM.

It's (still) not posible to detect what car's are used. So only the first time that the config gui start it shows a "?" in case of the current car(s).

In the following part of the guiconfig.lpr file you can setup your dedi server when LFSLapper (re)start.
### SET THE FOLLOWING VAR'S TO SETUP YOUR SERVER WHEN LFSLAPPER (RE)START ####
$GUI_Lap = 5 ; #Number of race laps
$GUI_qual = 10 ; #Number of qual minutes
$GUI_wind = 0 ; #0=no wind 1=low wind 2=hard wind
$GUI_weather = 1 ; #set type of wheather 0,1 or 2
$GUI_mustpit = "no" ; #need to pit yes or no
$GUI_fcv = "no" ; #Force cockpit view yes or no
$GUI_drift = "no" ; #Drift option yes or no ( see the part at end of this script)
$GUI_midrace = "yes" ; #Join midrace yes or no
$GUI_start = "finish" ; #Race start order : fixed/finish/reverse/random
$GUI_current_car = "?" ; #You can set here the default car. If not set,the first time when the config GUI start its show's a "?".
### END ###

So here the new version 1.0.4b

ermm....oops


On starting lapper.......
LFSLapper Version=5.8.3.1 on GNU license
2005-2008 Janez Cufer and Robert BRACCAGNI ( Gai-Luron )
LFSLapper comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions. Read LICENSE for details.
Type LFSLapper -help to view usage
Started : 10/04/2009 14:39:54

>Receive Query connection!
Receive connexion packet! Open connection
Parse config file...Ok
Loading WR...Ok
Loading swearwords...Ok
Connecting
Connection OK
Product:S2 Version:0.5Z InSim Version:4
Ftp Upload grip DB Thread Started...
Ftp Upload drift DB Thread Started...
Web Commands Thread Started...
Register Web Thread Started...
LFSLapper is running...

Once into LFS, entering "!gui".........


Syntax error in cfg file "./includes/guiconfig.lpr" at line #105
'openprivbutton' parameter #1 is wrong type at line #
Function 'config_gui' script aborted

Lapper Instance Aborted abnormally The following error occurred:

Stack empty.
mscorlib
at System.Collections.Stack.Pop()
at GLScript.GLApp.parseBackcall(SetOfVars GVAR, SetOfVars LVAR, unionVal val,
ArrayList args) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript
\GLScript.cs:line 1008
at GLScript.Parseur.getval(SetOfVars GVAR, SetOfVars LVAR, executeParsedFunct
ion BC) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\ParseExp
r.cs:line 465
at GLScript.GLApp.retrieveEvalVar(String funcName, TokenParse tkparse, TokenB
uffer currTokenBuffer, SetOfVars GVAR, SetOfVars LVAR, Boolean breakFunc, Char&
breakCar) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScri
pt.cs:line 838
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVa
rs GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, I
nt32 end) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScri
pt.cs:line 223
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVa
rs GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, I
nt32 end) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScri
pt.cs:line 466
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVa
rs GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, I
nt32 end) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScri
pt.cs:line 466
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVa
rs GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, I
nt32 end) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScri
pt.cs:line 353
at GLScript.GLApp.executeTokensPart(String funcName, SetOfVars GVAR, SetOfVar
s LVAR, Int32 start, Int32 end) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapp
er\src\GLScript\GLScript.cs:line 154
at GLScript.GLApp.privExecuteFunction(String funcName, String[] argsVals) in
D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScript.cs:line 14
9
at GLScript.GLApp.executeFunction(String funcName, String[] argsVals) in D:\D
ev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\GLScript\GLScript.cs:line 119
at Configurator.lexConfigurator.executeFunction(String funcName, infoPlayer p
currInfoPlayer, String[] par) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper
\src\cfgParser\readCfg.cs:line 254
at LFSLapper.LFSClient.managePacket(MSO mso) in D:\Dev\DevInsim\lapper\LFSLap
per5.830\LFSLapper\src\LFSClient\managePacket.cs:line 546
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lappe
r\LFSLapper5.830\LFSLapper\src\LFSClient\loop.cs:line 793
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSL
apper\src\LFSClient\lfsclient.cs:line 516
System.Object Pop()
Closing Instance...Parse config file...Ok
Loading WR...Ok
Loading swearwords...Ok
Connecting
Connection OK
Product:S2 Version:0.5Z InSim Version:4
Ftp Upload grip DB Thread Started...
Ftp Upload drift DB Thread Started...
Web Commands Thread Started...
Register Web Thread Started...
LFSLapper is running...


Any suggestions plox?
Hi Gai & Yisc,
Is it possible for me to create list of Drivers like !top but showing there Points instead. Also where are the SetStoredValues saved? are they stored in same file as driver PB times etc and how can I view the file, what software will open it in a readable format? Not Sorted

Can someone explain what function !license has please. Not Sorted

Can someone show me how to add 2 stored items together, like I have Points_Laps and Points_Race as stored values against each drivers UserName but want to display them as 1 set of points added together. Sorted

Thanks
hey guys right i got some problems with my lapper on server it shows this

IS_MTC - only for multiplayer hosts

and in the lapper it shows

error on web comand

can any one help me with this problem
Quote from Bladerunner :ermm....oops

Once into LFS, entering "!gui".........


Syntax error in cfg file "./includes/guiconfig.lpr" at line #105
'openprivbutton' parameter #1 is wrong type at line #
Function 'config_gui' script aborted

Any suggestions plox?

Hi,
Did you replace only some parts in the guiconfig.lpr or did you replaced the complete file guiconfig.lpr ?

I changed a lot of things in version 1.0.4.b so you have to remove the old file guiconfig.lpr and put the new file in the includes folder.
It works here fine.

Here is a new copy of the guiconfig.lpr ( Its the same file as the one of april 9 )
Attached files
guiconfig 1.0.4b.zip - 7 KB - 233 views
Quote from Tim NL :Hi,
Did you replace only some parts in the guiconfig.lpr or did you replaced the complete file guiconfig.lpr ?

I changed a lot of things in version 1.0.4.b so you have to remove the old file guiconfig.lpr and put the new file in the includes folder.
It works here fine.

Here is a new copy of the guiconfig.lpr ( Its the same file as the one of april 9 )

I changed the complete file... removed old one before installing the new one.
Will try the other version anyway, thx



EDIT: Tried the "new" version you attached there, totally replaced the old file....exactly the same result...still getting the syntax error crash.
Hello guys. I`m getting Syntax error when writing this.
Event OnRotateTrack()
[I] IF ($CurrRotateTrack == "SO6R")
THEN
cmdLFS("/laps 7");
ENDIF[/I]

cmdLFS("/msg ^7Trasa pakeista, prasome palaukti !" );
cmdLFS("/msg ^7Dabartine trasa : ^6" . $CurrLongRotateTrack);
EndEvent

Whats wrong ?
Quote from santeXFz :Hello guys. I`m getting Syntax error when writing this.
Event OnRotateTrack()
[I] IF ($CurrRotateTrack == "SO6R")
THEN
cmdLFS("/laps 7");
ENDIF[/I]

cmdLFS("/msg ^7Trasa pakeista, prasome palaukti !" );
cmdLFS("/msg ^7Dabartine trasa : ^6" . $CurrLongRotateTrack);
EndEvent

Whats wrong ?

i could be wrong, but you're missing an ELSE statement in that IF block.
Okay, i`ll try to add one more track.
Not working. I`m still getting the same Syntax error.

Event OnRotateTrack()
IF ($CurrRotateTrack == "SO6R")
THEN
cmdLFS("/laps 7");
ELSE
IF ($CurrRotateTrack == "BL1")
THEN
cmdLFS("/laps 5");
ENDIF
ENDIF

cmdLFS("/msg ^7Trasa pakeista, prasome palaukti !" );
cmdLFS("/msg ^7Dabartine trasa : ^6" . $CurrLongRotateTrack);
EndEvent

What i`m doing wrong ?
Quote from santeXFz :Not working. I`m still getting the same Syntax error.

Event OnRotateTrack()
IF ($CurrRotateTrack == "SO6R")
THEN
cmdLFS("/laps 7");
ELSE
IF ($CurrRotateTrack == "BL1")
THEN
cmdLFS("/laps 5");
ENDIF
ENDIF

cmdLFS("/msg ^7Trasa pakeista, prasome palaukti !" );
cmdLFS("/msg ^7Dabartine trasa : ^6" . $CurrLongRotateTrack);
EndEvent

What i`m doing wrong ?

missing an ELSE in the nested IF? (you can put an ELSE without actually telling it to do anything)
May you write a correct code ?
This thread is closed

LFSLapper insim4 Release
(2101 posts, closed, started )
FGED GREDG RDFGDR GSFDG