The online racing simulator
Hi, I'm interested that how can I make free zones where the auto spec wont put players on spectate. I want to make the pit "zone" unspectable. How can I add them ?
Quote from sarxes :Hi, I'm interested that how can I make free zones where the auto spec wont put players on spectate. I want to make the pit "zone" unspectable. How can I add them ?

just a example: just the basics

CatchEvent OnMSO( $userName, $text ) # Player event

$idxOfFirtsSpace = indexOf( $text, " ");

IF( $idxOfFirtsSpace == -1 ) THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirtsSpace );
$argv = trim( subStr( $text,$idxOfFirtsSpace ) );
ENDIF
SWITCH( $command )
CASE "!setfreezone":
SetFreeZone(GetCurrentPlayerVar("X"),GetCurrentPlayerVar("Y"));
BREAK;
ENDSWITCH
EndCatchEvent

Event OnIdle1( $userName ) # Player event
IF(GetPlayerVar($userName, "InFreeZone) != "1")
THEN
//your code here
ENDIF
EndEvent

Event OnIdle2( $userName ) # Player event
IF(GetPlayerVar($userName, "InFreeZone) != "1")
THEN
//your code here
ENDIF
EndEvent

Sub FreeZone( $userName )
SetPlayerVar($userName, "InFreeZone,"1");
EndSub

Sub SetFreeZone($NewXNode,$NewYNode)
RegisterzoneAction( getLapperVar( "ShortTrackName" ), $NewXNode,$NewYNode,1, FreeZone, "");
EndSub

i think this might work but the zones will cleared after rebooting the insim
Quote from Bass-Driver :just a example: just the basics

CatchEvent OnMSO( $userName, $text ) # Player event

$idxOfFirtsSpace = indexOf( $text, " ");

IF( $idxOfFirtsSpace == -1 ) THEN
$command = $text;
$argv = "";
ELSE
$command = subStr( $text,0,$idxOfFirtsSpace );
$argv = trim( subStr( $text,$idxOfFirtsSpace ) );
ENDIF
SWITCH( $command )
CASE "!setfreezone":
SetFreeZone(GetCurrentPlayerVar("X"),GetCurrentPlayerVar("Y"));
BREAK;
ENDSWITCH
EndCatchEvent

Event OnIdle1( $userName ) # Player event
IF(GetPlayerVar($userName, "InFreeZone) != "1");
THEN
//your code here
ENDIF
EndEvent

Event OnIdle2( $userName ) # Player event
IF(GetPlayerVar($userName, "InFreeZone) != "1");
THEN
//your code here
ENDIF
EndEvent

Sub FreeZone( $userName )
SetPlayerVar($userName, "InFreeZone,"1");
EndSub

Sub SetFreeZone($NewXNode,$NewYNode)
RegisterzoneAction( getLapperVar( "ShortTrackName" ), $NewXNode,$NewYNode,1, FreeZone, "");
EndSub

i think this might work but the zones will cleared after rebooting the insim

Can I make zones written in a files, so after a reboot i dont have to set again. I'm not a coder so I dont understand the code. Can you make an example , and all what I have to do to change the values...
Hi all,

I've just noticed the threads about the issues with the new InSim packet queuing so have updated 6.0.1.4 with GL's code to hopefully fix the problems.

Hopefully I will have more time in the New Year to dedicate to Lapper as this year has been exceptionally busy work wise.

happy new Year all
System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
a következő helyen: System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
a következő helyen: System.BitConverter.ToSingle(Byte[] value, Int32 startIndex)
a következő helyen: InSim.Decoder.pakGetFloat(Byte[] pak, Int32 first)
a következő helyen: InSim.Decoder.STA..ctor(Byte[] packet)
a következő helyen: LFSLapper.LFSClient.Loop(Connect insimConnection)
a következő helyen: LFSLapper.LFSClient.doloop()
a következő helyen: LapperInstances.LapperInstance.doConnection()
Void ThrowArgumentException(System.ExceptionResource)


Happy New Year !
Hello Krayy,

I think the issue on 0.6E is corrected now. replace yout tcp.cs file with this attached one.
If you can, put the old incim4.cs. It's not an obligation but it's better because in the new insim4.cs i gave you there are modifications doing nothing for bug.

Thank's

Gai-Luron
Attached files
tcp.zip - 2 KB - 596 views
Hey,

Somebody could help me to fix it and describe me how to set these :

I have made some modification in WHO CIF:


<?php 
Sub DoWhoMemberInfo 
$KeyFlags$id )
    
$rowHeight 5;
    
$origT $CifOrigT 1;
    
$DialogPrefix split$id,"_",) . "_";
    
$Ucid ToNum(split$id,"_",));
    
$thisPlayer GetPlayerInfo();
    
$thatPlayer GetPlayerInfoGetPlayerVarByUcid($Ucid"UserName") );

    
closeButtonRegex ($thisPlayer["UserName"], $DialogPrefix ".*");

    
openPrivButton $DialogPrefix "statsdetails"73489065, -116langEngine "%{main_statsdetails}%"$thatPlayer["UserName"], $thatPlayer["NickName"], $thatPlayer["Car"], $thatPlayer["PBDrift"], getLapperVar("LongTrackName"), $thatPlayer["Dist"], $thatPlayer["UnitDist"] ) );
    
?>


<?php 
Lang 
"EN" # Race Events messages
    
info_header_1 "^7Detailed Player Information";
    
info_name "^7Racer Name:";
    
info_membertype "^7Member Type:";
    
info_header_2 "^7Player Statistics";
    
info_distance "^7Total Distance:";
    
main_statsdetails "^7Username: ^3{0}^7 - Nickname: {1}"
        
"%nl%"
        
"%nl%^7Your current best Drift Score (with ^3{3}^7): ^3{4}"
        
"%nl%"
        
"%nl%^7Current Track: ^3{5}^0 [ {0} ]"
        
"%nl%^7You've done: ^3{6} ^7laps, which is approx ^3{7} ^7{6}KM"
        
"%nl%";
EndLang
?>


But it wont gives the right order ... I tried to change the numbers in brackets but I cant get the normal order.


How to set to be okay ? I attached my screen about this "bug" in my lapper
Attached images
howto.png
What happened to number {2}?

And why have you got {6} twice?

Numbers for your language file should be;

{0} $thatPlayer["UserName"]
{1} $thatPlayer["NickName"]
{2} $thatPlayer["Car"]
{3} $thatPlayer["PBDrift"]
{4} getLapperVar("LongTrackName")
{5} $thatPlayer["Dist"]
{6} $thatPlayer["UnitDist"]
Thank You, now I understand why and how can I do next time !
Hi guys,

I've been away from LFS for a while and at the behest of some others, I've finally updated the code to hopefully support the TCP queuing that was introduced in Insim 6, thanks to Gai's 6.0.1.3 release. I've alose removed the code that was planned to do contact detection as it is not compatible with Lapper internals.

My regular group has stopped racing LFS so I have been unable to test it with more than 2 connections which seemed fine, so could people running 6014 please update the binaries and let me know how you get on.

Regards,

Krayy
src is not in the zip anymore?
I had to search a bit to find this thread but I think this is the latest for LFS Lapper. It's good to see this is still being updated - thanks Krayy

How does this version (0.14) differ from the sourceforge version (0.12)? And which is the more up-to-date and maintained and therefore better to use?

As an aside, it would be great to see this functionality included as default in any future update of LFS.
Where can I get a clean 6.0.1.4 exe file ? Because on my system the lapper is based halfly on CIF and it's not possible to operate the CIF framework with 6.0.1.2 !

Thanks !
LFSLapper6.014_v015
This is the most up to date version I have - LFSLapper6.014_v015
Attached files
LFSLapper6.014_v015.zip - 1.9 MB - 621 views
That v.015 what includes ? Any up to date change log somewhere ? Smile

RELEASE: LFSLapper 6.0.1.4 (closed)
(91 posts, started )
FGED GREDG RDFGDR GSFDG