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 167 forks source link

[0.50.01 Nightly] Loading existing campaign causes clan_tech_knowledge error. #4890

Closed Tzahr closed 5 days ago

Tzahr commented 5 days ago

Prerequisites and Pre-Issue Checklist

Severity *

Low (Minor/Nuisance): Minor glitches or cosmetic issues that don’t affect gameplay and occur rarely.

Brief Description *

When loading an older, existing campaign, it will display the following message directly prior to loading:

image

The log shows variations of the following error:

04:11:35,329 ERROR [mekhq.campaign.personnel.Person] {SwingWorker-pool-2-thread-1} mekhq.campaign.personnel.Person.generateInstanceFromXML(Person.java:2605) - Error restoring advantage: {}

This message will appear multiple times. Clicking 'OK' through each of them will proceed with the campaign file loading fine. The affected Techs do not seem impacted.

This is highly like related to the removal of the Clan Tech Specialist SPA.

Steps to Reproduce

Load a campaign with Techs that have the Clan Tech SPA.

Operating System *

Windows 11

Java Version *

21.0.3

MekHQ Suite Version *

Free Text (type manually)

Custom MekHQ Version

Nightly 0.50.01 - 621775698d20e6bb8b6ef8d55600a79af7d4593a

Attach Files

mekhq.log

Final Checklist

IllianiCBT commented 5 days ago

Can you upload a campaign file that includes a character with the removed SPA. Will make testing easier.

IllianiCBT commented 5 days ago

Closing as resolved