In my current game, using autoroute is a problem in a couple ways.
Here’s a portion of my map to highlight the issues:
The Jaabeb problem
I need civs and autoroute to path to Jabalpur (bottom right).
Which means I can’t block autoroute in Jaabeb.
But I also need them to path to Bega (bottom left), and autoroute prefers the BEB-JAA-BEF “shortcut” over the BEB-BEC-BED-BEE-BEF path, despite the fact that the “shortcut” is actually more distance to travel.
So I mil-restrict the JAA-BEF jumppoint. That solves the problem for civ traffic, and makes autoroute work fine with commercial fleets traveling between ZZZ and either of those places. It does make civ traffic directly between BEG and JAA/JAB use a much longer route than it could, but that’s a problem I’m willing to overlook at this point.
The problem is that I often need to move military fleets between ZZZ and BEG.
And obviously mil fleets don’t care about the “mil restricted” setting of a jumppoint.
So every time I give orders to a mil fleet to move through here, I have to remember not to use autoroute, because it will use the much longer “shortcut” via JAA.
Solutions?
a) Make autoroute find the shortest distance rather than the fewest hops (but there’s a lot of additional complexity here; see the Fibamar problem below).
b) Add a “restrict all” setting for jumppoints to restrict both commercial and mil traffic in the same way as the “military restricted” does now.
c) Add settings for jumppoints that explicitly (and only) block autoroute in the same way as the setting for systems.
d) Some elegant combination of the above.
The Fibamar problem
This one seems harder to provide a simple solution for.
The shortest path from my HW (Zzzyzzyvaa) to Fiad (top left) depends on where you are actually going in Fiad.
The route via Fechenheim (top center) to the FEC-FIA jp is 17.4bkm.
The route via Bega (bottom left) to the BEG-FIA jp is 23.7bkm.
So, the FEC route gets you to Fiad faster.
But here’s the JP layout in Fiad:
Crucially, the FIA-BEG jp (1) is much closer to the Fibamar jp (2) than is the FIA-FEC jp (3).
So much closer that the total route from ZZZ to FIB is much shorter via BEG (28.8bkm) than via FEC (36.8bkm), even though the route from ZZZ to nearly all locations in FIA itself is shorter the other way.
So, providing optimal pathing is not as simple as “don’t go through this system.”
Ideally, autoroute pathing would just use the shortest distance every time.
But the above example shows that autoroute can’t know the shortest distance to a given system until it knows where you are going after entering that sytem.
Possibly you could revise the autopathing logic to correct the entire order list every time a new destination is added.
For my example here, if I use autoroute to path from ZZZ to FIA, it would initially choose the route via FEC.
But if the next order I add is to transit to FIB, autoroute would realize that the BEG route is shorter, and would revise the entire order list to use that route.
But I wouldn’t want autoroute to redo the entire path if I had given some other order along the original route.
For example, suppose my original order list is to move from ZZZ to Febiana, transer MSP to a station there, then move to FIA.
If at this point I add a further order to move to FIB, autoroute should not revise the entire path from ZZZ to use the route via BEG, because that would eliminate my stop in FEB.
Succinctly: whenever a destination is selected via autoroute, the algorithm should find the shortest allowed path to that destination from the last destination in the order list that is not a JP or LP, and revise the order list to use that path.
But I don’t know, that sounds like it might be hard.
I’m not sure if it is worth the code complexity or not.
I’m sure other players encounter these same pathing issues, probably on average more than I do, since I tend to explore very slowly and my runs rarely last longer than 100 years.
In my current game I am in year 74 (TN start, default population) and I have just 63 known systems. (And a handful of those I learned about via espionage.)
From discord discussions I know there are plenty of players that play way past 100 years and push their exploration frontier much further than I do.






