• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.
Windows Notepad Combat Flight Simulator 2 "Pilot.log" Formatter

Windows Notepad Combat Flight Simulator 2 "Pilot.log" Formatter 1.0

No permission to download
This AutoHotkey macro utility ("Format Pilot Log.ahk") will format a Combat Flight Simulator 2 campaign "Pilot.log" file to be more readable after flying a campaign mission by adding carriage returns to various sections of the file using Windows Notepad.

e.g. Changes this:

-=-=-=-=-=-=-=-=-=-
[pilot info]
side=0
allegiance=3
[country.1]
rank=0
num_medals=0
[campaign.0]
campaign_name=War In The Pacific - USN
next_mission=hn1b_usn
-=-=-=-=-=-=-=-=-=-

...to this:

-=-=-=-=-=-=-=-=-=-
[pilot info]
side=0
allegiance=3

[country.1]
rank=0
num_medals=0

[campaign.0]
campaign_name=War In The Pacific - USN
next_mission=hn1b_usn
-=-=-=-=-=-=-=-=-=-

After loading a Combat Flight Simulator 2 campaign "Pilot.log" file into Windows Notepad, press CONTROL+ALT+F to format the pilot log file to be more readable.

Press CONTROL+BREAK (or right-click the utility's icon in the Windows taskbar, and then click "Exit") to terminate the utility after formatting is complete. Note: A Windows Notepad message box will start flashing in the middle of the screen when formatting is complete. Then, save the file, and then exit Windows Notepad.

Lastly, note that this utility will ALSO function for Combat Flight Simulator 2's "Events.log" files, which are generated after each mission.

Side Note: It's probably NOT a good idea to press the "CONTROL+ALT+F" formatting hotkey while the AutoHotkey macro utility is running UNLESS the Windows Notepad window is ALSO running and in the foreground/focus.

There shouldn't be any ill effects, but THIS is what the AutoHotkey macro utility is actually doing when pressing "CONTROL+ALT+F" (which can be seen in the AutoHotkey source code "Format Pilot Log.ahk" file):

-=-=-=-=-=-=-=-=-=-
Press "CONTROL+F" ("Find" in Windows Notepad)

Press "[" (type in the "[" character in the Windows Notepad find box)

Press "ENTER" ("Find Next" in Windows Notepad)

Press "ESCAPE" (close the "Find" box in Windows Notepad)

Press "HOME" (moves the cursor to the beginning of the first "[" character that is found within the file in Windows Notepad)
-=-=-=-=-=-=-=-=-=-

Then, the following is looped (until "CONTROL+BREAK" is pressed):

-=-=-=-=-=-=-=-=-=-
Press "F3" ("Find Next" in Windows Notepad)

Press "F3" ("Find Next" in Windows Notepad, advances to the next "[" character within the file)

Press "HOME" (moves the cursor to the beginning of the "[" character in Windows Notepad)

Press "ENTER" (types a carriage return in the file in Windows Notepad, moving the previously found "[" character down one line)
-=-=-=-=-=-=-=-=-=-

The key presses directly above loop over and over until "CONTROL+BREAK" is pressed.

After all of the "[" characters are found ("Find Next" in Windows Notepad), Windows Notepad will start quickly flashing a "Cannot Find" notification message box in the middle of the screen until "CONTROL+BREAK" is pressed (which terminates the AutoHotkey macro utility).

Anyhow, I'm not quite sure what would happen if the "CONTROL+ALT+F" Autohotkey macro utility hotkey was pressed with only your Windows desktop (or another program) was in focus LOL. I guess it depends on what the Windows desktop (or another program) uses for the key presses/hotkeys for "CONTROL+F", "[", "ENTER", "F3", "ESCAPE", and "HOME" (if you know what I mean).

Nevertheless, this AutoHotkey macro utility makes it A LOT easier to format your "Pilot.log" and "Event.log" files (which can contain HUNDREDS of lines) to be more readable, all without the tedious manual typing in Windows Notepad.

1.png


2.png


3.png


4.png
Author
RichNagel
Downloads
8
Views
64
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from RichNagel

Back
Top