Alun Hancock [AH], Roddan Neotoma [KRT] || Phoenix BSE (Unofficial) Discord || Phoenix BSE (Official) Discord
QUICK SCROLL DOWN:
Outlook Button to save turn emails as Text files.
Turn Sorter application to sort text files into fleet or position folders.
Scout Patrol application to generate system scanning orders.

QUICK REFERNCE GUIDES:
Common Defences list of items that do not need a blueprint to manufacture.
Complex Build Requirements includes restricted knowledge items.
XML Download Instructions to help download inventory lists and knowledge Tech Manuals.
Naming Guide of Greek letters, Roman numerals and Viral pathogens (right-click the link and SAVE AS to get the correct formatting).

DOWNLOADS:
Phoenix Master Control - Excel.xls file with many tables and features [June 2020]
Phoenix Core Peripheries Map - map of the Public systems in jpg format [May 2020]
Phoenix Total Map - Excel.xls sheets of each of the Public peripheries [May 2020]
Starbase Reference - Word.doc file of useful starbase references [August 2019]
Outlook Macro Button
Outlook Button - Save Email as Text File
Here are some instructions and code to put a button on your outlook toolbar that allows you to bulk-save your Phoenix email turns as plain text files to your machine.

Open Outlook, and click File > Options to bring up the options panel. From the Panel, select Customise Ribbon on the left navigation list and then tick the box to enable the Developer toolbar on the right-hand list. Click OK to close the options.
Outlook Options, Developer Toolbar

From the ribbon toolbar you should now have a Developer tab, where you click on Macros to open the next menu, or press ALT+F8 to open the macro menu.
Enter a name for the Macro in the top box, and click Create to open the code window.
Outlook Macro, Create new macro

