# Cards not loading properly from a save

**URL:** <https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494>\
**Category:** Technical Support & Bugs\
**Created:** [December 11, 2012, 2:24am UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494 "2012-12-11T02:24:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheveedodd](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cheveedodd/32/173_2.png) [@cheveedodd](https://forum.vassalengine.org/u/cheveedodd)\
**Post date:** [December 11, 2012, 2:24am UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/1 "2012-12-11T02:24:08Z")

</div>

I’ve built a module to help me test a prototype I’m working on. My game uses cards and color-coded markers for each player.  
Cards are dealt from the top of the deck on to the table and markers are placed on top of these cards.

In the module, there is one deck for the main deck of cards and four ‘decks’ that represent the marker tokens… one deck for each player. I used a deck of cards because there are a fixed number of each token per player.

So, a number of cards are dealt from the main deck onto the board. Then, players may place tokens from their deck on top of the cards. This all works okay. I had to turn stacking off so the players could position their markers freely on the cards… position matters.

If the game is saved, however, when re-opened, the markers are now below the cards.  
Any ideas?

---

<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:** [December 11, 2012, 12:30pm UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/2 "2012-12-11T12:30:16Z")

</div>

Have you set your game piece layers properly?

-----Original Message-----  
From: [messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)  
[[mailto:messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)] On Behalf Of cheveedodd  
Sent: Monday, December 10, 2012 8:25 PM  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Subject: [messages] Edit: Re: [Technical Support & Bugs] Cards not loading  
properly from a save

[This message has been edited.]

I’ve built a module to help me test a prototype I’m working on. My game  
uses cards and color-coded markers for each player.  
Cards are dealt from the top of the deck on to the table and markers are  
placed on top of these cards.

In the module, there is one deck for the main deck of cards and four ‘decks’  
that represent the marker tokens… one deck for each player. I used a deck  
of cards because there are a fixed number of each token per player.

So, a number of cards are dealt from the main deck onto the board.  
Then, players may place tokens from their deck on top of the cards.  
This all works okay. I had to turn stacking off so the players could  
position their markers freely on the cards… position matters.

If the game is saved, however, when re-opened, the markers are now below the  
cards.  
Any ideas?

* * *

Read this topic online here:  
[https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/1](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/1)

---

<div class="post-metadata">

**Author:** ![cheveedodd](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cheveedodd/32/173_2.png) [@cheveedodd](https://forum.vassalengine.org/u/cheveedodd)\
**Post date:** [December 11, 2012, 12:39pm UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/3 "2012-12-11T12:39:56Z")

</div>

Layers? None of these pieces have layers. I’m not sure what you mean.

---

<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:** [December 11, 2012, 1:38pm UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/4 "2012-12-11T13:38:29Z")

</div>

> [@cheveedodd](#):
>
> Layers? None of these pieces have layers. I’m not sure what you mean.

[vassalengine.org/mediawiki/i … rguide.pdf](http://www.vassalengine.org/mediawiki/images/b/b0/Vassal_3.1_designerguide.pdf)

Page 25 - Game Piece Layers

---

<div class="post-metadata">

**Author:** ![cheveedodd](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cheveedodd/32/173_2.png) [@cheveedodd](https://forum.vassalengine.org/u/cheveedodd)\
**Post date:** [December 11, 2012, 2:19pm UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/5 "2012-12-11T14:19:42Z")

</div>

Thank you!  
… that’s awesome, AND confusing. 🙂

I’ll fiddle with it and if I can’t figure it out, I’ll ask more.

---

<div class="post-metadata">

**Author:** ![cheveedodd](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cheveedodd/32/173_2.png) [@cheveedodd](https://forum.vassalengine.org/u/cheveedodd)\
**Post date:** [December 11, 2012, 2:31pm UTC](https://forum.vassalengine.org/t/cards-not-loading-properly-from-a-save/5494/6 "2012-12-11T14:31:28Z")

</div>

Alright… so, new problem:

I set up a Game Piece Layer for the Map  
Two layers: Card, Marker - with marker BELOW the card (so it’s always on top, right?)

I right-clicked the appropriate deck → Edit all Containing Pieces  
Marker → Layer Value → Card (for the deck of cards)  
and  
Marker - \> Layer Value → Marker (for the tokens)

That works fine for making sure the tokens are on top of the cards.  
BUT, if I put a token on top of a deck of cards, the deck becomes invisible and the token stacks with the deck… I thought they were supposed to be unstackable if they were in different layers? Does this not work with decks and only individual cards?
