New packet: UCO - report InSim checkpoint / InSim circle (autoX objects)
To get data from this packet, the new insimversion is required
Thanks to Yisc[NL] for fixing this problem.
##########################################################
#Actions to do on Insim Checker/Checkpoint (AutoX object)#
##########################################################
#When $Flags(bits) returns a value
#UCO_CIRCLE_ENTER, //0 (00) User entered a Checker
#UCO_CIRCLE_LEAVE, //1 (01) User left a Checker
#UCO_CP_FWD, //2 (10) User crossed Checkpoint in forward direction
#UCO_CP_REV, //3 (11) User crossed Checkpoint in reverse direction
//request version Not Need in insim 4, because ISI send This // byte[] verreq = InSim.Encoder.VER(); // this.Send(verreq, verreq.Length); //retr version info
I have tried to add/changed code, but nothing works.
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.
I added 2 emtpy files: LapperVars and Lapper Functions. Here are a few examples.
LapperVars:
Event OnObjectHit:
$DetectHitObject = ""; #To get objectstrings for detection look at docs/ObjectHit.txt
Event OnMaxCarResets
$MaxCarResets = 0;
Static vars that cannot be changed while lapper is running.
Lapper Functions :
privmsg("Your Text here"); # Send text to player globalMsg("Text Here");#Send text to all players
Not sure if i'm taking over lapper, because sometimes its very hard to understand the lapper sourcecode. And as a non-programmer, it was/is a struggling to get the code working.
But it was/is very learnable and fun todo. I know a littlebit more about C#.
For example: To request InsimVersion 7.
To get data from the newest packets, lapper must request the latest insim version, version 7 in this case. I have changed the code many times. Also i have checked other library's how they request the insimversion. But lapper is completely differend.
i have sent Gai-Luron a PM, to take a look. but no response yet.
Those Turn markers are already grouped: 'All_Markers'. Maybe i should rename it to 'All_TurnMarkers'
Edit:
After some testing with the "Scenery objects" ( $DetectHitObject = "All_Objects").I have noticed that some objects are defined as Scenery Objects or as a normal AutoX objects, like cones for example.
You should get a message from all "AutoX objects" on the track.
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.
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
Is it nessesary to have that Var? otherwise i delete it.
Edit: I have fixed the value of the $Object_X and $Object_Y.
It displays now a correct value, instead of a high unknown value.