Page 1 of 1

ZipException error

Posted: 07 Nov 2011, 17:30
by macio
Hi, ive got some problems with my gamebox. Im on early stages, so I only tried to open a basic scenario, to see how im going. Unfortunately, the error message appeared -> "Error of type ZipException: Wrong local header signature". Theres my files. Please tell me what im doing wrong...

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box
	name="Hattrick"
	description="Hattrick - planszowa symulacja meczu pi&#322;karskiego"
	copyright="Maciej Laskowski"
	startup-scenario="mecz.zts">
        <dice-hand type="D6">
        <dice count="1" color="ffffff" pips="000000" />        
        <dice-hand type="D10">
        <dice count="1" color="ffffff" pips="000000" />
	</dice-hand>
        <map name="boisko" image-file="boisko.jpg" resolution="150 dpi" />
        <counter-sheet name="Pilkarze"
		front-image-file="pilkarze.jpg" front-resolution="150 dpi"
		back-image-file="pilkarze2.jpg" back-resolution="150 dpi">
	</counter-sheet>
</game-box>

Code: Select all

<?xml version="1.0" encoding="Windows-1252"?>
<game
	game-box="Hattrick"
	scenario-name="mecz"
	scenario-description="mecz"
	scenario-copyright="Maciej Laskowski">
	<layout board="boisko" />
	<layout board="pilkarze" />
</game>

Posted: 07 Nov 2011, 19:08
by Bill Barrett
Hi Macio,

Your XML has a Polish(?) character in it. Others have reported similar problems when using them - try deleting it...

Regards, Bill.

Posted: 07 Nov 2011, 19:21
by macio
still not working :(

i discovered that when im downloading working gamebox, unzip it and zip into .ztb file on my own, then the game isnt working. Problems with winrar? Any clue? :(

Posted: 07 Nov 2011, 19:32
by macio
Shame on me. I was using .rar format, not .zip... :roll: Thanks for help!

Posted: 07 Nov 2011, 19:37
by Bill Barrett
You also need to insert the End Tag: </dice-hand> on a new line preceding: <dice-hand type="D10">

Regards, Bill.

Posted: 07 Nov 2011, 19:59
by macio
Another question. Why the countersheet do not appear? Even its name (but there is a little bookmark near the bookmark of map, but without a name).

Current xml look

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box
	name="Hattrick"
	description="Hattrick - planszowa symulacja meczu pilkarskiego"
	copyright="Maciej Laskowski"
	startup-scenario="mecz.zts">
        <dice-hand type="D6">
        <dice count="1" color="ffffff" pips="000000" /> 
        </dice-hand>       
        <dice-hand type="D10">
        <dice count="1" color="ffffff" pips="000000" />
	</dice-hand>
        <map name="boisko" image-file="boisko.jpg" resolution="150 dpi" />
        <counter-sheet name="Pilkarze"
		front-image-file="pilkarze.jpg" front-resolution="150 dpi"
		back-image-file="pilkarze2.jpg" back-resolution="150 dpi">
                <counter-section rows="3" columns="12"
                front-left="0" front-top="0" front-right="575" front-bottom="178"
	        back-left="0" back-top="0" back-right="575" back-bottom="178" />	


</counter-sheet>
</game-box>

Posted: 07 Nov 2011, 20:07
by Bill Barrett
I think that's because your counter sheet is called "Pilkarze" (upper case starting letter) in your game-box file, but "pilkarze" (lower case) in your scenario file.

Try changing them so that they're exactly the same...

Regards, Bill.

Posted: 07 Nov 2011, 23:12
by macio
Thank you!:)

another - how to make back side of counters reverse (as in mirror)? Now first counter from left (on front sheet) have on its back the first counter from the right (on back sheet)...they doesnt fit

Posted: 08 Nov 2011, 00:15
by Bill Barrett
No problem :wink:

ZunTzu "expects" that your counter sheets are laid out as "real" ones would be (mirrored). The simplest solution is to make them that way in a graphics editor.

Regards, Bill.

Posted: 08 Nov 2011, 00:30
by macio
:( lot of work, i cant just flip it because text on counters would look like mirrored...
so, im going on - where i can find some command list for card/card decks/shuffling etc? :)

Posted: 08 Nov 2011, 01:28
by Bill Barrett
No, only the positions of the counters need to be mirrored.