The online racing simulator
Searching in All forums
(75 results)
LFSCruise
Demo licensed
Thanks. I would like to that to and more these topics.
LFSCruise
Demo licensed
However, it is unable to do that show the speed?
LFSCruise
Demo licensed
Welcome,

How should the administrator be removed from office if he is offline?
LFSCruise
Demo licensed
Welcome,

Version: 6.0.1.1

Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Syntax error in cfg file "./Cruise.lpr" at line #3708
Token not catched
Function 'cruise_wel_close' script aborted
Lapper Instance ***/29999 abort!
Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.ListZoneEvent.getCommandZoneLeave(String trackName, Int32 idx) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\ZoneEvent.cs:line 121
at LFSLapper.LFSClient.managePacket(DateTime datRecvPacket, MCI mci) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\managePacket.cs:line 988
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\loop.cs:line 1098
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 557
at LapperInstances.LapperInstance.doConnection() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSInstances\LapperInstance.cs:line 247
System.String getCommandZoneLeave(System.String, Int32)
Closing Instance...

I would like to ask what to do about for Lapper Instance abort?
They are often repetitive.
Only bumps into someone or ascend into the air is abort?
How do I stop it?
How to prevent it?

And maybe you know of any program is programmed to show the errors as shown by C#?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from sinanju :Bit like real life really.

In real life, a cop might be close to a point where speed zone changes from one value to lower value. In some places, electronic signs measure your cars speed as it goes past camera, and displays it. If someone still stays at same speed (doesn't slow down), cop chases.

In Lapper, choose a node or zone (or number of zones)
when car passes that point, then get lapper via GLOBAL button to show speed of driver at that point
If speed is higher than allowed speed get lapper via global button to advise driver is speeding
If COP is able to see speeding driver, then COP chases driver (or not)
If you make button(s) time sensitive, then if not chased while buttons appeared, then you don't get penalty.

Little understand.

It would be better to show all the players are within 200 meters.
And as it exceeds the speed zone in which it is its speed changes to red and then you start to catch and when it stops press caught and said, fine, and if it starts if it does not pay the fine.

The last sentence of the causes of errors.

If he stops and pays the fine to run it.
If you refuse to pay a fine if he take away the money and punish.

And yet I would like to ask why the COP, anyone can wear and activated?
There should be a list that includes a consumer would only be activated.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from LFSCruise :If exchanging -2 disappear and only if the Appears -3 or -4 is the same.
+4 If it moves immediately disappears.
If you are replacing Their 10 to the Same effect as with -1.

Maybe instead of langEngine should be used strFormat?

I thought about strFormat because I like the car is running it will be a variable value.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from Tim NL :Hi,
You can show the current speed for a player when he/she passing a point on the track. (start/finish line or sp1/sp2/sp3 or a point like a speed trap)

You cant show the current speed all the time in lapper for all the players.
Why should you do that anyway? every car have a speedo meter in lfs.

So that on the C# indicates the speed directly.
Why is it that the LFS Lapper impossible?

And it is well done for one reason.
How does the COP to see if the players are above and start capturing.
Because it is very awkward to write !clock and UserName.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
If exchanging -2 disappear and only if the Appears -3 or -4 is the same.
+4 If it moves immediately disappears.
If you are replacing Their 10 to the Same effect as with -1.

Maybe instead of langEngine should be used strFormat?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
I was successful. However, speed does not change, no change, why?
How to make a motion that he would change and it would appear directly?
LFSCruise
Demo licensed
main_speed = "{0} {1}";

openPrivButton( langEngine( "speed",1,118,27,4,4,-1,32,"%{main_speed}%" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );

Tell what's wrong?
LFSCruise
Demo licensed
I think that it is impossible to do openPrivButton to show the speed does not directly.

openPrivButton( "speed",1,118,27,4,4,-1,32,"{0}" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );
openPrivButton( "speed",1,118,27,4,4,-1,32,"{0:1}" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );
Does not work. Why?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from sinanju :If you look in the /docs folder, you'll see a file called playerVars.txt.

In that file, you'll see there's a number of player variables you can use to get speed, such as

UnitSpeed...........// km/h or mph relative to the player choice
AvgSpeed...........// Avg Speed on last Lap Time
InstantSpeed......// Instant speed for the player
BestSpeed..........// Best Speed done on this combo by player

If you want to see how to use these type of variables, look at Event OnAcceleration.

I'm not going to show you how to use it, because this is probably the fifth easiest button to make.

You should teach yourself the following;

How to make a..

..button with no text (as used in a background)
..button with text built directly into the button code
..button with text via Lang(uage) file
..button with sub-routine appended (like the ones for the street names)
..button with player variable (look for {} brackets in the language files to give you ideas on how they're used).

Until you can do these easy buttons, I don't think you should be going much further.

Sorry for being bit negative, but I feel I'm spoon feeding you here, and making up a whole server script line by line. And you won't be learning much if you can't see how one piece of code, with slight changes, can be used for so many different situations.

Read the playerVars.txt, changes.txt, and lfslapper.lpr files as they've all got coding help comments that are useful for doing fairly easy coding.

Can you help? Man does not go do the button to show the speed.
LFSCruise
Demo licensed
Do you know how to do that openPrivButton show a direct and variable speed?
LFSCruise
Demo licensed
Quote from sinanju :Not sure that can be done unless the standard lapper code


<?php 
Event OnVoteRestartChange
($PlayerOnTrack$Vote $Need# Lapper Event
    
openGlobalButton"bargr1",40,1,10,6,6,30,96,langEngine"%{main_vote_restart1}%"));
    
openGlobalButton"bargr2",50,1,20,6,6,30,96,langEngine"%{main_vote_restart2}%",$Vote,$PlayerOnTrack,$Need ) );
EndEvent
?>


