Skip to content

andreasntr/acc_race_direction

Repository files navigation

acc_race_direction

If you have organized at least one race with live stewarding, you would know that checking the whole pack of cars to look for incidents is not easy. In endurance races, it's easier because each team has at least one driver who can report directly to the Race Control, but that's not the case for single-driver races. Indeed, they can't drive and report accidents at the same time. That's why I built an automatic incident reporting system for ACC which detects every contact, the lap in which it happened and the cars involved.

accidents

Moreover, you can select a penalty as showed

penalty

and also get the admin commands to assign that penalty.

suggestion

Also, the VSC (virtual safety car) tab allows you to choose a speed limit and get the amount of time each driver is driving over the limit, to punish those who don't comply to VSC rules.

vsc

How to use it

  • Default ports are 9000 and 9003 (the first one is the broadcast port of the game) and default connection password is blank but can be edited from the config.json file*. Please notice that they password must match those set for the entire game, info here;
  • Start an ACC session (offline or online);
  • Double click on acc_race_control.exe;
  • Wait for the "Connected" status in the top-right corner;
  • In the Accidents tab, the lap number is that associated with the first of the listed cars.

* If this is you broadcasting.json

{
  "updListenerPort": 9000,
  "connectionPassword": "aaaa",
  "commandPassword": ""
}

your config.json must be:

{
    "ACC_PORT": 9000,
    "SERVER_PORT": 9003,
    "IP": 127.0.0.1,
    "PASSWORD": "aaaa"
}

Known limitations: sometimes ACC logs may be inconsistent so accidents with only one car may be showed or more than two accidents may be grouped. In the first case, if the car to penalize is not in the list, just type in its number. In the second case you would need to look at the given lap for all the listed cars. Sorry for that, there's no other way to group cars other than by timestamp for now.

IMPORTANT

  • The broadcasting port must be set (instructions here) or the program will not work;
  • An ACC session (online or offline) must be open in the game or the program will not start.

Feel free to post a pull request if you have a better way to manage things (and also improve the UI, since I'm not expert in GUI programming or frontend coding) or open an issue to report bugs.

Building from source

If you want to build the program from source, use pyinstaller with the following command: pyinstaller --noconfirm --onefile --windowed --icon "your_local_path/acc_race_control/flag.ico" --add-data "your_local_path/acc_race_control/consts.json;." --add-data "your_local_path/acc_race_control/flag.png;." "your_local_path/acc_race_control/acc_race_control.py"

Donations

If you find this tool useful you can donate to support the project at https://paypal.me/andreasntr

About

Spot accidents, get penalties commands to apply them and monitor VSC speed infrangements

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages