The online racing simulator
Searching in All forums
(879 results)
Bass-Driver
S3 licensed
Online at :
VM.Infected


Team Name: SSD StreetStyle Devils

Server (Y/N): 2 Servers
  • [SSD]Racing (Several kinds of racing/eventmodes: Drag/Racing/Drift/Rally)
  • [SSD]Development (Layouts/LFSLapper/Setup)
Type: Allround
Website: https://www.facebook.com/LFSStreetStyleDevils
Are you willing to accept members immediately or will you test drivers?: Test First
Demo/S1/S2?: S2-S3
TeamTag: SSD-
Best way to contact us: PM or https://www.facebook.com/LFSStreetStyleDevils/
Extra Info: It is always a +1 if you have experience with:
  • -Experience with being an serveradmin
  • -Building layouts
  • -Editing screenshots
  • -Creating video's
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
Hi,

I made a small codechange in the RegisterZoneAction() and RegisterNodeAction().
The Callback Sub shall have a extra variable.

Example:


<?php 
RegisterNodeAction
TESTIDgetLapperVar"ShortTrackName" ) , getCurrentPlayerVar("CurrNode") , test,"" );

Sub test($UserName,$ZoneID)
   
privmsg("ID=".$ZoneID); #output is TESTID
EndSub
?>


Why this change?
Now it is possible to call this sub with differend Node/Zone actions

With this small change, all the current Sub Callbacks from the Zone/Node actions must be changed.
So many scripts will not work properly, if it has any Node/Zone action.

FROM

test($UserName);

TO

test($UserName,$ZoneID);

I've tried to ignored the warning message that checks the variables in the Sub callback, but Lapper will Crash immediately.
I'm looking for a solution to make it compatible with older versions of LFSLapper
Bass-Driver
S3 licensed
Online at :
VM.Infected
Demouser with S2/S3 content.

User is banned!
Release : LFSLapper V7.0.4.4
Bass-Driver
S3 licensed
Online at :
VM.Infected
Hello LFSlapper users,

I'm proud to release a new small version of LFSLapper.

+-------------------------------+
|Changes from 7.0.4.3 to 7.0.4.4|
+-------------------------------+
=================================================
New:
=================================================
1. New LapperFunction: AllowedPlayerCars($UserName,$Cars);

$UserName = Bass-Driver;
$Cars = XFG+XRT+RB4;
AllowedPlayerCars($UserName,$Cars);

2. New LapperVar: GetLapperVar("racetime");
Time will be reset after restarting the race.

Examplevideo: First test

=================================================
Update: Lappercore/Script Updates.
=================================================
1. Update Sub Callback for RegisterNodeAction() & RegisterZoneAction()

The Callback Sub for RegisterNodeAction() & RegisterZoneAction() is having a extra variable.

Example:

RegisterNodeAction( TESTID, getLapperVar( "ShortTrackName" ) , getCurrentPlayerVar("CurrNode") , test,"" );
Sub test($UserName,$ZoneID)
privmsg("ID=".$ZoneID); #output is TESTID
EndSub

Now it is possible to call this sub with differend Node/Zone actions

NOTE: Sub Callback with 1 variable will cause errors in the ERRORfiles.
NOTE: Older Scripts need to be updated
=================================================
Fixed: Lappercore fixes.
=================================================
1. Event OnAngleVelocity( $userName )
This event will now also execute with negative Angle values. (When you cars spins to the right or to the left)
Previously, only executes when car spins to the left.

2. RemoveNodeAction();
Lapper crashed when removing node with invalid NodeID.

3. RemoveZoneAction();
Lapper crashed when removing zone with invalid ZodeID.

Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
Nice layout Tongue
Bass-Driver
S3 licensed
Online at :
VM.Infected
Version 0.2 released: Small edits and fixes.
See first post.
Bass-Driver
S3 licensed
Online at :
VM.Infected
Thank you,

