Open HammerGS opened 2 years ago
Logs from the nightly build. Same error. Looked specifically into unit files here and don't see anything odd.
18:43:26,330 WARN [mekhq.campaign.parts.equipment.AmmoBin] {SwingWorker-pool-2-thread-1}
mekhq.campaign.parts.equipment.AmmoBin.getMounted(AmmoBin.java:296) - Missing valid equipment for BA SRM 1 Ammo Bin to manage ammo on unit Constable Pacification Suit [ECM] (Sqd5) #2
18:43:26,336 WARN [mekhq.campaign.parts.equipment.AmmoBin] {SwingWorker-pool-2-thread-1}
mekhq.campaign.parts.equipment.AmmoBin.getMounted(AmmoBin.java:296) - Missing valid equipment for BA SRM 4 Ammo Bin to manage ammo on unit Grenadier II Battle Armor A(Sqd4)
18:43:26,336 WARN [mekhq.campaign.parts.equipment.AmmoBin] {SwingWorker-pool-2-thread-1}
mekhq.campaign.parts.equipment.AmmoBin.getMounted(AmmoBin.java:296) - Missing valid equipment for BA SRM 4 Ammo Bin to manage ammo on unit Grenadier II Battle Armor A(Sqd4)
The Nighthawk PA(L) Mk. XXX (Bounty Hunter) went from 4 suits to 1 and the Water Elemental Mining Suit went from 5 suits to 4. If there are any that increased in size that won't cause a problem. It's just the decrease. It's trying to assign parts from the missing trooper(s) to a location that doesn't exist.
Hmm....any good code work arounds as those suits got revised down? Or best to add in new units and rematch the names?
I see three options, though others may see more:
Of the three I think the first is the best overall, but more involved and I would leave it to someone who's worked with MekHQ more recently than I have to make that call. The second is the easiest and may be sufficient for real-world use. The third is presented as a possibility but I don't recommend it.
I've done fix 2 as part of this - https://github.com/MegaMek/megamek/issues/3819
But leaving this open till a coder can decide if option 1 should be done or not.
I've completed the BA project and all names and unit files have been updated to match the new MUL squad tags (Sqd4,5,6). All unit roles, quirks, and the name_change.txt file have been updated. I've moved the unit files over to the MekHQ file in IDEA, refreshed everything and MekHQ crashes on the attached test campaign file.
Environment
What version of MekHQ does your issue apply to? 49.9-Dev in the Repo as off this date What operating system are you using? Windows What java version are you using? 11
All unit files, name_change.txt and quirks are current in the MegaMek repo.
BA Test31510101.cpnx.gz