The online racing simulator
Searching in All forums
(217 results)
sarxes
S3 licensed
I cant make workable this method.

<?php 
$DriftPB 
GetCurrentPlayerVar("PBDrift");
?>


<?php 
main_welc3 
=  "^7Your highest Drift Score (with this vehicle): ^2{0}";
?>


<?php 
$DefaultTopCar 
"XRG+XRT+LX4+FXO+FZ5";
?>


<?php 
openPrivButton
"ref",40,110,120,10,8,-1,ISB_DARK,langEngine("%{main_welc3}%",$DriftPB  ));
?>

All is set but at the welcome doent shows the score just 0 !

P.S.: I dont know why but the lapper close this 4 name of button

Quote :closePrivButton("welc&pos&clos&ref");

If i rename ex. the ref to ref1 and i modify in closepriv. doesnt close the button. There is any exception of closing buttons o.O ?
Last edited by sarxes, .
sarxes
S3 licensed
I made a video about how its working (not working) ...

http://www53.zippyshare.com/v/54922056/file.html just 83 MB !
sarxes
S3 licensed
Seems its doesnt work ...
sarxes
S3 licensed
Quote from sinanju :I'm not sure if it would work or not, but an alternative might be to set one of the global drift variables like $MinimumDriftScore to very high value in sector 1, then in sector 2, and the other sectors, drop the value back down?

Probably the $MinimumDriftScore would be best as you could put it to 9999 globally, then back to small number thereafter.

It may well be that lapper will always use the global variable and ignore the redefined variable in the sectors, so you may have to remove it globally and define it in each sector (very high in 1st sector and back to normal in other sectors).

Uh I'm a bit confused about the sectors ... I dont know what u mean under sector. Could you givem me an exampla about your meaning ? Because I cant uderstand how to realize ...
sarxes
S3 licensed
Quote from sinanju :Nothing to do with your code, but if you're resetting the drift score(s) back to zero, shouldn't you tell the drivers?

Anyway, try this;


<?php 
CatchEvent OnSplit1
$userName # Player event
    
IF ( GetCurrentPlayerVar"DriftScore" ) > "0" )
    
THEN
        setUserStoredValue
"DriftScore""0" );
        
privRCM ("^1Your drift score has been reset to ZERO");
        
closePrivButton"drftscoretextrev&driftcombotextrev&driftanglerev&driftangle");        
    
openPrivButton"drftscoretextrev",16,160,9,5,3,-1,0,"^1-" );
        
openPrivButton"driftcombotextrev",17,150,9,7,3,-1,0,"^1-" );
        
openPrivButton"driftanglerev",6,153,10,12,3,-1,64,"^1-" );        
    ENDIF

    IF ( 
GetCurrentPlayerVar"LastDriftScore" ) > "0" )
    
THEN
        setUserStoredValue
"LastDriftScore""0" );
        
privRCM ("^1Your drift score has been reset to ZERO");        
        
closePrivButton"drftscoretextrev&driftcombotextrev&driftanglerev&driftangle");         
    
openPrivButton"drftscoretextrev",16,160,9,5,3,-1,0,"^1-" );
        
openPrivButton"driftcombotextrev",17,150,9,7,3,-1,0,"^1-" );
        
openPrivButton"driftanglerev",6,153,10,12,3,-1,64,"^1-" );            
    ENDIF
EndCatchEvent
?>



The drift score box is closing the drift points to showing but after contiunue scoring the drift without resetting the score before the split1 . So its looks like that resseting the score but truly not . . .

Any other advice will be nice ... I want this code to be workable for long time but no solution yet.

An idea : subonsplit1 = driftresetscore like someting like that ....
Last edited by sarxes, .
[Solved] Drift score reset
sarxes
S3 licensed
Hello,

I have a problem with resetting drift score after passing the 1st check point. Here is my code :


<?php 
CatchEvent OnSplit1
$userName # Player event
    
$DriftScore GetCurrentPlayerVar"DriftScore" );
    
$LastDriftScore GetCurrentPlayerVar"LastDriftScore" );

    IF ( 
$DriftScore )
    
THEN
        SetCurrentPlayerVar
"DriftScore");
    ENDIF

    IF ( 
$LastDriftScore )
    
THEN
        SetCurrentPlayerVar
"LastDriftScore");
    ENDIF
EndCatchEvent  
?>


End here is the error what gives in log file !


<?php 
5
/4/2012 1:18:12 PM -> Warning var "DriftScore" is readonlynot set
5
/4/2012 1:18:12 PM -> Warning var "LastDriftScore" is readonlynot set
?>


So how the code looks like to be workable ?

Thx for any comment !
Last edited by Bass-Driver, .
sarxes
S3 licensed
THX mate, this solved my problem !
sarxes
S3 licensed
Quote from impresora :I think it is LFS Lapper

