The online racing simulator
#1 - nssf
LFS Lapper 6.00 problems...........
lfs lapper wont let me register !top times
it keeps emty but in the grippb data he capture it
LX6
KY3R
02.10.2010
15:04
2.49.07

but when i do !top the list is emty i even set the track times to imposseble bad times
car = LX6
MaxLapTime = 15.25.18
split1 = 4.48.67:4.49.39
split2 = 4.47.22:4.48.82
lapTime = 5.43.40:5.45.84

i did remove # infront of
#Auto generated file :
# Split & LapTime coefs :100,5:102
# MaxLapTime coef :200

didnt help eather so i dont know what to do and how to do
that i get the !top list fisicly on the screen

make some idas ar welkom or help of codes i dont know it just needs to work whatever it takes XD
hello

did u set:
$DefaultTopCar = "UF1+XFG+XRG+XRT+RB4+FXO+etc......";

in LFSLapper.LPR
#3 - nssf
yea i did put the cars into that waht im using


driftpb file = working

grippb file = working

$DefaultTopCar = "XRG+lx4+lx6+xrt+rac+fz5";=done

#### Include for drifting infos ####
#include( "./driftdef.lpr");
# OR
include( "./driftmeter.lpr"); =done

driftmeter=only changed posision

!tops= default
SWITCH( $command )
CASE "!oldtop":
Top( $argv );
BREAK;
CASE "!top":
# Top( $argv );
DoMyTop( $argv,FALSE,FALSE );
BREAK;
CASE "!near":
# Near( $argv );
DoMyTop( $argv,FALSE,TRUE );
BREAK;
CASE "!topqual":
# topQual( $argv );
DoMyTop( $argv,TRUE,FALSE );
BREAK;
CASE "!nearqual":
# nearQual( $argv );
DoMyTop( $argv,TRUE,TRUE );
BREAK;

driftdef=default

guiconfig=default

and than i got an other q

and that is when a player finish a lap drifting i want that
the player with highest score in that round get big on the screen on the middle so
i trying to learn c++ i never program befor lol XD but im alreddy 2 days learning
but its not enuf to understand how to fit a code into lfs

or can i just when i know the code make a file called best drifted lap put the code in there save it in lapper map and its in lapper?lol or isin it that easy

playername>points>best lap
Quote from nssf :yea i did put the cars into that waht im using

$DefaultTopCar = "XRG+lx4+lx6+xrt+rac+fz5";=done


Bass-Driver was right; you have to use something like
#$DefaultTopCar = "UFR+XFR+RB4+RAC+FZR+XRR+FXR+FBM+LX4+LX6+XFG+XRG+XRT+FZ5+FXO+FO8+FOX+MRT+UF1+BF1";
or how many cars from that list as you need.

However, I see in your reply, you have mixed upper and lower case letters - lapper !top will not work with lower case letters.

You should have $DefaultTopCar = "XRG+LX4+LX6+XRT+RAC+FZ5";

(LX6 instead of lx6, etc).
Quote from nssf :and that is when a player finish a lap drifting i want that the player with highest score in that round get big on the screen on the middle so i trying to learn c++ i never program befor lol XD but im alreddy 2 days learning but its not enuf to understand how to fit a code into lfs

or can i just when i know the code make a file called best drifted lap put the code in there save it in lapper map and its in lapper?lol or isin it that easy

playername>points>best lap

With the front end of the lapper script (the .lpr files), you don't need to understand any other languages than what you see. It's all a made up script by Gai-Luron, which is why he calls it GLScript.

What you're looking for sounds a cool idea, but I'm not sure how you would script it. Not sure you can.

Probably have to use IF..THEN..ELSE..ENDIF in some way, with part of the script either putting big button in middle of screen or a globalRcm message.

However, not sure how you could tell lapper that it's only to use scores collected in the current round, and not collect every score done with current car/track combo.

Maybe with Event OnFinish or Event OnResult ?
Quote from sinanju :
However, I see in your reply, you have mixed upper and lower case letters - lapper !top will not work with lower case letters.

You should have $DefaultTopCar = "XRG+LX4+LX6+XRT+RAC+FZ5";

(LX6 instead of lx6, etc).

i have told the same when i drove in his server.
so i take the XRG and still the same problem.

i dont know if !top works with mixed upper/lower case letters

but: !top, !drf, etc doesnt work either.
so i think it should work, what u said with only uppercase letters
Quote from Bass-Driver :but: !top, !drf, etc doesnt work either

