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
134 stars 171 forks source link

Custom Ranks not loading. defaulting to second star league #4704

Closed Docwade closed 2 months ago

Docwade commented 2 months ago

Environment

-49.20 -windows java17

Wont load custom ranks. it seems to default to second star league

individualRankSystem.zip @IllianiCBT mekhq.log

IllianiCBT commented 2 months ago

I managed to track down the issue to the final entry in your rank system

image

This is telling mhq that one of the role categories should inherit the MechWarrior rank, however as the MechWarrior rank is null, mhq silently fails to load the rank system. I'm also somewhat confident that the file should be called 'ranks' and that the opening tag should be rankSystems however, I could be wrong there.

I also noticed you had a lot of duplicate rank names, instead of using the inherit rank option.

I've included a cleaned up, working, copy of your rank system below.

ranks.xml.zip

Closing as non-valid issue :)