The online racing simulator
Searching in All forums
(293 results)
Set IS_JRR to ignore "Start blocked" protection
LakynVonLegendaus
S3 licensed
Currently, if you are in Autocross layout (closed laps, sprint, time attack.. however you call it) trying to spawn multiple cars using JRR_SPAWN, it will only spawn one car and for other cars it gives "Could not join : Start is blocked" message even if you specify separate positions for each car.
It would be nice if we could set IS_JRR packet to ignore this protection. I'm trying to make a dual start system but this protection makes it impossible if I want to use in-game timer and don't want to make custom one.
LakynVonLegendaus
S3 licensed
this needs like in 2016 Thumbs up lol
LakynVonLegendaus
S3 licensed
Quote from touchpad :yes, we can :O

WTH demo is too good. Sorry, I know nothing.
LakynVonLegendaus
S3 licensed
But demo racers cannot even upload a hotlap so where did you see those? :O
LakynVonLegendaus
S3 licensed
offtopic: minimap in 0.5F looks cool, why do we have ugly one now? Big grin
LakynVonLegendaus
S3 licensed
Hello, in some older version of Lazy in Layout editor there was "Edit" and "Place" function which was very useful. However in current version I cannot see those buttons. Is it possible to get it back, or maybe is there an archive with old versions of Lazy?
LakynVonLegendaus
S3 licensed
Quote from GAVD999 :
Quote from LakynVonLegendaus :Looks like chat cannot be shown/hidden by pressing H in Shit+T editor

Do you mean in shift + U editor? if so it works fine for me

heh, no Sir. I mean Shift+T editor in main menu.

Quote :...
Training lesson editor :

SHIFT+T on main entry screen to access lesson editor or list editor
Layouts for lessons must be copied from layout to training folder
SHIFT+T on training screen to view and test newly added lessons
...

LakynVonLegendaus
S3 licensed
Looks like chat cannot be shown/hidden by pressing H in Shit+T editor
LakynVonLegendaus
S3 licensed
Quote from Yisc[NL] :Well, I will be honest with you, a lot is wrong with your code.
You messed up commands and you didn't used the catchevent properly.
So I have re-arranged and corrected your code.
I've only tested it to see if it runs without errors now (which is the case), but haven't tested if it does what you want it to do.

- Download the file
- Rename it to sector_times3.lpr
- Put it in the "includes" folder

Thank you, sorry I probably should have clean it up before attaching.. Well I used your corrected version and it works just fine. I still don't really understand how did I use catchevent wrong.. is it because I did not use Sub? Anyway I'm happy, thank you for your help Smile
LakynVonLegendaus
S3 licensed
Hello, is there anyone who could explain to me why this one works

IF (MSHToNum(GetUserStoredValue( $userName."Sector3" )) > 29170)
THEN
PrivMsg("test");
ENDIF

but these two options don't?



IF (MSHToNum(GetUserStoredValue( $userName."Sector3" )) > 29170 || MSHToNum(GetUserStoredValue( $userName."Sector3" )) < 40000)
THEN
PrivMsg("test");
ENDIF

IF (MSHToNum(GetUserStoredValue( $userName."Sector3" )) > 29170)
THEN
IF (MSHToNum(GetUserStoredValue( $userName."Sector3" )) < 40170)
THEN
PrivMsg("test");
ENDIF
ENDIF

I attached whole .lpr file just in case.
Last edited by LakynVonLegendaus, .
LakynVonLegendaus
S3 licensed
Thank you!
LakynVonLegendaus
S3 licensed
I am back with another newb question:

Is it possible NOT to build new PB IF PB or SP > WRpb or WRsp?

I searched the whole Lapper folder with bunch of different keywords to PB related, but I cannot find it. Am I being very silly or is this not possible with Lapper?
LakynVonLegendaus
S3 licensed
Quote from Yisc[NL] :I'm glad I could help you.
There is enough room for improvements on the script, but it's very functional as it is already.

Hello, I made some little changes, this is how it looks



I attached .txt file with the code if someone is interested.

Have a good one!
LakynVonLegendaus
S3 licensed
Quote from Yisc[NL] :Right, after a couple of hours I think I came up with the script you want.
Here are the steps to activate it:

