@RJ80F1 wrote:
Is there anyway of telling the difference between a Sprint and a Race.
Both are m_sessionType of 10, and you can't really tell that I've seen which it is apart from hardcoding the lap count vs track and telling from that as long as none of the race %ages overlap.
Or at very least whether a pitstop is required in the race or not if it stays dry.
It would also be useful being able to tell in practice sessions what the following sessions are going to be.
From what I remember what the custom HUDs do, you could potentially check the weather forecast packets to find Sprint Weekend and Normal Weekend - for sprint weekends, there should be sessionType 10 and 11 described (with 10 being Sprint and 11 being Main, which converts to 10 later on because logic). Otherwise, there is no real way to differentiate between Sprint Race and Main Race.
Regarding mandatory pitstop, I could see some potential for the UDP value in the future here - especially useful for F2 when they have mandatory pitstops also and whether they count or not.
Hopefully the answer makes sense as I am writing this at 2 AM.