The online racing simulator
Searching in All forums
(893 results)
Holes in Blackwood Industrial area
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Find a few tiny holes in the Industrial Area of Blackwood.
See replay.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
i see a small video coming?? Tongue
bloom looks nice indeed.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Those shots looks amazing. Start to being impatient. Smile

How does look like autox startlights look like?

Small question about the 'trackstatus lights' on the side of the track.
Do you have plans to add some functionality to them in the next patch? Maybe as a insim option.

Thx Scawen for the many previews. Keep them coming, you are doing a great job.
Also i'm curious to see the "new" South City.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
The system counts the cars that crossed a node ( prestageline / Stageline(actual startline))
So it doesnt matter if you stand on the right or left of the track. I know its not very well scripted. Actual its shit Tongue

More about nodes and zones in this topic: https://www.lfs.net/forum/thread/89860-Nodes-and-Zones

At the moment the time is calculated and displayed in seconds. Some parts of the dragaddon need to be rewritten to display a more accurate time in milliseconds.

Anywa, thank you for being interested in the dragaddon. But i'm not motivated to work on any scripts or Lapper itself.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Reset node should work, only the number of the node does not disappear.
The drag system is only for closed track configs.

besides that, this dragaddon is outdated. Maybe, when i have time i will update it again.

btw i cant find the server: LSN EVENTS in the serverlist.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Thanks for reporting the bug.
Bug is fixed, grab the new version in the first post.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
oke , what doesnt work.

-which version of lapper do you run.
-did you installed the script correctly?
-Which errors did you get. can be found inside the ERR files in bin/default/logs/xxx.xxx.xxx.xxx.ERR
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
thanks, now i see them
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
where are the times?
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
lol almost 14 years to late GG

Date of post: Sat 29 Oct 2005, 21:00
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
try this .exe

changed TRUE/FALSE to 1 and 0.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
New PublicTest version: PublicTest_10

YOU MUST DOWNLOAD THE DIRECTORY of PublicTest_06 TO USE THIS TESTVERSION

This version contains a new change to store offline data.
New variable has been created. Add this line in LFSLapper.LPR

$StoreOfflineData = false; #storedvalue.dbs Store Offline data , even when the player doesnt exist in the database.

When this variable is set to 'true', a warning message will be displayed on your lapperconsole and in the MSS logfile, after reloading lapper.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
New Publictest version: PublicTest_09

YOU MUST DOWNLOAD THE DIRECTORY of PublicTest_06 TO USE THIS TESTVERSION

- GetWr() Fix: Couldnt get RO11 WRtime. Compatible issue with Rockingham trackcodes (thanks to Andy King)
- GetWr() Change: DateTime value is now splitted in to 2 values : Date & Time

Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Oke , a another compatible issue. Mistake on my end.
As i can see, you can putt 2 or 3 arguments in delayedcommand()


<?php 
delayedcommand
($CommandID,$NumberOfDelay,$SubCallBack)
or
delayedcommand($NumberOfDelay,$SubCallBack)
?>

Not sure why gai-luron did that in the first place. It is a littlebit confusing.
Restored the code of delayedcommand() and privdelayedcommand()

grab the new publictest version
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
New publictest version:

-Couple fixes for Lappercrashes
-New feature for Discord
-Store Offline userdata


Lapperdirectory of testversion_06 is needed!

+---------------------------------------------------------------+
|Changes 7.0.6.4 from PublicTest_06 to PublicTest_08 |
+---------------------------------------------------------------+
=================================================
New:
=================================================
1: New setconfigvar() value: "DiscordBotStatus"
setconfigvar("DiscordBotStatus",$argv); #change the status of the discordbot

=================================================
Changed:
=================================================
1:GetWR(); Added new value: 'DateTime' : Date/Time of WR
2:Store data for offline players ( Player + variable must exist in the database)
-only for functions SetUserStoredValue(); SetUserStoredNum();
-The player must be online first, to store theire data for the first time.
=================================================
Fixed:
=================================================
1: Lappercrash on Discord connect.

Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
There is an event already to detected hit objects.
Those 2 seconds will be added by LFS automatically



<?php 
#############################
#Actions to do on Hit Object#
#############################

#Player Vars
#GetCurrentPlayerVar("ObjectContactSpeed")     //Speed of player when hitting a object
#GetCurrentPlayerVar("ObjectContactHead")      //Heading of player when hitting a object
#GetCurrentPlayerVar("ObjectContactDir")       //Direction of player when hitting a object

# When $ObjectFlag returns a value.
#OBH_LAYOUT,         //1  an added AutoX object 
#OBH_CAN_MOVE,         //2  a movable object
#OBH_WAS_MOVING,     //4  was moving before this hit
#OBH_ON_SPOT         //8  object in original position

$DetectHitObject "";  #To get objectstrings for detection look at docs/ObjectHit.txt

Event OnObjectHit($userName,$ObjectFlag,$ObjectHitTime,$Object_X,$Object_Y,$Object_Z,$ObjectType,$ObjectInDex)  # Player event
    #Globalmsg("".getplayervar($userName,"NickName")."^8 hit a ^3".$ObjectType." ^8Height: ".$Object_Z);
