Skip to content

thomvhout/LimAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a server manager for the popular racing simulator Assetto Corsa. Gaining insight into player driving- and racetrack statistics is the goal of this project.

If you're not looking for race results analysis, checkout this server manager made by JustaPenguin.

Screenshots

Track Selection

Overview

Features

  • Change track
  • Start/stop server
  • HTTPS support
  • View race results
  • User accounts

Files

 LimAC
 |-- config.py
 |-- content/                           
 |   |-- manager.py                         → Manages Assetto Corsa's race server
 |   |-- runner.py
 |   `-- server/                            → Assetto Corsa server itself
 |-- plotlyflask/                           
 |   `-- plotlydash/                        → Web server

Setup

Prerequisites

  • Linux
  • (Tested with) Python 3.10
  • Openssl (optional)

Step By Step

Create a Python venv:

$ python -m venv venv_site
$ . ./venv_site/bin/activate
$ python -m pip install --upgrade pip
$ python -m pip install -r requirements.txt

Setup SSL certificate (optional):

$ openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365


Note: When using no certificates (a.k.a. skipping this step), it is required to edit wsgi.py and change ssl_context=('cert.pem', 'key.pem') to ssl_context='adhoc'.

Copy the server from Assetto Corsa's installation to ./content:

$ cp [...]/SteamLibrary/steamapps/common/assettocorsa/server ./content -r

Generate track perviews for the website:

cd scripts
./gen_all_track_previews.sh [...]/SteamLibrary/steamapps/common/assettocorsa

Running

$ python wsgi.py Start the web server.

Then also launch the race server manager:

$ cd content
$ python manager.py

Now you can checkout the website on https://127.0.0.1:8050, the server is available in-game on port 9600.

Progress

  • Update package versions in requirements.txt
  • Track preview generation: Fix large tracks not showing

Server Runner

Website

  • Intergrate into Flask for HTTPS support
  • Upload mod:
    • Detect track/car/unsupported
  • Support running without Flask to regain the Dash web debugger

Security

AC Server

  • Add SOL weather support

About

Management & race analysis for Assetto Corsa servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors