News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Wiba - Calculation tool

Started by Erik Barros, May 25, 2023, 04:42:44 AM

Previous topic - Next topic

Erik Barros

I would like to share a tool I developed to calculate the times needed with each car to reach the leader of the race. Source code and more info is on my github. I need to thank @Duplode and @alanrotoi for their help in the process of creating the tool.

https://github.com/aerikbarros/wiba/releases/tag/1.0b

Daniel3D

Can you use it for any current time on the scoreboard? Since the time to beat nr1 is not really useful for me.
But CAS has a similar style as I, I sometimes can beat him..
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Argammon

Quote from: Erik Barros on May 25, 2023, 04:42:44 AMI would like to share a tool I developed to calculate the times needed with each car to reach the leader of the race. Source code and more info is on my github. I need to thank @Duplode and @alanrotoi for their help in the process of creating the tool.

https://github.com/aerikbarros/wiba/releases/tag/1.0b

Great work! Is it possible to integrate the tool into the website?  :)

Erik Barros

Quote from: Daniel3D on May 25, 2023, 12:16:39 PMCan you use it for any current time on the scoreboard? Since the time to beat nr1 is not really useful for me.
But CAS has a similar style as I, I sometimes can beat him..

yes it is possible, I am thinking of a version that receives information from everyone in the table and from which to choose which competitor to make the comparison.

Erik Barros

Quote from: Argammon on May 25, 2023, 02:53:34 PM
Quote from: Erik Barros on May 25, 2023, 04:42:44 AMI would like to share a tool I developed to calculate the times needed with each car to reach the leader of the race. Source code and more info is on my github. I need to thank @Duplode and @alanrotoi for their help in the process of creating the tool.

https://github.com/aerikbarros/wiba/releases/tag/1.0b

Great work! Is it possible to integrate the tool into the website?  :)

I wrote this program in Python, I could make a frontend to display the results or embed it in some existing website

Cas

In case of integration, I'm thinking the site could remember which cars we tend to prefer and, based on the bonuses and the user currently logged in, suggest one to three cars and what lap time you need to get to the next pipsqueak in the scoreboard (to you) and the one following
Earth is my country. Science is my religion.

Daniel3D

I thought more like. A button on every scoreboard line. When you press it you get a pop-up or field below the scoreboard with the list as shown above for each car in relation to the chosen replay.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

I think something of that sort had been proposed some time ago. Say, you select a car and the page reloads, then, on hovering on top of the lap times, you can see the equivalent lap with the selected car
Earth is my country. Science is my religion.

dreadnaut

Quote from: Cas on May 26, 2023, 10:41:02 PMI think something of that sort had been proposed some time ago. Say, you select a car and the page reloads, then, on hovering on top of the lap times, you can see the equivalent lap with the selected car

I'm hesitant adding even more tables to the scoreboard page, but I'll think about alternatives. There is probably a decent visualisation that can show similar details 🤔

Cas

Quote from: dreadnaut on May 28, 2023, 11:20:42 AMI'm hesitant adding even more tables to the scoreboard page, but I'll think about alternatives. There is probably a decent visualisation that can show similar details 🤔

Yes, I would be too. Maybe something that would lead to a separate page for that purpose so that the site itself doesn't get too convoluted.
Earth is my country. Science is my religion.

Erik Barros

I've updated the code, now it's possible to get the time of anyone in the scoreboard. It has a compiled version for windows, it is no longer necessary to open it at the prompt.

Cas

Very neat!  That's really useful! :)
Earth is my country. Science is my religion.