EndEvent
?>


Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
I dont know the systemrequirements of discord. Maybe your pc is to slow to run discord?
It could also be a corrupt version of discord. I suggest to download Discord from theire own website: https://discordapp.com/. I whould never install additional software from software that need to be installed.

Teamspeak:
You can create your own server. So all data goes between your server and the guests who are connected to your TSserver

Discord:
All channels within are connected to a server from Discord itself. Some people are afraid to use discord because of privacy.

You are also dependent to the servers of discord. When Discord goes down, you simply cant connect to discord anymore.

The interface of Discord is many times better than Teamspeak.
PublicTest_06
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
New PublicTest version:

This version contains:

-Communication with discord (bot)
-GetWR(); Change

YOU MUST DOWNLOAD THE ENTIRE DIRECTORY TO USE THIS TESTVERSION


=================================================
New:
=================================================
#########################################
#DISCORDBOT FEATURES
#########################################
1: New Event :

- This event will be executed when someone sends a discord message to LFSLapper.
- A Discordbot must be created to communicate between LFSLapper and Discord.
- In 'bin/default/includes/myInc.LPR' you can enter the 'DiscordToken' and the 'Discordchannel' to receive the messages from.
- Link to create discordbot: https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
- Set DeveloperMode in your discordsettings to "ON' to copy the channel ID ( rightclick on the channel)

Event OnReceiveDiscordMessage($DiscordUname,$Text) # Player event
#Your code
EndEvent

#This function sends messages to your selected discordchannel.
#The discordbot must be connected while using this function

2: New Function: sendmessagetodiscord();
$DiscordChannel = "000000000000000000";
$Message = "Hello";
sendmessagetodiscord($DiscordChannel,$Message);

=================================================
Changed:
=================================================

1:GetWr(); allows 1 parameter "CAR". Example below

CASE "!getwr":
IF($argv != "")THEN
$GetWRInfo = GetWR($argv);
ELSE
$GetWRInfo = GetWR();
ENDIF
privmsg("^7============================");
privmsg("^3WR Info:");
privmsg("^7============================");
privmsg("^7Car: ^8".$GetWRInfo["CName"]);
privmsg("^7Track: ^8".$GetWRInfo["Track"]);
privmsg("^7Racer: ^8". $GetWRInfo["racerName"]);
privmsg("^7Time: ^8".NumToMSH($GetWRInfo["WRTime"]));
privmsg("^7Sp1: ^8".NumToMSH($GetWRInfo["Split1"]));
privmsg("^7Sp2: ^8".NumToMSH($GetWRInfo["Split2"]));
privmsg("^7Sp3: ^8".NumToMSH($GetWRInfo["Split3"]));
privmsg("^7Last: ^8".NumToMSH($GetWRInfo["SectorLast"]));
BREAK;


Any feedback whould be welcome.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
You are right about the compatibiltycode. I have done that with many functions, but i'm not in the mood to rewrite the RegisterScheduleAction() code again to make it compatible.

It took me a while to solve an old RegisterScheduleAction() bug. So Ill leave it as it is.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
The function will become uncompatible with older Lapper versions.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
There is some info about RegisterScheduledAction() in the changelog. But nothing about the parameters.

I opened LFSLapper.LPR and i found this.


RegisterScheduleAction( "0 0 0 * * * *", SA_mid );

You can register a subfunction to call when a time is reached

Firts arg = cron format ss mm hh dayOfWeek dd MM YYYY

dayOfWeek start at 0 = Sunday

Second arg = Sub to call when player type this text

Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
The Dcon hasnt crashed since then. So i'm thinking of reason 4 and 5 at the same time. The DCon was running since version U came out. Without any crashes.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
i'm not sure if lapper suppose to execute RegisterScheduleAction() every second when all parameters are disabled.

In my Idle/AFK script, i have done it like this:
Basically i also set every second aswell, like you did


<?php 
CatchEvent OnLapperStart
()
     
##Set first second (0)
    
GlobalVar $IdleAFKTimer$IdleAFKTimer "0 * * * * * * ";
     
##Create a string from second (1) to second (59)  0 * * * * * * : 1 * * * * * * : 2 * * * * * * etc
    
FOR($i=1;$i<60;$i=$i+1)
        
$IdleAFKTimer $IdleAFKTimer " : ".$i." * * * * * *";
    ENDFOR
     
##Set Registeraction with the string you created above 
    
RegisterScheduleAction"".$IdleAFKTimer.""RSA_IdleTimer);
EndCatchEvent
?>


The internal codes for RegisterScheduleAction() has been changed, because when Lapper hangs up for a second(when someone is leaving the pitbox), a created loop couldnt continue, because the set seconds didnt matched with the real time.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
Because the SMALL_LCS insimpacket works only when the an insim is running localy. Maybe Scawen will change that in the future.
Bass-Driver
S3 licensed
Online at :
VM.TimeAttack
That function can only be used when you run Lapper localy.
FGED GREDG RDFGDR GSFDG