Freelancer Path Generator
-
Chips wrote:
Yes, sorry, been a bit slow about informing.
I got carried away making auto-updaters and all sorts. They’re not needed, and have been removed - I just got carried away creating them is all :http://freelancer.artificiallyintelli … ads/FL_Path_Generator.zip
Any feedback welcome. There hasn’t been extensive testing on this - mainly due to time of year and, as said, getting carried away with silly ideas
StarTrader wrote:
Checked just now, works OK for me. (Amazing!) lolIt still doesn’t work for me at all, just clicked it again and it stays on that spot???
-
The only one that you require to actually physically jump (from what I remember) was the systems_shortest_path connection between the two systems you were jumping between. The rest were for waypoint plotting only if I remember. However, I was told anything over 10 in length was an issue? If that is not true, but over 10 in a single system is, then I can alter it if required instead.
I could only put a warning in though. Where 10+ in length can just be truncated - trying to ignore all jumps in a 10+ jumps in one system would be fatal, or stopping writing would be bad too!
Oh yes, transports trade paths - indeed, all trade paths, are very tough to get right. The trade path needs to go between two bases - corresponding bases as well, from what I remember. I think it was Firebase whom got that working first, but nearly 5 years later, I honestly can’t remember. Someone else will know.
@ Hunterkiller - I’m not sure what you mean? What stays on a spot?
-
@ HunterKiller:- it’s because the link you tried is truncated, the original one in Chips’ post still works, but here it is again for you anyway, I just tested it again…
http://freelancer.artificiallyintelligent.co.uk/downloads/FL_Path_Generator.zip
@Xarian…
Just a thought… I changed my trains and armoured transport to use the .cmp files some time ago because they seemed complete, but I got crashes whenever trains appeared and I was by a jumpgate. Changing them all back to use the .3db files fixed it. Anyone know why please? Check the trains out in plain FL shiparch.ini to see what I mean.@ Chips: Did you spot anything odd between the files I sent?
The path length is not a problem, is it? So all paths can be included in the utility, maybe just tell the user that they do exist?
But more than 10 jumps in a single system is a killer unless they use adoxa’s patch, so definitely an alert is a great help.
-
@ ST… hehe… I’ve done the exact same thing… so back to .3db
I too am curious as to why they would crash… there is no “obvious” sign as to why… probably something deep in the .cmp… dam… could even be the sur… either way… thankx for the insight… thats the kinda help i need ATM… what’s worked for others… what just plain dont work… ect… . should really be a list of these things… something for the wiki methinks.
-
Boy am I bad at checking things.
Okay, overhaul done - it took about 10 minutes.
- Now it does not moan about the length of paths. If it’s 10+ jumps, who cares!
- It does now moan about the number of jump objects you have. If you have 10+ jump objects in a single system, it’ll moan.
- There is a “suppress object count warning” tick-box. This is there to suppress the warnings if a system has more than 10 jump objects in it. Obviously, for use if you’ve used the hack.
- It still writes the relevant path files irrespective or suppress warnings or not - as the connections are correct, just the number of objects in one system may be too great!
So why is the tool still useful?
I guess just because it will parse the files, and if you’ve got jump objects that are incorrect, it will flag them. By this, I mean they reference non-existent jump objects, or that they reference non-existent systems.
Download is the same:
http://freelancer.artificiallyintelligent.co.uk/downloads/FL_Path_Generator.zipor
http://freelancer.artificiallyintelligent.co.uk/downloads/FL_Path_Generator.zip
Comments welcome
p.s It doesn’t moan, just text output. Too much like hard work for it to audibly “tut-tut” when it comes across errors - although that would be amusing. And irritating.
-
Just out of curiosity, I was under the impression that FL could generate the path files all by itself? What exactly would be the advantage/additional features that your software gives, Chips?
-
I know that. I was just surprised to see a release of this tool now that the knowledge of FL being able to regenerate paths by itself being relatively widespread. I felt like it obsoleted the program, regardless of how purposeful it has been.
-
Igiss wrote:
We will try this tool too, I had to use one from FLScan before and it has drawbacks (most importantly, cannot create shortest_legal_path correctly).Is there a limit for systems and paths that it can process?
Nope, never tested it to the “extreme” - but with the algorithm it shouldn’t take much memory - and seeing as it is Java, there won’t be “leaks” either as it’ll “Garbage collect” anything de-referenced.
However, if you don’t get errors with this tool - then feel free to delete all the path files and just start FLServer - it’ll generate them for you as well
Just that this tool does a lil bit of error checking as it goes.
edit I didn’t see the subsequent posts - thank you for the kind words Opr8r
FriendlyFire wrote:
I know that. I was just surprised to see a release of this tool now that the knowledge of FL being able to regenerate paths by itself being relatively widespread. I felt like it obsoleted the program, regardless of how purposeful it has been.The only advantage it offers is error checking - FL doesn’t check whether the referenced jump object (or system afaik) exists. So this generates the paths - but also does a lil bit of error checking along the way.
Why have I bothered to update it? That’s very simple but difficult to explain. Think of it as “personal pride”, but without “pride” being forefront. Simply put, I didn’t want to leave a tool around that isn’t 100% functional and correct. If it would take a few days to fix, then I may have just removed it. As it is, it took a few minutes
p.s Just been looking at Evo once more. By christ, some of the stuff I did was plain ugly and un-necessary. So much “excess” code, could have been far neater
-
Well Chips, I believe it was at my request that you started this project, and so I reserve the right to say:-
-
We had nothing else to go on at the time except manual editing.
-
I was pulling my hair out.
-
I will continue to use it in preference to the auto-rebuild.
-
I think you’ve done a fab job of it.
-
I respect you for keeping the urge to complete it.
-
I admire you for finding the nooks and crannies and digging them into the light!
And my full apprecation and thanks.
Now - how do you feel about taking on my other request for a utility to dig out and check the material hashes in .mat files and compare them to what the .cmp file wants to find, looking for missing materials and duplicate material names so that we reduce problems of several ships using the same name accidentally?
That would be a great one too.
-
-
StarTrader wrote:
Well Chips, I believe it was at my request that you started this project, and so I reserve the right to say:--
We had nothing else to go on at the time except manual editing.
-
I was pulling my hair out.
-
I will continue to use it in preference to the auto-rebuild.
-
I think you’ve done a fab job of it.
-
I respect you for keeping the urge to complete it.
-
I admire you for finding the nooks and crannies and digging them into the light!
And my full apprecation and thanks.
Now - how do you feel about taking on my other request for a utility to dig out and check the material hashes in .mat files and compare them to what the .cmp file wants to find, looking for missing materials and duplicate material names so that we reduce problems of several ships using the same name accidentally?
That would be a great one too.
You’re too kind
I replied on that question though All I need to know is the encoding those files utilise. If I know how to “read” the file, I can then make the program
-
-
Thanks Chips, didn’t see you had replied on my other post.
I’ll take this up on that post then.
-
Ahh cool! Looking forward to seeing you on there! Hopefully you’ll enjoy it.
If you like what you see and wanna join the team, just let me or FriendlyFire know. I don’t know if you’ll have time for all that jazz, but I figured I toss the offer out there.
-
Just a small addition to say source code is back in (see first post).
Whilst the tool is entirely obsolete as FLServer will generate these files for you, the rudimentary source code will just show how I achieved what I did.
I am no pro programmer, this was cobbled together in how my mind designed and saw the thing. I am always open to comments about how I could improve aspects of coding, so please feel free to say what is not optimal, or just plain bad if you do look through and feel the urge to correct me (I honestly welcome it!).
I used Netbeans as my IDE, so if you also use netbeans, you’ll be able to see the GUI builder
-
It’s not at all obsolete Chips, yours considers locked jumpgates too and bypasses them.
And I’ve forgotten but there was something else too?
-
When you say FLServer does this for you, does that mean path files are not necessary in multiplayer but are necessary for single player?