The online racing simulator
LFSLapper adding ISP_CON (Car Contact) packet
Hi everyone,

I'm currently trying to add the 'CarContact' packet in LFSLapper.
This packet should work in Lapper because the packet is added in InsimVersion 5.

For testing i need someone who i can hit. So that i can check, if i get any data from the packet.

To be sure that i get the right data during tests. I run the app InsimSniffer. Thank you DarkTimes for the helpfull app. I hope he update it to the new InsimVersion.
I am there to be hit Wink
Update:

Adding the packet is going very well.Thanks to Yisc[NL] for helping me.

This is the event for now that i created in LFSLapper.LPR.

Event OnCarContact($PlayerA,$PlayerB,$PlayerA_Speed,$PlayerB_Speed,$PlayerA_X,$PlayerB_X,$PlayerA_Y,$PlayerB_Y) # Player event
EndEvent

Attached images
CarContact1.jpg
-
(Bass-Driver) DELETED by Bass-Driver : uhm
Was using your updated files to do testing on something else I'm working on, with 2 AI cars on track, when I hit one, and lapper crashed.

Did it few more times to test, and lapper always crashes, then quickly restarts. I get same error message each time in my 127.0.0.1-29999-ERR error log;

-----------------------------------------------------------------------------
2/17/2016 4:07:10 PM

Lapper Instance 127.0.0.1/29999 abort!

Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.LFSClient.managePacket(CON con)
at LFSLapper.LFSClient.Loop(Connect insimConnection)
at LFSLapper.LFSClient.doloop()
at LapperInstances.LapperInstance.doConnection()
Void managePacket(CON)
Closing Instance...
-----------------------------------------------------------------------------

As it's only an issue when local racing AI, not sure if much of a problem?
Well,what i think, is that LFSLapper cannot find a Username from one of the AI's it crashed. I have add this issue in my Bugfix/Test/ToDo list.

Edit: New testversion ver 7002B:

Add: TrackSide_Objects to objectlist.txt
Change: All_Markers is now renamed to All_TurnMarkers
Fix: LFSLapper crash when hitting a AI car.
Not sure in which lapper version 7 it started, but if you look in the ERR.log file, it now shows the password that appears in the default_1.ini file.

At least it does in my local 127.0.0.1-29999-MSS.log file. I haven't updated my server lappers yet, which are still v6 as still playing around with few things.

Extract:

2/19/2016 8:55:56 AM
-----------------------------------------------------------------------------
2/19/2016 8:55:56 AM -> Parsing config file...Ok
2/19/2016 8:55:57 AM -> Loading WR...Ok
2/19/2016 8:55:57 AM -> Loading swearwords...Ok
2/19/2016 8:55:57 AM -> Connecting to 127.0.0.1 / 29999
2/19/2016 8:55:57 AM -> LFSLapperInsimVersion 0
Connection OK
2/19/2016 8:55:57 AM -> InsimInit Lenght: password_here
19/02/2016 08:55:57 -> 2/19/2016 8:55:57 AM -> InSImReceive Thread Started...
Product:S3 Version:0.6M InSim Version:7
19/02/2016 08:55:57 -> Ftp Upload grip DB Thread Started...
19/02/2016 08:55:57 -> Ftp Upload drift DB Thread Started...
19/02/2016 08:55:57 -> Web Commands Thread Started...
2/19/2016 8:55:57 AM -> 19/02/2016 08:55:57 -> 19/02/2016 08:55:57 -> LFSLapper is running...
PubStat Thread Started...
Register Web Thread Started...

It's the line
2/19/2016 8:55:57 AM -> InsimInit Lenght: password_here

Not my password, but it is shown where I have "password_here".

And. 'Lenght' should be 'Length'.

For security, can this line be removed, or at least the password?
ooh sh*t, i forgot to delete some code. About Insim_version 7: this is not the
insimversion that lapper is using. its just a var that i can request from the LFSversion packet.
New packet: UCO
Can you add this new Event to its own Thread please?

Best if you just copy (don't delete post) whole body of post text about it to thread, including lapper file and image (may be no need to copy image - just click on it, note http link and imbed link into new post as image).

Would be good to keep discussions about each of your new Events separate, as easier to find things.
-
(Bass-Driver) DELETED by Bass-Driver

FGED GREDG RDFGDR GSFDG