can be changed to something like


<?php 
Event OnVoteRestartChange
($PlayerOnTrack$Vote $Need# Lapper Event
        
cmdLFS"/kick " $PlayerOnTrack );
EndEvent
?>



It does not work.
LFSCruise
Demo licensed
Quote from sinanju :Just checked and !node will not work in open track configuration mode.

But !zone will.

Instead of using !node try using !zone on the racing line.

Then code might be something like


<?php 
    RegisterZoneAction
"AS5Y" , -619,-439SN_Odeon,"" );
?>


then exactly same sub-routine I showed earlier


<?php 
Sub SN_Odeon
$userName )
    
openPrivButton"location",2,20,24,6,2,4,96,"^7ODEON TURN -->");
EndSub
?>




If you find that you're not 'catching' people in your zone and they go past it, then nothing to stop you having a zone at either side, but all having the same sub-routine, like


<?php 
    RegisterZoneAction
"AS5Y" , -619,-429,SN_Odeon,"" );
    
RegisterZoneAction"AS5Y" , -619,-439,SN_Odeon,"" );
    
RegisterZoneAction"AS5Y" , -619,-449,SN_Odeon,"" );
?>



I use this system quite a bit, but usually only take the zone details for the racing line as it's not important if they miss it.

I think that would be better RegisterNodeAction.

How to do that as a player votes for the race start or end of the race that he then kicked out?
LFSCruise
Demo licensed
Yes, I have another account. I write !node AS5Y across the track shows the 0th.
LFSCruise
Demo licensed
Quote from sinanju :Street Names
Find a node on a track you want the name to appear.

Then you need to make up a RegisterNodeAction with short track name, node number, and a sub-routine, e.g.


<?php 
    RegisterNodeAction
"SO2R" 84 SN_Odeon,"" );
?>

Then make up sub-routine that will show name, e.g.


<?php 
Sub SN_Odeon
$userName )
    
openPrivButton"location",2,20,24,6,2,4,96,"^7ODEON TURN -->");
EndSub
?>


This is what I use on my server to show the turn at the Odeon Cinema at South City, and shows for up to 4 seconds.

If you give another location the same button name, it will overwrite your original button, which can be good in this case as faster cars may be at next corner before name changes.

Speed Zone
Same as above, but add another button with a number and/or description in it, e.g.


<?php 
Sub SN_Odeon
$userName )
    
openPrivButton"location",2,20,24,6,2,4,96,"^7ODEON TURN -->");
    
openPrivButton"speed",2,30,24,6,2,4,96,"^140MPH");
EndSub
?>


To get the node number, drive to the bit of the track you want sign to appear, and type !node.

Assuming you're the admin, you will be shown the node number.

