Jump to content

gparent

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

7 New Car Smell

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. gparent

    F1 2020 UDP Specification

    Please drop the attitude. If you're a good developer, you actually update your documentation more than once every 3 years. While of course forum users need to search, there's literally 0 reason whatsoever why we would need to read three year's worth of history instead of just having the reason summarized in the original topic. There's no need to defend the obviously outdated and broken documentation that was shipped with 2020, copy pasted mostly from 2019.
  2. Because you're a child who enjoys messing people's virtual racing. That's about 80% of the races in Unranked, and they usually run with reduced damage.
  3. gparent

    F1 2020 UDP Specification

    When you receive the LapData packet, loop over the vehicles and use the m_carPosition member to determine who is first. I store that in a list that I create beforehand. In Python: positions = [*range(22)] def _car_lap_data(lap_data_packet): for vehicle_index, vehicle_lap_data in enumerate(lap_data_packet.lapData): positions[vehicle_lap_data.carPosition - 1] = vehicle_index # positions[0]'s value is the vehicle index of the pole position. # positions[1] is 2nd place's vehicle index
  4. gparent

    F1 2020 UDP Specification

    The values for F2 compounds are incorrect (they were incorrect in 2019 as well) Actual compounds: 11 = super soft, 12 = soft, 13 = medium, 14 = hard, 15 = wet Visual compounds: 15 = wet, 19 = super soft, 20 = soft, 21 = medium, 22 = hard
  5. gparent

    F1 2020 UDP Specification

    +1 for the second point. I had to get those myself in the previous game and both the actual and visual compounds differed between F2 2019 and F2 2018.
  6. gparent

    F1® 2020 | UDP Specification

    No worries and thanks a lot for providing the values.
  7. gparent

    F1® 2020 | UDP Specification

    The team IDs are in the appendix already, at the bottom of the third column.
  8. gparent

    F1® 2020 | UDP Specification

    Looking at the definition for WeatherForecastSample, it has a time offset in minutes. So you would get N forecast samples (up to 20), and then you could tell with the offset when they are supposed to apply. I'm really happy to see penalties broken down in this way. I'm also hoping that spectators can now receive events like fastest lap and all of the other events they do not receive in 2019. Thanks for the good work. EDIT: Here are some suggested fixes: uint32 and double are missing from the types In *CarSetupData*, the comment for the m_rearAntiRollBar field refers to the front anti roll bar. In *PacketMotionData*, the fields for m_angularAccelerationX, Y, Z refers to velocity rather than acceleration. Driver 34's name is Wilhelm Kaufmann
  9. gparent

    F1 2019 UDP Specification

    I know this is an old post but nationality 87 is Barbados (ISO Numeric Code 052) Also it seems you do not get event packets unless you are a participant of the race. You will get DRSE, DRSD, SSTA and SEND, but that's it.
×