Your idea has been added in the todo/suggestion list.
Bass-Driver
S3 licensed
Online at :
VM.Infected
First version of the dragaddon is released:
See first post. https://www.lfs.net/forum/thread/89909-LFSLapper-Drag-Addon-%28W-I-P%29
Bass-Driver
S3 licensed
Online at :
VM.Infected
Quote from Kyle-Caz :Looking good! :-)

Thank you
Drag system
Bass-Driver
S3 licensed
Online at :
VM.Infected
Hi everyone,

I like to release my dragaddon for LFSLapper.

EDIT: ADDON UPDATED FOR VERSION 7.0.4.4 OR HIGHER
Check in the attachments which one you need

##################################
#HOW TO INSTALL THE ADDON
##################################
  • -Be Sure you have the latest version of LFSLapper: https://www.lfs.net/forum/thread/58433-Release.
  • -Copy and Paste the 'DragSystem' folder into the Includes Folder. (\bin\default\includes)
  • -Open the "addonsused.LPR" file (\bin\default\includes\addonsused.LPR) and add the
following lines:

include( "./includes/DragSystem/Drag_Global.lpr");
include( "./includes/DragSystem/Drag_SetDect.lpr");
include( "./includes/DragSystem/Drag_BackSpawn.lpr");
include( "./includes/DragSystem/Drag_Finish.lpr");
include( "./includes/DragSystem/Drag_UserDetect.lpr");


##################################
#HOW TO START THE DRAGSYSTEM
##################################
  • -Type !dson/!dsoff to turn on/off the Dragsystem.
  • -Type !setdraglines(!dsl) to set the Stageline/Splitlines/Finishlines etc
  • -To activate the startline type !acstart , with !destart you can deactivate it.
The next option is not functional for demodrivers: SpawnBack option
Do you want to spawn your finished drivers back to a location? Type !setspawnpoints.
You need to add a Insim Circle to make this working.

Have Fun.

=====================================================================
NOTE FOR SETDRAGLINES: PRESTAGE LINE IS NOT WORKING YET
=====================================================================

Features:
  • Up to 4 drivers. Can be set with a command ( 1 to 4 drivers)
  • Christmas lights
  • Finishboard (small one for 2 drivers, big one for 3/4 drivers)
  • Penalty detection (disqualified after finishing)
  • Splitspeeds in KM/H
  • Times(Seconds)
  • DragRatio (show your winningsratio)
  • Set Prestage/Staged/Splits/penaltyline/Finishline
  • Set Spawnpoints (spawn drivers back when finish)

    Todo's/Suggestions:

  • Times in milliseconds. (Lapper Sourcecode need to be changed (New insimpacket))
  • Prestage line
  • Early start for specific user.
  • Differend Languages

NOTE: Addon updated for version 7.0.4.4 or higher

######################
#Changelog:
######################
Version 0.2

Edited:
  • -Extra command for !setspawnpoints.(!ssp)
  • -Spawn/Spec line now used to spawn players back (if a spawnpoint has been set, otherwise the driver will be spectated)
Fixed:
  • -Dragline Nodes removed after turning off the dragsystem.
  • -Set Draglines nodes(!sdl) as a spectator
  • -Set Spawnpoints(!ssp) as a spectator
Version 0.3
Edited:
  • -Prestage lights does work now
Fixed:
  • -PreStage lines didnt work.
Version 0.4
Fixed: (thanks to Yisc[NL])
  • -Removed some arguments on function CloseDragResults() in file 'Drag_Finish.lpr' at line 154 .
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
New Version is released in first post.

