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

Unable to load saved 47.16 campaign #2396

Closed
SuperStucco opened this issue Jan 24, 2021 · 6 comments · Fixed by #2409
Closed

Unable to load saved 47.16 campaign #2396

SuperStucco opened this issue Jan 24, 2021 · 6 comments · Fixed by #2409
Labels
Bug Needs Investigation This issue needs investigation and/or triage. Needs More Info For when an issue needs more information from the user reporting Parts/Repair/Refit
Milestone

Comments

@SuperStucco
Copy link

After saving a campaign in 47.16, I cannot load it, or most of the auto-saves. The only thing I can point to, is

  • a change to a conventional infantry platoon, which seems to show up in the log.
  • an exception being thrown about battle armor

Brilliant Light III-Gamma30741228.cpnx.gz
megameklog.txt
BIIIG Customs.zip
BIIIG-BA.zip

@sixlettervariables
Copy link
Contributor

22:15:48,973 ERROR [mekhq.gui.dialog.DataLoadingDialog$Task] {AWT-EventQueue-0} 
done(), line 264 : megamek.common.Infantry cannot be cast to megamek.common.BattleArmor
java.lang.ClassCastException: megamek.common.Infantry cannot be cast to megamek.common.BattleArmor
	at mekhq.campaign.unit.Unit.initializeParts(Unit.java:2330)
	at mekhq.campaign.io.CampaignXmlParser.lambda$parse$2(CampaignXmlParser.java:452)
	at mekhq.campaign.Hangar.lambda$forEachUnit$0(Hangar.java:116)
	at java.util.LinkedHashMap.forEach(Unknown Source)
	at mekhq.campaign.Hangar.forEachUnit(Hangar.java:116)
	at mekhq.campaign.io.CampaignXmlParser.parse(CampaignXmlParser.java:449)
	at mekhq.campaign.CampaignFactory.createCampaign(CampaignFactory.java:83)
	at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:195)
	at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:130)
	at javax.swing.SwingWorker$1.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at javax.swing.SwingWorker.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

@sixlettervariables
Copy link
Contributor

Short a few customs:
image

@sixlettervariables sixlettervariables added Needs Investigation This issue needs investigation and/or triage. Needs More Info For when an issue needs more information from the user reporting Parts/Repair/Refit labels Feb 6, 2021
@SuperStucco
Copy link
Author

SuperStucco commented Feb 6, 2021

Should be in the 'Infantry Pack' from this post:
#2406 (comment)

@sixlettervariables
Copy link
Contributor

Somehow your Infantry platoon's auto-rifle became a battle armor equipment part...how odd.

@SuperStucco
Copy link
Author

Hmmm... wonder if that's related to something else I'm seeing. The stat display for conventional infantry has two tabs, 'Summary' and 'TRO'. While 'Summary' shows the correct primary and secondary weapons, the 'TRO' tab always shows them as the same even for the OOTB designs.

Infantry display bug

This happens in all three of MegaMek, MekHQ, and MML.

@Windchild292
Copy link
Contributor

Windchild292 commented Feb 6, 2021

That's a different bug (MM is displaying the name improperly), and I'll handle that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Investigation This issue needs investigation and/or triage. Needs More Info For when an issue needs more information from the user reporting Parts/Repair/Refit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants