The online racing simulator
Searching in All forums
(882 results)
Bass-Driver
S3 licensed
What if the person is blackmailing the LFS devs to achieve something.
Just wait until Scawen replies.
Bass-Driver
S3 licensed
buntidondo didnt take any effort to look into any LFSLapper scripts, on how the scripts are build.

I dont think LFSLapper will spit any errors or maybe one error.
and it stops the script at Event OnInterval(1000) # Check every second

@buntidondo
It seems you took some insim.net code and trying to convert it into a LFSLapper script, And this goes very wrong.
I suggest to open some LFSLapper and look how the syntaxes looks likes.

For 1 sec loops : https://www.lfs.net/forum/post/1927015#post1927015
  • -Wrong Array Syntax
  • -In_Array does not exist in LFSLapper, use InArray() instead.
  • -LFSLapper Scripts do not use brackets '{' '}'
  • -Event OnInterval(1000) # Check every second Does not exist in LFSLapper.

  • -foreach($Players as $Player) wrong syntax:
    foreach($Player IN $Players)
    #your code
    EndForEach
  • https://www.lfs.net/forum/post/1305874#post1305874 Scroll down to splittoarray()
  • -GetCurrentPlayerVar() wrong order of parameters
  • -btnCreate() does not exist in LFSLapper. Full explaination here, thanks to Sinanju for creating this nice tutorial: https://www.lfs.net/forum/thre ... --includes-odd-shaped-but
  • Probably missed more.

Please come back when you read into some lfslapper scripts.

Topic Closed.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
As i said, its not possible to sent emails via LFSLapper.
Bass-Driver
S3 licensed
That is not possible in LFSLapper.

Maybe contact the guy who made something? You replied in this topic aswell.

https://www.lfs.net/forum/thread/108908-Sending-Mail-from-Lapper-Application
Release: LFSLapper V7.0.9.6
Bass-Driver
S3 licensed
Hello Lapperusers,

Probably my last update, going back to scripting again. Sourcecode is available.

A new version is available which contains few discord functions for modify BOT created Messages and Embeds
Its also possible to move a textfile from orginal location to a another by entering the correct paths.

Scawen introduced a new InsimPacket to Ban IPAddresses. Not sure, if it only counts for 0.7F servers and beyond.

These Banned IP adresses won't be displayed on your hosting page @ www.lfs.net/hosting.
The list of banned IP's will be active when you restart your insim. But to get the list of banned IP's. You need to set them and request the list again after insim restart.
To unban a IP, delete the IP Address from the list before sending it.

Here is a summary of changes.

---------------------------------------------------------------+
|Changes from 7.0.9.5 to 7.0.9.6
+---------------------------------------------------------------+
=================================================
New:
=================================================
1: Discord Function: EditDiscordMessage();

NOTE: Only messages created by BOTS can be edited!!!

$Message = "";
$ChannelID = "";
$MessageID = "";
Editdiscordmessage($ChannelID,$MessageID,$Message);

2: Discord Function: EditDiscordEmbed();

NOTE: Only EmbedMessages created by BOTS can be edited!!!

$ChannelID = ""; #ChannelID of the server, where you discordbot is connected to.
$MessageID = ""; #MessageID of embed that need to be changed
$Title = ""; #Title of Embed
$Desc = ""; #Description of Embed
$Color = "0xFF0000";

#%nf% to create a new field "Field1 %nf% Field2 %nf% Field3
$FieldTitle = "";
$FieldValue = "";
$FieldInline = "True"; #True of False

#Use %nf% to add a footer image URL !! Not an local(pc) image.
$Footer = "";

#Small Image URL on the right side of the Embed box.
$ThumbnailUrl = "";

#The Entire EmbedBox will fit to the same size as the ImageUrl.
$ImageUrl = "https://www.lfsworld.net/isonline.bass-driver";
EditDiscordEmbed($ChannelID,$MessageID,$Title,$Desc,$Color,$FieldTitle,$FieldValue,$FieldInline,$Footer,$ThumbnailUrl,$ImageUrl);

3: File Function MoveFile();
#Move your textfile to a new location.
$OriginalPath = "";
$DestinationPath = "";
MoveFile($OriginalPath,$DestinationPath);


4: New Function: SetIPBans();
#Unban a IP by removing the IP from the list and execute SetIPBans() again. It will overwrite the current list.

SetIPBans("127.0.0.1,192.169.232.222");

