Two questions (Exception & possible Bug)

hi,

  1. when i try to open my module in “3.1 beta 3” it always throws an exception and i don’t know why… (works fine in 3.0.17 and 3.1.0-svn4067)

2099871332]
– OS Windows XP
– Java version 1.6.0_06
– VASSAL version 3.1.0-beta3
– Manager
C:\Programme\Java\jre1.6.0_06\bin\java -Xms256M -Xmx512M -cp lib\Vengine.jar;Vengine.jar VASSAL.launch.Player
[185236909]
– OS Windows XP
– Java version 1.6.0_06
– VASSAL version 3.1.0-beta3
– Player
[185236909]
[185236909]
java.lang.NullPointerException
at VASSAL.tools.ErrorLog.log(ErrorLog.java:68)
at VASSAL.tools.ErrorDialog.warning(ErrorDialog.java:316)
at VASSAL.tools.ErrorDialog.warning(ErrorDialog.java:277)
at VASSAL.build.GameModule.setAttribute(GameModule.java:218)
at VASSAL.build.AbstractBuildable.build(AbstractBuildable.java:56)
at VASSAL.launch.BasicModule.build(BasicModule.java:136)
at VASSAL.launch.BasicModule.build(BasicModule.java:101)
at VASSAL.build.GameModule.init(GameModule.java:765)
at VASSAL.launch.Player.launch(Player.java:105)
at VASSAL.launch.Launcher$1.run(Launcher.java:131)
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)

  1. Because of that exception I’m using 3.1.0-svn4067 and I think I’ve found a Bug there (it reproduceable with a new blank module):

In the GamePicePalette I added a single piece, only containing the traits Basic Piece, Mask, Rotate (in this order). Mask displays the back of the piece to everyone and rotate can rotate the piece cw and ccw.
If I now play a game and add this piece I can mask it and rotate it… it works fine (most of the time) BUT when i unmask, and rotate it again (a few times) it suddenly changes between the mask state when I rotate it (…no, the keys are not the same).

Example:

  1. Drag into game window, mask, rotate, rotate, rotate, rotate … (works)
  2. Flip to front side, rotate, rotate, flip to back side, rotate rotate, rotate (somewhere between these rotate steps it will flip between the front and back side by itself… in the most cases after two rotate steps)

I think this is a bug because version 3.0.17 handles it the way I want it to (without changing automatically the mask states).

Strange thing:
It works for some other, older pieces… possible reasons are:

  • The faulty pieces were created by version 3.0.17, the new ones with svn4067
  • The faulty pieces have different height and width (the correct ones are quadratic)
  • The correct are cards in a deck, the other are single pieces in the GamePicePalette.

greets,
lesse

These are both fixed for the next 3.1 beta version.

rk

Post generated using Mail2Forum (mail2forum.com)