struct NodeLap // Car info in 6 bytes - there is an array of these in the NLP (below) { word Node; // current path node word Lap; // current lap byte PLID; // player's unique id byte Position; // current race position : 0 = unknown, 1 = leader, etc... };
struct IS_NLP // Node and Lap Packet - variable size { byte Size; // 4 + NumP * 6 (PLUS 2 if needed to make it a multiple of 4) byte Type; // ISP_NLP byte ReqI; // 0 unless this is a reply to an TINY_NLP request byte NumP; // number of players in race
NodeLap Info[32]; // node and lap of each player, 1 to 32 of these (NumP) };
Thanks for your reply!
1) x0C is 12 and is perfectly fine as (4 + 6*1 + 2).. or am i missing something?
2) well, the InSim.txt says otherwise this might be one of the new features.
3) the problem is that byte 'position' is always zero.
This is very confusing. First I thought the problem was my app, but I checked, and the packet analyzer shows, that the rest of the packet is perfectly ok. For example an IS_NLP: ( 0C 25 00 01 24 00 03 00 04 00 00 00 ).
Tested on W43 and W47, with 1-6 players - same thing.