https://www.lfs.net/forum/post/1888906#post1888906
Bass-Driver
S3 licensed
Online at :
VM.Infected
Hi, i decided to update the script a littlebit.
  • New Hitball Detection system: Uses the Carcontact insimpacket instead of my own hitballdetection system

    CatchEvent OnCarContact($PlayerA,$PlayerB,$PlayerA_Speed,$PlayerB_Speed,$PlayerA_X,$PlayerB_X,$PlayerA_Y,$PlayerB_Y)
    EndCatchEvent


    To use this script you have to use LFSLapper version 7.0.4.3 or higher!!!!
  • Automatically Spawn car(The Ball) to center when making a goal. (DONE)
    Can be turned off/on in adminmenu (DONE)
  • New commands to start/stop a game. (!startsoccer / !stopsoccer).(DONE)
  • Small Bugfixes.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
What kind of error messages do you got? Add a screenshot with the error message

To which pc are you connecting to?

Are you sure you have filled in the right IP adress + insimport in the LFSServers.cfg? (bin/LFSServers.cfg)

Are you sure you have filled in the right Adminpass in the 'default_1' file?(bin/default/default_1.cfg)
Bass-Driver
S3 licensed
Online at :
VM.Infected
Contact the devs: https://www.lfs.net/contact
Release: LFSLapper V7.0.4.3
Bass-Driver
S3 licensed
Online at :
VM.Infected
Hi everyone,

I discovered some issues, while working on my lapper, missing Playervars and lappercrashes with the JoinRequest() Lapper function.

So here is a another small update for LFSLapper.

See the list below, with all the changes and fixes from version 7.0.4.0 to 7.0.4.3.
Have fun.

+-------------------------------+
|Changes from 7.0.4.0 to 7.0.4.3|
+-------------------------------+

Version 7.0.4.1 https://www.lfs.net/forum/post/1905751#post1905751
Version 7.0.4.2 https://www.lfs.net/forum/post/1909748#post1909748
  • 1. New Event: (LFSLapper.LPR)

    Event OnCarStateChanged($userName,$StateOfCar)

    IF($StateOfCar == 0)THEN
    globalmsg(getplayervar($userName,"NickName")."^7 Stopped the car!");
    ENDIF
    IF($StateOfCar == 1)THEN
    globalmsg(getplayervar($userName,"NickName")."^7 Start driving!");
    ENDIF

    EndEvent

  • 2. New PlayerVars:
    • -GetCurrentPlayerVar("Heading"); #Direction of forward axis : 0 = world y direction
    • -GetCurrentPlayerVar("Direction"); #Car's motion if Speed > 0 : 0 = world y direction

  • 3. Changed:
    • -Fixed Typo's & Changing Pitworks in sourcefile Insim4.cs ( Thanks to Iceman121 for reporting the typo's and idea's)

      Mechanicals Damages >> Mechanical Damage
      Body Dammage >> Minor Damage
      Major Damage

      Refuel >> Refuelling
      Wheels & Transmissions >> Wheels

    • -Characterlenght increased to 120 chars instead of 67 for the following functions:
      Privmsg()
      GlobalMsg()

  • 4. Fixes:
    • -Sourcecode bugfix: in GLScript.cs ( Thanks to Yisc[NL] for reporting the bug)
      Link of report: https://www.lfs.net/forum/post/1906238#post1906238

    • -Sourcecode bugfix (CSC) (CarState Packet) implemented in version 7.0.4.1
      LFSLapper crashed after getting player without a username (HOST)

    • -Minor bugfixes in LFSLapper.lpr ( Thanks to Yisc[NL] for reporting the bug)
      Link of report: https://www.lfs.net/forum/post/1906123#post1906123

    • -JoinRequest fixes:
      Lapper crashed when JoinRequest() have less than 8 parameters
      Lapper crashed when Heading value > 254
      Lapper crashed when spawning a spectating player

    • -StartLightControl fixes:
      Lapper crashed when startlightcontrol() have less than 4 parameters

  • 5. Removed/Edited
    • -Welcomes Message ignored in Default Helpmenu(includes/cif/config_membership.lpr)
    • -Enabled Welcomes message in LFSLapper.lpr (Event OnConnect( $userName ))
    • -Playervars.txt in 'doc' folder edited.
    • -Playerinfo.txt in 'doc' folder edited.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