My server host only has LFSLapper at V5.926b, so that's what I use.

So I downloaded v6.011 and tried that.

!top does work, but not !drf.

I have SQLite Manager as one of my add-ons for Firefox, and when I open the DriftPB.dbs database, I can see that my drifts made when using v6.011 have been saved - just not being displayed.

I tried !top with all $default cars set, and also with only a selection of cars, and it works ok.
#8 - nssf
i alreddy switched to bass his lapper its really cool
a bit bugs left but bit by bit its getting to the perfect point (a)
but the 1 idia stil there so maby in future i find out how to code it XD or some1 els who rip my idia lol but at least he should make it public than xD
I'm using this lpr and did things like you said. And it is not working, drift points are always increase. After a lap it's not finishing. Sorry but can you look at this?
Quote :
List of All variable that can be used in player events

$Nickname -> Nickname
$Username -> UserName
$Laps -> Total number of laps done on the ent track and with the current car
$SessLaps -> Total number of laps done this session on current track and with the current car
$TotalPitTime -> Totaltime used for a pitstop
$Car -> Current car of the player
$Posabs -> Current absolute position
$Posqual -> Current qualification position
$Groupqual -> Current group qualification
$SwearWordsRem -> Remaining number of swearwords to be used before SwearWordsAction2 is triggered
$H_Mass -> User mass required on this server
$H_TRes -> User intake restriction required on this server
$P_Mass -> Current player Mass
$P_TRes -> Current player restriction
$SplitTime -> Last Split time done by player
$LapsDone -> Lap done for the current player

$Split1 -> Last First Split, updated when doing new Split1
$Split2 -> Last First Split, erased when doing Split1
$Split3 -> Last First Split, erased when doing Split1
$LapTime -> Current Lap Time, erased when doing New LapTime
$PBLapTime -> Current PB on current Combo
$diffLapTimeToPB -> Laptime - PBLTime, Last PBLTime is new realised

$SectorSplit1 -> Last First sector Split, updated when doing new Split1
$SectorSplit2 -> Last second sector Split, erased when doing Split1
$SectorSplit3 -> Last third sector Split, erased when doing Split1
$SectorSplitLast -> Last Last sector Split, erased when doing Split1

$BestSectorSplit1 -> Best Split duration for the sector 1
$BestSectorSplit2 -> Best Split duration for the sector 2
$BestSectorSplit3 -> Best Split duration for the sector 3
$BestSectorSplitLast -> BestSplit duration for the last sector

$DiffSectorSplit1 -> $SectorSplit1 - $BestSectorSplit1
$DiffSectorSplit2 -> $SectorSplit2 - $BestSectorSplit2
$DiffSectorSplit3 -> $SectorSplit3 - $BestSectorSplit3
$DiffSectorSplitLast -> $SectorSplitLast - $BestSectorSplitLast

$isBestSectorSplit1 -> 1 if this sector split is best than previous Best, otherwise 0
$isBestSectorSplit2 -> 1 if this sector split is best than previous Best, otherwise 0
$isBestSectorSplit3 -> 1 if this sector split is best than previous Best, otherwise 0
$isBestSectorSplitLast -> 1 if this sector split is best than previous Best, otherwise 0

$BestSpeed -> Best Speed done on this combo by player
$UnitSpeed -> Speedunit of the current player
$AvgSpeed -> Avg Speed on last Lap Time
$Tpb -> Theoretical PB
$DriftScore -> Drift score
$typ -> {typ} - = "Sess" if split PB for Session "PB" if split PB for PB file;
$AngleVelocity -> Last Angle velocity in degrees
$LastDriftScore -> Last drift score
$AccelerationStartSpeed -> Starting speed
$AccelerationEndSpeed -> Ending speed
$AccelerationTime -> Acceleration time achieved from start to end speed
$MaxAllowedLapTime1 -> Max Allowed Time before trigger Event OnMaxAllowedLapTime1
$MaxAllowedLapTime2 -> Max Allowed Time before trigger Event OnMaxAllowedLapTime2
$Dist -> Distance done on current combo/track by player
$SessDist -> Distance done on current combo/track by player this session

$RotateIn -> Race remain before Rotation


List of all variables that can be used in all events

$HostName -> Current host Name
$ShortTrackName -> Track Name in Short format : SO6
$LongTrackName -> Track Name in long format : South City Chicane
$ShortTime -> Server Time in short format
$LongTime -> Server Time in long format
$ShortDate -> Date in short format
$LongDate -> Date in long format
$CurrRotateCar -> Current rotated Car
$CurrRotateTrack -> Current rotated Track
$CurrLongRotateTrack -> Current rotated Track
$NextRotateCar -> Next rotated Car
$NextRotateTrack -> Next rotated Track
$NextLongRotateTrack -> Next rotated Track



