• Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning old domain name stealing credentials

  • Special Server Maintenance

    Just when you think you have everything running some what better...

    You get a message from the Hosting company. Short story they need to move us to a new server. I have been working with them to plan a good date for all concerned. Here is what we have come up with as a schedule.

    1. November 4th 17:00 -5UTC shut off the forums and start backup proceedures. During this time there will be no access to the forums or the Resource Section.
    2. November 5th Continue with Backups and download same until complete.
    3. November 6th 7:00 turn over server to hosting company to move system to new server
    4. November 7th - 8th restore backups and upgrade forum software.

    If all goes well we should be back online on November 8th.

    To keep you updated we will post updates on AVSIM forums.

    Thank you for your support.

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
9
Views
495
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from RichNagel

Back
Top