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
296 stars 286 forks source link

Grappling a Quad Mech potentially causes bot to freeze #2882

Open Duuvian opened 3 years ago

Duuvian commented 3 years ago

MekHQ 49.1 Dev Snapshot Windows Compiled on 2021-05-23T19:09:24Z Today is 2021-05-26 Java vendor AdoptOpenJDK Java version 11.0.11 Platform Windows 10 10.0 (amd64) Total memory available to MegaMek: 1,048,576 kB

I found a situation where grappling was my only melee option, so I chose it. The target was a quad mek "Scorpion", while my grappler was IRC a biped "Wasp". With some luck (it was around 41% IIRC) I landed the grapple, a move I had never used before. After being given the option to fire weapons (torso mounted only in a grapple, MM kindly told me) the bot failed to continue when the quadmech's turn for physical attacks came (I think; from my player's perspective the bot is stuck on physical attack phase)

Unit name: Rigg's Raiders buggedMMgrappledquadmech.sav.gz

Sounds similar to #81

NickAragua commented 3 years ago

Is there a log?

Duuvian commented 3 years ago

If I can still get it after having replayed and gone past that scenario in the campaign there is; or if I can somehow generate one from that scenario savegame. Otherwise no, I apologize, this was my first new Issues post and my first post including a scenario save, so I made the mistake of not saving the log at the time. I will make sure to include the log if I find another MM bug and post the scenario save.

I have attached my CURRENT (played past the above scenarior save) megameklog.txt as I don't know if it overwrites itself or if it would contain the information from earlier scenarios as well.

If that log is not sufficient I can try to setup a scenario where I can grapple a quadmech and see if Princess stops responding again if you think that may be helpful. In the save I posted in the original post, Grapple was the only option for melee my mech had other than skipping the turn, but I don't know if that is a factor or not.

megameklog.txt

If that log will not be enough and I can't regenerate an appropriate one I apologize, I'll make sure next time when I add a note regarding a scenario save to my readme list of MHQ/MM bugs.

EDIT: I tried to set up a match in Megamek with 8 Wasps against 1 Scorpion. I think I'll have to do it through a custom scenario on my campaign so I have the same Megamek options as the savegame in the original post, as I couldn't grapple in the 8 Wasp scenario I made. I think it's usually an option in my campaign, I just rarely use it as kicks are pretty good except on green pilots.

Duuvian commented 3 years ago

I was able to recreate the bug in a custom scenario from my MekHQ campaign once I got back to Galatea.

mmscenbuggedgrapple2.sav.gz mmscenbuggedgrappkemegameklog.txt Playername is Rigg's Raiders

The megameklog is from immediately after I closed out the scenario. I hope that's the correct log and that I did it correctly.

To replicate the bug, generate 8 Wasps for the player and 1 Scorpion for a Princess bot in a scenario and have the Wasps grapple the Scorpion. I also found that grapple works in an elevation change from -2 to 0, is it supposed to work like that? I have no idea if that's intended but it explains why Grapple was my only option in the original post I think. No idea if that's part of the bug or not.