Comments (1)
Some notes on this.
We only have MandatoryPitDone info for the player car but not for everyone else, thus we would need to figure out if a car served mandatory pit ourselves, eg we need to figure out what a car did in the pits.
There are three aspects of mandatory pitstops: pit window, driver change and tyre change. But we don't actually have any information about which of these are required at a given session. Now assuming that we would have that data there are still some issues. I think we can figure out first two parts of the mandatory pit requirements. We do have pit window time and length from the shared memory data, so we can figure that part out. Similarly we do know which driver is in the car. However if the car actually changed the tyres is more tricky.
We do know if the car is in the pitlane and if it served a penalty (to be more precise we receive a message if the penalty was cleared). From the car's speed we can figure out when it's stopped, but we don't know if it is actually stopped in it's pitbox or not (this info is only available for the player car), which is another issue. We also know that a tyre change takes 30s, so if the pitstop is shorter than than, we know there couldn't have been a tyre change but we if a car did some repairs it can have a pitstop longer than 30s without changing tyres and thus we cannot be certain.
So in summary I think this would become feasible if we get some extra data from ACC, either directly the number of served (or left to be served) mandatory pitstops or which components are required and what the car actually did in the pits.
from klplugins.dynleaderboards.
Related Issues (17)
- Wrong overall order when starting SimHub mid session HOT 4
- Leaderboard rotation resets to default HOT 2
- PartialRelativeClass shows N-1 position ahead instead of N
- Save leaderboard configs separately
- Request: Valid lap status HOT 3
- Gaps on track HOT 16
- full name not working HOT 1
- Suggestions for enhancement HOT 9
- First time init doesn't create config if game is not ACC, but does throw an error on Simhub start
- Generate lap data for Valencia HOT 5
- Add penalties info HOT 1
- after an acc 1.9.0 update position for each car is -1 HOT 4
- Add backup gap calculation if proper lap data is not available
- Best Lap Sectors = Last Lap Sectors, and Position Overall Start = -1 for all cars on race restart HOT 2
- Generate lap data for Red Bull Ring
- Other Game Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klplugins.dynleaderboards.