Help with gamebox!

Discuss game box design and sharing.

Moderators: Ichibrothers, Cambronne

User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Help with gamebox!

Post by steve_lampon »

Greetings, I am stuck and could do with some help. I am converting one of my own cyberboard gameboxes to ZunTzu, the artwork has all been redrawn, so I have no counter trees to scan. I have made two large jpeg files one front and one back. The files are 750 pixels x 800 pixels (15 counters wide by 16 counters deep).
The double sided counters are 15 counters wide by 14 counters deep and occupy the top section of the jpg file. The single sided counters are 15 counters wide by 2 counters deep and occupy the bottom section of the jpg file. The game box file opens fine with just my new map and dice.

When I add the front and back jpeg files with the amended code, I get this error message.

Error of type NullReferenceException: Object reference not set to an instance of an object.

The code I have placed in the xml file file for the counters is this:-

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box version="1.0"
	name="Wavre &#40;Deluxe&#41;"
	description="La Bataille de Wavre."
	copyright="Steve Lampon with the kind permission of Clash of Arms"
	startup-scenario="wavreTest.zts"
	icon="icon.bmp">
	<dice-hand type="D6">
		<dice color="0000ff" pips="ffffff" />
		<dice color="a00000" pips="ffffff" />
	</dice-hand>
	<map name="Carte" image-file="Carte.jpg" resolution="300 dpi" />
	<map name="Activation" image-file="Activation.png" resolution="300 dpi" />
	<counter-sheet name="Wavre units and markers"
		front-image-file="wavre-counters-front.jpg" front-resolution="300 dpi"
		back-image-file="wavre-counters-back.jpg" back-resolution="300 dpi">
		<counter-section type="TwoSided" rows="14" columns="15"
			front-left="0" front-top="0" front-right="750" front-bottom="700"
			back-left="0" back-top="0" back-right="750" back-bottom="700" />
		<counter-section type="FrontSideOnly" rows="2" columns="15"
			front-left="0" front-top="700" front-right="750" front-bottom="800" />
	</counter-sheet>
</game-box>
Any ideas?
Thanks
Steve
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post by Jerome »

Hi Steve!

Your "game-box.xml" file looks fine.

Make sure the image filenames are correct. Maybe uppercase characters don't match lower case characters.

Could you please show me the content of your "wavreTest.zts" file?
Jerome, ZunTzu developer.
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Post by steve_lampon »

Hi Jerome :)

Here is the code for the WavreTest zts file

Code: Select all

<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<game game-box="Iéna 1806 &#40;Deluxe&#41;" hash="HWXnExUKAyIy0TF+/l4/V9DyaVI=" scenario-name="La bataille d'Iéna" scenario-description="14 octobre 1806, l'armée française de Napoléon Ier affronte l'armée saxo-prusienne du Prince d'Hohenlohe-Ingelfingen." scenario-copyright="VaeVictis - Histoire & Collections 2006">
	<layout board="Map" left="4750.58" top="4458.04" right="10541.99" bottom="8801.60" />
	<layout board="Activation" left="-776.61" top="-1262.36" right="3199.38" bottom="1719.63" />
	<layout board="Wavre units and markers" left="-2613.13" top="74.36" right="6836.26" bottom="7161.40" visible="true" />
</game>
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post by Jerome »

Steve,

Your "wavreTest.zts" file is not correct. You obviously copied the scenario file from the Jena 1806 game box, but you forgot to modify some of the fields.

Try that:

Code: Select all

<?xml version="1.0" encoding="Windows-1252"?>
<game game-box="Wavre &#40;Deluxe&#41;" scenario-name="Wavre" scenario-description="La Bataille de Wavre." scenario-copyright="Steve Lampon with the kind permission of Clash of Arms">
	<layout board="Carte" />
	<layout board="Activation" />
	<layout board="Wavre units and markers" />
</game>
Jerome, ZunTzu developer.
User avatar
lclaudius
221
Posts: 81
Joined: 01 Apr 2007, 20:09
Location: Curitiba, Brazil
Contact:

Re: Help with gamebox!

Post by lclaudius »

steve_lampon wrote:

Code: Select all

	<counter-sheet name="Wavre units and markers"
		front-image-file="wavre-counters-front.jpg" front-resolution="300 dpi"
		back-image-file="wavre-counters-back.jpg" back-resolution="300 dpi">
		<counter-section type="TwoSided" rows="14" columns="15"
			front-left="0" front-top="0" front-right="750" front-bottom="700"
			back-left="0" back-top="0" back-right="750" back-bottom="700" />
		<counter-section type="FrontSideOnly" rows="2" columns="15"
			front-left="0" front-top="700" front-right="750" front-bottom="800" />
	</counter-sheet>
Any ideas?
Hm... You have a counter-sheet entity with two sides, but the second counter-section inside it has only one side. Perhaps you should define the front side only cs as another counter-sheet entity, using the same file name, but with one side only.
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Re: Help with gamebox!

Post by Jerome »

lclaudius wrote:Perhaps you should define the front side only cs as another counter-sheet entity, using the same file name, but with one side only.
No, it's OK. Jena 1806 for instance mixes single-sided and double-sided counters on the same counter sheet.
Jerome, ZunTzu developer.
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Post by steve_lampon »

