Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

47.15 Generic "Armor" listed in Parts in Use Report, despite not being used/available? #2298

Closed
gsparks3 opened this issue Dec 19, 2020 · 3 comments · Fixed by #2312
Closed

Comments

@gsparks3
Copy link
Collaborator

gsparks3 commented Dec 19, 2020

Environment

47.15
Windows 10
Java 11.0.8

Description

Unexpected generic "Armor" is showing up in the Parts in Use Report, despite listed 0 as actually in use, and not being an item type I recognize. Cost is listed as -5 C-bills per unit (which doesn't seem right), and attempting to acquire it gives a notification that "You cannot acquire parts of this tech level".
image

Files

Coppercoats.cpnx.gz
No custom units.

Encountered an error in mekhqlog.txt specifically while using GM mode powers to clear the impossible procurement order from the procurement list (right click order - GM Mode - "Clear from list") - unrelated to the primary issue.
mekhqlog.txt

@sixlettervariables
Copy link
Contributor

Procurement error:

Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index 3 out of bounds for length 3
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
	at java.base/java.util.Objects.checkIndex(Objects.java:372)
	at java.base/java.util.ArrayList.get(ArrayList.java:459)
	at mekhq.gui.model.ProcurementTableModel.getAcquisition(ProcurementTableModel.java:148)
	at mekhq.gui.model.ProcurementTableModel.getValueAt(ProcurementTableModel.java:88)
..

@sixlettervariables
Copy link
Contributor

The generic armor belongs to your "Xenoplanetary Infantry Eagle Corps Eyrie Defense Force". They have an unknown armor type, and it likely shouldn't be included, but I'm not exactly sure how (e.g. filter vs remove the part).

@gsparks3
Copy link
Collaborator Author

I see! That explains why it's gone from the list now in that campaign, along with the more recognizable Armor Kits - I sold my infantry units, so of course those parts are no longer present.

sixlettervariables added a commit that referenced this issue Dec 23, 2020
…rmor-parts-in-use

Issue #2298: Do not display unknown armor types in the Parts In Use report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants