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.
(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.
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.
There are two kinds of AC log commands available:
ac.log
which logs topy_log.txt
. This persists after the session is ended.ac.console
which logs tolog.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.
In order to install:
- Merge the folder
assettocorsa
with theassettocorsa
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)
Thanks to assettocorsamods for:
- The link to Giovanni Romagnoli's AC Python API documentation.
- A fantastic onboarding tutorial to modding in AC.