This might be more of an anomaly - non-fatal. And perhaps I’m just not doing something right.
I have a piece prototype Definition with a Layer trait that references a numeric Dynamic Property that’s defined in another prototype. The prototype that defines the property (I’ll call it the “base prototype”) is included as a Prototype trait in the prototype that references the property (“child prototype”). It seems to work as I intend it to, but I frequently get error messages like the following in the error log when I’m editing the child prototype:
08 Jun 2009 23:39:43.707 2 [Layer - front and back] - Numeric field contains a non-number: followProperty[isShaken]=null
08 Jun 2009 23:39:43.707 2 java.lang.NumberFormatException: For input string: “null”
Similar thing happens if I create a Game Piece based on the child prototype.
“isShaken” is the property defined in the base prototype, “front and back” is the Layer in the child proto that references isShaken. isShaken is a numeric property with min, max and intiial values defined, with wrapping enabled.
Seems that the editor is having difficulty referencing the property, or is not initializing it correctly? Or I’m just doing something wrong? My intended functionality otherwise seems to work correctly, and the error messages don’t seem to appear when I run (play) the module. Nevertheless - unexplained error messages spook me. Even if the errors are innocuous, they pollute the error log.
I tried searching the bug tracker for some of the error text, but came up empty. Has this been reported? Or am I just doing something ill-advised? (I’m new to VASSAL, so still figuring things out).
Running Mac OSX 10.4.11, Java version 1.5.0_16, VASSAL version 3.1.6.