5: New Function: GetIPBans();
#Chance is to execute the function twice to get info.

$List = GetIPBans();

privmsg("IPBanCount:". $List["NrOfIPbans"]);
FOR($ip=0;$ip<$List["NrOfIPbans"];$ip=$ip+1)
privmsg("Banned IP:". $List[$ip,"IPAddress"]);
ENDFOR


=================================================
Update:
=================================================

1: Updated many libraries.

=================================================
Fix:
=================================================
1: SendDiscordEmbed() didn't execute when fieldtitle or fieldvalues values are empty.

Bass-Driver
S3 licensed
Sometimes players with a S3 license are sus, looking at their profile. And when hiding their stats, makes them even more sus.
sometimes they send me a PM. So because of that, i disabled private messages. Schwitz
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
You need atleast LFSLapper version 7.0.8.0 or higher to make be able to send messages from Discord to LFSLapper. Because Event OnReceiveDiscordMessage() has been changed.

i really suggest to use the latest version of LFSLapper, which is version 7.0.9.5

https://www.lfs.net/forum/thread/108434-Release%3A-LFSLapper-V7-0-9-5
Bass-Driver
S3 licensed
which URL did you enter at redirect URL?
Because if you enter the wrong link, the authentication wont work.

Example:
https://www.lfs.net/forum/post/1998671#post1998671
Bass-Driver
S3 licensed
Updated memberlist.

Welcome to all new members to Velocity Motorsports.
Bass-Driver
S3 licensed
On which server are you playing?
So we can check.

Seems you havent been playing since 2017.
Last online :
Sat 30 Dec 2017, 19:18
Bass-Driver
S3 licensed
Here some example codes you can work with.

<?php 
#Create a list of buttons with the playernames.
CASE "!lop":
$hgt = 80;
$LoP = getListOfPlayers("U");
privmsg("-----[List of buttons with connected players]-----");
FOREACH(
$Player IN $LoP)
$PLYuserName = $Player["value"];
openButton($userName,"Btn_".$PLYuserName,170,$hgt,30,4,1,-1,16+64,GetPlayerVar($PLYuserName,"NickName")." ^8(".$PLYuserName.")");
$hgt=$hgt+4;
ENDFOREACH
BREAK;
?>
=============================================================================
<?php 
$LoP
= getListOfPlayers("U");
FOREACH (
$Player in $LoP)

$User = $Player["value"];
$NickName = GetLapperVar($Player["value"],"NickName");
###Send message if a user is an admin
IF( UserisAdmin($User) == 1 )THEN
globalmsg
("Player: ".$NickName." (".$User.") is a admin");
ENDIF

ENDFOREACH
?>
Bass-Driver
S3 licensed
Ill convert the changes
Check out the new version in 30 min

EDIT: New version available in the first post.
Last edited by Bass-Driver, .
Release: LFSLapper V7.0.9.5
Bass-Driver
S3 licensed
Hello Lapperusers,

This version is nothing special, it only contains a few fixes.
I've used this version to play around with the Turkish Character bug, but still not managed to fix it. So thats still on my list.

I also played around with the http() function, to see how that works.
More info here:
https://www.lfs.net/forum/post/2080421#post2080421

+---------------------------------------------------------------+
|Changes from 7.0.9.4 to 7.0.9.5
+---------------------------------------------------------------+
=================================================
Fix:
=================================================
1: Lappercrash when a player disconnects (normal/kick/ban) from the server while LFSLapper is not connected with a discordbot.
2: Lappercrash When changing discordbotstatus when Discord Bot isnt connect with LFSLapper.
3: RegisterZoneAction() : Leave Zone not triggered when pressing Shift+S (Spectating)
4: Disabled Debugmessages from Version 7.0.9.4

Last edited by Bass-Driver, . Reason : Revert changes regarding to the HTTP() function
Bass-Driver
S3 licensed
I've done a few tests and i can confirm Shift+S doesn't trigger LeaveZone functions, althought Shift+P does.

Apperently i've fixed this in my own experimental version. Ill look when i release this small fix.

This version was so experimental, i've hidden "lost" the list of changes. I probably was testing stuff.
Anyway this experimental version is running on my TimeAttack server for many many months, So its stable to run Tongue
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
I only use the virtual console for diagnostics for InSim (Shutdown/(Re)starts) or hosting in general.
3 days worth of logs is enough for me.
Bass-Driver
S3 licensed
New Infected Gamemode Update

