Card stacking

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

Moderators: Ichibrothers, Cambronne

Post Reply
DaGit
Posts: 3
Joined: 01 May 2009, 23:07

Card stacking

Post by DaGit »

Hello.
First, thanks for creating ZunTzu.
Im currently trying to create a Mare Nostrum gamebox. So far everything is working fine, except for card-stacking. The cardstacks are stacked like counters and not like the cards in the Poker-gamebox.
I compared my gamebox.xml and my startupscenario with the ones in the pokergamebox and im not
getting what exactly i have to enter do stack the cards correctly, so only the top cards is selected and the screen doesnt overflow.
So could some please state the exact line i have to enter?
Thx.
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

The cardstacks are stacked like counters and not like the cards in the Poker-gamebox.
Hi DaGit, it looks to me as if you've defined the cards as counters in your gamebox.

If you change "counter-section" to "card-section" on all the lines that refer to the cards, it should fix it.

Regards, Bill.
DaGit
Posts: 3
Joined: 01 May 2009, 23:07

Post by DaGit »

Thanks a lot. I stupidly overread that.
I replaced counter-section with card section, but now i get an error:"FormatException".

I post my code below, if someone could be kindly looking over it.

<?xml version="1.0" encoding="windows-1252" ?>
<game-box
name="Mare Nostrum"
description="Mare Nostrum."
copyright="VaeVictis - Histoire & Collections 2003"
startup-scenario="startup.zts">
<dice-hand type="D6">
<dice count="8" color="ffffff" pips="000000" />
</dice-hand>
<dice-hand type="D6">
<dice count="8" color="ffffff" pips="000000" />
</dice-hand>
<map name="Board" image-file="mapa.jpg" resolution="150 dpi" />
<map name="Trading" image-file="trading.jpg" resolution="150 dpi" />
<counter-sheet name="Cards"
front-image-file="cards.jpg" front-resolution="150 dpi"
back-image-file="cardsback.jpg" back-resolution="150 dpi">
<cards-section rows="29" columns="5"
front-left="0" front-top="0" front-right="802" front-bottom="6990"
back-left="0" back-top="0" back-right="802" back-bottom="6990" />
</counter-sheet>
<counter-sheet name="Troops"
front-image-file="troops.jpg" front-resolution="150 dpi"
front-mask-file="troopsmask.png">
<counter-section rows="2" columns="6"
front-left="18" front-top="16" front-right="227" front-bottom="84" />
<counter-section rows="2" columns="6"
front-left="18" front-top="84" front-right="227" front-bottom="151" />
<counter-section rows="2" columns="6"
front-left="18" front-top="151" front-right="227" front-bottom="218" />
<counter-section rows="2" columns="6"
front-left="18" front-top="218" front-right="227" front-bottom="285" />
<counter-section rows="2" columns="6"
front-left="18" front-top="285" front-right="227" front-bottom="353" />
<counter-section rows="1" columns="8"
front-left="27" front-top="507" front-right="211" front-bottom="536" />
<counter-section rows="1" columns="8"
front-left="25" front-top="536" front-right="211" front-bottom="565" />
<counter-section rows="3" columns="8"
front-left="21" front-top="565" front-right="209" front-bottom="652" />
<counter-section rows="5" columns="8"
front-left="23" front-top="667" front-right="185" front-bottom="793" />
<counter-section rows="5" columns="5"
front-left="225" front-top="514" front-right="394" front-bottom="630" />
</counter-sheet>
<counter-sheet name="Tokens"
front-image-file="tokens.jpg" front-resolution="150 dpi"
front-mask-file="tokensmask.png">
<counter-section rows="7" columns="5"
front-left="0" front-top="0" front-right="267" front-bottom="356"/>
<counter-section rows="3" columns="5"
front-left="0" front-top="356" front-right="259" front-bottom="522"/>
<counter-section rows="3" columns="5"
front-left="0" front-top="523" front-right="269" front-bottom="687"/>
<counter-section rows="3" columns="3"
front-left="264" front-top="0" front-right="427" front-bottom="159"/>

</counter-sheet>
<counter-sheet name="HeroesWondersGods"
front-image-file="HeroesWondersGods.jpg" front-resolution="150 dpi">
<card-section rows="24" columns="5"
front-left="0" front-top="0" front-right="799" front-bottom="5782"/>
</counter-sheet>
</game-box>

It worked when card-section read counter-section.
Do i have to enter something beside card-section?
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

Hi DaGit,

This line:
<cards-section rows="29" columns="5"
Should be: <card-section rows="29" columns="5" (delete the "s" from "cards").

Hope it works...

Regards, Bill.
DaGit
Posts: 3
Joined: 01 May 2009, 23:07

Post by DaGit »

Thanks for your reply.
I corrected the line and still got the error. After that, I entered just nonsense instead of card (dshfgds-section) and got no error (it just didn't punched out the cards on the counter-sheet).
After that bizzare episode I just copied the line from the poker gamebox, and changed the row and column values, and suddendly it worked, despite the line saying the exact same thing when i just entered card-section myself.
Well, i have no clue about xml, so i probably formated the whole thing wrong.
Again, thanks for your answers.
jdhorux
Posts: 1
Joined: 26 Aug 2009, 14:41

Post by jdhorux »

I know that's too late to answer, but maybe it could be usefull for anybody.

The problem was the face/front diference:

<cards-section rows="29" columns="5"
front-left="0" front-top="0" front-right="802" front-bottom="6990"
back-left="0" back-top="0" back-right="802" back-bottom="6990" />


must be:

<card-section rows="29" columns="5"
face-left="0" face-top="0" face-right="802" face-bottom="6990"
back-left="0" back-top="0" back-right="802" back-bottom="6990" />
Post Reply