I think you lost sight of what Easy Mike was originally asking for a feature. He wanted to know if it could be set that a player can leave with more weight or restriction than you set for that car/track/combo. For example, I log into a server running lapper and the restriction for the car I want to run is 20% intake restriction. I decide I want to run with 30% but lapper won't let me because I HAVE to have 20% according to lapper. Easy Mike wanted a feature that would allow anyone to leave the pits with a higher restriction than what was required.
At least that's what I saw his post to be asking. If I'm wrong please say so Easy Mike.
Yes, I see that, but you do absolutely nothing with the $next_weight. Other than constantly adding 5 to that variable the variable does nothing. That's what I meant by missing a check. Normally there's no point in declaring a variable and then adding to the variable just so that the variable is never used in some type of argument check.
Edit: Scratch that, wasn't paying attention and just noticed that you keep assigning the next weight to the new player that connects before adding another 5.
well..then i must be a complete idiot..cause the highlited thing is what i want but cant get to work.
as it is now i CAN leave with anything above stated by lapper.
ex: i have set my lapper to UFR:0:20 meaning i want all racers to have 20% intake restriction..what i found out was that is was possible to leave pits with more..ex 25%
so..is it my stupidity glansing thru here or is it something else.
I may have just read it backwards Easy Mike. I think most of the people that use LFS are English as a 2nd language. I knew it was either you wanted to leave the pits with anything above the restriction OR can leave the pits with ONLY the stated restriction.
IF ($P_Mass != $H_Mass) THEN OnToLowHandicap(); ENDIF
IF ($P_TRes != $H_TRes) THEN OnToLowHandicap(); ENDIF
The only problem with this is that IF-statements can't be used in the current version of Lapper in this specific section. So in order to get this working, you have to wait for a new release of Lapper.
Hi,
If you setup the handicaps , everyone with to low handicaps ( see the name of the event OnToLowHandicap )
will be spectated.
Everone with to high handicap is here allowed.
The only way to do that is to use the Authorization Options.
(i didn't test the code ,still working now)
Or wait for the new release and use the solution of Yisc
#$Auth1 = "XFG:BL1:1.30.10 | XRT:SO4:1.20.20"; #$Auth2 = "XFG:BL1:1.10.10 | XRT:SO4:1.20.20"; #$Auth3 = "XFG:BL1:1.05.10"; $AuthAllowPlayer = [COLOR=red]"@your_username";[/COLOR] $AuthMinPlayer = 0; # Minimum number of players on the server to auto enable authorization # If number of players is below value, alle players are allowed # If number of players is above value, only AuthAllowPlayer are allowed
Event OnAuthAllowed() Endevent
Event OnAuthNotAllowed() IF( $P_Mass != $H_Mass ) THEN cmdLFS("/spec " . $Nickname ); cmdLFS("/msg " . $Nickname . "^3 spectated for to high handicap" ); cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!"); ENDIF IF( $P_TRes != $H_TRes ) THEN cmdLFS("/spec " . $Nickname ); cmdLFS("/msg " . $Nickname . "^3 spectated for to high handicap" ); cmdLFS("/msg ^3need " . $H_Mass . "kg and " . $H_TRes . "% of intake restriction!"); ENDIF Endevent
$Dist -> Distance done on current combo/track by player
$SessDist -> Distance done on current combo/track by player this session
If you not in a car and you use more then 1 type of car or track's, Lapper don't know with car/track combo to display.
If $DefaultTopCar = "FBM"; and use 1 track it will work.
Type !mystats on one of my server's [NLR]Racing #2 or #3 (DEMO FBM @ BL1 ) it will work alway's ( in or out a car).
Type !mystats on [NLR]Racing #4 (DEMO XFR+XRG @ BL1)it will work's only in a car.
Try with this, i think this work. The goal is to trigger onToLowHandicap everytime and test value for the handicap in the event.
# This high value are to force onTolowHandicap every time for the XFG
$HandicapCars = "XFG:1000:1000";
Event OnToLowHandicap()
IF ($P_Mass != 20)
THEN
OnToLowHandicap2();
ENDIF
IF ($P_TRes != 10)
THEN
OnToLowHandicap3();
ENDIF
EndEvent
Sub OnToLowHandicap2()
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to low handicap" );
cmdLFS("/msg ^3need " . $H_Mass . " kg "!");
End Sub
Sub OnToLowHandicap3()
cmdLFS("/spec " . $Nickname );
cmdLFS("/msg " . $Nickname . "^3 spectated for to low handicap" );
cmdLFS("/msg ^3need " . $H_TRes . "% of intake restriction!");
End Sub
Sorry, but i'am no very present on this forum. But i have no much time with Open Race Trophy. Then i make improvement because LFS France do a new international championship who need special modification on Lapper. Be Patient
Added the option for a second pitstopwindow
Added the option to show the start of the next pitstopwindow
Added the option to show how long the pits will be open during a pitstopwindow
This can be tested on: Absolute-beginners.nl[test]
No there isn't such value and as far as I've heard from Gai-Luron (and correct me if I'm wrong Gai) there won't be such values in Lapper. The pitwindow(s) now open on the laps driven by the current driver. So when P1 has driven 10 laps the pit will open for him, but P10 has only driven 8 laps so he has to wait 2 more laps. The new board is getting bigger and bigger but has a serious bug at the moment which I can't solve since I'm too tired to have a good look into the code. But I'm sure I will figure that one out in the near future.
Is it possible to add autocross penalties to pb times?
Is it possible to ignore pb times with penalties?
Here is my puny attempt at communicating in French
Est-ce que c'est possible pour s'ajouter pénalités aux temps?
Est-ce que c'est possible pour ignorer les temps avec pénalités?
edit: par des pénalités je veux dire des pénalités d'autocross (+2 sec) ^^
I've been trying to get this nice application (bottom of Post 1) to work but I always get this error (attachment). There is no sign of trackInfo.cfg.
I've followed readme.txt instructions: placed my own Idk, etc... Internet connection was on, firewall wasn't blocking. NET 2.0; 3.0; 3.5 installed.
The default coefs are no good for me so I wanted to make my own.
For this case, I left DEFAULT settings (to make it easily reproducible), only placed Idk in correct place.
So, what is the problem? Does it require premium PUBSTAT?
Yes Tim, I did that before I made my 1st post here = no results.
The Pubstat system is accessable in two variants: - Free, but tarpitted (only one request per 5 seconds allowed), <-- [B]That's mine[/B] - Premium, the tarpit is removed - unrestricted access for a fee based on usage.
Does it require premium PUBSTAT? Could anyone confirm this? Maybe application is outdated (June 2007 in Readme.txt)?
Hi,
Just on lfsworld.net - My LFSW settings - tab Pubstat access
And click at the bottom
To generate an additional Ident-Key, click :
ConvWr.bat
@echo off rem ConvWr.exe -l licenseName -p pass -c coef -o outputFile rem Or rem ConvWr.exe -t idk -c coef -o outputFile rem rem coef = multiple coef possibility separated by ':' rem ex : 100.5 rem : 100.5:101:101.5 rem licenseName = Your license Name rem pass = Your pass of license Name rem idk = it's your idk. you can obtain it on lfsworld 'My LFSW Setting' rem rem it's more safe to use idk instead of login/pass