joshjaysalazar / iRacingSafetyCarGenerator

Software to generate custom safety cars during an iRacing race
GNU General Public License v3.0
4 stars 2 forks source link

Cars are penalized for overtaking on the way into the pits #21

Open joshjaysalazar opened 6 months ago

joshjaysalazar commented 6 months ago

Describe the bug Cars get penalties for overtaking on the way into the pits.

To Reproduce Steps to reproduce the behavior:

  1. During a safety car, have some but not all drivers pit
  2. If they're unlucky, they'll get a penalty

Expected behavior Obviously, you should not take a penalty for overtaking once you're entering the pit lane.

Screenshots N/A

Additional context This will likely be a tough one to solve. The penalty is given automatically by iRacing, and cannot be disabled. However, simply automatically clearing penalties on the way into the pits opens up too much opportunity for abuse (for example, someone could intentionally overtake a bunch of cars to be first into the pits and get away with it), and the SDK doesn't appear to offer the data on whether or not a car has a black flag at any given point, much less what kind of penalty it is. This is definitely an issue worth brainstorming, though, because it's frustrating for drivers who get penalties for doing nothing wrong. On one hand, that's just iRacing. On the other, if there is a solution, it should be explored.

joshjaysalazar commented 1 month ago

I've updated this to be looked at for the v0.2 release, as it's going to be a complicated one to tackle, and trying to add it to the v0.1 release is going to delay is significantly.