MegaMek / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.org
131 stars 168 forks source link

[49.8 Snapshot] Inventory Issue: Ghost inventory (cockpits) that are Unusable #3247

Open Thom293 opened 2 years ago

Thom293 commented 2 years ago

09:12:07,244 INFO [mekhq.MekHQ] {main} mekhq.MekHQ.initializeLogging(MekHQ.java:254) - Starting MekHQ v0.49.8-SNAPSHOT Build Date: 2022-04-21T01:47:13.619789900 Release Date: 2022-02-18 Today: 2022-04-28 Origin Project: MekHQ Java Vendor: AdoptOpenJDK Java Version: 11.0.10 Platform: Windows 10 10.0 (amd64) System Locale: en_US Total memory available to MekHQ: 2 GB

Basically, my "Parts In Use" tab shows I have 4 standard cockpits in inventory, but they do not show up in the Warehouse and are unusable in the repair bay. I dont know exactly when this started, but it has been a long time because I remember seeing at one point I had 9 cockpits which I thought that was crazy and I would never have bought that many. No idea as to the cause.

I did a quick glance to see if other inventory had the same issue but didnt see any that jumped out at me, but I didnt go through everything.

Screenshots of Parts in Use, Warehouse and Repair Bay.

Screenshot 2022-04-28 005345 Screenshot 2022-04-28 005501 Screenshot 2022-04-28 005838 mekhq.log megamek.log The Bluecoats30621104.cpnx.gz

NickAragua commented 2 years ago

lol, looks like the "parts in use" report is counting "missing" equipment; as in equipment that was destroyed or taken off. However, normally, "missing" equipment is a placeholder that should only be present on units, you shouldn't be able to take a "missing" location off a unit and put it in a warehouse. Pretty sure your techs are pulling your leg on that one. I'll adjust the report and also add a routine to the save game load mechanism to get rid of orphaned missing parts.