Page 1 of 1
HQ readiness bug
Posted: Wed Feb 22, 2023 10:12 am
by Chernobyl
I found a situation where a unit is commanded by a HQ but does not get the readiness bonus from being attached. When I detach and then reattach that unit to the HQ, it immediately has the readiness it should have had all along.
Re: HQ readiness bug
Posted: Wed Feb 22, 2023 10:19 am
by Chernobyl
Hotseat file, notice the Japanese 13th Army near Nanchang is low readiness. End turn and play as Axis, notice the army is under the command of a HQ but not receiving bonus (it's set to auto-assist mode). Detach and reattach and it goes from 68% to 91% readiness instantly.
Re: HQ readiness bug
Posted: Wed Feb 22, 2023 9:22 pm
by Hubert Cater
Thanks for the file, it is really helpful, however I'm having a hard time repeating this outside of your example.
Do you happen to have a save right at the end of the first turn of the game where this then eventually happens?
Re: HQ readiness bug
Posted: Thu Feb 23, 2023 2:44 am
by Chernobyl
Hmm I'm having the same issue, I tried to duplicate it but can't. If I ever see it again I'll post the file.
Re: HQ readiness bug
Posted: Thu Feb 23, 2023 10:52 am
by Chernobyl
Okay it happened again. I saved at the end of the first (Axis) turn. Same army, same HQ.
Re: HQ readiness bug
Posted: Thu Feb 23, 2023 9:13 pm
by Hubert Cater
Thank you and I can just again say the turns were very helpful, thanks for that, and I was able to track this down.
Looks like what was happening was that particular hex, 192,63, originally had a Chinese unit that was attached to a Chinese HQ.
Then your unit, the Japanese 13th Army occupied hex 192,63 after destroying the original Chinese unit that was there.
In the supply phase where HQ attachments are examined and cleaned, the Chinese HQ 'cleaned' that position of its HQ rating and experience values, e.g. to potentially be reassigned by either the same HQ or another one if a better one was found. And after doing this, the list is wiped out and then reassigned to whatever the optimal units would be.
But this shouldn't happen if the list contained an enemy unit, so I've added a check to ensure that this doesn't happen going forward.
It was an odd one as the Axis HQ attachments and values are done first, then the Allied ones, and it was when the Allied logic was being processed, it just set the HQ rating and experience values assigned to 13th Army to zero, but of course the Japanese attachment to the HQ remained. So it just looked odd, e.g. made no sense to me, and definitely incorrect.
Great catch
Hubert
Re: HQ readiness bug
Posted: Thu Feb 23, 2023 11:21 pm
by Chernobyl
Glad to be of help in the quest to perfect this great game!
Re: HQ readiness bug
Posted: Wed Mar 08, 2023 6:48 am
by Chernobyl
I can confirm I've noticed this happening in other locations on the map. I assume it's a bug for all three versions of the game.
Re: HQ readiness bug
Posted: Wed Mar 08, 2023 2:08 pm
by Hubert Cater
Yes, as they all share the same code base, so this was indeed a good find and bug for us to fix for sure.