Mask, what do I do wrong? (Vassal 3.0.17)

Hi,

I’m trying to use ‘Mask’ for masking player orders on a chart, but running it offline gives me my global button for masking, online its gone (really not sure why).

I have attached a little test harness showing what I’m trying to do and I hope some of you can give me some feedback, i.e. is it my module and me or is there something with Vassal?

The attached module tries the following:
Two players, Player 1 and Player 2. The players have a order sheet which both players can open but only the owning player can edit - this works as it should. I have made the sheet tabbed since I want more order tabs in the future (and in my real module). There should be a “Mask orders from opponent” button at the orders page (this is gone when I test online).
When clicked I want it to mask the map for the other side, i.e. when the players are giving orders the other side can’t peek. But I can’t really test this out since the button disappears. After all orders are written and they have moved their pieces on the main board (not in the test harness) they can open up for peeking to make sure no player is cheating.

Thanks for reading.

Cheers
Mark

Hi Mark,

This is a known bug in 3.0.17 Vassal that has been fixed in new 3.1 betas. Map buttons sometimes do not appear in sepearate map windows. You can make them appear by resizing the map window after opening it.

Regards,
Brent.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Hi Brent, I just tried installing 3.1.0-beta 2 here at work (Vista 64) and the buttons is still not there. They return as soon as I resize the window.

And back to the Mask… I’m not really sure what I do wrong since the mask dosn’t seem to work. Sometimes I get the “Orders is Masked” for Player 1, but Player 2 can still see Player 1 written orders, even though the masked graphics is enabled…?

Opening the above module in 3.1.0-beta 2 with the “Edit Module” gives a “NullPointerException”:

[96690993] -- OS Windows Vista -- Java version 1.6.0_07 -- VASSAL version 3.1.0-beta2 -- Manager [159530447] -- OS Windows Vista -- Java version 1.6.0_07 -- VASSAL version 3.1.0-beta2 -- Editor -- Mask Test version 0.0 [96690993] java.lang.NullPointerException at VASSAL.launch.ModuleManagerWindow$MyTreeNode.findNode(ModuleManagerWindow.java:747) at VASSAL.launch.ModuleManagerWindow$MyTreeNode.contains(ModuleManagerWindow.java:761) at VASSAL.launch.ModuleManagerWindow.addModule(ModuleManagerWindow.java:589) at VASSAL.launch.AbstractLaunchAction$LaunchCommandServer.reply(AbstractLaunchAction.java:297) at VASSAL.launch.CommandServer.run(CommandServer.java:61) at java.lang.Thread.run(Unknown Source) [159530447] java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at VASSAL.launch.CommandClient.request(CommandClient.java:63) at VASSAL.launch.Editor.launch(Editor.java:118) at VASSAL.launch.Launcher.extractResourcesAndLaunch(Launcher.java:135) at VASSAL.launch.Launcher$1.run(Launcher.java:122) at java.awt.event.InvocationEvent.dispatch(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) at java.awt.EventDispatchThread.run(Unknown Source)

Thus spake “Cougar_DK”:

You’re hitting a bug which is fixed in beta3.

vassalengine.org/forums/viewtopic.php?t=972


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Great, I didn’t realize that beta 3 was available…hihi.

Thanks for the hard work guys!

I just tried the above module with beta 3 and the Mask buttons still initializes blank. One has to resize the window to get them visible.

Thus spake “Cougar_DK”:

That’s a bug. Someone should look into fixing it.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)