ZipException error

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

Moderators: Ichibrothers, Cambronne

Post Reply
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

ZipException error

Post 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>
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post 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.
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

Post 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? :(
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

Post by macio »

Shame on me. I was using .rar format, not .zip... :roll: Thanks for help!
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

You also need to insert the End Tag: </dice-hand> on a new line preceding: <dice-hand type="D10">

Regards, Bill.
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

Post 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>
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post 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.
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

Post 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
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post 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.
macio
Posts: 7
Joined: 07 Nov 2011, 17:28

Post 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? :)
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

No, only the positions of the counters need to be mirrored.
Post Reply