GPID, PlaceMarker, and Prototypes

Apparently prototypes don’t permit you to add the PlaceMarker trait and I don’t see why. Something funny happens at line 607 of PieceDefiner.java:
((PlaceMarker) c).updateGpId(gpidSupport);
gpidSupport is null which results in a NullPointerException on line 321 of PlaceMarker.java
setGpId(gpidSupport.generateGpId());

On a separate note, can someone point me to the discussion on GpIds? I was away when that was discussed and I could never catch up to that. I don’t think I understand what GpIds were for.

Replace with other cannot be added either, but that might be a good thing as it wouldn’t make a whole lot of sense for Prototypes.

Adding Place marker and Replace with other works in 3.0.17 so the problem
has appeared since then in the svn builds somewhere

Post generated using Mail2Forum (mail2forum.com)

I’ll look into this this evening,

You should find the GpId discussion in the Developer section somewhere. GpId’s are stage 1 of the new online save game updater I will be writing for v3.2.

Regards,
Brent.


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

Post generated using Mail2Forum (mail2forum.com)

Fixed in swampwallaby-merge@3292

Brent.

*********** REPLY SEPARATOR ***********

On 12/03/2008 at 5:45 AM mkiefte wrote:


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

Post generated using Mail2Forum (mail2forum.com)