Mask File Problem

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

Moderators: Ichibrothers, Cambronne

Post Reply
Saladin
010
Posts: 12
Joined: 18 Mar 2008, 07:24

Mask File Problem

Post by Saladin »

I have added two counter sheets to this module - both using masks. The first counter sheet is working fine, but the mask is shifted on the back (not the front) of the second counter sheet.

The front and back and both masks of the second counter sheet come from the same Photoshop file so I can't see any reason it should be shifted.

Here's a screen cap with some counters moved to show what I mean. (Your image uploading doesn't work.)

Image

And here's my file:

http://www.johnkantor.com/public_html/i ... roblem.ztb

Code: Select all

<?xml version="1.0" encoding="windows-1252"?>
<game-box
	name="Where There is Discord"
	description="The War for the Falklands/Malvinas, 1982"
	copyright="Fifth Column Games, 2009"
	startup-scenario="Campaign-Start.zts">
	<map name="Main Board" image-file="WTDMap.jpg" resolution="150 dpi" />   
	<counter-sheet name="Counters-1"
        front-image-file="Sheet-1-Front.jpg" front-resolution="150 dpi"
	front-mask-file="Sheet-1-Front-Mask.png"
        back-image-file="Sheet-1-Back.jpg" Back-resolution="150 dpi"
	back-mask-file="Sheet-1-Back-Mask.png">
        <counter-section rows="11" columns="4"
			front-left="55" front-top="29" front-right="881" front-bottom="2310"
			back-left="55" back-top="29" back-right="881" back-bottom="2300" />
	</counter-sheet>
	<counter-sheet name="Counters-2"
        front-image-file="Sheet-2-Front.jpg" front-resolution="150 dpi"
	front-mask-file="Sheet-2-Front-Mask.png"
        back-image-file="Sheet-2-Back.jpg" back-resolution="150 dpi"
	back-mask-file="Sheet-2-Back-Mask.png">
        <counter-section rows="11" columns="6"
			front-left="28" front-top="42" front-right="1273" front-bottom="2310"
			back-left="28" back-top="42" back-right="1273" back-bottom="2310" />
	</counter-sheet>
</game-box>
Saladin
010
Posts: 12
Joined: 18 Mar 2008, 07:24

Post by Saladin »

I added the third counter sheet and the mask on the back of that one is not working at all. (It's identical to the mask on the front.)

Code: Select all

<?xml version="1.0" encoding="windows-1252"?>
<game-box
	name="Where There is Discord"
	description="The War for the Falklands/Malvinas, 1982"
	copyright="Fifth Column Games, 2009"
	startup-scenario="Campaign-Start.zts">

	<map name="Main Board" image-file="WTDMap.jpg" resolution="150 dpi" />
  
	<counter-sheet name="Counters-1"
        front-image-file="Sheet-1-Front.jpg" front-resolution="150 dpi"
	front-mask-file="Sheet-1-Front-Mask.png"
        back-image-file="Sheet-1-Back.jpg" back-resolution="150 dpi"
	back-mask-file="Sheet-1-Back-Mask.png">
        <counter-section rows="11" columns="4"
			front-left="55" front-top="29" front-right="881" front-bottom="2310"
			back-left="55" back-top="29" back-right="881" back-bottom="2300" />
	</counter-sheet>
	
	<counter-sheet name="Counters-2"
        front-image-file="Sheet-2-Front.jpg" front-resolution="150 dpi"
	front-mask-file="Sheet-2-Front-Mask.png"
        back-image-file="Sheet-2-Back.jpg" back-resolution="150 dpi"
	back-mask-file="Sheet-2-Back-Mask.png">
        <counter-section rows="11" columns="6"
			front-left="28" front-top="42" front-right="1273" front-bottom="2310"
			back-left="28" back-top="42" back-right="1273" back-bottom="2310" />
	</counter-sheet>

	<counter-sheet name="Counters-3"
        front-image-file="Sheet-3-Front.jpg" front-resolution="150 dpi"
	front-mask-file="Sheet-3-Front-Mask.png"
        back-image-file="Sheet-3-Back.jpg" back-resolution="150 dpi"
	back-mask-file="Sheet-3-Back-Mask.png">
        <counter-section rows="11" columns="6"
			front-left="55" front-top="30" front-right="1292" front-bottom="2300"
			back-left="55" back-top="30" back-right="1292" back-bottom="2300" />
	</counter-sheet>
</game-box>
Saladin
010
Posts: 12
Joined: 18 Mar 2008, 07:24

Post by Saladin »

I redid my masks for Countersheet 1 because I was getting a grey box around the counters (probably because the mask was not true black). Now I don't get the grey box, but the mask on the front of the counter sheet is shifted (in the opposite direction of the mask for the back of counter sheet 2). The front is fine.

And here's the newest file.

http://www.johnkantor.com/public_html/i ... oblem2.ztb
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

OK John - I've worked out that there's something amiss with your mask files...

To fix them, load each one into Photoshop, select "Flatten Image" and then save them. All will be fine and dandy :D

One more thing though - you shouldn't really need so many mask files anyway, as one would do; you'd need to adjust the alignments on the counter sheets (to make back and front match) and add a border to the right of sheet 1 to match the size of the mask, but you'd save on memory and loading time.

Regards, Bill.
Saladin
010
Posts: 12
Joined: 18 Mar 2008, 07:24

Post by Saladin »

Yes, I see what the problem is - they have transparent openings rather than white. (I used separate masks because the counter sheets are sort of flaky. It's not just the front and back registration - they actually don't have good consistency between front and back, so different masks work better.)

So it's working now. Thanks!
Post Reply