Thanks Breslin, after checking out that djin... yeah, that one - I thought "screw that, BFS" instead.
Can refine it later on to be honest.
Thing that's come back to me - without systems_shortest_path.ini file, you can't get anywhere... but you don't have to have the others ammended to work from what I remember.
Furthermore, what defines illegal? If it's reputation, who's? Pirate factions (as defined by fc in the game?). If you make jumpgates reputation to pirate, does this mean normal factions don't take it anymore? Do pirates suddenly use them? Does reputation have that much impact?
Spend so little time, only just started to look at fixing up my current attempts... and still working on the bug. Not even hitting search yet
As i said, could take a while - but i'll get back to you
(no, no real experience with searches at all tbh, not anything non-trivial anyway - seems like a good time to get some learning in
I have got a good book on algorithms though, will break it out in due course).
Edited by - Chips on 9/18/2007 2:47:16 PM
*edit 2* Yay, fixed up bug I had and it appears to read all the paths for jumpholes / jumpgates correctly. Each system is an object, each system has a collection of illegal/legal links to other system objects. At first glance, references seem to match jumpholes/jumpgates, although the code is very messy as I cobbled it together the other night in around 30 minutes! May clean it up and refine it eventually, but on with the search part... tomorrow, if there's time around Heroes
Edited by - Chips on 9/18/2007 3:43:28 PM
Edited by - Chips on 9/18/2007 4:22:39 PM