Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vehicle Image Not Working For Custom Entries
#1
All,

I have tried both MML 0.42.2 and MekHQ 0.43.3, but when entering a custom vehicle, it will not allow me to set the fluff image. At first I thought the images were too big, so I trimmed them down, still won't attach. So I changed from .jpg, to .jpeg, to .png, to .bmp...no success.

I also checked the forums before posting, and I tried the tips in the other thread where someone was having issues attaching vehicle images to their files...but I wasn't fully sure it would work as I'm not trying to get them in game either.

More than happy to PM the files over so you can check it out...just let me know.

Thanks!
Derek
Reply
#2
I've been meaning to look into this, but haven't gotten around to it.

Did you happen to check the logfile to see if any errors appear? I haven't ever looked at the code for this, and I don't use this feature too much, so I can't really say much without looking into it further.
Reply
#3
(09-13-2017, 09:18 AM)Arlith Wrote: I've been meaning to look into this, but haven't gotten around to it.

Did you happen to check the logfile to see if any errors appear?  I haven't ever looked at the code for this, and I don't use this feature too much, so I can't really say much without looking into it further.

No problem, here's the log file...but most of it is jibberish to me! LOL I do find it interesting it status I'm using version 0.43.2-git when I'm using 0.42.2!

Code:
Memory Allocated [518979]
Starting MegaMekLab version: 0.43.2-git
MMRandom: generating RNG type #1
Error parsing null!
megamek.common.loaders.EntityLoadingException: Could not find block.
    at megamek.common.loaders.BLKMechFile.getEntity(BLKMechFile.java:91)
    at megamek.common.MechFileParser.parse(MechFileParser.java:204)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:85)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:77)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:563)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:528)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:246)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:95)
    at java.lang.Thread.run(Unknown Source)
Error parsing null!
megamek.common.loaders.EntityLoadingException: Unsupported file suffix
    at megamek.common.MechFileParser.parse(MechFileParser.java:201)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:85)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:77)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:563)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:528)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:246)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:95)
    at java.lang.Thread.run(Unknown Source)

Reading unit files:
 Reading from unit cache file...
 Looking in data\mechfiles...
 Looking in data\mechfiles\Barbosa...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\battlearmor.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\convfighter.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\D.Jensen...
 ...loaded 0 files.
 Looking in data\mechfiles\DQIII...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships...
 Looking in data\mechfiles\dropships\3057r...
 Looking in data\mechfiles\dropships\3057r\Clan...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3057r\IS...
 ...loaded 0 files.
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3067 Unabridged...
 Looking in data\mechfiles\dropships\3067 Unabridged\Clan Dropships...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3067 Unabridged\IS Dropships...
 ...loaded 0 files.
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3075...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3085...
 Looking in data\mechfiles\dropships\3085\Cutting Edge...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3085\ONN...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3085\Supplemental...
 ...loaded 0 files.
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3145...
 Looking in data\mechfiles\dropships\3145\Marik...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3145\Merc...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3145\NTNU RS...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3145\Republic...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\3145\Steiner...
 ...loaded 0 files.
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\HBHK...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\HBMPS...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\Hist LOT I...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\Hist Reunification War...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\Hist WOTRA...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\IS...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\JHS Terra...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\JS Blake Documents...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\ProtoTypes...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs...
 Looking in data\mechfiles\dropships\XTRs\Davion...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Kurita...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Liao...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Marik...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Periphery...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Phantoms...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Pirates...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Primitives II...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Primitives III...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Primitives IV...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Primitives V...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Republic I...
 ...loaded 0 files.
 Looking in data\mechfiles\dropships\XTRs\Steiner...
 ...loaded 0 files.
 ...loaded 0 files.
 ...loaded 0 files.
 Looking in zip file data\mechfiles\dropships.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\Enze...
   Loading from data\mechfiles\Enze\Nightmare.blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Nightmare.blk, Could not find block.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:77)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:563)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:528)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:246)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:95)
    at java.lang.Thread.run(Unknown Source)

 ...loaded 0 files.
 Looking in zip file data\mechfiles\fighters.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\ge.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\infantry.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\jumpships.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\Matthew Hipkin...
 ...loaded 0 files.
 Looking in data\mechfiles\Mech42Ace...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\mechs.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\Nahuris...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\protomechs.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\Psyckosama...
   Loading from data\mechfiles\Psyckosama\Volkspanzer Vier VP04.saw
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Volkspanzer Vier VP04.saw, Unsupported file suffix
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:77)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:563)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:528)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:246)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:95)
    at java.lang.Thread.run(Unknown Source)

 ...loaded 0 files.
 Looking in data\mechfiles\Savage Coyote...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\smallcraft.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\spacestation.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\TheBlob...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\unofficial.zip...
 ...loaded 0 files.
 Looking in data\mechfiles\Vehicles...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\vehicles.zip...
 ...loaded 0 files.
 Looking in zip file data\mechfiles\warship.zip...
 ...loaded 0 files.
 ...loaded 0 files.
8526 units loaded.
 2 units failed to load...
WARN: Could not load custom weapon orders from customWeaponOrder.xml
Starting MegaMekLab version: 0.43.2-git
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: megamek.common.Tank cannot be cast to megamek.common.Mech
    at megameklab.com.util.ITab.getMech(ITab.java:41)
    at megameklab.com.ui.Vehicle.StatusBar.getFluffImage(StatusBar.java:222)
    at megameklab.com.ui.Vehicle.StatusBar.access$100(StatusBar.java:42)
    at megameklab.com.ui.Vehicle.StatusBar$2.actionPerformed(StatusBar.java:84)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$500(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
Reply
#4
There was a mistake in the packaging for the 0.42.2 release, and the version was set to 0.43.2-git instead of 0.43.2.

It does look like there's a bug here though. It would appear that you're setting the fluff image for a tank, and that's causing issues.
Reply
#5
Right...I'm trying to set a fluff image for a tank design.
Reply
#6
It would probably be good to make a bug report regarding this issue, attaching the logfile. Looking at your logfile, there's a stack trace towards the end that makes me think adding fluff images for non-mech units is broken. Getting a bug report is the best way to ensure it gets fixed.
Reply
#7
Looks like it was a copy/paste error in the code. I've fixed it and the fix will be in the next release.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  custom vehicle image issues syther 4 202 03-29-2017, 04:01 PM
Last Post: syther

Forum Jump:


Users browsing this thread: 1 Guest(s)