The online racing simulator
Control flags
These flags dont work

$Shifter = "Y";
$AxisClutch = "Y";
Can you show me the output of
GetLapperVar( "RequiredFlags" );

If the player doesnt meet the requirements it should execute the event:
Event OnNotMatchFlags( $userName ) # Player event
privMsg(langEngine( "%{main_nomatchflag}%" ) );
privMsg(langEngine( "%{main_yourflag}%" , GetCurrentPlayerVar("PlayerFlags") ) );
privMsg(langEngine( "%{main_yourflag}%" , GetLapperVar( "RequiredFlags" ) ) );
privMsg(langEngine( "%{main_spectated}%" ) );
cmdLFS("/spec " . GetCurrentPlayerVar("UserName") );
EndEvent

#################
#Control Allowed#
#################

<?php 
$AuthAllowPlayer 
"All";
$AuthMinPlayer 0;    # Minimum number of players on the server to auto enable authorization
#$AutoGears = "N";
$Shifter "Y";
#$HelpBrake = "N";
$AxisClutch "Y";
#$AutoClutch = "N";
#$Mouse = "N";
#$KbNoHelp = "N";
#$KbStabilised = "N";
#$CustomView = "N";
Event OnNotMatchFlags$userName # Player event
    
privMsg(langEngine"%{main_nomatchflag}%" )  );
    
privMsg(langEngine"%{main_yourflag}%" GetCurrentPlayerVar("PlayerFlags") ) );
    
privMsg(langEngine"%{main_yourflag}%" GetLapperVar"RequiredFlags" ) ) );
    
privMsg(langEngine"%{main_spectated}%" ) );
    
cmdLFS("/spec " GetCurrentPlayerVar("UserName") );
EndEvent
?>


Attached images
bugi.png
when i put:
$Shifter = "N";
$AxisClutch = "N";
Attached images
bugi1.PNG
hmm i see there is something funky going on.

Apparently these flags never been used, or not tested properly.

Will go deeper into this.
Thanks for the report.
hi
well after some testing, it works like intended, but its a bit confusing.

To force allow Shifter and AxisClutch, i came up with this.

$SwapSide = "Y";
$AutoGears = "*";
$Shifter = "Y";
$HelpBrake = "*";
$AxisClutch = "Y";
$AutoClutch = "*";
$Mouse = "*";
$KbNoHelp = "*";
$KbStabilised = "*";
$CustomView = "*";
Hello,
Could you try this. LFSLapper.exe in the attachment.

-Stops doubling the text with Flags, every time you join the track.
-Ignores checking the flags, when you join the track. No playerflags were shown.


A another insimpacket detects controller changes (<Player> updated his/her controls) or someone joins the track and verify's the player flags with the flags of the server.
Attached files
LFSLapper V7.0.9.1 Test#1.zip - 174.5 KB - 164 views
FLAGS:

$SwapSide = "*";
$AutoGears = "N";
$Shifter = "Y";
$HelpBrake = "N";
$AxisClutch = "Y";
$AutoClutch = "*";
$Mouse = "N";
$KbNoHelp = "N";
$KbStabilised = "N";
$CustomView = "N";

Yours flags -> Shifter AutoClutch
Driver setup autoclutch, shifter, axisclutch
Get kicked

FLAGS:

$SwapSide = "*";
$AutoGears = "N";
$Shifter = "Y";
$HelpBrake = "N";
$AxisClutch = "Y";
$AutoClutch = "N";
$Mouse = "N";
$KbNoHelp = "N";
$KbStabilised = "N";
$CustomView = "N";

Driver setup autoclutch, shifter, axisclutch
Not get kicked

Your flags message from shifter and axis clutch are crossed...
is this option something to do when leaving pit...
$ShowPlayerControl = true; # Set option to "true" if you want to show the control configuration of players when leaving the pits.
looking at the sourcecode, if you set $ShowPlayerControl to True.
it should display the playerflags of the player, everytime the player changes the settings. weird thing is, this is a globalmsg.

So it has nothing todo with leaving the pit.

Edit: in the code of joining the track, i see that Gai-luron calls this Checkflag function aswell. But it sends the wrong playerflags, Thats why it didn't display any flags when you left the pit. (V7.0.9.0) These playerflags are differend than the "settings" flags.

I've disabled that function in the Test version.
Quote from Bass-Driver :looking at the sourcecode, if you set $ShowPlayerControl to True.
it should display the playerflags of the player, everytime the player changes the settings. weird thing is, this is a globalmsg.

So it has nothing todo with leaving the pit.

ok
when leaving pit/join track it does not read flags. And when complete lap it read them.
i've edited my post above a littlebit, to give a small explaination on what i found in the code.

it clearly need a better look at it, and probably a rewrite. But thats something for a another time.

FGED GREDG RDFGDR GSFDG