0.91 Bug - pathfinding tool shows incorrect distance army can travel on current turn

By on May 15, 2013 2:19:15 AM from Elemental Forums Elemental Forums

cwg9

Join Date 05/2006
+8

I've noticed that the pathfinding tool will sometimes show an incorrect distance that your selected army can travel in the current turn. When this happens it consistently shows the army as being able to move one tile further than it actually has the movement points to do. When you give the move order the army ends up one tile short of what was indicated, which can have painful consequences when you are trying to sneak by hostile forces safely.

Locked Post 19 Replies
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 7:37:56 AM from Elemental Forums Elemental Forums

Do you know at what point this becomes a problem? As in, is there a certain distance that causes it? Or perhaps not calculating terrain properly?

A screenshot or two of that would help.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 8:13:22 AM from Elemental Forums Elemental Forums

I am seeing that too. One thing that also happens is that when the projected route leads through a city, the tool does not account for the one free movement and shows the possible destination as one tile shorter than you can actually go.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 8:44:08 AM from Elemental Forums Elemental Forums

I have seen this as well ... I have only noticed it for road travel, where it over-estimates how far a unit can travel by road, usually by one tile, sometimes by more.  It is very frustrating.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 12:45:38 PM from Elemental Forums Elemental Forums

It's some variable involving road travel and possibly also moving through cities where its calculating that the unit can move one tile further than it actually can. Unfortunately from a bug squashing perspective it's not a very reproducible bug, but I'll see what I can do to pin it down further for you.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 1:08:26 PM from Elemental Forums Elemental Forums

Yes, it is tricky to document ... you don't realize the game gave an incorrect estimate for how far a unit can move until after it moved, at which point it is too late to take a screenshot of how far it had estimated you could move before you actually moved.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 1:34:43 PM from Elemental Forums Elemental Forums

Quoting Chibiabos,

Yes, it is tricky to document ... you don't realize the game gave an incorrect estimate for how far a unit can move until after it moved, at which point it is too late to take a screenshot of how far it had estimated you could move before you actually moved.

Good point.

I'd love the ability to easily setup scenarios to test stuff, but as it stands now I'd either need to get heavily into modding (which could invalidate the results) or use an existing game, which doesn't always work out since I don't have access to everything.

Sounds like something for the devs to confirm/deny.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 2:04:42 PM from Elemental Forums Elemental Forums

I've seen this in a non-road situation also. It occured with a unit I had split a from a stack with Tireless march.

When this happens on the road situation, if you move your cursor around, it will recalculate and give you the correct distance. Very difficult to reproduce. I've been trying to get a good screenshot for a while now.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 2:25:43 PM from Elemental Forums Elemental Forums

I suppose one way to catch it is to use a screen recorder to record a game, but ... honestly, my system is not up to snuff for recording games to video.  I don't have much storage space left.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 3:57:51 PM from Elemental Forums Elemental Forums

At long last, I have captured Sasquatch indisputably on camera!

 

Err, I mean Loch Ness.

 

Err, I mean aliens.

 

err ... the movement path bug.  Yeah, I know, this one you won't believe.

 

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 4:02:11 PM from Elemental Forums Elemental Forums

... and after right clicking on that 3rd tile (which math indicated it couldn't make it to), indeed this is the result:

 

As you can see, its movement is still set to the 3rd tile, but it only made it to the 2nd tile despite the mouse-hovering path (before issuing the move command) indicating it could make it to the 3rd tile in one turn.

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 7:44:38 PM from Elemental Forums Elemental Forums

Great job, Chibiabos!

Reason for Karma (Optional)
Successfully updated karma reason!
May 15, 2013 10:15:25 PM from Elemental Forums Elemental Forums

Quoting Vallu751,
When this happens on the road situation, if you move your cursor around, it will recalculate and give you the correct distance. Very difficult to reproduce. I've been trying to get a good screenshot for a while now.

 

This is my experience, as well. Move your cursor and re-position it and it will show you being one move short.

Measure twice and cut once, seems to be the answer here.

Reason for Karma (Optional)
Successfully updated karma reason!
May 16, 2013 2:42:31 AM from Elemental Forums Elemental Forums

I've noticed the problem frequently occurring if I move one square, and then let it try to estimate.  It fails to do so.

Reason for Karma (Optional)
Successfully updated karma reason!
May 16, 2013 7:19:34 PM from Elemental Forums Elemental Forums

Thinking on it, especially since I started looking to try to document it, it seems to be a weird rounding error when fractional movement points are used (either because the terrain, such as hills or swamp, consumes one-and-one-half-movement points, or roads which moving upon consumes only one-third or so of a movement point).  It isn't simply rounding up, though ... no matter how small of a fraction remains, you seem to actually be able to move at least one tile (so it should always be rounded up) but for some reason, an extra rounding up seems to occur sometimes, seemingly making half a movement point for some reason rounding up to 2.

Reason for Karma (Optional)
Successfully updated karma reason!
May 16, 2013 7:30:54 PM from Elemental Forums Elemental Forums

Quoting Chibiabos,
seemingly making half a movement point for some reason rounding up to 2.

Old math joke: 1+1=3, for very large values of 1 and very small values of 3.

Reason for Karma (Optional)
Successfully updated karma reason!
May 16, 2013 9:12:47 PM from Elemental Forums Elemental Forums

This is the same bug I was trying to describe back in v0.80: http://forums.elementalgame.com/443143/

Nice job getting a screenshot!

Reason for Karma (Optional)
Successfully updated karma reason!
May 19, 2013 1:40:19 AM from Elemental Forums Elemental Forums

I've also noticed that if I mouse over a spot, sometimes it will give me the false number first, and then if I move the mouse away and then back, it will give me the corrected number.

Reason for Karma (Optional)
Successfully updated karma reason!
May 19, 2013 9:12:18 AM from Elemental Forums Elemental Forums

Is it possible it gives the first one as a quick estimate and the second as an intentionally calculated one?

Reason for Karma (Optional)
Successfully updated karma reason!
May 19, 2013 8:00:17 PM from Elemental Forums Elemental Forums

I've found my earlier theory about fractional movement points inaccurate, as its overestimating how many tiles can be travelled the first turn even on normal plains with a single movement point cost. :/

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #101114  walnut1   Server Load Time: 00:00:00.0000110   Page Render Time: