The online racing simulator
LFSLapper insim4 Release
(2101 posts, closed, started )
hey hello,

we have a little problem with setting up the php support what you have in the first post.

after looking at everything , i am having the feeling that the config life in the php program is out of date. so we tried to get it back ondate

but i am having some questions...

first of all the readme says:

Quote :PB.txt (created by program if not present)
------------------------------------------
Database of best personal lap times, players and their cars
Format of file is as follows:

line 1 - Player NickName
line 2 - Car Name
line 3 - Lap Time in format MM.SS.HH
line 4 - Track Name
line 5 - 1st Split Time
line 6 - 2nd Split Time
line 7 - 3rd Split Time

line 8 - Player NickName
line 9 - ...
...

but the pb.txt file , gives us other information...

LFS USER NAME
PLAYER NICK NAME
1
6/17/2008
9:16 PM
UFR
1.09.20
FE1
0.42.23
0.00.00
0.00.00
0.42.23
0.00.00
0.00.00
0.26.97

is there a way that we , can update the config file and get the php support up and running again....


i cant wait too get a solusion

Greets,

Reintjan
Gai can you make this for new beta ?
who in previous race make best lap, next race he will be first in start grid.
who in previous race make 2nd best lap, next race he will be second in start grid.
:
:
:
:
:
: ?
Or define startgrid via text file or http request.
I have Updated Readme file, zip file with removed tor cfg available (sorry)!

Quote :PB.txt (created by program if not present)
------------------------------------------
Database of best personal lap times, players and their cars

Format of file is as follows:
Line 1 of the file = Identification of PB file version

Next Lines

line 1 - Player userName
line 2 - Player NickName
line 3 - Laps Done in this Combo Car/track
line 4 - Date when PB Done
line 5 - Time when PB Done
line 6 - Car Name
line 7 - Lap Time in format MM.SS.HH
line 8 - Track Name
line 9 - 1st Split Time
line 10 - 2nd Split Time
line 11 - 3rd Split Time
line 12 - 1rd Spb Split Time
line 13 - 2nd Spb Split Time
line 14 - 3rd Spb Split Time
line 15 - Last sector Spb Split Time


line 16 - Player username
line 17 - ...
...

Gai-Luron
Quote from Klice :Or define startgrid via text file or http request.

how text file ?
Quote from Max Torque :how text file ?

Racer's username per line in order of start. This file can be generated by any external program (perl or php script).
i get an error when opening a mpr
Attached images
error.jpg
Mpr stat is stopped. With new LFS ( Y22 ) version, no need to use this software. Use LFSStat

Gai-Luron
Wonder if I can make suggestion about your great program.

If no one on track, and you try look at !top, the start of the list appears on top of the "no cars in race" message - see jpg.

Can the start of the list be moved down slightly? About 3 lines worth would probably do it.

Thanks.
Attached images
No cars in race.JPG
Help please
I have problems after editing my config file, and got no clue what the problem should be

Could someone have a look at my config file please, since I have looked at it for hours

I have a lapper(5.20) running, but got problems with driftPB list(same nick2 places in list, one registered on username, other on nick)

Hope someone bother to look at it
Attached files
LFSLapper.rar - 7.5 KB - 200 views
On the 'Drifting Options' part of LFS Lapper, on the line before "# This is filepath of file containing collected data", you have a vertical bar.

Also your "GoodDriftScore" is lower than your "MinimumDriftScore".

Not sure if either or both is the problem.

Good luck in finding your problem.
Hi Wolf,
I cannot see whats causing ur problem, what I would do is download Lapper open original config and copy and paste just the Drifting paragraph into your config, then edit slower. 1 line at a time and test to find the issue.

Sorry not to be more help but if you can wait I am sure Gai will spot it.
Hello Gui

Very small suggestion to do with Connect Messages.

OnConnect=/pbut.......^7Welcome {Nickname} to ^1LFSLapper ^7powered server !&....

Because people use different colours for their names, the bit after {Nickname} comes out the same colour as used at end of nickname.

And could you put "a" before ^1LFSLapper?

OnConnect=/pbut.......^7Welcome {Nickname} ^7to a ^1LFSLapper ^7powered server !&.....

Otherwise, this is one great program! I especially like the fact that I can set the voting for racestart to 100% must agree. Used to annoy me that people would crash out, then want to restart.
Quote from Andy King :Hi Wolf,
I cannot see whats causing ur problem, what I would do is download Lapper open original config and copy and paste just the Drifting paragraph into your config, then edit slower. 1 line at a time and test to find the issue.

Sorry not to be more help but if you can wait I am sure Gai will spot it.

I accualy tested that first, but changes did not happend...
but when I was done, and copyed the lapper.cfg to bin folder, all changes aplyed(and error message refused lapper to run)

I guess I need to start all over again

Tnx for comment btw

I could post error message in lapper, but it is partly norwegian(for some reason)


Edit:

After looking closer, the lapper I'm using on our servers is same version as the one I got trouble with, so I edited a config file from one of them(pass + port) and it's okay.

(config file sorted)

The reason I need a new lapper, is the trouble with driftPB.... Scoores get registered double sometimes(one with username, one with nick)........

I want it to be username ONLY(but show nick in list), kinda dumb to have my nick on more than one place in top 15, and I'm not the only one

Anyone got any idea of what the problem could be? is it my config? or is it a problem with the lapper?

*hope his editing will not be ignored*
I've had this when I've made changes to the track (adding walls to pitlane, putting in tyre chicanes, etc, using the SHIFT U function to place objects), and when I changed the colour of the letters in my name.
Hello,

I put here an exemple of the new format for the cfg file. For now the reader work and give a complete infos about error in this file. The parsing is done by 'lex'. Lex is a lexical analyser writed for Linux. You can put here your ideas about syntax!
Next i will have to write lexical and grammatical parsing for event code with lex/yacc tools. The new configuration file will be easier to write and maintain. Be patient


$SwearWordsList = "****,asholes,bastard,idiot";
#$SwearWordsList = "&./swear.txt";
$SwearWordsMax = 2;

Event SwearWordsAction1(){
privMsg( "^1Don't use this words on this server, banned on ^2" . $SwearWordsRem . " ^1retry!"" );
}

Event SwearWordsAction2(){
privMsg( "Too many swearwords, spectated" );
cmdLFS( "/spec " . $UserName );
}

$InRaceLapsVoteMinMax = "-";

$VoteRestart = -1;

Event onVoteRestartChange(){
globalButton( "bargr1",60,1,10,6,6,30,96,"Restart:" );
globalButton( "bargr2",70,1,20,6,6,30,96,"(" . $Vote ."/" . $Players . ") Need " . $Need );
}
Event onVoteRestartReach(){
closeGlobalButton( "bargr1&bargr2" );
cmdLFS("/restart");
}
Event onVoteRestartZero(){
closeGlobalButton( "bargr1&bargr2" );
}

$VoteQualify = -1;
Event onVoteQualifyChange(){
globalButton( "bargq1",90,1,10,6,6,30,96,"Qualify" );
globalButton( "bargq2",100,1,20,6,6,30,96,"(" . $Vote . "/" . $Players . ") Need " . $Need );
}
Event onVoteQualifyReach(){
closeGlobalButton("bargq1&bargq2" );
cmdLFS("/qualify" );
}
Event onVoteQualifyZero(){
closeGlobalButton("bargq1&bargq2" );
}

$VoteEnd = -1;
Event onVoteEndChange(){
globalButton( "barge1",120,1,10,6,6,30,96,"End:" );
globalButton( "barge2",130,1,20,6,6,30,96,"(" . $Vote . "/" . $Players . ") Need " . $Need );
}
Event onVoteEndReach(){
closeGlobalButton( "barge1&barge2" );
cmdLFS("/end");
}
Event onVoteEndZero(){
closeGlobalButton( "barge1&barge2" );
}

$VoteLifeSec = 30;

$AutoRestartRaceMn = 0;

$EnableRotation = false;
$RotateTracks = "SO6R,BL1,FE3";
$RotateEveryNbRaces = 4;
$RotateCars = "XFG+UF1,TBO,XFR+UFR";

Gai-Luron
Hi Gai-Luron,

I testing lapper 5.641 with Dedi Y24.
I get the following crash of lapper.
In the Dedi i recieve a Insim timeout : LFSLapper.

In lapper i get the following massage :

C:\Program Files\LFS\Server5 (Test)\LFSLapper5.641beta\bin>LFSLapper.exe ../cfg/
LFSLapper.cfg
LFSLapper Version=5.6.4.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 : 6/22/2008 12:52:16 AM
Loading WR...Ok
Loading swearwords...Ok
Mode Sync = False
Connecting
Connection OK
Product:S2 Version:0.5Y24 InSim Version:4
Web Commands Thread Started...
Register Web Thread Started...
LFSLapper is running...
The following error occurred:
Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.LFSClient.GetAuth(infoPlayer currInfoPlayer) in C:\Program Files
\lfs\DevInsim\lapper\LFSLapper5.64\src\LFSClient\cmdLapper.cs:line 832
at LFSLapper.LFSClient.ShowAuth(infoPlayer currInfoPlayer, String cmd) in C:\
Program Files\lfs\DevInsim\lapper\LFSLapper5.64\src\LFSClient\cmdLapper.cs:line
629
at LFSLapper.LFSClient.executeCmdLapper(Int32 UCID, String msg) in C:\Program
Files\lfs\DevInsim\lapper\LFSLapper5.64\src\LFSClient\cmdLapper.cs:line 240
at LFSLapper.LFSClient.SendMsg(Int32 UCID, String msg) in C:\Program Files\lf
s\DevInsim\lapper\LFSLapper5.64\src\LFSClient\loop.cs:line 261
at LFSLapper.LFSClient.SendMlMsg(Int32 UCID, String msg) in C:\Program Files\
lfs\DevInsim\lapper\LFSLapper5.64\src\LFSClient\loop.cs:line 255
at LFSLapper.LFSClient.Loop(Connect insimConnection) in C:\Program Files\lfs\
DevInsim\lapper\LFSLapper5.64\src\LFSClient\loop.cs:line 1638
at LFSLapper.LFSClient..ctor(String scriptfilename, debug Pdebug, Boolean deb
ugmode) in C:\Program Files\lfs\DevInsim\lapper\LFSLapper5.64\src\LFSClient\lfsc
lient.cs:line 548
at LFSLapper.LFSLapper.Main(String[] Args) in C:\Program Files\lfs\DevInsim\l
apper\LFSLapper5.64\src\Main.cs:line 127
System.String GetAuth(LFSLapper.infoPlayer)
ICI

Maybe i have something wrong in my config file or it can help you to improve this super program.
Attached files
LFSLapper.zip - 10.8 KB - 257 views
Hi Gai-Luron,

i am using the 5.633beta version of your lapper and tested the Qualusers option for the first time.

i wrote them all in the lapper.cfg file (like: QualUsers = commandermas, other drivernames seperated by ","; because i don't want to use groups), but i only get errors like friendly position 0/0 when i drive a new bestlap. I had no chance to test it with another lapper yet.

is this an error in my config file or is this a config-error

Greetings CommanderMAS

edit: it was my error, you should start with the new config file not with the old
Quote from commandermas :Hi Gai-Luron,

i am using the 5.633beta version of your lapper and tested the Qualusers option for the first time.

i wrote them all in the lapper.cfg file (like: QualUsers = commandermas, other drivernames seperated by ","; because i don't want to use groups), but i only get errors like friendly position 0/0 when i drive a new bestlap. I had no chance to test it with another lapper yet.

is this an error in my config file or is this a config-error

Greetings CommanderMAS

edit: it was my error, you should start with the new config file not with the old

Hi CommanderMAS,

There was a faulth in the lfslapper.cfg in the Hotlapping options Section by line PBQualAction there was (is) a \msg in case of /msg :detective
thanks, but that was not the problem.

the problem was just that i used lapper 5.633 but loaded the cfg file from folder "lfslapper5.52".

after loading from folder "lfslapper5.633beta" it worked

Greetings CommanderMAS
Hi Gai-Luron

I want to say thank you very much for this LFS add-on

But I have 2 questions (actually, a lot more, but I can't remember all of them ):
1)Why does I "say" **km/h when I click Split table after finishing lap? It says like
Quote :MazderX: 13Km/h

or when I say '!time' it says
Quote :MazderX: server time bla bla bla

in chat...
I used newest BETA lapper for this

2)Why did I had message in older LFS lapper (last stable version)
Quote :Index out of bounds

?

I stripped LFSlapper.cfg to fit my needs. It does everything except welcome messages and commands, It stills counts drift score, saves PB etc.

Thanks
Hi, do You think is possible to integrate or create functions like NextRace addon?

It would be useful to make Automatic rotation Tracks and/or Cars based on date and not only on time.
Hi everbody
I have Forced Axis Clutch and H Shifters with Lfs lapper also i dissable to play with Mouse, Keyboard, or Pad on my Cfg.

Is it possible to Forced the turning Wheel (270/400/450/540/720)?
and Is it Possibel to force the Force Feedback Strengh .

Try to make a Server only for Full manuel Racers with same Condition.
(Axis Clutch & H-Shifter & Swapside & Turning Wheel & Force feedback Strengh)

Can anybody help ?
Hi

Can anyone help with Friendly Rank problem?

Sometimes, if someone's the first to post a time with new car on a track configuration used for first time, the Friendly Rank reads as 0/0 - surely this should be 1/1.

If someone's already done times on the track, but then you change car, you won't get 0/0 or 1/1, but maybe 2/3.

See attached for Fern Green where I was the first to do lap with XRR, but laps had already been done with lots of other different cars. Lapper said i was 2/3.

Is there something I should be setting or un-setting somewhere?

=======================================

EDIT

Checked all Car type PB's, and found that I was 2 of 3 (2/3) in the MRT, which (coincidence?) is what I have set my default !top car to be.

As an experiment, I no longer have a default !top car, now when I do lap with new car, I always get 0/0, whether I be first to post a lap, or others have already done so.


=======================================

FURTHER EDIT

Reset !top cars to be ALL, now I get 1/1, no matter what car I have showing in the garage when I join my server.
Attached images
Friendly Rank Issues.JPG
hey hey,

i am still at the website interface

i have a little bug,
when i delete a time in the pb.txt , the server still know that time what you ask on the server !top ,

How can i get the time out of the lapper?

when i delete the timed lap in the pb.txt, then 3 hours later the lap time back is in too the file

greets,,

Reint Jan
This thread is closed

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