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
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);
================================================= 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.
##################################
#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 .
-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 ))
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)
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.