# GPID, PlaceMarker, and Prototypes

**URL:** <https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375>\
**Category:** Development\
**Created:** [March 12, 2008, 12:45pm UTC](https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375 "2008-03-12T12:45:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkiefte](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/mkiefte/32/25_2.png) [@mkiefte](https://forum.vassalengine.org/u/mkiefte)\
**Post date:** [March 12, 2008, 12:45pm UTC](https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375/1 "2008-03-12T12:45:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [March 12, 2008, 4:52pm UTC](https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375/2 "2008-03-12T16:52:06Z")

</div>

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](http://www.mail2forum.com))

---

<div class="post-metadata">

**Author:** ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)\
**Post date:** [March 12, 2008, 8:10pm UTC](https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375/3 "2008-03-12T20:10:41Z")

</div>

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.

> [@](#):
>
> 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.

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org)  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))

---

<div class="post-metadata">

**Author:** ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)\
**Post date:** [March 13, 2008, 10:06am UTC](https://forum.vassalengine.org/t/gpid-placemarker-and-prototypes/375/4 "2008-03-13T10:06:59Z")

</div>

Fixed in swampwallaby-merge@3292

Brent.

\*\*\*\*\*\*\*\*\*\*\* REPLY SEPARATOR \*\*\*\*\*\*\*\*\*\*\*

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

> [@](#):
>
> 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());

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org)  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))
