The online racing simulator
Searching in All forums
(882 results)
Bass-Driver
S3 licensed
Well i have add a racetimer. Will see if i push this update on the server this evening.

Timer will appear when light go green and disappear when you finish the stage.

Edit: Update is available on the server.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Update report

New insim version on the server + new layout

I have build a splittime feature to this script. At the moment the splittimes will not be displayed when you pass a checkpoint. But the splittimes will be saved to your current Stage/Car configuration.
Your laptimes are valid when you pass all the checkpoints.


I will update the splittime system in the future with a window/bar for the players.

Another new feature is to save our stages/layout config. This should be easier for our admins to load the stage startpositions instead of driving to each stage to set them.

V1.07 (17-06-2017)
Add: Splittimes (only in timetable)
Add: RaceTimer
Update: SetStartMenu >> Save / load saved startpositions. (usefull for admins)
Update: TimeTable >> Minor design changes
Update: TimeTable >> Splittimes
Update: TimeTable >> Faster Timelist loading
Fix: TimeTable >> Was possible to choose page 0
Fix: Cleartimetable didnt work properly
Fix: Adminpanel >> Typo's
Fix: Multilap background didnt disappear when turning off Multilap in Adminmenu
Removed: TimeTable >> MaxSpeed

Also there are some other fixes on the current Lapper. Many thanks to kristofferandersen for finding these bugs.
See the changelog below:
https://docs.google.com/spreadsheets/d/1bY-G2AR0GloI_Xb4wemtRMtPNkQhTbgwCBDTq58x8OY/edit?usp=sharing

There is also a new layout on the server. Made by Urbansus.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
In the meantime you are waiting for the code, You should have done this by yourself.
These are just buttons. Easiest thing in Lapper.

And with using the search function on this lapperforum looking for "Marshall" you whould find a script with marshalls: https://www.lfs.net/forum/thread/65264

Edit: i will delete the my post and the post above soon, to clean the topic.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
its easy, just think a little bit more. After all your lapperrequests.


<?php 
Sub loop
()
    
openButton$Var["value"], "button",175,124,25,5,5,2,96,"^7",Clickbutton);
EndSub

Sub Clickbutton
($KeyFlags,$id)
    
$Loop_On 0;
EndSub
?>


Bass-Driver
S3 licensed
First of all, you have to see who's an admin in the server.

You can do this with a foreach Loop


<?php 
$Players 
GetListOfPlayers("U");                  
        FOREACH( 
$Var IN $Players #For each player in the server
            
        
ENDFOREACH
?>

In that loop, you check if the current player in the loop in an admin.


<?php 
IF ( UserIsAdmin$Var["value"] ) == THEN

ENDIF
?>

To open button for a specific player in your current loop using the OpenButton() function.


<?php 
openButton
$Var["value"], "button",175,124,25,5,5,2,96,"");
?>

I see now that, adding the Ipaddress player var to LFSLapper was a bad choice. So many cracked players and i think legal players are using it. This could be a security issue :S I'm sorry for that.

But it was a insimpacket that was kinda easy to implement so yeah uhm.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
@Popughini

Here's an examplecode for display players speed, that i used in a another topic.
With the 2 commands you can control a loop inside a Sub



<?php 
###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
    
Globalvar $Loop_On
        
$Loop_On 0;
EndEvent

#################
#Command actions#
#################
Event OnMSO$userName$text # Player event

    
$idxOfFirtsSpace indexOf$text" ");

    IF( 
$idxOfFirtsSpace == -THEN
      $command 
$text;
      
$argv "";
    ELSE
      
$command subStr$text,0,$idxOfFirtsSpace );
      
$argv trimsubStr$text,$idxOfFirtsSpace ) );
    ENDIF
    
    SWITCH( 
$command )

        CASE 
"!loopoff":
            
$Loop_On 0;
            
$Racers GetListOfPlayers("U");                  
            FOREACH( 
$Var IN $Racers )
                
closeButton$Var["value"], "speed");
            ENDFOREACH
        BREAK;
        
        CASE 
"!loopon":
            
$Loop_On 1;
            
globalmsg("execute sub Set_Loop()");
            
Set_Loop();
        BREAK;

    ENDSWITCH
EndEvent

