=FEW=N3cRoo Posted July 1, 2019 Posted July 1, 2019 Hello folks, I wrote a python script that renames recording files with information provided by the statstracking websites. To make it useable for people without python 3.6 I packed it with pyinstaller into an executeable that will run in a console what does it do rename_and_link will check specified folders for ingame, tacview and video recordings for a match inside the statstracking websites of IL-2. When a match occurs it will rename the file to a format that will ease chronlogical analysis aswell as provide a txt file. The txt will contain events inside the recording relative to the recording start aswell as the link to the log and brief description of the entire sortie. How-To-Basic configure the json: Json entries that you have to set are the playernames and Path to your recordings, this can be the IL-2 track folder or any sort videocapture. Replace the windows path specific \ with a \\ or / like any other system uses. For videocapture you may want to check your video capture format is in "supported_formats". Since i only check the metadata from the OS it makes no difference what format you are using. Do NOT add .acmi to this since its already tied to .trk files This should already be the basics you need to do and now you could run the exe and get your files renames aswell as get a .txt file with all the events in that recording and a link to the given sortie. Further customisation options In "statspages" you can modify the websites the script checks aswell as customize the prefix the script uses for the given server. If you play on a server that is not listed and has a statstracking website, you can add this aswell as long as it uses the same architecture. (note that this is not the case for TAW neither does it specify the robots.txt) "overwrite_old_renames" determines if the script ignores files with the current "name_prefix" which is the last option in the json to customize, use this if you want to change already renamed files. any of the string can also be left empty if so desired, the file names generate are setup with name_prefix + server_prefix + date + mapname + (if recordingNo > 1): recordingNo/recordingsNo of that sortie + (if kills > 1): kills in that recording/kills of that sortie "mission_name_character_limit" cuts the mission name to the given size if its longer, this can also be set to 0 Notes This script has limited support with copies of files since it utilizes creation time and modify time provided by OS metadata. In case the metadata does not allow assessment of the duration of the file the starting point inside sortie will be noted in the txt instead of events. If you want to take a look at what you are running here it was packed with Pyinstaller you can unpack with https://sourceforge.net/projects/pyinstallerextractor/ (even tho i havent tried myself) Feedback and repository https://gitlab.com/N3croo/aviatools you need to register to gitlab but the repo is public alternatively poke me on discord N3croo#9083 where do you find it? https://www.mediafire.com/file/f64ycuq6lcc7tve/rename_and_link_IL2.rar/file
=FEW=unicus Posted July 1, 2019 Posted July 1, 2019 Very useful, been using the earlier versions and its making life easier
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now