Adventure map, optimization of the hero's predefined path #6106
Replies: 5 comments 2 replies
-
I have an impression that this was already discussed. This "optimization" is no more than an ad-hoc illusion, and pathfinding should in fact foresee the future, because if the last hero would be in a slightly different place, the first path could be more optimal: 2022-11-07.08.09.43.mp4vs 2022-11-07.08.10.08.mp4That's the player's task, not the pathfinder's - the player knows what his next move should be, but pathfinder doesn't. I propose to close the topic of "the pathfinder that should foresee the future" :) |
Beta Was this translation helpful? Give feedback.
-
This topic tends to pretend that this behavior gives the player some advantages that are not really there, and I hope I have demonstrated this convincingly. |
Beta Was this translation helpful? Give feedback.
-
No, there is a difference. |
Beta Was this translation helpful? Give feedback.
-
There is no loss of movement if this path will be laid directly to the end point, without all these artificial intermediate routes. I remember there was also an argument "what if hero will be stopped while moving to the endpoint", and it was also answered - in general, this also requires some psychic powers to predict the future. There was even an example of two paths, one of them was "better" in one case, and the second one was "better" in another case - depending on the exact point when hero will be re-routed. |
Beta Was this translation helpful? Give feedback.
-
Another example. It's day 7. Let's try with Heroes 2 first: 2023-05-29.20-03-07.mp4It's a success!!! Next, let's try fheroes2: 2023-05-29.20-04-21.mp4Total failure!!! The 50 extra hero movement points spent by the diagonal movement at the start of the hero's path to attack the peasant are permanently lost for the rest of the hero's movement, and will never be recovered. This doesn't happen in the original game, because the game first favors horizontal and vertical movements for heroes, which consume fewer movement points. Here is the scenario test and the save files: |
Beta Was this translation helpful? Give feedback.
-
"In the original game, the hero's predefined path favors horizontal and vertical moves first, rather than diagonal moves, which allows the hero to benefit from the bonus given to the last move (if the hero can move horizontally or vertically then he can move diagonally).
In fheroes2, this is not the case, and it penalizes the hero by reducing his movement."
Here is an example using the predefined path first, then "modifying" the predefined path.
In the first case, the fourth hero cannot be attacked, which is possible in the second case.
In fheroes2:
Using the predefined path:
2022-11-06.13-52-24.mp4
"Modifying" the predefined path:
2022-11-06.13-53-02.mp4
Here is the save file:
Before auto path 01.zip
Related closed issue: #4510.
Beta Was this translation helpful? Give feedback.
All reactions