Category timing compiler for MK8D speedruns.
Intro
I’ve still been speedrunning Mario Kart 8 Deluxe on the 200cc, no items category; and decided to extend my set of tools for practice and youtube uploads. If you haven’t done so, please have a look at the first part of this project.
CodeDev
The first thing I wanted to do this time was to be able to atomatically calculate the timings of the differerent categories on the leaderboards (they have differernt starting/ending points). This was fairly straightforward, given that we already had all the timings from the tracks, so it was only a matter of taking the difference between the track splits:
After doing so, a natural extension was to do a table with the history of the splits and to highlight the best splits for each category independently:
Finally, I wanted to add the timestamps for my youtube videos so I coded the routine to add an offset (that, unfortunately, has to be calculated manually):
With all of these routines in place, I know what I need and the improvements I want to make to the code, so I’ll be doing so for part 3 of this series.
Further thoughts
To the code up, I should definitely start using a pandas dataframe so that I don’t lose track of the stats and the timings and not to have to re-calculate it several times over.
Code Repo
- Repository: Github repo
- Dependencies: xmltodict, matplotlib