So if its lapper is very interesting ,how is made ...
sarxes
S3 licensed
The code is working great but it has an error. The reason is that if I use knobly tyre and Im spectated for this after changing to normal tyres the lapper spectate me too for knobly tyres. But how ? Normal is not = with knobly tyres !
Simple driftmeter
sarxes
S3 licensed
Hello ,

I would like to ask , that what insim is used in a lot of server which shows the driftpoint and angle in real time. I use LFSLapper but it has so big delay between showing ... There is anybody, who could give advice in lapper to show in real time the scoring and angle like on Lislon Drift S2 Server ?

All the best SarXes
sarxes
S3 licensed
Quote from sinanju :But it will work for Event OnLap( $userName ).

Testing, the best I can see for you would be


EndEvent[/PHP]Above code has set $distToDo to 10m, but you can change to suit.

Awesome ! why i havent this idea ... :P Thank you very much , now i can take a rest ! Cheers !
sarxes
S3 licensed
Quote from sinanju :Try in a different Event, like;


<?php 
Event OnNewPlayerJoin
$userName )  # Player event
    
$OTFR GetCurrentPlayerVar"OldTyreFrontRight" );
    
$OTRR GetCurrentPlayerVar"OldTyreRearRight" );
    
$TFR GetCurrentPlayerVar"TyreFrontRight" );
    
$TRR GetCurrentPlayerVar"TyreRearRight" );
   
    IF ((
$OTRR == "TYRE_KNOBBLY" ) || ($OTFR == "TYRE_KNOBBLY" ) || ($TRR == "TYRE_KNOBBLY" ) || ($TFR == "TYRE_KNOBBLY" ))
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
openPrivButton"tyrespec",50,35,100,15,5,8,32"You have been spectated for using ^1Knobbly ^8tyres");
        
openPrivButton"tyrechange",50,50,100,15,5,8,32"Please change to ^4Normal ^8or ^4Super ^8tyres" );        
    ENDIF
EndEvent
?>



Sure that your code is working because you are a genius but i tried with another event like onsplit1 and for autocross its not working ... :S
sarxes
S3 licensed
Quote from sinanju :I've just reloaded that code again on my lapper version 6.013 and it's still working for me - see YouTube video HERE.

Note that it takes about 3 seconds after passing pit exit before you get spec'd.

This code should probably work in V5.825 and onwards according to lapper changes document.

ThX for the vid, but what about in autocross ? There is a pitlane ?
sarxes
S3 licensed
Quote from sinanju :I've been doing some testing, and it seems like code will only work if you change it to old tyres!

Try

<?php 
Event OnExitPitLane
(  $userName # Player event
    
$OTFR GetCurrentPlayerVar"OldTyreFrontRight" );
    
$OTRR GetCurrentPlayerVar"OldTyreRearRight" );
    
$TFR GetCurrentPlayerVar"TyreFrontRight" );
    
$TRR GetCurrentPlayerVar"TyreRearRight" );
    
    IF ((
$OTRR == "TYRE_KNOBBLY" ) || ($OTFR == "TYRE_KNOBBLY" ) || ($TRR == "TYRE_KNOBBLY" ) || ($TFR == "TYRE_KNOBBLY" ))
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
openPrivButton"tyrespec",50,35,100,15,5,8,32"You have been spectated for using ^1Knobbly ^8tyres");
        
openPrivButton"tyrechange",50,50,100,15,5,8,32"Please change to ^4Normal ^8or ^4Super ^8tyres" );        
    ENDIF
EndEvent
?>


As you can see, I've only chosed 1 tyre for front and rear, and I've also added $TFR and $TRR - this is incase someone already on track with correct tyres comes into pits and changes to knobbly tyres - this bit not tested as I haven't had time.

Let me know how you get on.

Nothing happening ...
sarxes
S3 licensed
Quote from sicotange :sarxes, I will try to write a more detailed readme file when I release the new version of ClaViCo AP.
[/B]

Very nice, thx for your effort ! But truly i thought a short video or some example gif . But anyway thx ! Nice work !
sarxes
S3 licensed
Quote from ViKTOOR-LFS :Knobbly tyres for FTW :banana::sadbanana:banana::drink:

What you mean under FTW ? I have to change to this ?
sarxes
S3 licensed
Quote from sinanju :...or you could something like....


<?php 
Event On
.........
 
$TFR = ( GetCurrentPlayerVar"TyreFrontRight" );
 
$TFL = ( GetCurrentPlayerVar"TyreFrontLeft" );
 
$TRR = ( GetCurrentPlayerVar"TyreRearRight" );
 
$TRL = ( GetCurrentPlayerVar"TyreRearLeft" );

   IF ((
$TFR == "TYRE_KNOBBLY" ) || ($TFL == "TYRE_KNOBBLY" ) || ($TRR == "TYRE_KNOBBLY" ) || ($TRL == "TYRE_KNOBBLY" ))
    
