[Bug][1.3b] AI units move off the tactical grid

In my last game (which I started on 1.3) I saw a lot of this happening.  The AI, running away from my units, moves to a square that is not part of the traversable terrain of the tactical map.  

They typically only move to the square just outside, so I can still hit them, but I cannot target them with abilities or spells.  Sometimes, however, the tactical map has traversable squares that are separated from the rest of the map by untraversable squares, so you can't get to them, but the AI can.  At that point, if you don't have ranged units or damage spells, you have to hope that auto-resolve will favor you.

Below are two screenshots.  One shows an AI unit in the separate traversable terrain, and the other shows a unit just outside of the traversable terrain (he's been knocked prone in the screenshot, but he was already in that square before I hit him).

 

4,921 views 4 replies
Reply #1 Top

After playing around with the tactical map generator recently, I can say the likely cause is that there are not enough blocked tiles.  If a single line of blocked tiles are used around the edge an ability can cause a unit to be pushed past the blocked tile line.  Whereas if there is a line of two or more blocked tiles in a row with a open space for movement behind them a unit can not bypass the blocked tiles to the open tile behind.

Reply #2 Top

They're not being pushed onto the tiles.  They're walking onto them.  It's usually archer units, and they'll usually attack from those tiles immediately after moving onto them.

Reply #3 Top

There may be a hole in the blocked tile layer allowing movement as well.

Reply #4 Top

There are some deeper issues within the tactical maps. Others have posted units moving onto a layer of blocked tiles where every non-visible tile was set to blocked and the unit was still on that tile. It is a deeper problem than the xml of the map. Also, people have posted the unit moving onto mountainous terrain, which by any standard is not accessible by any unit in the game unless they are flying (and the units I saw were not flying).

There is a pathing issue and it seems to occur most of the time with archers and fleeing units. It could just be a loophole in the code where it is moving the unit "away" from player, but not checking the terrain data. It's just speculation since I haven't seen the code.