Create account / Log in

Invisible Cards

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Invisible Cards

Postby Clay » July 6th, 2011, 8:35 pm

Hello,

I've tried to browse the documentation and the forums for an answer, but nothing I try works...

I've made a simple module where players draw from a deck of tokens and place them on a map. However, when I draw a token, it's invisible to the other player, and when they draw a token, it is likewise invisible to me. The token is not FACE DOWN, but literally INVISIBLE.

I only have a few traits in the entire game. There is a deck of cards with a mask trait for each card, with a back defined. I've set the deck to where new cards are drawn face up. I have also set the global option that cards can be unmasked by anybody. Even if I remove the mask entirely, cards still apear invisible to each player.

There is literally nothing else to the game except some game pieces (pawns) which appear fine for everyone.

Any help would be greatly appreciated.
Clay
 
Posts: 3
Joined: July 6th, 2011, 8:31 pm

Re: Invisible Cards

Postby mycenae » July 6th, 2011, 9:04 pm

I'm surmising that you've tested this with another player...

So is it possible you're not synched to one another? If you weren't synched, you would both see the At-Start stacks defined in the game, but you wouldn't see each other draw pieces from a deck.
mycenae
 
Posts: 392
Joined: May 16th, 2008, 6:41 pm

Re: Invisible Cards

Postby Clay » July 6th, 2011, 9:08 pm

I guess this attests to my newbie-ness, but I'm not sure what you mean. How does one determine if you're synced?

I can see him move and place the game pieces (pawns) just not cards from the deck.
Clay
 
Posts: 3
Joined: July 6th, 2011, 8:31 pm

Re: Invisible Cards

Postby Clay » July 6th, 2011, 9:40 pm

I looked up syncing in the manual, and it fixed my issue!

Thanks! sorry for the nooby question.
Clay
 
Posts: 3
Joined: July 6th, 2011, 8:31 pm

Re: Invisible Cards

Postby DrNostromo » July 7th, 2011, 2:44 am

Do you have two mask images? If you have just one, then you're not displaying a mask image to the other player. Your mask trait has a "View when Masked" option, which is the back of the card. Below that, you need to include an image that is shown to you when the card is faced down to the other player. Missing one of these images may make the cards invisible. This second image could just be a repeat of the first image or it could be some sort of symbol. Here's an example:

MaskSample.png
MaskSample.png (96.97 KiB) Viewed 1349 times


When a card is face down to a player, they see the top image. The player who owns the card can see the card face but it will have the small symbol image shown below the main image on the card face. That tells the owner of the card it's still face down to their opponent.
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Invisible Cards

Postby Tim M » July 7th, 2011, 12:44 pm

The OP says they have set the deck to draw cards face up so the masking doesn't matter here.

"I've set the deck to where new cards are drawn face up. I have also set the global option that cards can be unmasked by anybody. Even if I remove the mask entirely, cards still apear invisible to each player."


This sounds more like that there isn't actually any image defined for the actual card itself
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron