progklb / assetto-corsa-lap-logger

Mods for Assetto Corsa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assetto Corsa Lap Logger

A lap-logging app for Assetto Corsa.

When active the app will record lap times for the current track-vehicle combination, allowing you to analyse your improvement over time in a particular vehicle on a particular track.


Features

(Theoretical. Many of these are goals for the future.)

Features of in-game app:

  • Recording of track-vehicle combination lap times.
  • Recording of additional information (track conditions, vehicle setup) for in-depth analysis.
  • Displaying previous laps for immediate comparison in-game.

Features of viewer app:

  • Viewer app for graphing lap times.
  • Ability to compare different setups and conditions.
  • Ability to compare different vehicles on the same track.
  • Live update via database web hooks, allows user to display the app on a separate screen and view up-to-date information.
  • Possible mobile companion app that mimics to the desktop app.

App

Usage / Notes

The app displays a custom in-game HUD when active.

For each track-vehicle combination, a log file will be generated at the location assettocorsa/apps/python/laplogger/logs and session information will be written to this log. Logs assume the naming format of vehicle_name - track_name - tracK_layout.

The header of the file identifies the session configuration, while the bulk of the file is dedicated to recording lap details. For example:

Filename: bmw_z4_gt3 - ks_nurburgring - layout_gp_b

car: bmw_z4_gt3
track: ks_nurburgring
config: layout_gp_b

{'time': 135776, 'invalidated': False, 'lap': 1, 'splits': [47536, 46472, 41768]}
{'time': 125238, 'invalidated': False, 'lap': 2, 'splits': [39054, 44658, 41526]}

TODO: This log can then be visualised as a graph in order to inspect lap splits/times.

Logging

There are two kinds of AC log commands available:

  • ac.log which logs to py_log.txt. This persists after the session is ended.
  • ac.console which logs to log.txt and is available via the console (Home key) in game. This persists only while running.

By default, console logs are located at C:\User\My Documents\Assetto Corsa\logs

TODO: Replace with an image containing only the Lap Logger app.

Image

Installation

In order to install:

  • Merge the folder assettocorsa with the assettocorsa game folder. This will place the app script at the correct location.
  • Ensure that the app is enabled in game.

Troubleshooting:

  • Insect the logs should any issue occur (see Logging section)

Credit

Thanks to assettocorsamods for:

About

Mods for Assetto Corsa.

License:The Unlicense


Languages

Language:Python 100.0%