The online racing simulator
Searching in All forums
(966 results)
Gai-Luron
S3 licensed
Hello,

Don't worry, i'm alive, but for now, i have no time to dev Lapper because i work on the championship created by FRH Team: OPEN RACE TROPHY IV.

For your problem, i don't know how you can do this! i have no sufficient lapper script to understand how it work.

Bye

Gai-Luron
Gai-Luron
S3 licensed
Hello,

Stats look like this http://www.lfsfrance.org/repla ... 3.16.26_results_race.html

Maybe you have a problem in your install


Gai-Luron
Gai-Luron
S3 licensed
Hello Victor!

Can you create a new section for OPEN RACE TROPHY league?

The ORT IV ( the 4th season ) start in September 11.

The site is : www.frh-team.net/gcomp for the site league and www.frh-team.net for the team site.


Thank's in advance!

Gai-Luron
Gai-Luron
S3 licensed
Hello guy,

Just an information, LFSLapper is not a CTRA System and never will be! it'a a race qualify managing system. If you want CTRA like, try to code your own programm.

Bye

Gai-Luron
Gai-Luron
S3 licensed
wich version do you use? i fix this LFS bug on last version normally


Gai-Luron
Gai-Luron
S3 licensed
Hello,

I don't think it convert this two language. it's MonkOnHotTinRoof who make this module ( thank's for him ) and when he do it this language was not implemented in LFS. If you do modification in this file and add this languages, please send me the modified file

Bye

Gai-Luron
Gai-Luron
S3 licensed
Hello MonkOnHotTinRoof,

how are you?
Gai-Luron
S3 licensed
Hello,

i am not sure that I understand what you mean. But try this

- Take source of LFSLapper
- Look at pakGetString in insim4.cs
- Look at codepage.cs. This convert LFS char to UTF8 char.

I hope this help you . If you use this code, you can, put only greeting on your source.

Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Quote from Yisc[NL] :... but sadly I made a routine myself yesterday which displays next track and/or car
Hahaha no problem Gai, it's good to learn those things by myself anyway...

Yes it's a good thing to find solution yourself . How do you do this? it can be give an other idea to other people.


Gai-Luron
Gai-Luron
S3 licensed
Quote from Yisc[NL] :

$CurrRotateTrack -> Current rotated Track
$CurrLongRotateTrack -> Current rotated Track

And between:

$NextRotateTrack -> Next rotated Track
$NextLongRotateTrack -> Next rotated Track


Short Track Name or long TrackName
SO6R or South City Chicane Reverse

Edit : Une GoldWing Plus rapide qu'un VTR, ça n'existe pas normalement
Gai-Luron
S3 licensed
Quote from Yisc[NL] :I've just had a closer look at the voting system and at this moment it's bugged. I've set voting for restart to 100% but as soon as LFS has 50%+1 vote, it's trying to restart the race, which will be cancelled by Lapper and then the mayhem begins. Every vote above 50% is then used to restart race (and cancelled by Lapper) so it's almost impossible to reach 100%. I've tested this with 5.7121 and 5.713 and hope this can be fixed in the near future.

It's normal that lapper stop LFS restart, because it's lapper who decide to restart race only when percent in config file was reached not when LFS decide

Quote :Hi All,
Anyone having problems with syncing PB files in newest version. Mine has stopped working and is not FTP'ng the file to my website. Not 100% when this started but fairley sure it was when I installed latest version.

Syncing et FTPing it's two different things. Strange what you say

EDIT: WORK FINE HERE!!!


Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Hello,

New version, the last for a while because it's my hollidays next week

Quote :+----------------------------+
|Changes from v5.713 to 5.714|
+----------------------------+
1. Add PlayerVar ident to define var that are player variable and visible on each event .
Event OnLapperStart()
PlayerVar $myvar = 12;
EndEvent

This var now it's visible in all player event and can be used or changed. All modification are visible
on other player event for current player.

2. Add new event :
OnRotateCar -> When car is changed on rotation
OnRotateTrack -> When track is changed on rotation

3. Suppress message "car changed go to pit". You must do in in correct Rotate Event

4. Add new built-in vars
$CurrRotateCar -> Current rotated Car
$CurrRotateTrack -> Current rotated Track
CurrLongRotateTrack -> Current rotated Track
$NextRotateCar -> Next rotated Car
$NextRotateTrack -> Next rotated Track
$NextLongRotateTrack -> Next rotated Track



Gai-Luron
Gai-Luron
S3 licensed
Hello,

No

LocalVars are var used in Event and sub and this var dissapear at end of script (Event or sub ).

GlobalsVars are for all players the same and don't dissapear at end of Script (Event or sub ). This var must be declared in start lapper event

PlayersVars can be different for each players and don't dissapear at end of Script (Event or sub ). This var must be declared in start lapper event


Gai-Luron
Gai-Luron
S3 licensed
Hello,

Normally your code is good

Try to add console( "Message" );
to view on console where you go in this script and when it's called

Gai-Luron
Gai-Luron
S3 licensed
Hello,

Yisc[NL] You can write this
$mytime = 42;

Register ScheduleAction( "0 " . $mytime . " * * * *", MessageID );

but it's not the good solution

The solution is

Declare this in event start lapper
GlobalVar $Glob_doAction = 1;

# Action every minute
Register ScheduleAction( "0 * * * * *", MessageID );


Sub MessageID

IF $Glob_doAction == 1 THEN
$Glob_doAction = 0;
...
Here your action, every 2 minutes
...
ELSE
$Glob_doAction = 1;
# no action
ENDIF
EndSub

Bye

Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Quote from sinanju :Hi


19 23 0 * * * : 19 23 1 * * * : 19 23 2 * * * : 19 23 3 * * * : 19 23 4 * * * : 19 23 5 * * * ....etc etc etc....... : 19 23 23 * * *|/rcm Sinanju is a keyboarder so may be unable to respond quickly:/rcm_all|

Thanks.

This lapper version is obsolete.

Correct syntax is for every 23 th minute and 19s of each hour

19 23 * * * * |/rcm Sinanju is a keyboarder so may be unable to respond quickly:/rcm_all|
Gai-Luron
S3 licensed
ABout Flags, it's Flags that are used for : Event OnNotMatchFlags()

Event LapperStart() is usefull to set globalvar or playervar ( soon ) at start of lapper. No number limitation for vars, be carefull do not use same name as builtin var like $SectorSplit1, etc.. . To avoid this issue, you can prefix all your globals var with "Glob_" example $Glob_myvar . The script must be more lisible and you will see immediatly globals var.

Comming soon playerVar

playerVar $myvar = 12;

the value is the default value for this player when he connect to server. Script can change it in player event. the new value is set only for the current player who triggered Event, unlike globalVar that is global for all players


I don't want remove Split1.. Split3, because you don't use it but other admin lapper can use it if needed.

$toto is a test var i forgot to remove

for userauthentification, i know but i remove it when i find time to do . This don't stop working application

Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Hello,

New little update :

+----------------------------+
|Changes from v5.712 to 5.713|
+----------------------------+
1. Flags players for current player tested also when on track and changed( mouse,view,...,etc)

2. Add new event : OnLapperStart
this event is triggereg when lapper start

3. Add GlobalVar ident to define var that are global and visible on each event.
Event OnLapperStart()
GlobalVar $myvar;

$myvar = "it's a test";
EndEvent

This var now it's visible in all event and can be used or changed. All modification are visible
on other event.

Gai-Luron
Gai-Luron
S3 licensed
Good code

You can change small thing to do this great, example

Quote :openPrivButton( "best_s1_txt",17,79,15,4,4,-1,16,"Best sector 1:" . "&" . $SectorSplit1);
openPrivButton( "best_lap_txt",17,103,15,4,4,-1,16,"Best poss. lap:" . "&" . $color . $Tpb);

with

$origL = 17;
$origT = 79;
openPrivButton( "best_s1_txt",$origL,$origT,15,4,4,-1,16,"Best sector 1:" . "&" . $SectorSplit1);
openPrivButton( "best_lap_txt",$origL,$origT + 24,15,4,4,-1,16,"Best poss. lap:" . "&" . $color . $Tpb);

in this case, you can change position of all your pitboard only changing var $origL and $origT . All coordinate are relative to this origins

Gai-Luron
Gai-Luron
S3 licensed
Ok, i understand now, it's a demo server. It's normal you have two line with your nickname. Because before patch Z LFS don't send username but nickname in demo mode. I save PB with nickname as username. Now all player have username and for Lapper it's a new entry. Erase your PB file.

For the wish, i put in on Todo, for now i look for other interesting things

Gai-Luron

PS : it's demo file, do you have a big licensed file?
Gai-Luron
S3 licensed
Hello everybody,

I need a big big PB.txt file to do some test. thank's in advance

Gai-Luron
Gai-Luron
S3 licensed
Why are you on pos 3 and 4. You have 2 licences?

So strange this picture, i don't understand

Can have your PB file to test it?

Gai-Luron
Gai-Luron
S3 licensed
Hello,

No problems, there aren't stupids questions, sometime only stupids answers .

Gai-Luron
Gai-Luron
S3 licensed
Hello,

Yes rigth

You can replace also

IF ($DiffSectorSplit1 < "-0.01.00")

with

IF ($DiffSectorSplit1 < -100 )

Because time value are 1/100 of second time. But the two line work, Lapper do the conversion to put it in good format.

example:
"1.10.12" = (1*60*100) + (10*100) + 12 = 7012 in 1/100 of second

PS: guys i just want to say you when you call sub, event and function, when you use test with IF...THEN..ELSE...ENDIF, when you use expression, like concatenation, add, sub, boolean expression with && and ||, you create a prog and you're a dev. this is the base of the programmation. If you look a real language, there are much add-on only to help you to dev quickly like var structured and loop block, but bases are the same. think about this


Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Hello,

Race restart it's not a player event and Lapper can't know player who have triggered this event. I hope you understand what i mean! In this case you can't use privMsg and button for a particular player.

But you are rigth openGlobalButton must be active and closePrivButton also. I look for it.

Gai-Luron
FGED GREDG RDFGDR GSFDG