Menu

#188 Superheavy Meks have issues printing sheets

Stable
open
nobody
None
accepted
1
2015-07-08
2015-07-08
No

It looks like we don't have enough armor templates defined for 'mechs with armor over 19.5 tons. Once you start getting armor over 21 or so tons, you can start receiving ClassNotFoundExceptions. For instance:

java.lang.ClassNotFoundException: megameklab.com.ui.Mek.Printing.Armor_CT_49_Humanoid
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at megameklab.com.ui.Mek.Printing.PrintMech.printImage(PrintMech.java:147)
at megameklab.com.ui.Mek.Printing.PrintMech.print(PrintMech.java:86)
at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2017)
at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1465)
at megameklab.com.ui.Mek.Printing.PrintMech.print(PrintMech.java:611)
at megameklab.com.util.UnitPrintManager.printAllUnits(UnitPrintManager.java:222)

This was first reported on the MM forums: http://megamek.info/forums/index.php?topic=2141.0.

Discussion

  • Sebastian Brocks

    For 48 and 49 CT armor, I fixed this in [r1544].

     

    Related

    Commit: [r1544]

    • Nicholas Walczak

      I thought I was up-to-date when I tested it, perhaps I forgot to pull. Regardless, this was not the only exception in the logfile, it was just the one I happened to pull. I remember seeing other exceptions related to torsos.

       

Log in to post a comment.