• “Just being a mediocre driver has never been my ambition. That's not my style” ― Michael Schumacher
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Guest. Follow RaceDepartment on Twitter, Facebook, Instagram, Twitch, Steam and YouTube.

App : Blue Flag

Discussion in 'Assetto Corsa' started by Fernando Deutsch, Sep 23, 2014.

Thread Status:
Not open for further replies.
  1. Fernando Deutsch

    Fernando Deutsch

    Messages:
    517
    Ratings:
    +261
    Hi all,

    The goal of this application is provide a mechanism to notify the driver of the proximity of another driver that is close to lap him. This is a very simple application and is my first attempt to develop a Python application on AC.

    As any other AC python app, you just extract the contents to your assetto corsa folder, typically, C:\Program Files (x86)\Steam\SteamApps\common\assettocorsa

    The application can be fine tuned modifying the config file located at apps\python\ferito-blueflag\config\ferito-blueflag.ini . The default configuration is good enough to provide an acceptable notification.

    [settings]
    splineThreshold = 0.05
    speedTriggerThreshold = 40.0
    distanceThreshold = 40000.0
    updateThreshold = 1.0

    - updateThreshold is how frequent the application check for cars close to lap. Lower values means more frequent updates, but may consume more CPU. I have not seen a significant use of CPU required so far.
    - speedTriggerThreshold is the minimum speed, in KPH, a car has to have to be considered as a trigger of a blue flag. This helps to avoid get notification of parked cars or cars driving through the pits. I am not sure if 40kph is the pit speed for all cars and all tracks.
    - splineThreshold is the required distance between the lapper and the lapped cars that will trigger the blue flag. Actually this is a first part check for car proximity. Internally in AC, the NormalizedSplinePosition is a normalized value (0 - 1.0) that represents were the car is located related to the start finish of a lap (0 just after the finish line and 1.0 just before it). This measure is used but is not the definitive one as different tracks has different distance and the range of value can represent diferent distances, which is not desirable.
    - distanceThreshold is the minimum distance, which I think is in mm, between cars that will trigger a blue flag. The distance between cars is more consistent than the NormalizedSplinePosition, but seems the second is faster to get from the AC API and has a better representation of where the car is in terms to finish a lap.

    You can download the app from the downloads section:
    http://www.racedepartment.com/downloads/ferito-blueflag.3402/

    Issues, troubles, comments, please lets keep them on this topic. I am not responsible of any damage this app can do to your hardware or software. If you use it, is by your own risk. Keep in mind this is a beta, a work in progress.

    Fernando
     
    Last edited: Sep 23, 2014
    • Winner Winner x 5
    • Like Like x 1
  2. Franco Grigoletti

    Franco Grigoletti

    Messages:
    19
    Ratings:
    +0
    Thanks Fernando
    May be it's my thanks that you were so quick to make the app.........;)
    franco
     
    • Love Love x 1
  3. Ryan Ogurek

    Ryan Ogurek
    Premium

    Messages:
    2,211
    Ratings:
    +1,378
    Great app! Thanks Fernando!
     
    • Love Love x 1
  4. Fernando Deutsch

    Fernando Deutsch

    Messages:
    517
    Ratings:
    +261
    Lol, Franco. :D

    Well, this is something that we need and probably will be handy for online league racing. I have been on the situation of being lapped on AC and is not easy to read where are you at the race. So hope this app make life easier to all.
     
  5. Fernando Deutsch

    Fernando Deutsch

    Messages:
    517
    Ratings:
    +261
    Don't forget to post any issues you may find with the app.
    I am working on a proof of concept of a leaderboard that works on multiplayer. I found a way to calculate the deltas between cars, and while is not perfect, I think is good enough to show in realtime how far is everyone.

    ferito-leaderboard.png
     
    • Like Like x 3
  6. Ryan Ogurek

    Ryan Ogurek
    Premium

    Messages:
    2,211
    Ratings:
    +1,378
    That would be excellent!
     
  7. Bokonon

    Bokonon

    Messages:
    163
    Ratings:
    +55
    Good job, will test tomorrow, I think the previous comment that it would be good for league races is pertinent though, not so useful for public servers as it is a voluntary dl. Hopefully the devs will see your work and integrate it into the main install, or at least a version of. niagA sknahT
     
  8. Jempy

    Jempy
    Premium

    Messages:
    824
    Ratings:
    +237
    Here's a better screenshot of the app in game, done by a league mate.

    I must admit I saw your app first and found it not interesting due to the fact it was badly presented by your screenshot.

    So I wish now to apologize and give a good image of your work:


    [​IMG]

    Now I may say ... many thanks for that starting app which I will follow with interest. :thumbsup:
     
    Last edited: Sep 24, 2014
  9. Ricoow

    Ricoow
    RedShift Racing RDLMS #6 Premium

    Messages:
    3,538
    Ratings:
    +1,112
    Maybe add a toggle button that toggles between showing just a blue square (maybe slightly rounded edges :p) and the way it is now? :)
     
  10. Chris

    Chris
    Administrator Staff Premium

    Messages:
    9,440
    Ratings:
    +5,820
Thread Status:
Not open for further replies.