![]() |
|
|||||||
| Star Wolves 3D space RPG with deep strategy and tactical elements |
| View Poll Results: What should I Prioritize on? | |||
| Basebuilding! |
|
1 | 25.00% |
| Balancing! |
|
0 | 0% |
| The Mod Manager! |
|
0 | 0% |
| Asteroid ore-dropping! |
|
0 | 0% |
| Intensive Bugfixing! |
|
3 | 75.00% |
| Voters: 4. You may not vote on this poll | |||
|
|
Thread Tools | Display Modes |
|
#11
|
||||
|
||||
|
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.
__________________
Discord: Nocalora#6847 | SW3.Expansion Thread | SWX.MouseMovementFix | SWX.TUVMark+Src (.tuv editing Tool) | SWX.SLOTMark+Src (.ini Slots editing Tool) Last edited by nocalora29; 03-12-2018 at 04:28 PM. |
|
|