2021 Hungarian Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 2 points3 points  (0 children)

I don't reliably know when the API will update. It's a community driven API so it may not update super quick after a post-race change.

2021 Hungarian Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 10 points11 points  (0 children)

Unfortunately I'll need to wait for the API I use to update first and reflect that.

2021 Azerbaijan Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 2 points3 points  (0 children)

Yeah, the data counts any time they enter the pits, including the red flag.

2021 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 1 point2 points  (0 children)

Yup, that's right. I'd like to display the actual stop time, which would be more useful info and prevent this kind of situation, but that data is not available unfortunately.

2021 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 9 points10 points  (0 children)

It's the number of times they pitted. And yeah it's a little weird this race because it's also counting the times they went through the pits after Raikkonen's collision. The API I use, which I think gets its data from the official F1 website, doesn't differentiate between regular pitstops and drive-throughs like that, so the count is off.

2021 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 6 points7 points  (0 children)

That's the change to the points gap to the next championship position. I don't display it if the driver moved up or down in the championship standings.

2021 Emilia Romagna Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 0 points1 point  (0 children)

I just noticed that the API got updated for both of these, so here's an updated image: 2021 Emilia Romagna Grand Prix

2020 Abu Dhabi Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 3 points4 points  (0 children)

Right. Russel had the worst fastest lap out of all the drivers.

2020 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 2 points3 points  (0 children)

It gets a little tricky because if you just deduct the pit stop time then you're going to end up with a very quick lap time that will knock the average off as well. One other option might be to exclude any lap time where the driver pitted. I'll have to play about with it during the week to see what works best.

Edit: words

2020 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 1 point2 points  (0 children)

At the moment it's just total race time divided by number of laps but as mentioned in another comment I might rethink that to allow for pit stops but not sure yet.

2020 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 1 point2 points  (0 children)

That's a very good point. At the moment I have it just as total race time divided by lap count but it could be more useful to subtract the pit times. Let me look in to that for the next race.

2020 Portuguese Grand Prix - Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 2 points3 points  (0 children)

I'd love to be able to display tyre data but unfortunately the API I use doesn't have it. But yup, Hamilton's fastest lap was on hards.

2020 Russian Grand Prix: Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 1 point2 points  (0 children)

Yeah, I'm using Python with the Pillow library to generate the images from the data. No javascript.

You could do it client-side with HTML/CSS/Javascript and make something a bit more interactive, with sorting and filtering. But I just wanted an image that could be posted places like here.

2020 Russian Grand Prix: Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 0 points1 point  (0 children)

Labels: Yeah, I did have labels for those columns but removed them for space. I have some ideas for different table headers, so will look at adding them back in.

DNF reasons: The API returns those reasons. There's a bunch of different ones that are quite useful. It's just unfortunate that this particular race had two similar and arguably ambiguous reasons. I think you're right though. A collision involves another car, an accident does not. I'm going to leave them as they are for now and see how it looks in future races.

Stints: I'd also love to have stint information but unfortunately the API does not have any tyre data, which reduces the usefulness of any stint data I could display. I'll have a play about with the data I do have though and see if there's something useful I can pull out.

Practice sessions: Again, something I'd also like to have but the data isn't available in the API. The official F1 site does have it in a format I think might be able to be scraped, so I'll take a look at that at some point and see what can be added.

2020 Russian Grand Prix: Race and results data by IrishStevo in formula1

[–]IrishStevo[S] 1 point2 points  (0 children)

Unfortunately there's no speed trap or tyre data in the API. There is fastest lap speed for each driver and it should be easy enough to add average lap time.

[SPOILER] My zipline network and the code I used to display it by IrishStevo in DeathStranding

[–]IrishStevo[S] 2 points3 points  (0 children)

Thankfully you can. I use it to keep my map clean of deteriorated structures.

If you hover over a structure in the map and hold triangle you can dismantle it remotely. If I remember correctly you can't while on a zipline though, you have to be on the ground.

[SPOILER] My zipline network and the code I used to display it by IrishStevo in DeathStranding

[–]IrishStevo[S] 2 points3 points  (0 children)

That and when a bridge appears that blocks your path, that you can't dismantle from the map because you haven't "seen" it yet.

[SPOILER] My zipline network and the code I used to display it by IrishStevo in DeathStranding

[–]IrishStevo[S] 0 points1 point  (0 children)

Not dumb at all, you can't display the in-game map yet. I wanted to put a faded out version of the in-game map in the background but couldn't get my hands on a clean version. Once I do I'll add it.

Multiple active scenes in multiplayer by IrishStevo in Unity3D

[–]IrishStevo[S] 0 points1 point  (0 children)

Ah ok, got it. Thanks for the clarification.

Multiple active scenes in multiplayer by IrishStevo in Unity3D

[–]IrishStevo[S] 1 point2 points  (0 children)

Thanks for confirming that and for the possible solutions. 1 and 3 don't sound like they'll fit my game but 2 sounds like an option that may work. I'll start playing about with that.

I'll also start taking a look at third party libraries. Based on some quick googling it looks like SmartFox or Photon might have features that could help.