I'm sorry for the impatience but how to do that work on AS5Y?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
How to do that as a player votes for the race start or end of the race that he then kicked out?
LFSCruise
Demo licensed
Is it possible to do as a player votes for the race start or end of the race kicked him?
LFSCruise
Demo licensed
Quote from sinanju :Very easily.

Something like....


<?php 
RegisterScheduleAction
"0 1 * * * * *"RSA_green );
RegisterScheduleAction"20 1 * * * * *"RSA_amber );
RegisterScheduleAction"40 0 * * * * *"RSA_red );

Sub RSA_green()
    
closeGlobalButton"tlight_bg&tlight_bga&tlight_colour");
    
openGlobalButton"tlight_bg",91,6,18,9,1,6,32," ");
    
openGlobalButton"tlight_bga",91,6,18,9,1,6,32," ");
    
openGlobalButton"tlight_colour",84,0,20,20,1,6,0,"^2•" );
EndSub

Sub RSA_amber
()
    
closeGlobalButton"tlight_bg&tlight_bga&tlight_colour");
    
openGlobalButton"tlight_bg",91,6,18,9,1,6,32," ");
    
openGlobalButton"tlight_bga",91,6,18,9,1,6,32," ");
    
openGlobalButton"tlight_colour",84,0,20,20,1,6,0,"^3•" );
EndSub

Sub RSA_red
()
    
closeGlobalButton"tlight_bg&tlight_bga&tlight_colour");
     
openGlobalButton"tlight_bg",91,6,18,9,1,6,32," ");
     
openGlobalButton"tlight_bga",91,6,18,9,1,6,32," ");
     
openGlobalButton"tlight_colour",84,0,20,20,1,6,0,"^1•" );
 
EndSub
?>


However!

Everyone will see the lights wherever they are on track.

I did make a set of traffic lights before - I'll see if I still have the code somewhere - but I think they worked on Zone system.

I think that should be used openPrivButton and how it needs to be done on the track?
It must be that if in one side of the red and green in another fired as vice versa, and it requires self-timer.
LFSCruise
Demo licensed
Quote from sinanju :Use the RegisterScheduleAction and make up a couple of sub-routine to go with it that show the text you want as clear buttons.

Something like


<?php 
RegisterScheduleAction
"0 0 1 * * * *"RSA_hi );
RegisterScheduleAction"0 1 1 * * * *"RSA_hello );

Sub RSA_hi()
    
globalRcm"Hi" );
EndSub

Sub RSA_hello
()
    
globalRcm"Hello" );
EndSub
?>


If I've got it right (long time since I used this method) that should probably put "Hi" on screen every hour, followed by "Hello" a minute later, but from experience, it'll get annoying.

The first number in the sequence is seconds, then next is minutes, then hours, .....etc. Nothing to stop you changing from every 1 hour to every 2, 3, 4 or more hours.

Would not it be possible to apply this principle in traffic lights?
LFSCruise
Demo licensed
Quote from sinanju :Not quite sure what it is you mean here.

Do you mean when a player changes their nickname?

As in something like


<?php 
Event OnNameChange
($userName,$oldNickName,$newNickName# Player event
cmdLFS("/kick " GetCurrentPlayerVar("UserName") );
EndEvent
?>



This is, I know. I need as a player, the player takes over the car and then kicked Lapper and I have not found such a system.

----------------------------------
NickName took over from NickName
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
------------------------------------

Here it must be done to stop pens and both players use the "T" letters, and thus take over the car. I think that there is need to develop a new system.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Do you know how to do that when a player takes the car from another player kicked him?

---------------------------------------------------
NickName took over from NickName
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
---------------------------------------------------
How do I do?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Hello maybe you can make the traffic lights that automatically change the colors?
Or what could be done in the table which would indicate the speed directly?

Alternatively, the tables show the police show that player's nickname is close to 200 meters and at the same table directly in the variable speed and more speed zone where it is. And on the table to see it start to catch. Even that would be good if the offender fails to comply with speed zones where the speed is changed to red.

And if you can not do those things above, where at least I wrote it maybe could have been made as to what is wrong in a pit has to be thrown out of the spec.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/***/domains/***/public_html/server.php on line 182

Help
Last edited by LFSCruise, .
FGED GREDG RDFGDR GSFDG