:D
Thanks Jerome, works fine now, La Bataille also needs lots of information counters, .e.g. rout, disorder, square, etc and increments as well, all as single sided counters, so expect more questions on how to add up to two more counter sheets tomorrow.
Many thanks
Steve
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post by Jerome »

You're welcome. :)

Your startup scenario is still very simple. You should move all the counters to their setup position. Fortunately, it is easy: just launch ZunTzu, move the counters and then save your game. Then all you have to do is replace the content of your startup scenario by the content of your saved game.
Jerome, ZunTzu developer.
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

More counter sheets

Post by steve_lampon »

Hi Jerome, as promised, more questions, I need to add two more counter sheets, here is the attempt at adding one of them, the gamebox opens fine, but the second counter sheet does not appear, here is the code for the xml file followed by the zts file.

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box version="1.0"
	name="Wavre &#40;Deluxe&#41;"
	description="La Bataille de Wavre."
	copyright="Clash of Arms"
	startup-scenario="wavreTest.zts"
	icon="icon.bmp">
	<dice-hand type="D6">
		<dice color="0000ff" pips="ffffff" />
		<dice color="a00000" pips="ffffff" />
	</dice-hand>
	<map name="Carte" image-file="Carte.jpg" resolution="300 dpi" />
	<map name="Activation" image-file="Activation.png" resolution="300 dpi" />
	<counter-sheet name="Wavre units and markers"
		front-image-file="wavre-counters-front.jpg" front-resolution="300 dpi"
		back-image-file="wavre-counters-back.jpg" back-resolution="300 dpi">
		<counter-section type="TwoSided" rows="14" columns="15"
			front-left="0" front-top="0" front-right="750" front-bottom="700"
			back-left="0" back-top="0" back-right="750" back-bottom="700" />
		<counter-section type="FrontSideOnly" rows="2" columns="15"
			front-left="0" front-top="700" front-right="750" front-bottom="800" />
	</counter-sheet>
	<counter-sheet name="Increments"
		front-image-file="increments.jpg" front-resolution="300 dpi">
		<counter-section type="FrontSideOnly" rows="10" columns="20"
			front-left="0" front-top="0" front-right="900" front-bottom="450" />
	</counter-sheet>
</game-box>
zts file

Code: Select all

<?xml version="1.0" encoding="Windows-1252" standalone="yes"?>
<game game-box="Wavre &#40;Deluxe&#41;" hash="fGOOIhaOA/VAHPKrxCBgaFeBbzQ=" scenario-name="Wavre" scenario-description="La Bataille de Wavre" scenario-copyright="Steve Lampon with the kind permission of Clash of Arms">
	<layout board="Carte" left="3808.30" top="5073.29" right="5528.49" bottom="6363.43" />
	<layout board="Activation" left="-776.61" top="-1262.36" right="3199.38" bottom="1719.63" />
	<layout board="Wavre units and markers" left="-524.37" top="-46.71" right="1798.85" bottom="1695.71" visible="true">
		<counter id="84" x="939.99" y="550.00" />
		<counter id="177" x="1247.25" y="1150.00" />
		<counter id="218" x="847.25" y="1450.00" />
		<counter id="209" x="1447.51" y="1354.97" />
	<layout board="Increments" />
	</layout>
</game>
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Post by Jerome »

Hi, Steve.
Just move the line containing "<layout board="Increments" />" just before the last line (the one containing "</game>").
Jerome, ZunTzu developer.
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Post by steve_lampon »

:)
Many thanks, works fine now, hopefully I should be able to place the last counter sheet without any problems
Steve
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Offset defaults

Post by steve_lampon »

Hi Jerome, my gamebox is now finished, however, my counters are slightly smaller than the VV Jena counters, the default setting for the offset when the counters are stacked is too large, can it be altered?
I need it to be about half of what it is at the moment, I tried to attach a picture to show what I mean, but the image attachment doesn't seem to work :(
User avatar
Jerome
Site Admin
Posts: 974
Joined: 22 Jun 2006, 21:31
Location: France
Contact:

Re: Offset defaults

Post by Jerome »

steve_lampon wrote:the default setting for the offset when the counters are stacked is too large, can it be altered?
In your "game-box.xml" file, replace all occurrences of "300 dpi" by "150 dpi".
Everything will be rendered twice as large, but the offset will stay the same. That should do the trick.
Jerome, ZunTzu developer.
User avatar
steve_lampon
110
Posts: 12
Joined: 27 Mar 2007, 09:32
Location: England
Contact:

Wavre gamebox

Post by steve_lampon »

Hi Jerome :)
Thanks for all your help, the gamebox is available here, if anybody would like a copy
http://www.stevenlampon.co.uk/page9.htm
Have fun
Steve
User avatar
lclaudius
221
Posts: 81
Joined: 01 Apr 2007, 20:09
Location: Curitiba, Brazil
Contact:

Re: Wavre gamebox

Post by lclaudius »

steve_lampon wrote:Hi Jerome :)
Thanks for all your help, the gamebox is available here, if anybody would like a copy
http://www.stevenlampon.co.uk/page9.htm
Have fun
Steve
Steve, I tried to download the gamebox, but I got an error. Can you check it? Thanks.
Post Reply