The online racing simulator
LFSLapper insim4 Release
(2101 posts, closed, started )
Thx Andy, that helped a bit I found the problem.
It was permissions on the folder, bloody vista keeps resetting it to read only. So once i work out how to keep it from resetting the folder to read only it should work
hallo developers!

im in good spirit right now, so please forgive me my enterprising question:

i would like to set to every finished racer points in their variables:

finish list seems like:

1. racer1
2. racer2
3. racer3

total racers initially started in this race -> variable eg. $started = 5;

well, i want to set:

$points["racer1"] = $points["racer1"] + $started;
$points["racer2"] = $points["racer2"] + ($started - 1);
$points["racer3"] = $points["racer3"] + ($started - 2);

or (if i want to be really special), i want to set points like ELO system:

$points["racer1"] = $points["racer1"] + ($started * $coef_of_points_of_racers_beated * $coef_of_race_length); or so.

...

i belive, this seems to be possible in new lapper (im not sure, if there are implemented race results already, but i hope, yes)

but,
i would like to work bit statistical with this "data" aswell,

something like !top of $points[]

?
Problem with ver. 5.830
Hi,

I have a problem to get lapper 5.830 working.
I downloaded a new copy of lapper 5.830 and extract it in a new folder.
I changed the LFSServers.cfg file in YOUR_SERV|127.0.0.1|29996|LFSLapper.lpr|AutoStart
I set in the default LFSLapper.lpr the admin pwd.
So its a clear new server without a database.

When i start the race and drove one lap , lapper stop's and the console box of lapper shutdown and after some time i get a INSIM Timeout in the dedi server.

.
.
LFSLapper is running...
SQL COMMAND :
UPDATE fi_epb

When i restart lapper , restart the race and when i pass the first split lapper stop's again with the following message.

>Receive Query connection!
Receive connexion packet! Open connection
Parse config file...Ok
Loading WR...Not Loaded
Loading swearwords...Ok
Connecting
Connection OK
Product:DEMO Version:0.5Z3 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...
SQL COMMAND :
UPDATE fi_epb SET nickName = '^1[^7NLR^4]^6Tim' nickNameStripped = '[NLR]Tim' ,
laps = 1,date ='2009/03/30',time = '19:09',pbLapTime = 82730,pbLapTimeSplit1 = 3
0950,pbLapTimeSplit2 = 61630,pbLapTimeSplit3 = 0 ,pbSectorSplit1 = 30140 ,pbSect
orSplit2 = 30680 ,pbSectorSplit3 = 0 ,pbSectorSplitLast = 21100 WHERE idEpb = 1

Lapper Instance Aborted abnormally The following error occurred:
near "nickNameStripped": syntax error
LFSLapper
at LFSDbs.DbsAccess.executeNonQuery2(String _command) in D:\Dev\DevInsim\lapp
er\LFSLapper5.830\LFSLapper\src\Dbs\DbsAccess.cs:line 181
at LFSDbs.DbsAccess.executeNonQuery(String _command) in D:\Dev\DevInsim\lappe
r\LFSLapper5.830\LFSLapper\src\Dbs\DbsAccess.cs:line 146
at LFSDbs.gripDbs.updateRow2(Boolean immediateUpload, String userName, String
nickName, String datePb, String timePb, String carName, String trackName, Drive
rLapEntry driverLapInfo) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\
Dbs\gripdbs.cs:line 370
at LFSDbs.gripDbs.updateRow(Boolean immediateUpload, String userName, String
nickName, String datePb, String timePb, String carName, String trackName, Driver
LapEntry driverLapInfo) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\D
bs\gripdbs.cs:line 337
at LFSDbs.gripDbs.updateRow(Boolean immediateUpload, infoPlayer currInfoPlaye
r, String trackName) in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSLapper\src\Dbs\
gripdbs.cs:line 315
at LFSLapper.LFSClient.managePacket(SPX splitdec) in D:\Dev\DevInsim\lapper\L
FSLapper5.830\LFSLapper\src\LFSClient\managePacket.cs:line 437
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lappe
r\LFSLapper5.830\LFSLapper\src\LFSClient\loop.cs:line 767
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper5.830\LFSL
apper\src\LFSClient\lfsclient.cs:line 484
Int64 executeNonQuery2(System.String)
Closing Instance...Parse config file...Ok
Loading WR...Not Loaded
Loading swearwords...Ok
Connecting
Connection OK
Product:DEMO Version:0.5Z3 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...

Hello,

New LFSLapper 831Beta, fix the crash in previous Tim Message

Quote :+----------------------------+
|Changes from v5.830 to 5.831|
+----------------------------+
1. Event OnResult now receive the confirm flags
CONF_MENTIONED 1
CONF_CONFIRMED 2
CONF_PENALTY_DT 4
CONF_PENALTY_SG 8
CONF_PENALTY_30 16
CONF_PENALTY_45 32
CONF_DID_NOT_PIT 64

2. Fix bug on Import Airio PB file, incorrect format in date

3. Add new trace on crash when creating instance