To get Realtime driftscoring you have to edit the sourcecode of LFSLapper.

Here are the steps you have to take to get RealTime DriftScoring

NOTE: ALWAYS CREATE A BACKUP OF YOUR ORGINAL LFSLAPPER.EXE!!!!
  • -Go to the 'src folder' and open the LFSLapper C# project file in Microsoft Visual Studio.
  • -Read the attachment and see which files and lines to you to edit. (Becarefull with this, changing other lines will cause a ton of errors).
  • -After editing, you save the file and click on the tab Build > Build Solution.
  • -Visual Studio is now creating a new LFSLapper.exe with the edited code.
  • -Check where the LFSLapper.exe is being saved, and copy and paste it with the LFSLapper.exe in your lapper folder "Bin folder".
Bass-Driver
S3 licensed
Online at :
VM.Infected
Quote from Sinanju :
Thought I'd ask Devs if you and Yisc[NL] could be moderators for the lapper section Smile
Use your new powers wisely!

We got the Powwweeer.Smile

Just kidding.
Many thanks for asking to get Yisc[NL] and me as moderators for this forum.

We asked Victor to add some subsections to manage all the threads.
But we might need your help soon or later.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
Before you start with a project like this. You have to start with learning the basics of LFSLapper.

Creating Buttons. (still dont know why this isnt sticky)
Topic One: Basic
Topic Two: Advanced
Thank you Sinanju for creating these topics.

Statements in LFSLapper
IF ELSE ENDIF structure ( basic programming stuff)
WHILE ENDWHILE
FOR ENDFOR
etc

There are alot of topics/examples in this LFSLapper development section that can help you.

Before you start with a project like this. Write on paper the details about the project you are working on. And how it should work.

PS: We need moderators in this LFSLapper Development section.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
here's the code i got from LFSLapper sourcecode(C#).
I think its a nice example to show the acceleration time.

// acceleration1
if (speed < 0.1)
{
this.timeSinceZeroSpeed = System.DateTime.Now;
this.accelerationInProgress = true;
}
else if (speed > 100 && this.accelerationInProgress)
{
this.accelerationTime = System.DateTime.Now - this.timeSinceZeroSpeed;
this.accelerationInProgress = false;
this.accelerationTimeValid = true;
}

Bass-Driver
S3 licensed
Online at :
VM.Infected
Good job,

Whould be nice to have a function to sort Arrays,Vars etc.

Example

SortVar("Var",High); (From High to low)
SortArray("Array",High); (From High to low)
or
SortVar("Var",Low); (From Low to high)
SortArray("Array",Low); (From Low to high)
Bass-Driver
S3 licensed
Online at :
VM.Infected
have you tried lfslapper version 7.0.4.2? can be found in the ."Adding JRR INSIM PACKET" topic in this lfslapper development forum. This version contains an update that will allow more characters in a privmsg() or global() lapper functions.

Edit : link of post with attachment LFSLapper version 7.0.4.2
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
Looks nice, Well done Thumbs up
Bass-Driver
S3 licensed
Online at :
VM.Infected
Small Scriptupdate:

-Added Saving/Delete Locations and tested with many drivers in the server.
-Only the saved locations for the current track will be loaded.
-Saved Locations will be saved in a textfile.

Looks like this inside the textfile:


bl1|bridge|-86|-264|0
bl1|sdads|-99|154|10
bl1|pitbox|-100|155|10
bl1|sadasd|-99|154|10
bl1|test01|1|322|0

Things todo:

-Working Deletebutton
-Few protections against spawning spectating players or spawning players without any valid X/Y/Z axis (will be updated in the sourcecode later)
-Display more than 14 locations and 16 players
Spawnsystem
Bass-Driver
S3 licensed
Online at :
VM.Infected
Update:
Creating a script to spawn players easily.
It is not finished yet. But the basics are working well.