Sub Set_Loop
()
    IF (
$Loop_On == 1THEN 
        $Racers 
GetListOfPlayers("U");                  
        FOREACH( 
$Var IN $Racers #For each player in the server
            
openButton$Var["value"], "speed",175,124,25,5,5,2,96,"^7" GetPlayerVar$Var["value"], "InstantSpeed") . " " GetPlayerVar$Var["value"], "UnitSpeed")."^8 (".GetPlayerVar$Var["value"], "Car").")");
            
DelayedCommand1Set_Loop); #1 second delay
        
ENDFOREACH
    ENDIF
EndSub

?>


Bass-Driver
S3 licensed
Yeah sorry :s Bad english
Will be fixed in the next version.

I have no plans, to work on a new version yet.
Bass-Driver
S3 licensed
There are many functions in Lapper to add a player to a file or check if the player exits in the current file. And ofcourse you can remove the player from that file.

See the functions below. If you use the searchfunction of this forum.
You will see many many examples.

moveusertogroup();
getlistofusersgroup();
usergroupfromfile();
usergrouptofile();
removeuserfromgroup();
useringroup();
Bass-Driver
S3 licensed
Hi

The insim you see is included the TimeAttack addon. You can see the features in the 1st post. So question 1 till 4 is about the my personal Lapper i've running on the servers.
I havent do anything to it since september last year. This is because of the Timeattack addon i'm working on.

See the changelog below:
https://docs.google.com/spreadsheets/d/1bY-G2AR0GloI_Xb4wemtRMtPNkQhTbgwCBDTq58x8OY/edit?usp=sharing

But i will answer your questions:
Question 1: Thanks.
Question 2: The achievements is still WIP. Player sees a Button, rest of the players will see a chaymessage, But this is good idea.
Question 3: Thanks for your positive feedback.
Question 4: This is a really outdated manu. I should get rid of that.

Now the questions according to the Timeattack addon:

Question 5 : Added to my fixlist, Thanks.
Question 6 : is already fixed in my dev version.


I'm planning to add several things to this Addon. Some stats like driven distance, Objects hit (Per stage/Total), Splittimes and other things in my todo list.

Edit bug report: Added to my fixlist.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Serverupdate: Insim update
Update will be soon available on the server

V1.06 (08-06-2017)

(Requests from Psoetaert):

Add: CarInspection: Lightcontrol for carbridge (ONLY for the inspector)(LightIndentifier = 10)
Add: Speedlimit zone detection (Circleindex 11 = SpeedZone IN) (Circleindex 12 = SpeedZone OUT)

Update: TimeTable: MaxSpeed Colomn
Update: Test clickbutton on name for future features.
Fix: Fixed Numbering TimeTable
Fix: TimeTable (Max Page limit) No more black pages

Bass-Driver
S3 licensed
AS1X and demouser = Crack = No Help from me.
bye
Bass-Driver
S3 licensed
Tonyslayt and Stakikety

-May i ask, in which server this script is gonna be used?
-if you guys have a proper Demo license, why dont i see any progress in your online stats. I assume you having a cracked LFS. or show me that i'm wrong.

We are not going to help any players with a Cracked version of LFS.

So,Buy LFS and enjoy the legal content. And get more help with Lapper etc.
Bass-Driver
S3 licensed
Hes also using Strava Tongue

Btw Scawen, Is it possible to show us a preview of the new tracks or other work, after atleast 6 months of hard work on track designing etc.
Bass-Driver
S3 licensed
Server update:

New layout available. Created by Bass-Driver and Psoetaert.
This layout contains 3 stages.
There is 1 short stage and 2 longer ones. See the attachments for the routes.
Bass-Driver
S3 licensed
As first you need enable all the cars in your server. After that you have to use a function that i made for Lapperversion 7.0.4.4.
See the link below. You might have asked the same question.

https://www.lfs.net/forum/post/1916011#post1916011

Read post 6/7/8/9 and 10
Bass-Driver
S3 licensed
New small update:

There is now a Car and UserName filter in the timetable.

V1.05 (31-05-2017)
Add: Speedlimit zone detection ( requested for rallyevent)
Update: Penaltybar slightly bigger
Update: TimeTable >> Filter list by Car(s) Car01+Car02
Update: TimeTable >> Filter List by Username(s) UserName01+Username02
Fix: Several small fixes

Soon will be new layouts available to drive on.
I'm also looking for Timeattack layouts that are already been build.
The only thing is: the start/finish need to be edited for insim compatibility.

So if you have some layouts laying around. PM me
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Hello,

Here's a small update i will release to the server tonight.
See the changes below:

IT is now possible to change your nickname in the timetable list. This is because LFSLapper still having trouble with displaying some characters.


