I Thought I'd share a little thing I've bruteforced together with some apps I've created for SW specifically. Here is a Lua Table containing every possible "Path" from any System to any System, and additionally another Table which contains all Systems and their "Neighboring" Systems aswell.
Link to the Generated Files:
http://www48.zippyshare.com/v/P8tfoEaz/file.html
Here is a small CMD-Based Tool which can be used to create these files:
http://www27.zippyshare.com/v/hKYzDTEs/file.html
Note: As this was a tool made fairly quick, please make sure the location of where you put the program in does not have SPACES in its path.
And here are 2 Functions to utilize the 2 Tables:
Code:
--Returns the shortest path to a System
function AIX_GetPathToSystem(FromSystem, ToSystem)
local PathToSystem = AIX_PAIC_CompiledPathsTab[FromSystem]["Paths"][ToSystem]; -- The last "Location" inside a Path is the Target System. Always.
return PathToSystem;
end;
--Returns a table filled with Neighbor System of TSystem
function AIX_GetNeighbors(System)
local NeighborsTab = {};
NeighborsTab = AIX_PAIC_PathsTab[System]["Destinations"];
return NeighborsTab;
end;
... and yes this will be used by the AI Players, I've been working on this for quite a while now, glad it turned out to be working as intended afterall.