Murleen Posted June 3, 2018 Posted June 3, 2018 Hi all, Having just flown a PWCG mission with text logging turned off (and preferring to spend hours coding rather than 45min reflying the mission...), I've just created a little utility which can parse the .mlg files in the data/FlightLogs directory and generate the equivalent text missionReport files, which other tools can then read. Get it here: https://github.com/Murleen/mlg2txt/archive/v1.0.zip The script is written in Python, so you'll need to download and install a Python 3.x version from https://www.python.org/downloads/windows/. To run, use py mlg2txt.py <paths to mlg files> By default, a single txt file will be generated for each mlg file. The actual game will generate the files in chunks as the mission progresses. Adding the --split option will replicate the game's behaviour and generate multiple txt files. The --output option can be used to specify where to put the generated files. If not provided, they will be written to the current directory. One thing to note about the mlg file generation in the game is that they appear to be written when the mission is finished. This means that if the game crashes, no binary log is provided (while the text logs, as they're written in chunks, will be present). 1 2 1
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