PathFinding

Polaris Sector is a sci-fi 4X game that offers exciting exploration, detailed resource management, unique research mechanics and intense tactical combat.
Post Reply
bjgrt
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 156
Joined: Tue Feb 02, 2016 4:11 pm

PathFinding

Post by bjgrt »

The pathfinding in the PS is rudimentary at best. It doesn't understand to step aside even one "tunnel" to refuel, also doesn't support "long travel" using autorefueling, no wayponts neither. You've also mentioned that even the rudimentary pathfinding is quite expensive.
Would you consider adapting an advanced and optimized pathfinding algorithm (ideas) from another (open source) game? There is a transport simulation game called OpenTTD. They manage to operate hundreds (and even thousands) of vehicles within a complex transport network realtime on a quite "weak" computer. Written in C. The community is quite affable, there is also a semi-separate Russian sub-community.
Ufnv
SoftWarWare
SoftWarWare
Posts: 725
Joined: Sun Oct 25, 2015 9:19 pm

Re: PathFinding

Post by Ufnv »

bjgrt wrote:The pathfinding in the PS is rudimentary at best. It doesn't understand to step aside even one "tunnel" to refuel, also doesn't support "long travel" using autorefueling, no wayponts neither. You've also mentioned that even the rudimentary pathfinding is quite expensive.
Would you consider adapting an advanced and optimized pathfinding algorithm (ideas) from another (open source) game? There is a transport simulation game called OpenTTD. They manage to operate hundreds (and even thousands) of vehicles within a complex transport network realtime on a quite "weak" computer. Written in C. The community is quite affable, there is also a semi-separate Russian sub-community.
Please do not start this thing about pathfinding. You may not believe me, but I am quite good in graph theory. There is even a special type of graph officially called after my family name.
Please just believe I know what is going on there and things are extremely well optimized algorithmically, in code and in data structures. And also written in C.

I will not even start arguing about pathfinding. Excuse me if I am rough here, but this is my weak spot. For some reason anybody around me pretend to know something about graph theory and pathfinding and try "teaching" me, not knowing I've spent more than 20 years scientifically studying the topic :)

If you have any knowledge in the field you may also try to figure out why exactly "autorefuelling", for example, efficiently kills pathfinding optimizations :)

I certainly know what can be done to make the pathfinding for the player ships in the game more sophisticated, I just see no clear reason for this. To be more precise, the value/price ratio for such steps are so extremely poor I will not be spending my time on it. The current one is good enough for me, period.
bjgrt
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 156
Joined: Tue Feb 02, 2016 4:11 pm

Re: PathFinding

Post by bjgrt »

I didn't know that you are a specialist in the graph theory, just asked if you would consider adapting some external knowledge/algorithms. You wouldn't or have reasons to believe yours is better anyway - there is nothing to be hostile about.
The waypoints (I've meant) is just a list of destinations (set by player), all decisions about the next destination/path (as well as autorefuelling) could be done at the previous one, so no optimization would be hurt. Just saying.
Ufnv
SoftWarWare
SoftWarWare
Posts: 725
Joined: Sun Oct 25, 2015 9:19 pm

Re: PathFinding

Post by Ufnv »

bjgrt wrote: The waypoints (I've meant) is just a list of destinations (set by player), all decisions about the next destination/path (as well as autorefuelling) could be done at the previous one, so no optimization would be hurt. Just saying.
Yes, this feature is scheduled but with the low priority, as there are no much use cases for it.
bjgrt
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 156
Joined: Tue Feb 02, 2016 4:11 pm

Re: PathFinding

Post by bjgrt »

Ufnv wrote:there are no much use cases for it
Don't know how many people playing on a huge galaxy, but sending an "cloaked" scout far away or returning it with "the box" could be annoying.
Ufnv
SoftWarWare
SoftWarWare
Posts: 725
Joined: Sun Oct 25, 2015 9:19 pm

Re: PathFinding

Post by Ufnv »

bjgrt wrote:
Ufnv wrote:there are no much use cases for it
Don't know how many people playing on a huge galaxy, but sending an "cloaked" scout far away or returning it with "the box" could be annoying.
You are right. But cloaked scouts are usually highly dependent on the "illegal refuelling" and this is the action that cannot be safely automated. Another way is to make is self-refuelling with the solar module, but this gives too many variants, like when to resume movement - only after a complete refuelling, or after the possibility to make a next move or somewhere in between. This is better to leave on a human to decide, because such decision is often influenced by the information - like the probability of being detected at a specific system.
bjgrt
Administrative Corporal - SdKfz 232 8Rad
Administrative Corporal - SdKfz 232 8Rad
Posts: 156
Joined: Tue Feb 02, 2016 4:11 pm

Re: PathFinding

Post by bjgrt »

Ufnv wrote:
bjgrt wrote:
Ufnv wrote:there are no much use cases for it
Don't know how many people playing on a huge galaxy, but sending an "cloaked" scout far away or returning it with "the box" could be annoying.
You are right. But cloaked scouts are usually highly dependent on the "illegal refuelling" and this is the action that cannot be safely automated. Another way is to make is self-refuelling with the solar module, but this gives too many variants, like when to resume movement - only after a complete refuelling, or after the possibility to make a next move or somewhere in between. This is better to leave on a human to decide, because such decision is often influenced by the information - like the probability of being detected at a specific system.
I use only the "solar module". Thought about adding something like "wait till completely refueled" at manual waypoints (you already have in plans), maybe allowing it only if you have a 100% "cloaking".
Post Reply

Return to “Polaris Sector”