Stunts Forum

Stunts - the Game => Stunts Related Programs => Topic started by: Erik Barros on May 25, 2023, 04:42:44 AM

Title: Wiba - Calculation tool
Post by: Erik Barros on May 25, 2023, 04:42:44 AM
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
Title: Re: Wiba - Calculation tool
Post by: Daniel3D on May 25, 2023, 12:16:39 PM
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..
Title: Re: Wiba - Calculation tool
Post by: 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?  :)
Title: Re: Wiba - Calculation tool
Post by: Erik Barros on May 25, 2023, 06:38:57 PM
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.
Title: Re: Wiba - Calculation tool
Post by: Erik Barros on May 25, 2023, 06:40:57 PM
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
Title: Re: Wiba - Calculation tool
Post by: Cas on May 26, 2023, 05:20:18 AM
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
Title: Re: Wiba - Calculation tool
Post by: Daniel3D on May 26, 2023, 12:39:40 PM
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.
Title: Re: Wiba - Calculation tool
Post by: Cas on May 26, 2023, 10:41:02 PM
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
Title: Re: Wiba - Calculation tool
Post by: dreadnaut on May 28, 2023, 11:20:42 AM
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 🤔
Title: Re: Wiba - Calculation tool
Post by: Cas on May 28, 2023, 11:14:11 PM
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.
Title: Re: Wiba - Calculation tool
Post by: Erik Barros on June 08, 2023, 07:14:19 PM
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.
Title: Re: Wiba - Calculation tool
Post by: Cas on June 09, 2023, 05:27:29 PM
Very neat!  That's really useful! :)