At the moment i'm working on Set/Save locations to spawn the current player to that location.
See the attachment for the current state of the GUI.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.Infected
Update:

Here is the first testversion that includes the JRR insimpacket:


The commands+Info can you find in the LFSLapper.lpr file.
For now i only want to test the reset function of this JRR packet.


<?php 
#########################################################
        #JRR Command Info:
        #########################################################
        
        #########################################################
        #########RESET YOUR CAR (with or without repair)#########
        #########################################################
        
        
Set $Flags 128;
        
Set $UCID 0;
        
$PLID getcurrentplayervar("PLID");  #PLayer's unique ID
        
or
        
$PLID players id here;  #PLayer's unique ID
        
To see your PLID type !plicid
        
        
If you want to reset your car on your current position:
        
            
$X_Axis getcurrentplayervar("X");      #X axis SpawnPoint
            
$Y_Axis getcurrentplayervar("Y");        #Y axis SpawnPoint
            
$Z_Axis getcurrentplayervar("Z");        #Z axis SpawnPoint
        
ELSE
        
            
$X_Axis 0;      Fill in the X coordinate
            $Y_Axis 
0;      Fill in the Y coordinate
            $Z_Axis 
0;      Fill in the Z coordinate
            You can drive to a location 
and type !zone to see the coordinates of that location
            
        $JRRAction 
4; = Reset with repair
        $JRRAction 
5; = Reset without repair
        
###################################################
        
*/
        CASE 
"!jrr":
            
privmsg("Test JoinRequest");
            
$X_Axis getcurrentplayervar("X");      #X axis SpawnPoint
            
$Y_Axis getcurrentplayervar("Y");      #Y axis SpawnPoint
            
$Z_Axis getcurrentplayervar("Z");      #Z axis SpawnPoint
            
$Flags 128;      #Move/Reset car (128) else (0)
            
$Heading 0;  #Heading of the players car at Spawnpoint
            
$UCID 0;       #Connection's unique id (0 = host)
            
$PLID getcurrentplayervar("PLID");  #Player's unique id
            
$JRRAction 4;
                
            
joinrequest($X_Axis $Y_Axis $Z_Axis $Flags ,$Heading $UCID $PLID ,$JRRAction); #Send Data to LFS
        
BREAK;
        CASE 
"!plicid":
          
privmsg("Your UCID: ".getcurrentplayervar("UCID"));
          
privmsg("Your PLID: ".getcurrentplayervar("PLID"));
        BREAK;
        
###################################################
?>

Other Fixes/Changes in this version:


+-------------------------------+
|Changes from 7.0.4.1 to 7.0.4.2|
+-------------------------------+
1. New Function: joinrequest(); JRR Insimpacket

2. Changed:

Characterlenght increased to 120 chars instead of 67 for the following functions:
Privmsg();
GlobalMsg();

3. Fixes:
#########
Fixed Typo's & Changing Pitworks in sourcefile Insim4.cs ( Thanks to Iceman121 for reporting the typo's and idea's)

-Mechanicals Damages >> Mechanical Damage
-Body Dammage >> Minor Damage
Major Damage

-Refuel >> Refuelling
-Wheels & Transmissions >> Wheels
#########
Sourcecode bugfix: in GLScript.cs ( Thanks to Yisc[NL] for reporting the bug)
Link of report: https://www.lfs.net/forum/post/1906238#post1906238
#########
Sourcecode bugfix (CSC) (CarState Packet) implemented in version 7.0.4.1
LFSLapper crashed after getting player without a username (HOST)
#########
Minor bugfixes in LFSLapper.lpr ( Thanks to Yisc[NL] for reporting the bug)
Link of report: https://www.lfs.net/forum/post/1906123#post1906123

Last edited by Bass-Driver, .
FGED GREDG RDFGDR GSFDG