-Download the file and rename it to teamchat.lpr
-Then store it in the "includes" folder of Lapper
-Open file "addonsused.lpr"
-Add a line under "General includes" saying: include( "./teamchat.lpr");
-Open file "teamchat.lpr"
-Adjust the path to tofus.txt , to the location it has in your Lapper directory (*)
-Start Lapper and the script should work

(*) Using ".." means you go one directory up from the current directory

Let me know if this is what you want or what you would like to be changed/added (I will help if requests are reasonable, but trying first your self, would be a good thing to learn to code within Lapper)

Sir, this works just perfect! I realize you did not have to do this, so BIG THANK YOU for your time and willingness. You are awesome!

PS: I am actually really amazed, this would take me probably days to figure out. Thank you again, Sir!
Last edited by LakynVonLegendaus, .
LakynVonLegendaus
S3 licensed
Quote from Yisc[NL] :
Quote from LakynVonLegendaus :Hello, please, could any beautiful soul help me with Team Chat history code?

I want to store ONLY last 10 teamchat messages and then display it using 10 privButtons, problem is I only have made simple Teamchat code using openPrivTextButton and "IF useringroup" method which works fine but thats the best I can do, Im stuck Shrug

This isn't too hard to do with Lapper.
Can you please send me the code you already haven, then I am willing to look into your request.

Thank you!

here is the code I am using now

CatchEvent OnConnect( $userName ) # Player event
IF( UserInGroup( "tofus",$userName ) == 1 )
THEN

openPrivTextButton( "sendmessage",1,148,8,4,3,0,"Team Chat","^7Team%nl%^7Chat",120,teammessage );
ENDIF
EndCatchEvent

Sub teammessage ( $username,$teammsg )
$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN
privMsg ( $tofuName, "^7[^1•^7] Team Chat - " . $NickName);
privMsg ( $tofuName, " ^6" . $teammsg);
ENDIF
ENDFOREACH
EndSub

and here is the idea of what I am trying to achieve

CatchEvent OnConnect( $userName ) # Player event
IF( UserInGroup( "tofus",$userName ) == 1 )
THEN

## openPrivTextButton( "sendmessage",1,148,8,4,3,0,"Team Chat","^7Team%nl%^7Chat",120,teammessage );
openPrivButton( "open_chat_panel",1,148,8,4,3,-1,ISB_NONE,"^7Team%nl%^7Chat",open_chat_panel );

ENDIF
EndCatchEvent


Sub open_chat_panel ( $KeyFlags, $id )

closePrivButton (open_chat_panel);

$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN

openPrivButton( "chat_history_msg10",50,68,90,8,8,-1,ISB_DARK+64,$team_msg10,"" );
openPrivButton( "chat_history_msg9",50,76,90,8,8,-1,ISB_DARK+64,$team_msg9,"" );
openPrivButton( "chat_history_msg8",50,84,90,8,8,-1,ISB_DARK+64,$team_msg8,"" );
openPrivButton( "chat_history_msg7",50,92,90,8,8,-1,ISB_DARK+64,$team_msg7,"" );
openPrivButton( "chat_history_msg6",50,100,90,8,8,-1,ISB_DARK+64,$team_msg6,"" );
openPrivButton( "chat_history_msg5",50,108,90,8,8,-1,ISB_DARK+64,$team_msg5,"" );
openPrivButton( "chat_history_msg4",50,116,90,8,8,-1,ISB_DARK+64,$team_msg4,"" );
openPrivButton( "chat_history_msg3",50,124,90,8,8,-1,ISB_DARK+64,$team_msg3,"" );
openPrivButton( "chat_history_msg2",50,132,90,8,8,-1,ISB_DARK+64,$team_msg2,"" );
openPrivButton( "chat_history_msg1",50,140,90,8,8,-1,ISB_DARK+64,$team_msg1,"" );
openPrivTextButton( "sendmessage",50,148,90,8,8,32+64,"Team Chat","^3Write message",120,teammessage );
openPrivButton( "close_chat_panel",50,156,90,8,8,-1,ISB_DARK,"Close",close_chat_panel );
ENDIF
ENDFOREACH
EndSub

Sub close_chat_panel ( $KeyFlags, $id )
closePrivButton("sendmessage&close_chat_panel&chat_history_msg1&chat_history_msg2&chat_history_msg3&chat_history_msg4&chat_history_msg5&chat_history_msg6&chat_history_msg7&chat_history_msg8&chat_history_msg9&chat_history_msg10");
openPrivButton( "open_chat_panel",1,148,8,4,3,-1,ISB_NONE,"^7Team%nl%^7Chat",open_chat_panel );
EndSub

