The online racing simulator
Well i have found something

^L = Latin 1 (CP1252 )
^G = Greek (ISO-8859- 7)
^C = Cyrillic (CP1251 )
^J = Japanese (Shift-JIS )
^E = Central Europe (ISO-8859- 2)
^T = Turkish (ISO-8859- 9)
^B = Baltic (ISO-8859- 13)
^H = Traditional Chinese (CP936 )
^S = Simpified Chinese (CP949 )
^K = Korean (CP950 )

When you copy a character from the Traditional Chinese codepage into your textfile and you putt ^H before the char , it gives you the right character but it gives a massive ? in the front.

i will do some research to find out how it works etc.

EDIT: NVM about the ? , was my fault xd
Servers writh LFSLapper?
Hello Guys,

I want running to Servers with LFSLapper cann anyone say me how to config LFSLapper?

PS: One Server is running fine with LFSLapper but i hope i can let running Multiple Servers running LFSLapper

Thanks in Advance

Edit: The Problem solved by myself
Hi,

I just need a little help. I saw this bug or just at me that when I hit the car from the right and the car gets spinning to right the lapper wont recognize that the degree set in is bigger, but in case the car gets spinning to the left immediatly recognize that ! What the problem should be ?


<?php 
$MinAngleVelocity 
120;
?>

My other question is what I cant figure out is that how could I set "free" zones on the layout where the Idle System is wont work. Ex:

The Current Zone is : 31:-574

Who in this zone wont be kicked after the idle times is over. Any Idea ?
i also have this problem and think its a lappercode bug.
because this is very confusing for the drivers on the track.

In the evening i go take a look into the lappercode, or someone must come with a solution.
i have solved this by using the OnDriftScore Event
it also solves your negative angle issue.

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

IF($Angle >= 110)THEN
BLAHBLAH your code
ENDIF

Quote from Bass-Driver :i have solved this by using the OnDriftScore Event
it also solves your negative angle issue.

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

IF($Angle >= 110)THEN
BLAHBLAH your code
ENDIF


Hey thx for the fast reply , but now it 's doesnt working on the left side :

My code:


<?php 
    
IF($AngleVelocity 0)THEN
    
    THEN

        $Angle 
= ($AngleVelocity)*(-1);

        
closePrivButton("drifangledegree&driftangle");
        
openPrivButton"driftangledegree",83,23,30,5,4,-1,0,langEngine"%{driftmeter_driftangledegree}%" ));
        
openPrivButton"driftanglerev",85,25,20,10,4,-1,0,langEngine"%{driftmeter_driftanglerevbox}%" GetCurrentPlayerVar"Angle_Reverse")));

    ELSE
        
        
$Angle = ($AngleVelocity)*(1);
        
closePrivButton("drifangledegree&driftanglerev");
        
openPrivButton"driftangledegree",83,23,30,5,4,-1,0,langEngine"%{driftmeter_driftangledegree}%" ));
        
openPrivButton"driftangle",79,25,30,10,4,-1,0,langEngine"%{driftmeter_driftanglebox}%" $AngleVelocity ));

    ENDIF
EndCatchEvent
?>


-
(Bass-Driver) DELETED by Bass-Driver
try this

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

openPrivButton( "driftangledegree",83,23,30,5,4,-1,0,langEngine( "%{driftmeter_driftangledegree}%" ));
openPrivButton( "driftanglerev",85,25,20,10,4,-1,0,langEngine( "%{driftmeter_driftanglerevbox}%" , $Angle));

Quote from Bass-Driver :try this

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
IF($AngleVelocity < 0)THEN
$Angle = ($AngleVelocity)*(-1);
ELSE
$Angle = ($AngleVelocity)*(1);
ENDIF

openPrivButton( "driftangledegree",83,23,30,5,4,-1,0,langEngine( "%{driftmeter_driftangledegree}%" ));
openPrivButton( "driftanglerev",85,25,20,10,4,-1,0,langEngine( "%{driftmeter_driftanglerevbox}%" , $Angle));


nope, still not working !
Quote from sarxes :nope, still not working !

$Angle = -$AngleVelocity should be same as $Angle = ($AngleVelocity)*(-1)

Keep it simple.

Get rid of your $Angle = ($AngleVelocity)*(1); under ELSE and see if that helps.
Still not working .... :/
Quote from sarxes :...My other question is what I cant figure out is that how could I set "free" zones on the layout where the Idle System is wont work. Ex:

The Current Zone is : 31:-574

Who in this zone wont be kicked after the idle times is over. Any Idea ?

I suspect because OnIdle is an EVENT that will overwrite to original if you try change it elsewhere.

However, you could try something like


<?php 
    RegisterZoneAction
"BL1" 31, -574SR_OnIdle,"" );
?>


<?php 
Sub SE_OnIdle
    $OnIdleTimeout1 
900
    $OnIdleTimeout2 
999
EndSUb
?>


Of course, 900 seconds is 15 minutes, so won't give indefinate timeout (assuming it works).

And under $OnIdleTimeout2, make sure you change