Additionnal variable that can be used in OnBeginPit.

$Work -> Work do on current car player after Pit


Additionnal variables that can be used in votation.

$Vote -> Number of player that have voted to restart, qualify or end
$Players -> Number of player that can vote ( player on track )
$Remain -> Number of votes remaining after votation conclude
$Need -> Number of votes to do action (qualify, restart, end)


Additionnal variables that can be used in OnNotMatchFlags.

$RequiredFlags -> Flag(s) required on this server
$PlayerFlags -> Flag(s) for the current player


Additionnal variable that can be used in OnFastDriveOnPitL1 or OnFastDriveOnPitL2.

$RemainFDIP -> Number of remaining penalties for fast driving in pits


Additionnal variable that can be used in OnAuthReached.

$auth -> Authorization reached
*/

/*
Command block to run when a LFS Special event is triggered
Event EventId()
...
EndEvent

Command block used by backcall command like button or scheduled action or when received a command by player
Sub SubId()
...
EndSub

Register MsgAction("!test",MA_test);
You can register a subfunction to call when a player typed a special text
Firts arg = text typed in
Second arg = Sub to call when a player typed this text

Register ScheduleAction( "0 0 0 * * *", SA_mid );
You can register a subfunction to call when a time is reached
Firts arg = cron format ss mm hh dd MM YYYY
Second arg = Sub to call when player type this text

Command allowed on Event and Sub

cmdLFS("Command_text");
Send a command to Lapper, see command.txt in LFS Doc

privMsg( "Message_text");
Send a private message to the player that has triggered the event

openPrivButton( "help",25,28,150,10,5,-1,0,"^2Commands list" );
openPrivButton( "help",25,28,150,10,5,-1,0,"^2Commands list", backcall );
Open a button for the current player
1 - Unique id for this button
2 - Left coordinate for this button ( 0-200 )
$origL = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origL + 5
3 - Top coordinate for this button ( 0-200 )
$origT = (value between 0-200); - when this value is used, every next value can be made relative to this one (example: $origT + 5
4 - Width of the button ( 0-200 )
5 - Heigth of the button ( 0-200 )
6 - Space between line in multiline button
7 - Duration in seconds for the button to be displayed (use -1 if you don't want an automatic close)
8 - Format of the button, look at insim.txt for values
9 - Button caption, for multiline, separate each line with &
10 - Option name of the backcalled sub

closePrivButton("welc&pos&clos&ref");
Close one or more button(s), you specify ID of the button to close, multiple ID's have to be separated by a &

openGlobalButton( "bargr1",60,1,10,6,6,30,96,"Restart:" );
Same as openPrivButton, but open button for all players connected

closeGlobalButton("welc&pos&clos&ref");
Same as closePrivButton, but close button for all players connected

console( "My test");
To display message on the Lapper console

There are another functions, look in config file

Codes that can be used on button format:

0 - transparent button
16 - light button
32 - dark button
64 - align text to left
128 - align text to right

If you want to make a light colored button with text aligned to the left, combine the codes to one new code, for example 16+64 = 80
*/

/*
To create colored text, use the following codes in front of the text you want to color:

^0 - black
^1 - red
^2 - green
^3 - yellow
^4 - blue
^5 - violet
^6 - cyan
^7 - white
^8 - no color

Other variables that could be used on expressions
&& -> and
|| -> or
+ -> plus
- -> minus
/ -> devide
* -> multiply
^ -> pow
== -> equal to
!= -> not equal to
> -> bigger then
< -> smaller then
<= -> smaller then and equal to
>= -> bigger then and equal to
*/

#################
#General options#
#################

$Host = 127.0.0.1; # Host IP. When more network interfaces are present, set it to IP of your host.

$Port = 29999; # Insim UDP port. Open this port after starting LFS Server by typing /insim=29999 in chat or include it in config-file LFS Server

$Password = "*********"; # Put in the admin password used on the LFS Server

$TrackInfoFile = "trackInfo.cfg"; # Path to the TrackInfoFile used to compare splits

$TCPmode = true; # Connection to LFS in UDP mode or TCP mode

$EnableRegisterWeb = true; # When set to "true" your LFS Server is displayed on the FRH Team website

