How is this combat result possible?

Warplan is a World War 2 simulation engine. It is a balance of realism and playability incorporating the best from 50 years of World War 2 board wargaming.

Moderator: AlvaroSousa

User avatar
MagicMissile
Posts: 2042
Joined: Sat Oct 11, 2014 8:18 am
Location: A village in Thailand

Re: How is this combat result possible?

Post 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 744 times
/MM
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

So far I can't replicate it.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
PanzerMike
Posts: 1174
Joined: Sun Apr 30, 2006 8:40 am

Re: How is this combat result possible?

Post 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.
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

It happened before. I found an error and fixed it. But this is new since the fix
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
sveint
Posts: 3775
Joined: Fri Jan 19, 2001 10:00 am
Location: Glorious Europe

Re: How is this combat result possible?

Post 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.
User avatar
ncc1701e
Posts: 10356
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: How is this combat result possible?

Post by ncc1701e »

It has just happened to our game (1.00.20 beta).
Big losses.JPG
Big losses.JPG (132.49 KiB) Viewed 648 times

But I can't save it, the PBEM++ does not respond...
PBEM error.JPG
PBEM error.JPG (70.48 KiB) Viewed 648 times
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
ncc1701e
Posts: 10356
Joined: Tue Oct 29, 2013 7:50 pm
Location: Utopia Planitia Fleet Yards

Re: How is this combat result possible?

Post by ncc1701e »

This is new to me. I did perform a Ground Strike. Move a Pz in a contested hex. And did this attack.
Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.
User avatar
PanzerMike
Posts: 1174
Joined: Sun Apr 30, 2006 8:40 am

Re: How is this combat result possible?

Post 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:
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post 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.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

Silly question here. Is it happening with a specific opponent in PBEM? Or vs the computer?
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
PanzerMike
Posts: 1174
Joined: Sun Apr 30, 2006 8:40 am

Re: How is this combat result possible?

Post by PanzerMike »

I was playing versus the AI
User avatar
battlevonwar
Posts: 1230
Joined: Thu Dec 22, 2011 3:17 am

Re: How is this combat result possible?

Post 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
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

I am running sims over and over. Nothing so far I can trace. The damage is normal. Rechecked code.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
stjeand
Posts: 2485
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

Re: How is this combat result possible?

Post 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.
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post 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.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
stjeand
Posts: 2485
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

Re: How is this combat result possible?

Post 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
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

Same code for combat. This is an anomoly
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
MorningDew
Posts: 1144
Joined: Wed Sep 20, 2006 12:24 pm
Location: Greenville, SC

Re: How is this combat result possible?

Post 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?
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post by AlvaroSousa »

I am using logging to show the values. It just hasn't come up in my testing.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
User avatar
AlvaroSousa
Posts: 11651
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

Re: How is this combat result possible?

Post 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.
Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3
Post Reply

Return to “WarPlan”