A new feature has been added to the Infected Gamemode, to make the gamemode a bit more interesting.
The Survivors may spawn objects as a trap for the infected while being chased. These objects are not static and not solid.
The survivors can choose between 8 different objects such as Bales,Tyres,Railing etc. The command for this is !t1 - !t8.

After the object has been spawned, it will be removed automatically after 5 seconds.
The Survivor may spawn a another objects after a 45 sec cooldown. The player will get a notification when the cooldowntimer is over.

Server: VM.Infected
Discord:https://www.discord.gg/7QhkfBJ

VM.Infected gamemode V0.6.0

Add: Spawn Trapitems for the infected chasing you
-8 Different types of objects such as: Tyres,Bales,Signs
-Commands: !t1 - !t8
-Spawned object will be removed after 5 seconds, this is done by insim automatically
-45 seconds cooldown timer after each spawned object.

Changed: Infected gamemode will be disabled after insimreboot, admins need to type !ion to enable it again.
Changed: More commands has been added to the list of admincommands.

Fix: Textbutton on tophud was slightly misaligned
Fix: Possible to start the game with 1 player on the track.

Bass-Driver
S3 licensed
Dear Scawen,
Can you please let the servers owners know that you are updating something on the serverside. Create an annoucement that is visible for everyone.
Bass-Driver
S3 licensed
Very nice looking layout and fun to drive. I like how the minimap looks on this layout.

There are some minor things on the GUI (insim) side that need to be fixed, like overlapping buttons. But as you mentioned, you are working on it.

I do miss the curbs on this layout. I bet you ran out of objects.
We can never have enough objects, right? Big grin
Bass-Driver
S3 licensed
@batuhan2774

The last error message looks familiar.

On what kind of system do you run LFSLapper?
If its a windows system, i suggest to install: Visual C++ 2010 Redistributable Packages x86/x64.

https://www.lfs.net/forum/post/2027857#post2027857
Bass-Driver
S3 licensed
I have no idea what you want.

I need more information than that.
What are you trying to achieve.

Do you want to kick/ban a player?
Bass-Driver
S3 licensed
So you took Yisc[NL] his code and you mentioned it works.
Now you edit the code and suddenly it doesn't work.

You ask us for help, while you failed editing existing working code.

I won't help you. Because i do not know how the original code looks like. And i do NOT give myself permission to look into or edit his code.
and i'm not interested in comparing your code with Yisc[NL]'s code.

Seems you did not properly understand/debug the code.

Yisc[NL] put his time and effort into this script, so you can it on your server.
Just leave the orginal code/script as it is.
If you want to change something, try to understand the code and build something yourself.

Have a nice day.
Bass-Driver
S3 licensed
The syntax should be something like this.


#Verify each first word/command that starts with a "!".

SWITCH($command)

CASE "!command":
#your code
BREAK

DEFAULT:
#privmsg("Command does not exist");
BREAK;
ENDSWITCH

Bass-Driver
S3 licensed
The function is usable for V7.0.9.0. Only the 'listcount' variable cannot be used
Bass-Driver
S3 licensed
There is a function named getlisttopuser();

$toplist = getlisttopuser($value,$flagdesc,$flagNear,$StartPos); #Get List from stored database

Take a look at an example how to get values from the user storeddatabase
https://www.lfs.net/forum/post/2081039#post2081039
Bass-Driver
S3 licensed
New update.

VM.Infected gamemode V0.5

Add: List of survivors
Add: DistanceMeter for the infected in the survivorlist behind the playernames.
Add: Groupchat for survivors and infected !gc or !c <message> (auto detection by insim)
Add: Carlist command (admin only) !list <nameoflist> to allow curtain LFS default car and/or modded vehicles
Add: Infected may use the ingame siren to scare the surivors even more. /siren=off/slow/fast

Update: Changed "Get Ready Timer" from 30 seconds to 20 seconds.
Update: Join as an infected when joining mid-game
Update: Changed instructions in helpmenu
Update: Changed Instructions in welcomes window
Update: "Player infected player" message is now a host message (this can be used in replays)

Fix: Double infected players after Drive Away timer has been completed.
Fix: Fix attempt on Callback functions not executing due to invalid userstats.
Fix: "Total Drivers on Track" counter wasn't accurate when leaving the game (pit/spec/disconnect)
Fix: Minor code mess , jup minor xD

FGED GREDG RDFGDR GSFDG