cmdLFS("/kick " . GetCurrentPlayerVar("NickName") );

to

cmdLFS("/spec " . GetCurrentPlayerVar("NickName") );

Alternatively, maybe something like;


<?php 
    RegisterZoneAction
"BL1" 31, -574SR_OnIdle,"" );
?>


<?php 
Sub SE_OnIdle
    $NickName 
GetCurrentPlayerVar("NickName");
    
#$IdleExclude = $NickName;
EndSUb
?>


Quote from sinanju :$Angle = -$AngleVelocity should be same as $Angle = ($AngleVelocity)*(-1)

Keep it simple.

Get rid of your $Angle = ($AngleVelocity)*(1); under ELSE and see if that helps.

Quote from sarxes :Still not working .... :/

Make buttons with a < or > sign to see what's happening, as in

If ($AngleVelocity < 0
THEN
#make button with < symbol
ELSE
#make button with > symbol
ENDIF

Do the symbols change when you drift in different directions?

If they do, then your script is working.

To confirm, you could do button text in one colour for one direction, and different colour for other direction (e.g. RED for port [left] and GREEN for starboard [right]).

Also.

Doesn't the driftmeter.lpr script in the /includes directory work properly?
Attached images
LFS Drift Arrows.jpg
THX for your reply, already resolved the problem, but maybe I'll change for this method !!!
Just a question:

I wanted to make a windows with the same cordinate database.

I made this for ex:


<?php 
GlobalVar $WLCCOrigT
$WLCOrigT 70;            
GlobalVar $WLCOrigL$WLCOrigL 68;
?>

After I set it into a window I had this error:


<?php 
Syntax error in cfg file 
".\default\LFSLapper.lpr" at line #475
    
'openPrivButton' parameter #1() is wrong type at line #
    
Function 'onconnect' script aborted
?>


I can use this globalVariables just by CIF ?
Quote :
GlobalVar $WLCCOrigT; $WLCOrigT = 70;

This should be:

GlobalVar $WLCCOrigT; $WLCCOrigT = 70;
hello,

Could someone add the Car value into the StoredValue Database
i have tried to changed the Storeddbs.cs file but i failed.

edit:

is it possible to clear a StoredValue variable:
example:
!removedbvar Points

so every row with 'Points' will be deleted.

I know this is possible with the SQlite plugin of firefox.
but i just want do it ingame.

thx.
does someone have a solution for the post above??
thx
As far as I know it isn't possible to delete whole records from within the game.
hi

My lapper is reacting very slowly sometimes.
it takes few seconds when Lapper detect that someone crossed the finishline. The finishline is very importent for my twinsystem.

is there a solution to fix it??

PC specs:
CPU: i3 3220 @ 3.30 Ghz
Ram: 4 GB
Network: 1Gb card
ISP Down/Up speed: 60mbit/6mbit

Lapper CPU Load: 1 a 3 % and 30 a 40 MB Ram
Attached images
test.jpg
Quote from Bass-Driver :hi

My lapper is reacting very slowly sometimes.
it takes few seconds when Lapper detect that someone crossed the finishline. The finishline is very importent for my twinsystem.

is there a solution to fix it??

PC specs:
CPU: i3 3220 @ 3.30 Ghz
Ram: 4 GB
Network: 1Gb card
ISP Down/Up speed: 60mbit/6mbit

Lapper CPU Load: 1 a 3 % and 30 a 40 MB Ram

You shouldnt need to catch them as they come over the line as the finish position would be stored in the player vars:
$finishPos = GetCurrentPlayerVar("FinishedPos");
oh thx for the fast reaction.
i think it has nothing todo with the finishline.

I just figured out that the FOREACH loop lags Lapper.
During the Foreach loop, the other commands/code delays and might screwed up the whole system.

And its getting worst when more people joined the server.

But i think i've a solution for my system:

Instead of looking for the users with the right variables. (With the foreach loop)
I move the right users into a textfile and when its needed, it will read the textfile.
So it reads only 4 users instead of 22 for example.
is it possible that force players to use specific setup for their cars? (for example Default setup)
Quote from hamzeh_s :is it possible that force players to use specific setup for their cars? (for example Default setup)

I dont know , but i dont think its possible.
Whould be very usefull for events etc
i saw some Hosts that force players to use specific tires on their car. (R4 or R3 . . . ) but i don't know how they do that.

i want to run ROC competition with my friends in the end of a year of racing. i designed a route in auto cross. the only thing that remained is that forcing player to use fixed setup
Quote from hamzeh_s :i saw some Hosts that force players to use specific tires on their car. (R4 or R3 . . . ) but i don't know how they do that.

i want to run ROC competition with my friends in the end of a year of racing. i designed a route in auto cross. the only thing that remained is that forcing player to use fixed setup

Well its possible with lapper to set a handicap(mass,air restriction) for each user.(dont me ask how)
if the driver tries to join the race with a differend handicap they get spectated.
This thread is closed

Config help
(1112 posts, closed, started )
FGED GREDG RDFGDR GSFDG