Sub teammessage ( $username,$teammsg )
$lop = GetListOfPlayers("N");
$NickName = GetCurrentPlayerVar("NickName");
FOREACH ( $de in $lop )
$tofuName = $de["value"];
IF ( UserInGroup( "tofus",$tofuName ) == 1 )
THEN
privMsg ( $tofuName, "^7[^1•^7] Team Chat - " . $NickName);
privMsg ( $tofuName, " ^6" . $teammsg);
ENDIF
ENDFOREACH
EndSub

LakynVonLegendaus
S3 licensed
Hello, please, could any beautiful soul help me with Team Chat history code?

I want to store ONLY last 10 teamchat messages and then display it using 10 privButtons, problem is I only have made simple Teamchat code using openPrivTextButton and "IF useringroup" method which works fine but thats the best I can do, Im stuck Shrug
LakynVonLegendaus
S3 licensed
Hello, is there easy way to make it work with new Westhill?
LakynVonLegendaus
S3 licensed
Quote from sinanju :OnIdle is specifically for cars on track.

You could maybe try the OnLeaveRace event.

Thank you sinanju!

I made this:

CatchEvent OnLeaveRace( $userName ) # Player CatchEvent
$numConns = GetLapperVar("numconns");
IF ( $numConns > 12 )
THEN
privDelayedCommand( 5, testing1 );
ENDIF
EndCatchEvent

Sub testing1( $userName )
privMsg( "Test" );
EndSub

and it's working as it should.. I'll try to finish it tomorrow and will edit this post if any problem appears. But for now - problem solvedThumbs up
[Solved]Idle spectator auto-kick
LakynVonLegendaus
S3 licensed
Hello,
I have really silly question but I just could not find the answer anywhere..
I'm working on the system that will kick non-active players if more than 12 people are connected. I'm currently at this stage:

CatchEvent OnIdle1( $userName ) # Player CatchEvent
$OnIdleTimeout1 = 10; # Idle timeout for OnIdleAction1 in seconds
$numConns = GetLapperVar("numconns");
IF ( $numConns > 12 )
THEN
privMsg("You are idle and will be kicked soon!");
ENDIF

EndCatchEvent


CatchEvent OnIdle2( $userName ) # Player CatchEvent
$OnIdleTimeout2 = 20; # Idle timeout for OnIdleAction2 in seconds
$numConns = GetLapperVar("numconns");
IF ( $numConns > 12 )
THEN
GlobalMsg( GetCurrentPlayerVar("UserName") . " ^1WAS KICKED FOR NON-ACTIVITY!");
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
ENDIF
EndCatchEvent

This works but it does not work for spectators, only for players on track.
I even tried to use
IF(GetCurrentPlayerVar( "OnTrack" ) == 0)

but this does not seem to work.
Is it even possible with Lapper?

Thanks, Lakyn
Last edited by Bass-Driver, .
LakynVonLegendaus
S3 licensed
You, Sir, saved me a lot of time. Thank you! Problem solved
OnConnect Event dead?
LakynVonLegendaus
S3 licensed
Hello guys, I have really weird problem with my LFSLapper.lpr file, specifically with "OnConnect" event... I wanted to edit welcome message, but noticed that on Event Onconnect nothing is working. Its like "dead". Just to test it I tried to delete all "OpenPrivButton" lines then saved .lpr file, !reload-ed and guess what: Welcome message appeared like it doesn't care lol. "Accept/Deny" buttons are working, everything is working but where does the "OpenPrivButton" information comes from if I deleted those lines? I'm completely lost noob here someone?

EDIT: tried to use "default" LFSLapper.lpr and same weird things happening.. deleted "OpenPrivButton" lines in OnConnect Event and after reload nothing changes.. how is it possible?
Last edited by LakynVonLegendaus, . Reason : addinfo
LakynVonLegendaus
S3 licensed
Your name: Lukas
In case you win, do you want us to contact you by e-mail or LFSForums? LFSForums
E-mail ( if applicable ):
Chosen Number (0-99) 16
FGED GREDG RDFGDR GSFDG