4. Add new cron entry in task, DayOfWeek
0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday

RegisterScheduleAction( "0 0 0 0 * * *", SA_mid );
Do this action only the Sunday at 0:00

5. Fixed crash on finish Line

Hi Gai,
When you stop a server that LFSLapper is connected to it throws an error but then re-connects. I have attached a log of console messages....
Error 6.txt

Also we need an everyday for registeredschedules. Also how do we use dates now instead of days....

0 = EveryDay
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

While on this subject HH MM SS makes more sense than the way lapper does it at the moment SS MM HH DD MM YYYY IMO anyway its less confusing HH MM SS I am sure and Day DD MM YYYY HH MM SS would be perfect lol.

Quote :RegisterScheduleAction( "0 0 0 0 * * *", SA_mid );
Do this action only the Sunday at 0:00

LOL thats a terrible example which 0 is Sunday lol

OK I worked it out SS MM HH DAY DD MM YYYY

Update: $PosAbs isn't working again, did you get my Forum Private Message about NumToMSH??

Feature Request: Can we use !reload or similar to restart lapper on server your connected to like we can in console with start 1 as most admins don't have access to console when using hosting services. Suppose !start 0 - !start 1 etc etc would be good after eading my own post lol
Attached files
Error 6.txt - 4.6 KB - 236 views
Hi All,
PlayerVar doesn't work anymore how do I now set Player Variables please. I want to set $PitBoard_1 to No.
Hi Gai,

Quote :
CASE "!kick":
IF( UserInGroup( "Admin_2",$userName ) == 1 ) THEN
privMsg( GetCurrentPlayerVar( "NickName" ) . " kick " . GetPlayerVar( $argv, "NickName" ) );
cmdLFS( "/kick " . $argv . " 1" );
ELSE
privMsg( "^6YOU DO NOT HAVE ADMIN STATUS!");
ENDIF
BREAK;

This doesn't seem to work, can someone explain how to correct it.

Feature Request: Can we have a new Event so when a player leaves a race they can only re-join X amount of times less they get spectated and eventually kicked for multiple rejoins.
Small mistake in the default code:


cmdLFS( "/kick " . $argv . " 1" );

should be:

cmdLFS( "/kick " . $argv );

Quote from Andy King :Hi All,
PlayerVar doesn't work anymore how do I now set Player Variables please. I want to set $PitBoard_1 to No.

You don't have to set playerVars using a $variable
Correct code is now:


SetCurrentPlayerVar( "config_pb_display_mode_graphical","on" );

Thanks Yisc
Little request
Hi,
Is it maybe posible to have a new GetLapperVar that shows the numbers of players in a race ( or by the start of a race).

I'm now making and testing a point system on [NLR]NL Racing#test (pass 1234 or free).
The part that shows the point's is not ready now but white !mystats you can see your own point's.
It runs ok now but it will be nice that i can raise the number of point by the number of players at the start of the race.

Example:
1 racer at the start is max 1 point to score.
12 racers at the start is max 12 points to score.

Thank's in advance
Hi Gai,
Here is a list of bugs I am finding, will update as I find more...

Voting System
Idle Spectate doesn't work in Qualy Mode
Posabs
!stats

That I can think of at the moment will update as I remember them.

Feature Request: The !ban feature needs an update, can we allow the !ban to ban on all servers now 1 instance of Lapper connects to all servers. So basically I type !ban Username 365 and the username gets banned for 365 days on ALL my servers. Lapper takes the command and passes it to every server connected. Please add this ASAP as we are struggling to keep up.
GOod, it work but i've i problem.
He don't save the position.
So the rank is __/__.

In config file i change only pwd and i add this in trackinfo:track = AU1
len = 3.4
car = RB4
MaxLapTime = 3.00.00
split1 = 0.00.01:0.10.00
split2 = 0.24.00:0.48.00
split3 = 0.20.00:0.38.00
lapTime = 1.10.00:2.00.00

I've to change some other parameter to memorize the rank ?

Thnaks in advance.
to Gai-Luron :: 5.831beta has a bug about port
i manage 2 dedicated lfs server in one computer.
(lfs korea and lfs korea demo)
so, i used 5.714 and using two lapper programs that adjusting two dedicated programs .

i used two different insim port in lapper and dedicated server
(29999 and 30001)

in 5.831beta version,

although port is different, lapper programs are crashed each other.
(using 5.831beta both, then crashed both all. And using 5.831beta and if the other is 5.713, then no crashed)

so i think 5.831beta has a bug of port binding or another kinds

thx your updates i'll waiting your answer
Quote from J.I.T :i manage 2 dedicated lfs server in one computer.
(lfs korea and lfs korea demo)
so, i used 5.714 and using two lapper programs that adjusting two dedicated programs .

i used two different insim port in lapper and dedicated server
(29999 and 30001)

in 5.831beta version,

although port is different, lapper programs are crashed each other.
(using 5.831beta both, then crashed both all. And using 5.831beta and if the other is 5.713, then no crashed)

so i think 5.831beta has a bug of port binding or another kinds

