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

Display problems for infantry units under Tech Crew column #3506

Open SuperStucco opened 1 year ago

SuperStucco commented 1 year ago

In the attached 49.7 campaign, the infantry in the Hanger tab are showing some inconsistencies. The Foot Platoon (MG) platoon is showing "Master Technician" rank for Marcie Caprara rather than the infantry rank of Sergeant. Custom ranks are in use, and those two are the same E-rank.

The other platoons in use showing a "-" in front of the name in the Tech Crew column, presumably because there isn't an equivalent E-rank entry.

Infantry tech display issue

Ideally, when infantry is being maintained by their own members the ranks should be retained and displayed correctly.

Autosave-1-Findlay's Rifles-30320520.cpnx.gz

Custom infantry are present: Infantry Pack.zip

Windchild292 commented 1 year ago

The userdata rank system file will be required to debug this, as it appears to be working without it (although conversion appear to be broken, which I'll investigate while adding the unit tests).

SuperStucco commented 1 year ago

Unfortunately I had a campaign issue which deleted the custom rank system I was using, and have since rebuilt. Here's the current one which isn't quite the same but should be close enough to help:

rankSystem.xml.txt