The online racing simulator
LFSLapper insim4 Release
(2101 posts, closed, started )
Quote from Polarwind :I installed LFS Lapper on my computer and it was very easy.

I do have one error I was hoping someone would be able to help me with.

"Loading WR...Not Loaded" Can someone help me with this error.

Thanks...

You haven't put in your pubstatid or you haven't removed the # at the beginning of the line.
A PubstatID can be optained on the LFSWorld site.
Hello,

First of all I wanted to thank for making a lapper for us. I just started using it, so I don't really know much about it.
I just wanted to ask one stupid question.
I haven't been changing almost anything in the lapper, I just put it in my server and that's it. But where, or what do I have to write or do, so that when the lapper is showing the split times, they are not in the middle of the screen, but on the top. I've seen in some servers that they are on the top, but mine are in the middle, and sometimes it's a bit annoying.

I looked in the lapper, but didn't really find anything about it, or I just didn't understood it.

I hope you can help, thx.
You have to change the position of the buttons.

A button is constructed using the following values:

Open a button for the current player
1 - Unique id for this button
2 - Left coordinate for this button ( 0-200 )
3 - Top coordinate for this button ( 0-200 )
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

The button for split 1 is defined as:


openPrivButton( "id_spb",50,55,100,10,10,5,0,$typ
. " ^7SP1"
. ": " . $SectorSplit1 . " "
. $color
. "(" . $DiffSectorSplit1 . ")"
. "&^7TPB:" . $Tpb);

So you have to play with the values 50 (left coordinate) and 55 (top coordinate) to get it to another position.

Always remember that:

0,0 = top leftcorner
200,0 = top rightcorner
0,200 = bottom leftcorner
200,200 = bottom rightcorner
Thank you.
Pitboard V1.43
Hi,

The release of Pitboard version 1.43 has the option to display when the pitwindow starts and if it has started, how long the pitlane will be open.
Ofcourse this option can be configured using the !config command on your server. I've made some pictures of the config-screen and the new displays on the Pitboard and I've uploaded a file which has all the code needed to run the Pitboard on your server. Just copy/past the code into the correct sections of your Lapperscript and you are ready to go.
Attached images
Image1.png
Image2.png
Image3.png
Attached files
Pitboard_v143.txt - 127.6 KB - 250 views
I've found a small glitch in the new release of the Pitboard and corrected that.
Here's a new upload.
Attached files
Pitboard_v143.txt - 127.7 KB - 245 views
Another bug crawled into the code but is smashed immediatly.
so again an update V1.43
Attached files
Pitboard_v143.txt - 127.9 KB - 217 views
Hi,

Im testing version 5.716 and have a small request.
I use the new var $LapsDone -> Lap done for the current player but this work's alway's in race and in Qualifying.

It should be nice if this is working for race only.
At this moment when a player drives some laps the pitwindow can start in Qualifying.
Bug fix for the previous bug fix
I'm starting to go crazy. Fixed a bug yesterday, but the fix had a bug itself.
Anyway, I think I've solved it, so here's another release.
Attached files
Pitboard_v143.txt - 127.9 KB - 249 views
Hi all, I got a doubt. The "MinimumTime" value in the function "AuthAllowPlayer" will check the driver pb on LFSWorld or only in the pb.txt file?

Thanks.
Quote from lysergic :Hi all, I got a doubt. The "MinimumTime" value in the function "AuthAllowPlayer" will check the driver pb on LFSWorld or only in the pb.txt file?

Thanks.

Time is checked in the PB.txt file.
Quote from Yisc[NL] :Time is checked in the PB.txt file.

Thanks for the answer, do You think is possible (in a not too difficult way) to define another file or source for the pb check?
Quote from lysergic :Thanks for the answer, do You think is possible (in a not too difficult way) to define another file or source for the pb check?

I can't say it's impossible but I don't know a way to do it.
Hey guys,I have one very stupid problem with the Lapper
When I try to run it ok everything is configed i start LFSLapper.exe and for around 4 seconds it rights connecting .. connection ok and so on and then the window closes by itself
What's the problem? Help me ! Please I'm using 5,716
Quote from sh0rtyto :Hey guys,I have one very stupid problem with the Lapper
When I try to run it ok everything is configed i start LFSLapper.exe and for around 4 seconds it rights connecting .. connection ok and so on and then the window closes by itself
What's the problem? Help me ! Please I'm using 5,716