Copy the following code block and paste it into the Code window.
You should change the value of "Const sPath =" to the location of where you want to save your text files. Make sure it ends with the correct slash \
	'OUTLOOK MACRO to bulk-save the contents of a mail folder as plain text files. Uses the Subject as the Filename.
	'By Alun Hancock, June 2022
	Option Explicit
	Const sPath = "D:\Users\Alun\Desktop\Phoenix\TURNS Ships\"

	Public Sub SaveMessageAsTxt()
	Dim oMail As Outlook.MailItem
		Dim objItem As Object
		Dim strFolderpath As String
		Dim sName As String

		For Each objItem In ActiveExplorer.Selection
			If objItem.MessageClass = "IPM.Note" Then
				Set oMail = objItem
				sName = oMail.Subject
				ReplaceCharsForFileName sName, "-"
				sName = sName & ".txt"
				oMail.SaveAs sPath & sName, olTXT
			End If
	  Next

	End Sub

	Private Sub ReplaceCharsForFileName(sName As String, sChr As String)
	'Filename characters forbidden by Windows
		sName = Replace(sName, "\", sChr)
		sName = Replace(sName, "/", sChr)
		sName = Replace(sName, ":", sChr)
		sName = Replace(sName, "*", sChr)
		sName = Replace(sName, "?", sChr)
		sName = Replace(sName, Chr(34), sChr)
		sName = Replace(sName, "<", sChr)
		sName = Replace(sName, ">", sChr)
		sName = Replace(sName, "|", sChr)
	End Sub

Save the code and close the code editor window. Go back into the Outlook Options and Customise Ribbon again.

Set the "Choose commands from:" drop-down list to Macros, and your new macro should appear on the left-hand list.
On the right-hand side, click the New Tab button to add a new toolbar to the list. This should automatically add a group within that tab.
Ensure the new tab is ticked and rename it to "Phoenix BSE", also rename the group within that tab as desired.
With the group selected on the right-hand list, select the macro from the list on the left and click the Add button between the two lists. This should add the macro to your toolbar ribbon. You can now select the macro from the right-hand list and press the Rename button to give it a better name and select an icon.
Outlook Options, Adding a macro button

How to use the button:
Highlight the emails that you want to save as text files and press the button on your new toolbar.
The files will be saved to the location set in the "Const sPath =" section of the code, using the Subject of the email as the filename.
Emails saved to the set folder
Remember to mark the emails as read or archive them to a different folder to help manage which have already been saved and which are new.


Text result file sorter
Text results files sorter
This little application will sort your text results files (saved from your email turns) into folders for each position.
If you have sub-folders to coordinate your fleets or squadrons, it identifies where positions may be in fleet directories and moves them appropriately.
Grab the file from here > Phoenix - Turn sorting tool

UPDATE V2 (April 2023):
Added additional file formats to sort TXT, MSG, EML and HTML email formats.

ANTI VIRUS BLOCKS:
Unfortunately most things written in Microsoft Visual Studio will trigger false-positive reports of malware. Windows Defender and other Anti-Virus tools may block the download and running of this file. While its a bad idea to turn off Anti-Virus tools, you may need to do so to download the file. Once you have downloaded this you can turn the protection back on immediately.
Extract the .exe file from the zip with your extraction tool (such as the free 7-zip) and right-click the saved .exe file to check the properies for a warning box that "This file came from another computer..." and tick to unblock the file before clicking OK.
I tried using a commerically trusted certificate to build some apps and had the same problem, so it's not worth paying £500+ every year for a security certificate just to find it still gets blocked! Sorry about that but its down to Microsoft to stop triggering malware detection from anything written with their tools.

    TECHNICAL DETAILS:
  • Assumes the files are stored in the same folder as the application, and the filenames start with "Phoenix" and end with ".txt".
  • Drop the application in the same folder where you save your emails as text files (see the Outlook Bulk-Save macro above)
  • Assumes there is only one set of rounded brackets () in the filename, to contain the Position ID.
  • Try to avoid using ROUNDED () brackets in your position's names. Square [], Curly {} and Diamond <> brackets are fine.
  • Moves the files into the first subfolder it finds that has the same Position ID in rounded brackets.
  • The game doesn't allow positions to be members of two different squadrons at the same time, but if you want to duplicate your results into multiple folders then you need to run your own batch file before using this tool.
  • Recursive subfolders are allowed so you can group your positions into Squadron folders etc and this will look for embedded folders to find the position's ID.
  • You can have multiple depths of sub-folder so your turns can be in, for example, TURNS\Periphery\Fleet\Squadron\Ships\Phoenix-My_Ship(12345).txt
  • If no existing folders can be found that match the position it creates a new folder using the filename of the turn result - including the Turn/Day ID in square brackets.
  • When all else fails, make a new folder for this position on the assumption its a newly built ship or outpost.
Text file turn sorter
The Directory field shows where it is looking to find the turn files.
Files found counts how many files are identified as starting with the word Phoenix and ending with a .txt extension.
The scrolling list contains all of the files identified as Phoenix Text turns.
Simply press the "Start Sorting" button and wait for the busy hourglass icon to finish and all your turns will be moved into their subfolders.

File results after sorting
Above we see the "Angel Shipping" fleet's turns updated for today.
After pressing the Start Sorting button the files are moved within the folder for "_Angel Traders" and into the sub-folders for the individual ships.
The "Container" fleet go directly into the existing position folders in the parent directory.
There is also a "New Templar Scholar" set of results from a newly built ship, which created a new directory for that position in the parent folder.


Scout Patrol order generator
Order generator for scouting systems
This application creates a list of orders for importing to your turns, that makes it easier to scout a system for asteroids and celestial objects.
Grab the file from here > Phoenix - Scouting Tool

ANTI VIRUS BLOCKS:
As mentioned above, this is written in Microsoft Visual Studio and will trigger false-positive reports of malware. Windows Defender and other Anti-Virus tools may block the download and running of this file. While its a bad idea to turn off Anti-Virus tools, you may need to do so to download the file. Once you have downloaded this you can turn the protection back on immediately.
Extract the .exe file from the zip with your extraction tool (such as the free 7-zip) and right-click the saved .exe file to check the properies for a warning box that "This file came from another computer..." and tick to unblock the file before clicking OK.

HOW IT WORKS:
Select the ships ISR rating, the system ring you want to move into and start scouting, and the ring where you want to end scouting.
Select a maximum number of Time Units (TU) that you want to spect scanning each location and press the "Generate Orders" button.
The orders will be generated in the right-side panel where you can Copy & Paste the orders into your Nexus orders screen.
On the Nexus page for entering orders for your ship, press the Import button (down the bottom right of the screen) and paste the orders into the pop-up box, then click the Import button.

Text file turn sorter

The application will calculate the most efficient TU to use in each system ring to get a scan and then move to the next location. You can travel both outwards (low ring numbers to high ring numbers) and inwards (high rings to low rings). Once the requested scans are complete the orders will send a reminder that will appears as an alert on the Nexus page to let you know the ship has completed the list and is awaiting further orders.

Email your comments to:

This webpage is the property of Alun Hancock. If you copy this page then I place a curse upon your brain to devour your pathetic intelligence to the point where you drool snot over your keyboard and are no longer able to manage the most simple tasks (such as copy+paste). You have been warned.