Card back problems

Do you need help installing or using ZunTzu? Would you like to report a bug?

Moderators: Ichibrothers, Cambronne

Post Reply
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Card back problems

Post by Hedge-o-Matic »

What is wrong with this code?

Code: Select all

       	<counter-sheet name="Cards" front-image-file="Cards.jpg" front-mask-file="Cards.png"
                back-image-file="Cardsback.jpg" back-mask-file="Cards.png">
		<card-section rows="4" columns="4"
			face-left="0" face-top="0" face-right="1050" face-bottom="1500"
			back-left="0" back-top="0" back-right="1050" back-bottom="1500" />
		</counter-sheet>
What this produces is a deck of 16 cards, each with the proper front face. The back face, however, is the entire card sheet all over again. Doesn't the back-image-file make the default image for the back the image shown? The back image for the card set is never used at all.
User avatar
Pokke
021
Posts: 58
Joined: 15 Jan 2009, 23:34

Post by Pokke »

Do you want each card to have a different back? (I'm not sure if that can be done as with counters)

This is my code:

Code: Select all

	<counter-sheet name="Catholic Cards"
		front-image-file="cards-cath.jpg" front-mask-file="cards-mask.png">
		<card-section rows="5" columns="11"
			face-left="0" face-top="0" face-right="3080" face-bottom="2000"
			back-left="3080" back-top="0" back-right="3360" back-bottom="400"/>
	</counter-sheet>
As you can see, I point for the back to a specific location in the same (single) cards bitmap.
I assume that cards can have only one image file, unlike counters.

But I'm not the expert, just my two cents.
Hedge-o-Matic
010
Posts: 42
Joined: 20 Apr 2008, 01:43
Location: The back of your mind

Post by Hedge-o-Matic »

Yeah, I figured it out. I switched to using the card tag, but didn't alter the image to show the back on the same sheet. It's just one stupid mistake after another, sometimes.

Thanks, though!
Post Reply