Strange evade move.

Field of Glory II is a turn-based tactical game set during the Rise of Rome from 280 BC to 25 BC.
Post Reply
tyronec
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2122
Joined: Sat Dec 06, 2014 11:09 am

Strange evade move.

Post by tyronec »

This is from the Carthaginian tournament.

On about the third turn the left hand javelin unit is in rough terrain. The Pyrrhic javelins advance and shoot at it. Then the light cav charges - with the javelins in the rough the win/loses chances for the light cav is 0%/60% in both impact and melee. Yet the light javs evaded. There is no flank threat.
The only explanation I have for this is that they thought it was a flank charge - when the light cav charged they followed the blue track which does bring them in from the flank tile although clearly it is not a flank charge.

I set up a test bed to see if it replicates and it does. If you just charge with the light cav from this position then they follow the blue track and the javs evade (even though it is not a flank charge), however if you force them to follow the orange track then of course they lose and bounce off.
A1.jpg
A1.jpg (79.24 KiB) Viewed 678 times
A2.jpg
A2.jpg (163.36 KiB) Viewed 678 times
Ray552
Master Sergeant - Bf 109E
Master Sergeant - Bf 109E
Posts: 451
Joined: Wed Sep 16, 2020 4:51 pm
Location: Dallas, Texas, USA

Re: Strange evade move.

Post by Ray552 »

Possibly they evaded because accepting the close combat with the light cavalry would have left them open to a flank attack in the following enemy turn by the light javelinmen currently in front of them.

I've seen similar situations where steady light infantry were charged by disrupted enemy lights, but evaded because enemy non-light units were within charge range, regardless of flank or rear charge exposure.
SnuggleBunnies
Major-General - Jagdtiger
Major-General - Jagdtiger
Posts: 2892
Joined: Tue Apr 07, 2015 2:09 am

Re: Strange evade move.

Post by SnuggleBunnies »

tyronec wrote: Thu Aug 10, 2023 7:36 pm
Had the armored cav moved first? That would maybe put them within charge range.

Otherwise I don't know, never seen anything like this before.
MP Replays:
https://www.youtube.com/channel/UCjUQy6dEqR53NwoGgjxixLg

Pike and Shot-Sengoku Jidai Crossover Mod:
https://www.slitherine.com/forum/viewtopic.php?t=116259

Middle Earth mod:
https://www.slitherine.com/forum/viewtopic.php?p=1029243#p1029243
tyronec
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2122
Joined: Sat Dec 06, 2014 11:09 am

Re: Strange evade move.

Post by tyronec »

This has nothing to do with the other units, it is all about pathing.
We know the game prefers units to charge through tile sides rather than tile corners, so it will prefer the cav to charge in from the front or side of the javs rather than on the diagonal.

If the friendly javs are not there the cav will charge from the front and will bounce off.
If the friendly javs are there then, if they can, the cav will charge in from the side - and the javs will evade.

What I think is happening is that the algorithm that determines whether to evade or not looks at the final approach direction and makes it's decision to evade or not on that, REGARDLESS of whether it counts as a flank charge or not. Looks like it is not working as intended to me...

From the test bed, the first pic the cav will bounce; second pic the javs will evade.
A3.jpg
A3.jpg (178.38 KiB) Viewed 655 times
A4.jpg
A4.jpg (223.04 KiB) Viewed 655 times
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28385
Joined: Sun Dec 04, 2005 6:25 pm

Re: Strange evade move.

Post by rbodleyscott »

Interesting.

The pathing issue in/near rough terrain I cannot do anything about, because it is done by the engine. Scripting it would have excessive processing overheads.
What I think is happening is that the algorithm that determines whether to evade or not looks at the final approach direction and makes it's decision to evade or not on that, REGARDLESS of whether it counts as a flank charge or not. Looks like it is not working as intended to me...
The evade decision uses the normal "IsFlankRearAttack()" function to determine whether it is a flank attack. That function takes into account both the final position of the charger and its starting position. So in this case it should return that it isn't a flank attack.

And on testing I can confirm that IsFlankRearAttack() is correctly returning 0.

I will have to look into it further to see if I can find any other reason for it.
Richard Bodley Scott

Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28385
Joined: Sun Dec 04, 2005 6:25 pm

Re: Strange evade move.

Post by rbodleyscott »

I have discovered the reason. As you probably know, the game checks for other possible chargers when deciding whether to evade.

In this case the combat margin vs the enemy javelinmen is worse than the combat margin vs the light horse, so that combat margin is used for the decision.

However, it is using the chance of being caught by the light horse as the other element of the decision, as to whether it is more dangerous to evade than to stay.

(If the light javelinmen charged, it would stay, not because it fancies the odds, but because of the high risk of being caught when charged from the adjacent square).

So it is the combination of the 2 enemy units that is making it evade, but it is nothing to do with flank attacks.

And it isn't a bug.
Richard Bodley Scott

Image
Post Reply

Return to “Field of Glory II”