THEN
        openPrivButton
"tyrespec",50,50,100,15,5,8,32"You have been spectated for using ^1Knobbly ^8tyres");
        
openPrivButton"tyrechange",50,70,100,15,5,8,32"Please change to ^4Normal ^8or ^4Super ^8tyres" ); 
        
cmdLFS"/spec " GetCurrentPlayerVar("UserName") );
    ENDIF
EndEvent
?>



Sin, i dont want to be rubbish, but i tried with on connect on leavepit and not working for me ... :S
sarxes
S3 licensed
Hello all,

I know its a quiet stupid question but there is anybody who could make a tutorial how to make "roads in air and other" because i cant do that ! THX a lot all the best !
sarxes
S3 licensed
Quote from Yisc[NL] :An IF statement always have to end with ENDIF
So you are basicly missing 3 ENDIFs

Im added but noting ....
sarxes
S3 licensed
My code looks like is !


<?php 
##########################################
#New PLayer joining race or leaving pits)#
##########################################

Event OnNewPlayerJoin$userName )  # Player event

openPrivButton"label_lfslogo",147,25,60,5,1,-1,0,langEngine"%{label_lfslogo}%" ));
openPrivButton"label_logo",165,12,30,14,1,-1,128,langEngine"%{label_logo}%" )); 


 
$TFR = ( GetCurrentPlayerVar"TyreFrontRight" );
 
$TFL = ( GetCurrentPlayerVar"TyreFrontLeft" );
 
$TRR = ( GetCurrentPlayerVar"TyreRearRight" );
 
$TRL = ( GetCurrentPlayerVar"TyreRearLeft" );

    IF (
$TFR == "TYRE_KNOBBLY" )
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
privRcm"You have been spectated for using ^1Knobbly ^8tyres");
        
privRcm"Please change to ^4Normal ^8or ^4Super ^8tyres" );
        
    IF (
$TFL == "TYRE_KNOBBLY" )
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
privRcm"You have been spectated for using ^1Knobbly ^8tyres");
        
privRcm"Please change to ^4Normal ^8or ^4Super ^8tyres" );
        
    IF (
$TRR == "TYRE_KNOBBLY" )
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
privRcm"You have been spectated for using ^1Knobbly ^8tyres");
        
privRcm"Please change to ^4Normal ^8or ^4Super ^8tyres" );
        
    IF (
$TRL == "TYRE_KNOBBLY" )
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
privRcm"You have been spectated for using ^1Knobbly ^8tyres");
        
privRcm"Please change to ^4Normal ^8or ^4Super ^8tyres" );
        
    ENDIF

EndEvent
?>


Do you see any problem ?
sarxes
S3 licensed
Quote from sinanju :Haven't tested it, but you could try something like


<?php 
Event OnNewPlayerJoin
$userName )  # Player event

    
$TFR = ( GetCurrentPlayerVar"TyreFrontRight" )

    IF (
$TFR == "TYRE_KNOBBLY" )
    
THEN
        cmdLFS
"/spec " GetCurrentPlayerVar("UserName") );
        
privRcm"You have been spectated for using ^1Knobbly ^8tyres");
        
privRcm"Please change to ^4Normal ^8or ^4Super ^8tyres" );
    ENDIF

EndEvent
?>



I added but it's doesnt work ... :S
sarxes
S3 licensed
Hello all,

There is any way to that player couldn't use knobly tires ? If they are using they cant pit out until they change the tire to normal or super ... Like a handicap option

THX !
sarxes
S3 licensed
My wishlist

- if two players are in the same zone what we decide an automatic countdown starts with start lamps . It would be cool for twin drifting. I attached my countdown what I have just I dont know how to set to run if the 2 players iz in the zone

- a second admin panel where are the players are listed and admin could ban / kick/ spec them with a click. In ban it would be necessary to put a comment why is banned and for how much time to know server admin who is banned by which admin and for how long.

- make route chackers by lapper by the !node command. Whit this feature admins eliminate players who want to cheat at drifting by doing twice a round about.

- to make driftmeter faster, so the scoring and the angle showed in real time by command "for" and "while".

Sorry for my grammar, but I hope you understand what I wrote down !
sarxes
S3 licensed
I have a problem if i click on the Who tab in !help menu, its shows always an error in the left up corner.
sarxes
S3 licensed
Quote from Krayy :Push away...The binary is fixed so its just teh lpr addons that I'm working on, so if you want I can release the .exe with the bare lprs you need to run it and then post the addons as they become available.

mainly the pitboard is what I'm trying to fix as it needed a lot of work.

Excelent work mate ! Keep going on !!!! I'm just waiting the new release of lapper !!! All the best !!!
FGED GREDG RDFGDR GSFDG