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

[0.49.7] Uncaught exception when using non-default anti-personnel weapon on BA #3494

Closed gsparks3 closed 1 year ago

gsparks3 commented 2 years ago

Description

If you load a Gladiator Exoskeleton [AG] and arm it with an anti-personnel weapon in its armored gloves in lobby configuration, selecting that weapon in the Weapons panel of the unit display while in-game immediately causes an uncaught exception. See attached save and logs.

Files

autosave.sav.gz legacy.log megamek.log

gsparks3 commented 2 years ago

Update: applies to any BA suit using a CI weapon in either Armored Gloves or an Anti-Personnel Weapon Mount that was not pre-defined in its unit file. CI weapons defined in the unit file (Auto-Rifles in most APWMs, Mauser 960s in Nighthawk PA(L) Armored Gloves, etc) work fine. It's only using the ability to change AP weapons in the lobby that causes issues, but this renders that ability effectively nonfunctional.