The online racing simulator
Release
(228 posts, closed, started )
Quote from Krayy :NickNameStripped

is there a way to strip colors from anything?

like Strip( GetCurrentPlayerVar("NickName") );
Quote from Fire_optikz001 :is there a way to strip colors from anything?

like Strip( GetCurrentPlayerVar("NickName") );

Gai would have to write a GL callable function to pass and return the string to the stripLFSColor function.
Release 5.9.2.4

send me feedback.


+-------------------------------+
|Changes from v5.923 to 5.924 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe
- Add event OnChangePos in LFSLapper.lpr or replace LFSLapper.lpr

1. Fixed bug in setuserstoredvalue when not used in player event
2. Fixed bug in getuserstorednum when not used in player event
3. Fixed bug in getuserstoredvalue when not used in player event
4. Fixed bug in privmsg when not used in player event
5. Add new LFSLapper function StripLFSColor to remove all color and lang char in string
$var = StripLFSColor("^7toto^8tata");
6. Add new Event OnChangePos triggered when player change his position in race or qual
Event OnChangePos($userName,$lastPos,$currPos)
...
EndEvent

Release of 5.923 was 3 days ago! Don't you think development is a bit too fast? (on the good side though)
Hello,


There are little update and fix bug. Big modifications are not done.*


Gai-Luron
Quote from Gai-Luron :

5. Add new LFSLapper function StripLFSColor to remove all color and lang char in string
$var = StripLFSColor("^7toto^8tata");


this cuts off the first and last letter of what it strips :/
Ok, i forgot one thing, i fix it soon
Fixed, download version b. Change only LFSLapper.exe


Gai-Luron
Quote from Gai-Luron :Fixed, download version b. Change only LFSLapper.exe


Gai-Luron

Thanks now i can do the thing with my clan tag protection
um u might want to fix ondisconnect (add $reason ) on the includes
it's better if you specify the script where the error is. this to avoid search it!

Fixed in 5.9.2.4c

replace pitboard.lpr

Gai-Luron


u = you , please use this last word, better for understand, thank's
Quote from Gai-Luron :it's better if you specify the script where the error is. this to avoid search it!

Fixed in 5.9.2.4c

replace pitboard.lpr

Gai-Luron


u = you , please use this last word, better for understand, thank's

Stop that Gai!! You are working too much, really!

Quote :Stop that Gai!! You are working too much, really!

i work too much to allow LFSLapper Script developper to work hard to write good script for the community.

Release 5.9.2.5

send me feedback.

+-------------------------------+
|Changes from v5.924 to 5.925 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe

1. Add new function to open private button for another player
Syntax :
openButton( username, idOfButton, left, top, width, height, interline, secondDisplayed, style, text[,optional_backCall] );

2. Add new function to close private button for another player
Syntax :
closeButton( username, idOfButton );

3 - Add new command openTextButton, to open a button who query an input string for a specified player
openTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );

Open a button for the current player, args are
1 - UserName of the player who want open a text button
2 - Unique id for this button
3 - 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;)
4 - 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;)
5 - Width of the button ( 0-200 )
6 - Heigth of the button ( 0-200 )
7 - Space between line in multiline button
8 - Format of the button, look at insim.txt for values
9 - Caption displayed in the input box
10 - Button Text
11 - Number char to be input
12 - Backcalled sub

Backcalled function receive 2 args
first = idOfButton
Second = Text
Example of called subroutine
Sub goto_sub( $id,$text )
WriteLine( $id );
EndSub

All these releases are awesome Gai.
Too bad I haven't any time to play with Lapper at all
Quote from Gai-Luron :

1. Add new function to open private button for another player
Syntax :
openButton( username, idOfButton, left, top, width, height, interline, secondDisplayed, style, text[,optional_backCall] );



ty now i can finish the last bit of my cop sys for cruise addon and ill be releasing it

Quote from Gai-Luron :

2. Add new function to close private button for another player
Syntax :
openButton( username, idOfButton );

3 - Add new command openTextButton, to open a button who query an input string for a specified player
openPrivTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );


typos?
Merci Gai-luron, pour tout ton travail !!!!
De rien Loco d'un autre coté, t'as un Wagon de retard avec LFSLapper , honte sur toi

Rigth Fire_optikz001


2. Add new function to close private button for another player
Syntax :
closeButton( username, idOfButton );

3 - Add new command openTextButton, to open a button who query an input string for a specified player
openTextButton( "username","ref2",103,140,20,10,10,32,"Caption","Toto",30,saisTxt );


Ouais mais gcomp fait de nouveaux truc , je me lance ce soir sur lapper....
Des trucs cochons j'espère
New intermediate Release : 5.9.2.6

Quote :+-------------------------------+
|Changes from v5.925 to 5.926 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe
- addonused.lpr
- utils.lpr
- consts.lpr

1. Add new function RandomNum to have a randomized number
RandomNum() return a decimal number between 0 and 1
RandomNum(a,b) return a decimal number between a and b
RandomNum( -100,100 ) return a number between -100 and 100
RandomNum( 100,120 ) return a number between 10 and 120

2. Add new function isRegexMatch to test if an expression match a regex expr
Example : To test if a string is a time string
isRegexMatch( "^[0-9]{1}\.[0-9]{2}\.[0-9]{2}", "1.24.30" ) return 1
isRegexMatch( "^[0-9]{1}\.[0-9]{2}\.[0-9]{2}", "12.24:30" ) return 0

search regular expression on the net to know how work regular expressions

3. Add new function getListOfPlayerButton, this function return an Array containing
all the name of the currently displayed player button

4. Add a new lpr file containing some GLScript usefull fonction
Added in this file
- closeButtonRegex( $userName, $exp ) to close all button of one player that idOfButton match
$exp. $exp it's a regular expression
- adminMsg to send a message to all admin present on server

5. Add new event when practice start
OnPracStart( $numP ) this event receive number of player present

6 Add new lapper's vars
$raceInProg -> return value 0,1,2 relative to race status, look at consts.lpr
$raceId -> an unique race identificator that in the race start date time

Quote from Gai-Luron :New intermediate Release : 5.9.2.6

Nice work

does this have support for 64 bit or have you not finished that yet?

also you did not include the updated exe :S we have to build it ourselves
Sorted, Download b version.

I change to Visual Studio 2008 and i forgot to change some things
Quote from Gai-Luron :What did you say, it's present

when i extracted the exe it was version 5.9.2.5 went into source built it and it was 5.9.2.6 i think you forgot to build the exe...

on the other hand i love how u can now have decimals in random number... didnt know u could do that...
not work on 64bit, modification not all done
This thread is closed

Release
(228 posts, closed, started )
FGED GREDG RDFGDR GSFDG