MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
299 stars 291 forks source link

GM damage won't persist throughout the game 0.50.01 Nightly 10/26/2024 #6219

Open BLR-IIC opened 6 days ago

BLR-IIC commented 6 days ago

Prerequisites and Pre-Issue Checklist

Severity *

Low (Minor/Nuisance): Minor glitches or cosmetic issues that don’t affect gameplay and occur rarely.

Brief Description *

At turn 1, I reduced the armor of one arm on an opposing Atlas to 15 points. This was before the first move of the game. Right after I made the first move, the Atlas moved and its armor damage I assigned to it reverted back to what it started with (full armor of 34 points).

Before moving my next unit, I reduced the armor to 15 on the Atlas. After I moved my unit and the bot moved another unit, the arm's armor stayed at 15 points.

Meanwhile I reduced the structure on the Atlas' leg to 10 points and the CT structure of a Marauder to 10 points.

HOWEVER moving from the movement phase to the weapon attack phase, the assigned damage ALL disappeared.

During the weapon attack phase, I reduced the CT structure of an Archer to 10 points. As units declared their attacks, the structure points reverted to what they started with (full structure of 22 points).

Before the end of the weapon attack phase, I reduced the CT structure of the same Archer to 10 points and it reverted to 22 points by the end phase.

So it seems to me that GM mode damage assignment isn't working at all.

I attached the savegame and the logs. Note that I only checked damage assignment on Princess' units. I used weapon attacks to damage only the Cataphract.

This problem was mentioned in #5022 but didn't have its own ticket.

Steps to Reproduce

No response

Operating System *

Windows 10

Java Version *

17.0.12

MegaMek Suite Version *

Free Text (type manually)

Custom MegaMek Version

0.50.01 Nightly Build 10/26/2024

Attach Files

GM_Damage_Test.sav.gz megameklog-GM Damage Assignment Problem.zip

Final Checklist

Scoppio commented 5 days ago

This is a known bug in the GM "mek editor" tool inside MM.

Basically this bug happens because the current state of the mek is managed by the server and players, and anything that a player do that can cause it to update its current state will overwrite any changes you, the GM player, made.

The only way to overcome this flakyness is to send the request of the changes to be applied directly to the server so the server, so the server to apply those changes to the entity in its memory and propagates for all users.