V1.04 (30-05-2017)
Add: Change NickName in TimeTable
Update: Enable/Disable saving DNF/DNS to timetable
Update: TimeTable sorted in Ascending way
Update: TimeTable Player can select with page he want to be displayed (Click on pagenumber)
Fix: Penalty-reset doesnt work after start (Hitting objects after finishing)
Fix: Startlights hang when someone made a falsestart with penaltysystem enabled.

Last edited by Bass-Driver, .
LFSLapper: TimeAttack WIP
Bass-Driver
S3 licensed
Hello LFS_Players.

I like to present to you, a server that is powered by LFSLapper which contains a addon that is using custom timings.
In this server it is the main task to drive the fastest time.
The reason for creating this topic in the LFSLapper forum is because, it goes mainly about the addon that is running on the server.

This addon i created was ment for some Rallyevents. Like startpositions on multiple stages on the same circuit.
But after a while they stopped using it. So now it my chance using it. See below the main features of this addon.

See attachments for some pictures and the changelog.


===========================================
Main Features:

+Simple Helpmenu (Commands/Instructions to new players/Rules)
+Real Startposition/StartLights
+Color sectorbars to indicate if you are faster slower than your PM or BestTime
+YellowFlag system.
+Car Inspection (Incl Inspector(player), Player has to be set by admin)
+Advanced Adminmenu
+Penaltysystem ((ADMIN): set time for each object you have hit)
+MultiStage start system (Set Up to 6 stages on 1 circuit)
+MultiUser start (multiple drivers on 1 stage) (only for stage 1)
+List with stagewaiters
+MultiLap option
+Scheduled Messages (every 15 minutes)
+Team/EventLogo (Text) During event
+TimeTable
+Custom Timings
+Virtual Co Driver

TODO List:
=================================
-Classfilter in TimeTable
-List with the fastest times for each stage/car combo.
-List with your PB of each stage/car combo.
-Info About run player in timetable by clicking on it.
-Switch between LFS Checkpoints/Custom Checkpoints (Adminpanel)
-Ignore StageTimes < time
-Theoratical Best time ( Combine all splits together)
-Driven Runs per stage/Layout
-Current Position in CarList.
-Control Startlights manually
-Simulating gate for closing/opening stages
-Deleting single time from Timetable
=================================

Server:
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
This is going nowhere.

Apparently WillyGz doesnt know, that we know, that he's a cracker.
According to his stats : 0km driving distance.

So ill close this thread.
Bass-Driver
S3 licensed
In LFSLapper it is easy todo that.
There are 4 kinds of variables you can use to kick/ban a player (Username,UserID,IPAdress ( Decimal/NonDecimal)

GetPlayerVar($userName,"LFS_UserID")); #numeric value
GetPlayerVar($userName,"DecimalIPAdress"));numeric value
GetPlayerVar($userName,"IPAdress")); #string

For example to kick a player with a specific IPAdress


Event OnNewPlayerJoin( $userName ) # Player event
IF (GetPlayerVar($userName,"IPAdress") == "12.123.123.123") THEN
cmdLFS("/kick ".$userName);
ENDIF
EndEvent

Bass-Driver
S3 licensed
Kick players by theire Username?
Bass-Driver
S3 licensed
There is not such an option in Insim to "ignore" the messages of specific players.
But why whould you do that in the first place?

I recommend to warn the player first and if he/she still ignore the rules. You could kick them out of the server.
Bass-Driver
S3 licensed
Wow that sucks Frown

Well, i know that Victor was updating theire servers to support LFSLapper.

https://www.lfs.net/forum/post/1924343#post1924343.
So maybe it had something todo with it.
Bass-Driver
S3 licensed
Hello,

I whould like to ask someone who's interested in creating examplecodes/tutorials about several Button functions for LFSLapper.

If you are interested, please send me a PM.

See the buttonfunctions below:


<?php 
#############################################
#Buttons
#############################################


textprivbutton"ButtonID","TEXT OF BUTTON" );
textprivbuttonall();
openprivtextbutton();
opentextbutton();
openglobalbutton();
closeglobalbutton();
openprivbutton();
closeprivbutton();
openbutton();
closebutton();
?>

When the examplecodes are ready, i will overwrite this message
Bass-Driver
S3 licensed
copy&Paste Error.

I fixed the Typo's in the first post aswell.
Last edited by Bass-Driver, .
FGED GREDG RDFGDR GSFDG