@oosbn3x4q97a wrote:
This works now.
Trying to build a Python Wrapper.
When testing, I spectate random multiplayer games and when building my SessionPacket, I'm either not receiving some data, or I am formatting wrong.
from OP's UDP specification
int8 m_trackTemperature; // Track temp. in degrees celsius
In my script
tracktemperature = rawutil.unpack("<b", udp_packet[21:22])
I keep receiving the number "0"
Is this due to bad format, or is data limited to spectators?
It seems to be working for me as a spectator. Which m_TrackTemperature are you looking at - the main one at byte 26 (this is the one I checked) or one of the values in m_weatherForecastSamples?
I'm not familiar with Python, but if the [21:22] relates to the byte position in the packet then you're still inside the header at that point, might be irrelevant.