Adrellias / PyAccEngineer

Set pit stop strategy remotely in Assetto Corsa Competizione and basic live telemetry for teammate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyAccEngineer v1.5.9

Table of Contents

  1. Installation
  2. Usage
  3. Useful info
  4. Donate

the app

For more images here

Installation

  • You need Python 3.8 or 3.9 installed (don't use 3.10 it has problem installing some modules), preferrably anaconda or python
  • Check the box ADD TO PATH while installing Python
  • Download the zip file from the Releases page or use git: git clone https://github.com/rrennoir/PyAccEngineer.git --recursive
  • Install the required Python modules by running the InstallModules.bat or InstallModules.ps script. However .bat is recommended since it doesn't have the limitation by default

For server host only, client doesn't need to open anything on their router.

  • Open TCP and UDP port (4269 for TCP and UDP are the default) for incoming connections

Example of opening port for 4269 on both protocol (TCP and UDP)

port_forwarding_example

Usage

Open the app

  • Use the StartApp.bat / StartApp.ps1 script

Possible problems

How to use it

  • One user starts "As Server" and others connect to it
  • [OPTIONAL] Choose the same username as in ACC ("name surname"), so that the user driving can be recognized and will be highlighted in green.
  • Update values will refresh the information on the strategy page to the lastest value in game (mfd page)
  • Set Strategy will send a command to the user who is currently driving and set the strategy accordingly

Run the server as headless (dedicated server)

Simply run the headless_server.py, default port is 4269 (TCP) and 4269 (UDP). Or use the command line switches -u or --udp_port to change the UDP port and -t or --tcp_port to change the TCP port. To change both port at the same time use -p or --port

# sets both UDP/TCP ports to 4275
python headless_server.py -p 4275
# sets ports for UDP to 4270 and TCP to 4269
python headless_server.py -u 4270 --tcp_port 4269

To stop the server simply press ctrl C in the cmd / powershell / windows terminal

Warnings

  • Tyre change must be on before the strategy setter is started
  • At least one pit strategy must be set or different from the default
  • When the strategy setter is started the driving user shouldn't alt tab (duh)

Will you control my PC for other things ?

No and if you don't trust me just read the code ๐Ÿ˜‚

Donation

If you have too much money you can donate here ๐Ÿ˜Š (and now gop will stop asking for a donate link ๐Ÿ’)

About

Set pit stop strategy remotely in Assetto Corsa Competizione and basic live telemetry for teammate

License:MIT License


Languages

Language:Python 99.4%Language:PowerShell 0.5%Language:Batchfile 0.1%