Mekwars megamek client settings error

Issues with the server software (not campaign)

Moderators: Torren, Moderators

Post Reply
Ravage
Mekwars Server Operator
Posts: 138
Joined: Sun Feb 17, 2008 3:02 am

Mekwars megamek client settings error

Post by Ravage » Thu Apr 05, 2018 3:57 am

Ok not a mekwars issue exactly, but it is the megamek that is bundled with mekwars hence posting here.

Im using version 7 of mekwars.

Compiled successfully no errors.

Get the following errors:

Code: Select all

ERROR: Bad skin specification file: file doesn't exist!  File name: BW - Default.xml
Then if you select "client settings" in the view menu (and only client settings), you get:

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Unknown Source)
	at java.util.Arrays$ArrayList.<init>(Unknown Source)
	at java.util.Arrays.asList(Unknown Source)
	at megamek.client.ui.swing.CommonSettingsDialog.setVisible(CommonSettingsDialog.java:814)
	at megamek.client.ui.swing.ClientGUI.showSettings(ClientGUI.java:619)
	at megamek.client.ui.swing.ClientGUI.actionPerformed(ClientGUI.java:735)
	at megamek.client.ui.swing.CommonMenuBar.actionPerformed(CommonMenuBar.java:806)
	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.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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)
I think it is something to do wityh the BW - Default.xml file beuing ablke to be found, even though it is in the default location.

I'ved checked 6.0.5 mekwars and this issue is not present.

Maybe a dud version of megamek?

Ravage
Mekwars Server Operator
Posts: 138
Joined: Sun Feb 17, 2008 3:02 am

Re: Mekwars megamek client settings error

Post by Ravage » Thu Apr 05, 2018 4:35 am

Ok looks like the issue stems from the data in mmconf in the root directory of the client is where megamek was expecting all the regular mmconf files to be not in the data/mmconf location.

However that leaves us with another bug, the done button is a bit wonky unless you choose a different skin, and the unit window loses ITS skin...

Spork
Mekwars Developer
Posts: 3868
Joined: Wed Feb 13, 2008 10:23 pm

Re: Mekwars megamek client settings error

Post by Spork » Tue Apr 10, 2018 7:32 pm

If we look at code, we can tell exactly what the error is, without guessing.

I run the current version of MekWars on several servers without this error. My guess would be that your client is missing images.
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.

Ravage
Mekwars Server Operator
Posts: 138
Joined: Sun Feb 17, 2008 3:02 am

Re: Mekwars megamek client settings error

Post by Ravage » Tue Apr 10, 2018 8:26 pm

We foun it mostly had to do with images from the 605 client being copied over it must of caused some issues. Still working through some issues (deds being one still) and unit window backgrounds as well

Post Reply