Line of attack/charge wonkiness?

Byzantine Productions Pike and Shot is a deep strategy game set during the bloody conflict of the Thirty Years War.

Moderators: rbodleyscott, Slitherine Core, Gothic Labs

Post Reply
Fodderland
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Sun Mar 14, 2021 12:16 am

Line of attack/charge wonkiness?

Post by Fodderland »

In the below image, my cav SHOULD swing down and then right, to rear-attack the Swiss Keil. But if allowed to autopath to the Keil, he wants to move lower-right first (see the highlighted square) and thus lose out on being able to rear-hit. And, if I manually override the autopathing and manually force him to go down first, he then, somehow, doesn't have enough AP left to attack at all.
Not_enough_AP_2_squares.jpg
Not_enough_AP_2_squares.jpg (128.96 KiB) Viewed 1992 times
Fodderland
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 18
Joined: Sun Mar 14, 2021 12:16 am

Re: Line of attack/charge wonkiness?

Post by Fodderland »

So, next I moved the horse to my cav's right, down into the highlighted square, blocking it. Then, tried moving the cav again - and sure enough, THIS time, he's got enough AP to move down and then attack. WTH? Btw - still LOVING this game :)
But_Now_Enough_Mob_with_cav_in_way.jpg
But_Now_Enough_Mob_with_cav_in_way.jpg (128.12 KiB) Viewed 1990 times
Athos1660
Major-General - Elite Tiger I
Major-General - Elite Tiger I
Posts: 2676
Joined: Wed May 29, 2019 3:23 pm

Re: Line of attack/charge wonkiness?

Post by Athos1660 »

This is known and due to the pathfinding of the engine.

btw here, your cavalry can only charge by the flank, not by the rear, so the Keil's cohesion won't drop. Your cav should be on the nearby square on the left hand side when it starts its move (ie. move strictly diagonally).

Great game indeed. Have fun :-)
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28274
Joined: Sun Dec 04, 2005 6:25 pm

Re: Line of attack/charge wonkiness?

Post by rbodleyscott »

The engine does not know your intentions, and does not apply artificial intelligence to the path it finds. Sometimes you can get round this by moving your unit one square at a time, but not in this case because the moves would involve two 45 degree turns. (These are ignored when the unit moves the whole move in one go. In real life, it would be easier for troops to obey the order "charge!" than "go over to there, and then charge").

Edit: Removed erroneous statement.
Richard Bodley Scott

Image
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: Line of attack/charge wonkiness?

Post by Cronos09 »

In the second case, it is the rear charge. Therefore, this question arose that the difference as a result of the 2 charges is significant I think.

According to the script condition the angle the enemy is presenting to the attacker's position should be more than 138 degr. That is a charge from any tile within the red sector will be a rear attack if its path lies through the selected/highlighted tile.

Image
Athos1660
Major-General - Elite Tiger I
Major-General - Elite Tiger I
Posts: 2676
Joined: Wed May 29, 2019 3:23 pm

Re: Line of attack/charge wonkiness?

Post by Athos1660 »

Cronos09 wrote: Thu Apr 29, 2021 12:36 pm In the second case, it is the rear charge.
You're right, Cronos.

Image

Image

It has its logic : in the second case only, the charger hits the keil from the square just behind it.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28274
Joined: Sun Dec 04, 2005 6:25 pm

Re: Line of attack/charge wonkiness?

Post by rbodleyscott »

Cronos09 wrote: Thu Apr 29, 2021 12:36 pm In the second case, it is the rear charge. Therefore, this question arose that the difference as a result of the 2 charges is significant I think.

According to the script condition the angle the enemy is presenting to the attacker's position should be more than 138 degr. That is a charge from any tile within the red sector will be a rear attack if its path lies through the selected/highlighted tile.

Image
Of course you are right, my mistake.
Richard Bodley Scott

Image
w_michael
Lieutenant Colonel - Fw 190A
Lieutenant Colonel - Fw 190A
Posts: 1137
Joined: Sat Apr 25, 2015 1:04 pm
Location: Fort Erie, Canada

Re: Line of attack/charge wonkiness?

Post by w_michael »

In the original post, the default move only requires one 45 degree turn, whereas the desired move requires two 45 degree turns. I suspect that has a lot to do with the default movement path, and why a manual move doesn't have enough MP to charge.
William Michael, Pike & Shot Campaigns and Field of Glory II series enthusiast
Cronos09
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 326
Joined: Thu Feb 22, 2018 4:28 pm

Re: Line of attack/charge wonkiness?

Post by Cronos09 »

I think that in the first case, when we move the winged hussars unit manually vertically down, it loses 4AP + Free Turn (12AP are left). Then it must turn 45 degrees and charge diagonally, which requires 8 + 6 = 14AP.
In the second case, we also have two 45 degree turns. But they happen during one movement and the angle of turn is calculated at the start of the move:
angle = GetAngleFromTile(tilex, tiley, me) ; //get the angle the unit is presenting to the denoted tile, 0=looking straight at it, 180= it is directly behind them.
I think that with this movement the 'Free Turn' is not even lost.
Post Reply

Return to “Pike & Shot”