Combat Log different than actual damaged UBoat

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

Post Reply
User avatar
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

Combat Log different than actual damaged UBoat

Post by baloo7777 »

In a new PBEM game using 10u23, I checked the combat log at the start of my new turn and saw no damage to my attacking UBoats. However, one of my actual UBoats had taken damage. I wondered if this is WAD or a bug? See the following post for the second screenshot.

Image
Attachments
CombatLog..toUBoat.jpg
CombatLog..toUBoat.jpg (90.12 KiB) Viewed 381 times
JRR
User avatar
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

RE: Combat Log different than actual damaged UBoat

Post by baloo7777 »

Second screenshot of post

Image
Attachments
DamagedUBoat.jpg
DamagedUBoat.jpg (117.1 KiB) Viewed 381 times
JRR
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Combat Log different than actual damaged UBoat

Post by AlvaroSousa »

You sure it didn't have losses from before?
It's incredibly improbably 6x 1939 escorts do 2 damage to a sub in an under protected lane.
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
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

RE: Combat Log different than actual damaged UBoat

Post by baloo7777 »

I would have noticed the damage if it was the previous turn as I moved from North Atlantic to South Atlantic convoy zone and it's the start of the game and I only have two subs. I am not surprised that I had damage, only that the combat log and the actual sub were different. I haven't been saving as it's a pbem game, so I didn't know if I could save it. And I'm not infallible, just reasonably certain I would have noticed a damaged sub and sent it home last turn.
JRR
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Combat Log different than actual damaged UBoat

Post by AlvaroSousa »

I looked at the code and followed the path and it is right. It has been correct for a very long time.
But the rest of the time there was a dispute it's because the damage shown was MORE than the damage taken. The reason there is that units resist damage sometimes but the enemy doesn't realize they do. Part of the fog of war system of incomplete information.

So this is the first time I see the opposite.
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
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

RE: Combat Log different than actual damaged UBoat

Post by baloo7777 »

OK. Thanks for checking. I could have been mistaken and missed something, and my pbem opponent has 4 patrol fleets he moved to the South Atlantic convoy route that turn, so that could have affected my sub losses.

Can I ask you about the part of the FOW system you mentioned. If on my turn I look at a battle from my opponents turn on the combat log and it shows his units (air or land) as having taken losses, are those really the losses those enemy units took or is it just some sort of possible losses we think those units took due to FOW?
JRR
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Combat Log different than actual damaged UBoat

Post by AlvaroSousa »

If you score a hit on an opponent they will know the truth of their damage but you might not. Really it doesn't make a crap of a difference in anything as it might be 1 or 2 points but it's part of the immersion.
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
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

RE: Combat Log different than actual damaged UBoat

Post by baloo7777 »

This just happened again in a new PBEM game. Oct39 and the Combat Log for battles last turn (IE. during allied players turn) shows my sub fleet sinking 3 ms and an escort and taking no losses. When I look at the actual subs as I get ready to move them, I notice a sub with 1 damage point. The casualties table shows 7 merchants 1 escort loss for Brits and 1 naval loss for me as Germans. Is this WAD? It seems unnecessary for the combat log to FOW me as to losses from my own units that took place during the other sides turn as I see the actual losses to a sub unit on my own turn?
JRR
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Combat Log different than actual damaged UBoat

Post by AlvaroSousa »

I am staring at the code right now.

rotating through attackers
..Tests damage
..makes sure it isn't over the strength value
..APPLIES the damage
..damage is added to the damaagedGroups_array for which ships took what damage for text
..adds to the losses in game stats the damage amount

rotating through the list of damaagedGroups_array now.
..sunk message
..bottomed message
..if neither then displays damage from damaagedGroups_array

I have tested this on my own manually 5x last night in different scenarios.
Right now I tested this another 10x and it is coming out correct.

Maybe you are getting attacked by air units.

And I was mistaken there is no FoW for convoys. I must have taken it out a long time ago and forgot. The damage is real damage.
There was a singular rounding error that I fixed in the current beta but i forgot for which combat type it applied to. This error was found in Pacific beta testing.


I am not seeing what you are seeing.
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
baloo7777
Posts: 1194
Joined: Sun May 17, 2009 11:49 pm
Location: eastern CT

RE: Combat Log different than actual damaged UBoat

Post by baloo7777 »

Will it help if I give you the PBEM ID number? can you look back through the played turn?
Obviously, it really doesn't affect the game... just something I had not seen until the beta and PBEM games. And it happened twice.
JRR
User avatar
AlvaroSousa
Posts: 12108
Joined: Mon Jul 29, 2013 7:13 pm
Contact:

RE: Combat Log different than actual damaged UBoat

Post by AlvaroSousa »

I can't download and look at it. Best I can do is view it in my games.

PBEM doesn't affect the situations since the end of turn calculator is the last thing that happens before the game is uploaded.
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”