Hi,

Use NETStartDefault.bat to start lapper
I tried it it connects and at the end it says
".....\LFSLapper5.716\bin>pause
Press any key to continue . . ."
and whatever key I press it just closes the window :
BTW:Thank you for the fast answer
hope you help me again !
Quote from sh0rtyto :I tried it it connects and at the end it says
".....\LFSLapper5.716\bin>pause
Press any key to continue . . ."
and whatever key I press it just closes the window :
BTW:Thank you for the fast answer
hope you help me again !

Hi,
You have to edit the LFSLapper.lpr in /cfg dir. ( port number must the same as in Dedi sever and Admin password of the Dedi server.
Or start a host fill in the adminPwd and type when is running /insim=29999 ( have to login as admin) . see also page 1 of this thread

#################
#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 = "adminPwd"; # Put in the admin password used on the LFS Server

And run the NETStartDefault.bat in the /Bin dir.
man I must say !!! Thank you alot but one last question why don't I have drift points I'm in the server already must I type something in the cmd? or in the ingame chat?
fixed the DriftPB and the PB errors so just remains this how to start my drift points?
Quote from sh0rtyto :man I must say !!! Thank you alot but one last question why don't I have drift points I'm in the server already must I type something in the cmd? or in the ingame chat?
fixed the DriftPB and the PB errors so just remains this how to start my drift points?

Driftpoint are disabled by default so you have to remove /* and */ in those sections in order to enable them.
In what sections must I delete those things?
In some file or what? I just didn't understood you
and before what codes must I do this?
please explain me !
Thank you !
Quote from sh0rtyto :In what sections must I delete those things?
In some file or what? I just didn't understood you
and before what codes must I do this?
please explain me !
Thank you !

Hi,

All the part's between /* and */ and all the line's start with a # in the script don't work .
If you remove the /* and the */ the part between will work then ( after a restart of lapper) .
So for drift point you can use the next code ( i allready removed the /* and */ )


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

Thanks man !!! You're my saviour
This one worked perfect for me
Admin-GUI
Last couple of weeks I was busy developing a new Admin-GUI since the old one (never released to the public) wasn't sufficient enough. My goal was to make something simple and very useful with dynamic (you only get to see what can be used) buttons on it.
In my opinion I succeded in this task with a nice looking GUI as a result.

Track selection:

By selecting a track a description is display in the track section so you always know what you have chosen. A "REV" button is available ofcourse and can be used with every track you select. A race can be ended by pressing "End race" and after that the selected track can be activated by pressing "Set track".

Weather selection:

The weather conditions vary from track to track so that's made dynamic. After selecting a track (you don't need to activate that setting) the available weather is presented and can be chosen. The settings for windspeed are the same for every track so they are constantly available. By pressing "Set weather" the settings are activated.

Qualify / Race selection:

Again a dynamic section to set the number of minutes you want to qualify and the laps or hours you want to race. The current values are displayed in white at the rightside of that section and by pressing "Set qualify" or "Set race" those values are activated. Pressing "Start qualify" or "Start race" will start the chosen part of the race.

Car selection:

In this section you can chose any car or cars you like by selecting them one by one. Ofcourse you can also choose to select a whole class in one time by using the buttons below the cars. By pressing "Set car(s)" the selection you made is actived.

Miscellaneous:

In this section you can set all sorts of options for the server. The setting you want is activated immediatly after pressing the button. A text corresponding to the last action is displayed in the info-field.

I have to finish this last section, activate the close button and add a small section for settings which can be used with the Pitboard. I hope to release this GUI later this evening or tomorrow.
Attached images
Image1.gif
I am impressed :jawdrop:

Gai-Luron
is it possible to declare a new race lenght if track rotates?
i have set 7 laps now in my config for SO4 with GTRs.... but 7 laps on FE4 is a bit too much.

thx 4 help
This thread is closed

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