Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

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
Prev Previous Post   Next Post Next
  #11  
Old 03-12-2018, 03:22 PM
nocalora29's Avatar
nocalora29 nocalora29 is offline
¯\_ ͯ‿ ͯ_/¯
 
Join Date: Dec 2011
Posts: 518
Default

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 03:28 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.