thx your updates i'll waiting your answer

I could not make much of your story but running Lapper 5.831beta on multiple servers isn't a problem. I have it running on 8 servers at the moment and no problem at all. Make sure Lapper is started only once and configure your instances in LFSServer.cfg
Hi Gai and Yisc,
Need some help with stored values. I would like one of you guys to show me how to retrieve a stored Value, add a number to it then save it back.

So...
Create a UserName's Stored Value = 0
Get the UserName's Stored Value = 0
Then Add = 25
Store UserName's Value

So then....
Get Stored UserName's Value = 25
Then Add = 50
Store UserName's Value

I have tried for hours to work this out, nearly there but cannot get it to add the number, it keeps replacing it in stored value.

Thanks Guys
Quote from Andy King :Hi Gai and Yisc,
Need some help with stored values. I would like one of you guys to show me how to retrieve a stored Value, add a number to it then save it back.

So...
Create a UserName's Stored Value = 0
Get the UserName's Stored Value = 0
Then Add = 25
Store UserName's Value

So then....
Get Stored UserName's Value = 25
Then Add = 50
Store UserName's Value

I have tried for hours to work this out, nearly there but cannot get it to add the number, it keeps replacing it in stored value.

Thanks Guys

Hi,

Here's an example of how to do this:


$userName = GetCurrentPlayerVar("UserName");
IF ( GetStoredValue( $userName . "test_value" ) == "")
THEN
SetStoredValue( $userName . "test_value", 0 );
SetCurrentPlayerVar( "test_value",GetStoredValue( $userName . "test_value" ) );
writeline ( "Initial value: " . GetCurrentPlayerVar( "test_value" ) ); #DEBUG
$Test = SetCurrentPlayerVar( "test_value",GetCurrentPlayerVar( "test_value" )+25 );
writeline ( "Value + 25: " . $Test ); #DEBUG
SetStoredValue( $userName . "test_value", $Test );
SetCurrentPlayerVar( "test_value",GetStoredValue( $userName . "test_value" ) );
writeline ( "New stored value: " . GetCurrentPlayerVar( "test_value" ) ); #DEBUG
ELSE
writeline ( "Stored value: " . GetStoredValue( $userName . "test_value" ) ); #DEBUG
SetCurrentPlayerVar( "test_value",GetStoredValue( $userName . "test_value" ) );
$Test = SetCurrentPlayerVar( "test_value",GetCurrentPlayerVar( "test_value" )+25 );
SetStoredValue( $userName . "test_value", $Test );
ENDIF

Quote from michele0676 :GOod, it work but i've i problem.
He don't save the position.
So the rank is __/__.

I am getting the same problem here. I did NOT import my old pb.txt file, just started a completely new instance of Lapper in a different folder, so that I can switch back to the old one if necessary. 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?
Quote from Bladerunner :I am getting the same problem here. I did NOT import my old pb.txt file, just started a completely new instance of Lapper in a different folder, so that I can switch back to the old one if necessary. 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?

That's 'caused' by the GUI which is made by Tim.
Remove this line at the bottom of your LPR-script:

include( "./includes/guiconfig.lpr");
Quote from Yisc[NL] :That's 'caused' by the GUI which is made by Tim.
Remove this line at the bottom of your LPR-script:

include( "./includes/guiconfig.lpr");

Thanks
Quote from Andy King :
Feature Request: The !ban feature needs an update, can we allow the !ban to ban on all servers now 1 instance of Lapper connects to all servers. So basically I type !ban Username 365 and the username gets banned for 365 days on ALL my servers. Lapper takes the command and passes it to every server connected. Please add this ASAP as we are struggling to keep up.

hallo,
this is not so clear. sometimes you need to ban 0 someone in wrong time on wrong place or if you provide more different types of servers - ban on race server for drifting etc.
well, !ban and !globalban or !ban [servername1, servername2...] might be ideal
Hi Yisc,
That worked a treat THANKYOU, now all I need to do is work out how to display a table of points in decending order lol.

Thanks
Quote from [d9] :hallo,
this is not so clear. sometimes you need to ban 0 someone in wrong time on wrong place or if you provide more different types of servers - ban on race server for drifting etc.
well, !ban and !globalban or !ban [servername1, servername2...] might be ideal

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 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.

Hi Yisc,
Thats fine if your running locally or your host runs them that way, what about the likes of me who's host runs each instance of LFS seperatly like most hosts do. We need the !ban working so it migrates the /ban Username Days to all servers connected to LFSLapper.
Getting an error here (which is wierd since it is working on other servers) although there is already 1 instance on the machine im trying this on.

this is the error:
Quote :Unhandled Exception: System.Net.Sockets.SocketException: Only one usage of each
socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress
socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start(Int32 backlog)
at System.Net.Sockets.TcpListener.Start()
at TCPServer.Server.ListenForClients()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

I'm guessing its down to there already being an instance running (although configured differently and on different ports).

Just looking for some insight in case there's something i'm overlooking.
This thread is closed

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