$DateFormat = "dd/MM/yyyy"; # Date format used for the PB files
# Look at C#-format for date/time, little help
# HH = Hour in 0-23 format
# hh = Hour in 0-12 format
# mm = Minute
# tt = PM or AM
# dd = Day
# MM = Month
# yyyy = year with 4 digits

$TimeFormat = "HH:mm"; # Time format used for the PB files

$MessageTime = 5000; # Time in milliseconds for a racecontrol message (started by: rcm_all) to be displayed on screen

#$PubStatIdk = ""; # Indentification code for a connection to PubStat.
# To obtain a PubStatId go to www.lfsworld.net , select My LFSW Setting, tab Pubstat Access
# Remove # before PubStatIdK to activate this option

$ShowPlayerControl = False; # Set option to "true" if you want to show the control configuration of players when leaving the pits.

##############
#FTP transfer#
##############
# Results files can also be transferred to an FTP server
# Define the following parameters to use this feature
# Remove # before line to activate it
# -------------------------------------------------------------------

#$FtpServer = "your ftp server"; # Name/IP-address of your FTP server
#$FtpLogin = "your login"; # Loginname for your FTP server
#$FtpPasswd = "your password"; # Password for your FTP server
#$FtpRemotePath = "your remote dir"; # Directorname

##############################
#Synchronise Lapper databases#
##############################

#$SyncID="frh01"; # Unique ID for this instance of Lapper
#$SyncDir="synchro"; # Name of synchronisation directory. Every Lapper should have this directory name in order to synchronise
#$SyncIDsToSync="frh02|frh03"; # Lapper ID's to synchronise with
# Seperate ID's with |
# You can't use current SyncID here

#############
#Default Car#
#############
# Default car to show, when no car is specified in command !top or !drf and when a player haven't used a car on this server
# You can combine several cars by using + (example: "XFG+XRG"
# -------------------------------------------------------------------


$DefaultTopCar = "UFR+XFR+RB4+RAC+FZR+XRR+FXR+FBM+LX4+LX6+XFG+XRG+X RT+FZ5+FXO+VO8+FOX+MRT+UF1+BF1";

blabla

##################
#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";


$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 = 80; # Maximum angel to maintain. When angle is above value, score is reset
$GoodDriftScore = 4000; # Value to be reached to execute action on good drift score
$MinimumDriftScore = 10; # Minimum drift score required


# Actions to do on new personal best drift lap.


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


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

Event GoodDriftAction()
privMsg( $Nickname . " ^3made excellent drift: ^7" . $LastDriftScore ." ^3pts" );
EndEvent


# Actions to do at end of lap if MinimumDriftScore is not achieved.


Event DriftTooLowAction()
privMsg( $Nickname . "^3 disqualified" );
cmdLFS( "/spec " . $Nickname };
EndEvent
################################
#Options for hotlapping options#
################################

$Database = "./PB"; # This is the filepath of 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

# Action to do on new personal best lap.
# PBQualAction for the racer who make qualif ( in QualUser )
# PBAction the other racer

/*
Event PBAction()
cmdLFS( "New PB by " . $Nickname . "^8 (" . $Car . "): " . $LapTime;
EndEvent
*/

Event PBAction()
cmdLFS("/msg New PB by " . $Nickname . "^8 (" . $Car . "): " . $LapTime );
cmdLFS("/msg Friendly rank : " . $Posabs );
cmdLFS("/msg Session laps done = " . $SessLaps );
cmdLFS("/msg Total laps done (server) = " . $Laps );
cmdLFS("/msg Average speed: " . $AvgSpeed . " " . $UnitSpeed );
cmdLFS("/rcm Friendly " . $Car . " rank: ^7" . $Posabs );
cmdLFS("/rcm_ply " . $Username );
EndEvent

Event PBQualAction()
cmdLFS("/msg League - New QT by " . $Nickname . "^8:" . $LapTime );
cmdLFS("/msg Friendly rank (all visitors): ^7" . $Posabs );
cmdLFS("/msg ^2Qualify pos.: " . $Posqual );
cmdLFS("/msg ^6Actual Pool: " . $Groupqual );
cmdLFS("/msg Average speed: " . $AvgSpeed . " " . $UnitSpeed );
cmdLFS("/rcm " . $Nickname . " ^2Pos:" . $Posqual . " - Pool:" . $Groupqual );
cmdLFS("/rcm_All");
EndEvent



#########################################################################
# Overriding options #
#########################################################################


FGED GREDG RDFGDR GSFDG