Galactic Core Route Plotting Program.

So I was exploring around the core and I got an idea instead of pulling out my calculator and entering the "magic number" calculation. I created this simple program in around 10 minutes and so far I have been using it and the program has been working perfectly! I have been plotting routes in under 10 seconds. I also created a steam guide on the topic.

Steam Guide (Source code and Program): http://steamcommunity.com/sharedfiles/filedetails/?id=641303969

If you find a bug message me and I will fix it ASAP!

Hope this helps fellow explorers! o7
CMDR techportal2890

Source Code (Compile in Visual Studio or something):
Code:
#include "stdafx.h" //Only include this if you are using Visual Studio!
#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
	system("COLOR 1F");

	cout << "Made by CMDR techportal2890" << endl;
	cout << "Version 2.0" << endl;
	cout << "" << endl;
	cout << "" << endl;

	float B1;
	cout << "Enter Max Jump Range Fully Fueled: " << endl;
	cin >> B1;

	cout << "" << endl;

    float B2;
	cout << "Enter Distance to Sagittarius A* in 1000ly (12k = 12): " << endl;
	cin >> B2;

	cout << "" << endl;

	float AOJ = 1000 / (B1*0.985);
	cout << "The Amount of Jumps you get with the number: " << AOJ << endl;

	cout << "" << endl;

	float R = (B1*0.985*AOJ-B2);
	cout << "Use this number to plot your route: " << R << endl;

	cout << "" << endl;
	cout << " If you do not get a plot within 30 seconds, try plotting to another system close by with a slightly different distance!" << endl;



	system("PAUSE");
    return 0;
}
 
Version 2.0!

Version 2.0! :)
Added a menu and a 500 light year route plotting tool.
Download: https://drive.google.com/open?id=0B9_tIfXHGZkEaTVtUk5qOHQ0aTA
Updated Guide: http://steamcommunity.com/sharedfiles/filedetails/?id=641303969

New Source:
Code:
 #include "stdafx.h"
#include <iostream>
#include <iomanip>

using namespace std;

int main()
{

	int Choice = 0;

	cout << "Welcome to ED Route Plotter!" << endl;
	cout << "Made by CMDR techportal2890" << endl;
	cout << "" << endl;
	cout << "(1): 1000ly Route Plotter" << endl;
	cout << "(2): 500ly Route Plotter" << endl;
	cin >> Choice;

	switch (Choice)
	{

	case 1:
	{
		float B1;
		cout << "Enter Max Jump Range Fully Fueled: " << endl;
		cin >> B1;

		cout << "" << endl;

		float B2;
		cout << "Enter Distance to Sagittarius A* in 1000ly (12k = 12): " << endl;
		cin >> B2;

		cout << "" << endl;

		float AOJ = 1000 / (B1*0.985);
		cout << "The Amount of Jumps you get with the number: " << AOJ << endl;

		cout << "" << endl;

		float R = (B1*0.985*AOJ - B2);
		cout << "Use this number to plot your route: " << R << endl;

	}
		cout << "Intialising Route Plotter..." << endl;


		cout << "Version 2.0" << endl;
		cout << "" << endl;
		cout << "" << endl;


		cout << "" << endl;
		cout << " If you do not get a plot within 30 seconds, try plotting to another system close by with a slightly different distance!" << endl;

		system("PAUSE");
		break;

	case 2:
	{
		float B11;
		cout << "Enter Max Jump Range Fully Fueled: " << endl;
		cin >> B11;

		cout << "" << endl;

		float B22;
		cout << "Enter Distance to Sagittarius A* in 1000ly (12k = 12): " << endl;
		cin >> B22;

		cout << "" << endl;

		float AOJ2 = 500 / (B11*0.985);
		cout << "The Amount of Jumps you get with the number: " << AOJ2 << endl;

		cout << "" << endl;

		float R2 = (B11*0.985*AOJ2 - B22);
		cout << "Use this number to plot your route: " << R2 << endl;
	}
		cout << "Intialising Route Plotter..." << endl;


		cout << "Version 2.0" << endl;
		cout << "" << endl;
		cout << "" << endl;

		cout << "" << endl;
		cout << " If you do not get a plot within 30 seconds, try plotting to another system close by with a slightly different distance!" << endl;

		system("PAUSE");
		break;

	default:
		cout << "Please select a valid option." << endl;
	
}
	system("PAUSE");
    return 0;
}
}
 
Back
Top Bottom