PDA

View Full Version : UDP questions



Maskmagog
30-12-2018, 10:37
I'm working on a leaderboard project for consoles. It currently runs on a Raspberry Pi, and it reads UDP (laptimes etc) and stores everything in a database on the Pi. It also scrapes leaderboards from cars2-stats-steam-page, so now I can see my laptimes mixed with the PC players! Console leaderboards on a per car/track-combo, pretty awesome actually! We're looking at moving as much as possible of it to Azure, so that everyone uses the same db.

Now the questions. The scraper script obviously gets laptimes etc, but also Setup (Default/Custom), Controller (Wheel/Gamepad/Keboard) and Camera (In-car/External). Is there anyway to get/guess these things from UDP?

There's a Joypad and a Dpad field in the UDP. Could one assume that if they are null during the lap, that the player uses a wheel? (Excluding keyboard players, sorry!)

Is there something in the UDP that could reveal that a custom setup is used?

All theories welcome!

Killg0re NL
30-12-2018, 15:28
I am working aswell on an UDP project, when i find something you can use i will let you know.

I am currently struggling with the floats in Arduino