Mask problem - ZunTzu freezes

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

Moderators: Ichibrothers, Cambronne, Chobham_1980

Post Reply
gogglesofescape
Posts: 3
Joined: 29 Jan 2014, 07:02
Location: New Zealand

Mask problem - ZunTzu freezes

Post by gogglesofescape »

Hopefully someone can shed light on this problem I am having. I haven't seen anyone else post about a problem like this before. This is going to be a long post, so bare with me.

While testing a gamebox I was making, ZunTzu freezes while loading the graphics. No error message, or report. Just 'ZunTzu.exe has stopped working". When I add the file through the library it doesn't detect it as having any problems or errors.

Now the problem seems to come from a Mask file. If I remove the mask file code the gamebox works fine. The mask is the same exact dimensions as the countersheet. I tried remaking it, but still no luck. There is another mask file in the gamebox, made using the same methods and it works perfectly. In fact I have never come across this issue with any gamebox I have made before. Just this one file. I wouldn't bother using a mask for this if it weren't for some round counters that I would prefer to keep...well, round.

I am sure that it is probably something really simple I have overlooked. I'll post some of the xml code, though I don't believe any of it is wrong. Mostly just wondering if anyone else has had this sort of issue:

<counter-sheet name="orcs"
front-image-file="orcs.png" front-resolution="150 dpi"
front-mask-file="orcs-mask.png">

<counter-section rows="4" columns="3"
front-left="1" front-top="1" front-right="504" front-bottom="341"
supply="30"/>

<counter-section rows="3" columns="3"
front-left="545" front-top="1" front-right="803" front-bottom="506"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="841" front-top="9" front-right="944" front-bottom="106"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="955" front-top="8" front-right="1059" front-bottom="105"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="1072" front-top="10" front-right="1172" front-bottom="104"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="844" front-top="123" front-right="938" front-bottom="213"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="956" front-top="124" front-right="1049" front-bottom="215"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="840" front-top="256" front-right="886" front-bottom="301"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="890" front-top="253" front-right="934" front-bottom="299"
supply="30"/>

<counter-section rows="1" columns="1"
front-left="937" front-top="249" front-right="990" front-bottom="303"
supply="30"/>


</counter-sheet>

I apologise now if the xml code for the counter cutting is a bit messy. Probably haven't laid out the counters in the most efficient manner.
User avatar
Bill Barrett
231
Posts: 343
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

Are you sure that your.png mask file has been saved as non-interlaced?
gogglesofescape
Posts: 3
Joined: 29 Jan 2014, 07:02
Location: New Zealand

Post by gogglesofescape »

Hi Bill; thanks for the reply.
But no, the image is not interlaced.
gogglesofescape
Posts: 3
Joined: 29 Jan 2014, 07:02
Location: New Zealand

Post by gogglesofescape »

I've decided it will be quicker to go back and modify images from an older version of the gamebox. So far I have had no issues - was just a pain having to tweak proportions and scale of tokens to include some of the things from the newer version.

Still, if anyone has had a similar freezing issue to the one described in the first post, I would still be curious to here what the cause was.
sirafin
Posts: 1
Joined: 04 Feb 2014, 23:07

Post by sirafin »

Hi!

I had a similar problem with one mask file. My code looks like this.

Code: Select all

<counter-sheet name="Mystery" 
	front-image-file="mystery.jpg"		front-mask-file="mystery_mask.png"
	back-image-file="mystery_rew.jpg"		back-mask-file="mystery_rew_mask.png" >
	
	<card-section type="CardFacesOnFrontBackOnOtherSide" columns="4"
		face-left="0" 		face-top="0" 	face-right="1000" 	face-bottom="600" 
		back-left="0" 		back-top="0" 	back-right="360" 	back-bottom="510" />
		
</counter-sheet>
It's hard to believe but problem was... height of the mask file. I don't know why, but 510 height cause freezing issue. Width was irrelevant, I checked it. I changed mystery_rew_mask.png file (and mystery_rew.jpg of course), set height to 515 and it works.

Try to change a little bit size of your files. I hope this helps :)
Post Reply