Stunts Forum

Stunts - the Game => Stunts Related Programs => : Erik Barros May 25, 2023, 04:42:44 +02:00

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