The online racing simulator
The second packet is separate from the first, there will be no information about it in the first MCI packet. So simply handle MCI packets as they arrive.
-
(Rob2003) DELETED by Rob2003 : I got it lel, sorry haha
Aren't you already handling your 1st MCI packet? The other packets will come in and be handled by the same code, nothing extra is needed.
-
(Rob2003) DELETED by Rob2003
Your car_info function will automatically be called for every MCI packet, not just the 1st one. You don't and can't get information about packets other than the current MCI packet within that function because they have not yet been received.
-
(Rob2003) DELETED by Rob2003
#4 - Racon
The last MCI packet has a flag to inform you it's the last, so you can store the data with each packet received, and then do your actions on the stored data only if the flag is set. (I don't know how that approach sits with any particular library, I reinvented the wheel Thumbs up)
Thank all of you guys so much, just found my mistake... It's one of those I should kill me moments, I deleted too much data after each mci packet.... However thanks again

FGED GREDG RDFGDR GSFDG