Page 2 of 3

Re: How is this combat result possible?

Posted: Sat Feb 04, 2023 1:01 am
by MagicMissile
I dont think I have seen it yet maybe in the screenshot below. 7:1 attack 9 attacker losses seems very high.
I have no idea what changed in patch 19 that could make this happen but I am pretty sure I have not seen these kind of results that have been posted here in earlier patches.
Casualty bug.png
Casualty bug.png (913.58 KiB) Viewed 1464 times
/MM

Re: How is this combat result possible?

Posted: Sat Feb 04, 2023 2:45 am
by AlvaroSousa
So far I can't replicate it.

Re: How is this combat result possible?

Posted: Sat Feb 04, 2023 7:18 am
by PanzerMike
I am 100 percent sure I never saw this before the last patch. So it must be a very recent change in the code.

Re: How is this combat result possible?

Posted: Sat Feb 04, 2023 11:22 pm
by AlvaroSousa
It happened before. I found an error and fixed it. But this is new since the fix

Re: How is this combat result possible?

Posted: Sun Feb 05, 2023 1:53 am
by sveint
If it happens again I'll stop playing my turn so the savegame can be used to test.

Offer for code review still stands.

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 9:54 am
by ncc1701e
It has just happened to our game (1.00.20 beta).
Big losses.JPG
Big losses.JPG (132.49 KiB) Viewed 1368 times

But I can't save it, the PBEM++ does not respond...
PBEM error.JPG
PBEM error.JPG (70.48 KiB) Viewed 1368 times

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 9:55 am
by ncc1701e
This is new to me. I did perform a Ground Strike. Move a Pz in a contested hex. And did this attack.

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 12:51 pm
by PanzerMike
It keeps happening to me too every once in a while, still no pattern as far as I can see. It is a very disrupting bug though :cry:

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 3:48 pm
by AlvaroSousa
I run manual tests and A.I. tests and I can't find it yet. I go over the code and nothing.

It happens to attack and defender. Will work on it more this week. I didn't change the combat routines.

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 3:49 pm
by AlvaroSousa
Silly question here. Is it happening with a specific opponent in PBEM? Or vs the computer?

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 4:22 pm
by PanzerMike
I was playing versus the AI

Re: How is this combat result possible?

Posted: Sun Feb 12, 2023 9:16 pm
by battlevonwar
I have had 5-6-7 instances of it. Look for Exponential Damage taken from attacking Infantry of any kind where you get an impossible number of casualties. Like 17 against a 1 HP near dead Div or 30-65 against an Infantry Corp.

I took more screenies of it and I have never seen it till the new patch .19

Re: How is this combat result possible?

Posted: Mon Feb 13, 2023 2:06 am
by AlvaroSousa
I am running sims over and over. Nothing so far I can trace. The damage is normal. Rechecked code.

Re: How is this combat result possible?

Posted: Mon Feb 13, 2023 3:54 pm
by stjeand
Al any possibility of code overlap with the extra damage to ships from air units?

I think it is critical damage...IF it happens once you have another chance to happen and so forth....

A COMPLETE guess here.

Re: How is this combat result possible?

Posted: Mon Feb 13, 2023 5:26 pm
by AlvaroSousa
This is all land combat. They use the same functions. I know I recently added a retreat modifier so full units don't explode because it made no sense for them to stand and die.

That is what I am looking into. So far nothing. I kept running sims last not and even made a special scenario with low polish units see if that was the issue.

Will keep working on it. Went over functions and I just can't see what is causing this.

Re: How is this combat result possible?

Posted: Tue Feb 14, 2023 11:42 am
by stjeand
I do see air units involved...
As I said...was a complete guess and more the reverse issue

BUT the issue is more the attacker being wiped out for the most part.

Not seen anything like this in WPP at the moment with multiple games going...all normal combat so far

Re: How is this combat result possible?

Posted: Tue Feb 14, 2023 2:37 pm
by AlvaroSousa
Same code for combat. This is an anomoly

Re: How is this combat result possible?

Posted: Wed Feb 15, 2023 11:30 am
by MorningDew
Any detailed logging the people getting the error could turn on? If no, perhaps add it work with one of them? If they get the error and it cannot be recreated, why not try using logging to isolate the issue?

Re: How is this combat result possible?

Posted: Wed Feb 15, 2023 3:49 pm
by AlvaroSousa
I am using logging to show the values. It just hasn't come up in my testing.

Re: How is this combat result possible?

Posted: Wed Feb 15, 2023 5:46 pm
by AlvaroSousa
Ok I finally figured it out. It has to do with the new rule I put in about slamming units with overwhelming damage.

Basically if a unit has more than 33% of its max health and takes 50%+ of its health in damage it auto-retreats, does 50% damage and stops taking more damage.

This represents a fully capable unit understanding it is getting overrun and does a delayed retreat before getting surrounded and destroyed.

Unlike a low strength unit barely functioning it doesn't have the force available to hold its line effectively. Those units get overrun.

Running more tests to make sure it is working as it should showing variables. Then I will put up a beta.