The online racing simulator
Searching in All forums
(884 results)
Bass-Driver
S3 licensed
Well, about "$objectflag,$Time,$XPos,$YPos" .
is explained in the doc i,ve attached.

$userName // $Username
$objectflag // Flag of object
OBH_LAYOUT, //1 // an added 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
$Time //Time you hit the object (Race timer) in milliseconds
$XPos // Object X Coordinate
$YPos // Object Y Coordinate

$XPos,$YPos
If you want to know the coordinates of the object you hit.

The difference between ObjectContactSpeed and InstantSpeed:
The Speed should be the same, but i think there is a delay between the packets

Heading and Direction

Direction = Is in which way you face your car.
For example:
North = 0 degrees
West = 90 degrees
South = 180 degrees
East = 270 degrees

Heading:
When you go north and your car is going sideways.


There is a insim packet that isnt implemented in Lapper. That gives a 2 second penalty when hitting a object.

// If an autocross object is hit (2 second time penalty) this packet is sent :

struct IS_AXO // AutoX Object
{
byte Size; // 4
byte Type; // ISP_AXO
byte ReqI; // 0
byte PLID; // player's unique id
};

There is plenty of stuff todo. I hope i can release the OBject Hit for lapper next week or so.
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
Small update:

Added a event in LFSLapper.LPR named:

Event OnObjectCollision($userName,$objectflag,$Time,$XPos,$YPos)
EndEvent

@PeterN

Thanks
Last edited by Bass-Driver, .
Bass-Driver
S3 licensed
thank you,

Sure will do that.

I have managed to get data from all values inside the OBH packet.
But i'm not sure, if the data is correct.

Could someone take a look??
Bass-Driver
S3 licensed
Sry about that typo LOL. Was a littlebit late yesterday XD

Lapper is running on Version 4.
After i finish the "opject hit" packet. i go try to change the Insimversion in lapper.
LFSLapper ISP_OBH (OBject Hit) packet
Bass-Driver
S3 licensed
After LFSLapper developers Krayy and Gai-Luron left LFS. I'm trying to add some LFS insim packets to LFSLapper.

Atm i'm busy with adding a packet that reports the collision between Car and (AutoX)opjects.
After some strugling with finding out what everything means. I have finally received some data from lapper when hitting an opject.

Be aware: i'm not a programmer, and i have 0% knowledge of C# programming.
So thank you google for helping me out LOL
Last edited by Bass-Driver, . Reason : typo
Bass-Driver
S3 licensed
@ mikail346

Here is something we have told you before.

Quote from Bass-Driver :There are enough scripts/examples on this forum to work with.

Quote from sinanju :Next to making up your own buttons/labels, CASE commands are almost next easiest thing to do in lapper - there are already lots of examples in the main lfslapper.lpr file, along with almost every other lapper add-on on this forum.

Surely you can work out the obvious?

@ Yisc[NL]: sry to spam your thread with nonsense. apparently some people cannot read/understand what we are saying.
Bass-Driver
S3 licensed
Hacking,crashing cannot be turned off by lapper.
However Speedhacks ( tweaks or whatever) can be detected,by building a script that checks the speed.

if speed > 200 then
#do something
endif

At the moment i'm thinking about those detections.
-Speeddetection for each car
and
-Accelerationdetection for each car.

I already have a sort of global crash/acceleration protection.

Event OnAcceleration( $userName ) # Player event
IF(GetCurrentPlayerVar("AccelerationTime") <= "1.4")THEN
cmdLFS( "/spec " . $userName);
privMsg("^3>^7You accelerated faster than 1.4 Sec to 100km/h!");
ENDIF
EndEvent

Bass-Driver
S3 licensed
oke thanks.

Anyway, i go back to 1 lapper per server. Otherwise i have to change the code of several systems.
For example i'm updating my adminpanel. The logfiles are not stored in the database. Here's a picture of it. It works good and as admin you have a sort of control over your admins/server.
Bass-Driver
S3 licensed
hi,


When you have multiple servers running on one LFSLapper.exe
Is it possible to get data from the servers like Host/ Number of players etc.

i know the function: groupcmdlfs(); but i only can send messages to the servers.
FGED GREDG RDFGDR GSFDG