Wrong weapon damage shown

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
User avatar
Oberlus
Cosmic Dragon
Posts: 5760
Joined: Mon Apr 10, 2017 4:25 pm

Wrong weapon damage shown

#1 Post by Oberlus »

Playing RC3.

Check out attached image. Damage for the weapons in the tooltip should be 7 (laser 2 researched, average pilots), but it says 6. The other ships in the stack, showing 16 total damage, have 2 plasma cannons with no upgrade, so they should be 18 (9+9).
Why are those weapons showing a damage 1 point lower than expected?

This does not seems to be a rounding error affecting only the values shown in the fleet window. The combat logs values are consistent with the values shown in the tooltip: if I attack next turn the neighbouring enemy fleet, those lasers are causing 6 damage (3 vs shield-3), and the plasmas are causing 8 (5 vs shield-3).

This is not the first time I see this, but the other time it happened in a multiplayer game with restricted empires information (so that you couldn't see the actual value of weapons if you didn't have the unlocking tech). Now this is happening in a single player game with no restrictions (not related for sure, since the wrong values are for my own weapons).

I have no idea what should I be looking for in the logs to find out the culprit. Can anyone help me here?
Attachments
WrongWeaponDmg.png
WrongWeaponDmg.png (259.75 KiB) Viewed 1655 times

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Wrong weapon damage shown

#2 Post by Geoff the Medio »

Has the ship had an upgrade applied since the latest upgrade tech was researched?

User avatar
Oberlus
Cosmic Dragon
Posts: 5760
Joined: Mon Apr 10, 2017 4:25 pm

Re: Wrong weapon damage shown

#3 Post by Oberlus »

Geoff the Medio wrote: Tue Feb 04, 2020 4:59 pm Has the ship had an upgrade applied since the latest upgrade tech was researched?
Laser 2 was researched turn 55, and the upgrades for built ships on nect turn. Some of the ships were built before laser 2, most after, but them all show damage 6.
Plasma cannons on turn 75, no upgrades whatsoever (there's no plasma 2 researched).

Ophiuchus
Programmer
Posts: 3461
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: Wrong weapon damage shown

#4 Post by Ophiuchus »

Head on a spike?
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Look, ma... four combat bouts!

User avatar
Oberlus
Cosmic Dragon
Posts: 5760
Joined: Mon Apr 10, 2017 4:25 pm

Re: Wrong weapon damage shown

#5 Post by Oberlus »

Ophiuchus wrote: Tue Feb 04, 2020 9:59 pm Head on a spike?
Damn it, that's right. The AI I'm attacking got a HW from another AI early game.
So head on a spike causes -1 damage to nearby enemy weapons?

defaultuser
Juggernaut
Posts: 854
Joined: Wed Aug 26, 2015 6:15 pm

Re: Wrong weapon damage shown

#6 Post by defaultuser »

Head on a Spike is one of those things you encounter so rarely that you know or think about. Years ago there was a bug that reduced the weapon damage each turn. I was really confused by that.

viewtopic.php?f=28&t=10354

Post Reply