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
295 stars 282 forks source link

Disappearing mech during deployment phase #5963

Open BTSS88 opened 2 weeks ago

BTSS88 commented 2 weeks ago

HQ's MegaMek v0.50 Win 11 Java 17

One of the mech, a Lancelot captured from a star league cache mission, disappears from the deployment roster at the start of the initial deployment phase on the combat map.

Musket's Emergency Contractors30520629.cpnx.gz

Player name is "Musket's Emergency Contractors"

Files

Provide a saved game of when the issue was found. If possible try to save the game during the phase before the issue occurs so the developers can step through the code and find exactly what it is that is breaking in the code. Provide the megamek.log file for any NPE's or errors that MegaMek might be reporting. Do not paste the entire logfile text into this ticket. Just attach the actual megamek.log file And provide your player name so that they can load the saved game. (Delete the above lines)

RaozSpaz commented 2 weeks ago

You specify that the Lancelot was acquired by capturing it in a prior SL Cache special mission. So a pair of quick questions 1] Was the unit rendered inoperable during said mission [sine you captured it I assume yes but clarifying just in case] 2] Did you close/reopen HQ since that mission?

BTSS88 commented 2 weeks ago
  1. The unit was captured as a salvage and had to be pieced back together.
  2. I don't think so. After posting the bug post, I attempted several other missions where the lancelot was available. Maybe a restart of the MekHQ had something to do with it.

On Wed, Sep 4, 2024 at 4:09 AM RaozSpaz @.***> wrote:

You specify that the Lancelot was acquired by capturing it in a prior SL Cache special mission. So a pair of quick questions 1] Was the unit rendered inoperable during said mission [sine you captured it I assume yes but clarifying just in case] 2] Did you close/reopen HQ since that mission?

— Reply to this email directly, view it on GitHub https://github.com/MegaMek/megamek/issues/5963#issuecomment-2327130585, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4TL2U7TZFFMH7IEFI5CWH3ZUX3NXAVCNFSM6AAAAABNSEPP3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRXGEZTANJYGU . You are receiving this because you authored the thread.Message ID: @.***>

gsparks3 commented 2 weeks ago

If a mech was rendered inoperable during a fight, salvaged, and then repaired and deployed once more without restarting MekHQ, there's a known issue where it will sometimes just disappear like this (jokingly referred to as "Mech's haunted"). The fact that it goes away on MekHQ reload has caused it to be very difficult to debug. Fairly longstanding issue at this point.

It doesn't happen every time, either, otherwise it would still be pretty easy to reproduce for debugging purposes.

BTSS88 commented 2 weeks ago

Got it. On/off is always the solution. lol Thanks again.

On Thu, Sep 5, 2024 at 10:26 AM gsparks3 @.***> wrote:

If a mech was rendered inoperable during a fight, salvaged, and then repaired and deployed once more without restarting MekHQ, there's a known issue where it will sometimes just disappear like this (jokingly referred to as "Mech's haunted"). The fact that it goes away on MekHQ reload has caused it to be very difficult to debug. Fairly longstanding issue at this point.

It doesn't happen every time, either, otherwise it would still be pretty easy to reproduce for debugging purposes.

— Reply to this email directly, view it on GitHub https://github.com/MegaMek/megamek/issues/5963#issuecomment-2330370026, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4TL2U5MCPUHN45CJQ7JXYTZU6QMRAVCNFSM6AAAAABNSEPP3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGM3TAMBSGY . You are receiving this because you authored the thread.Message ID: @.***>

gsparks3 commented 2 weeks ago

References: MegaMek/mekhq#3201 MegaMek/mekhq#3887