Hi everyone,
I discovered rFactor2 Log Analyzer recently and it's an amazing tool to analyze (duh) logs and also setup custom championships (this is the feature that I'm most interested). But it's for rFactor2 and I didn't find a similar tool for Assetto Corsa.
So, I wrote a simple python app that reads Content Manager log and converts it to the rFactor2 format, so it can be used with the Log Analyzer. I've made some tests and it seems to be working fine.
To use it, follow these steps:
Hope you enjoy!
I discovered rFactor2 Log Analyzer recently and it's an amazing tool to analyze (duh) logs and also setup custom championships (this is the feature that I'm most interested). But it's for rFactor2 and I didn't find a similar tool for Assetto Corsa.
So, I wrote a simple python app that reads Content Manager log and converts it to the rFactor2 format, so it can be used with the Log Analyzer. I've made some tests and it seems to be working fine.
To use it, follow these steps:
- Install Python (I'm using 3.11, but other versions should work fine)
- Update the INPUT_PATH and TARGET_PATH variables in the config.ini file
- The INPUT_PATH should point to your Content Manager "Sessions" folder, where the CM log files are saved
- The TARGET_PATH should point to where you want to save the converted files (can be anywhere on your computer)
- Assuming you already have rFactor2 Log Analyzer installed, go to "Options" and add the folder you set the TARGET_PATH to the "Current log directories"
- You don't need rFactor2 installed to use any of these
- Now, if everything is ok, just run "process_latest.bat" to convert the latest log on the CM folder (set by INPUT_PATH)
- Or you can also edit "process_file.bat" and set the name of a specific file you want to convert (I'll try to make this more straightforward in the future)
- Using the Log Analyzer, just press the refresh button and the new converted logs should load. Then, you can check the logs, and add them as championship results. You can also set teams manually to run a constructors championship
- Right now I only read the first session in a log file, so if you set a race weekend with practice, qualify and race, you'll be able to extract only the practice info. I'll try to fix this in the future
- Assetto Corsa logs doesn't provide the same information that rFactor2, so I don't get tire and fuel usage
- Track information is also lacking. It seems the tool reads some data from the rFactor2 content files. I would need to read AC's files to get track info, like length and detailed location. I don't care much about this, but it's something that I could also check
Hope you enjoy!