Errors on syntax

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

Moderators: Ichibrothers, Cambronne

Post Reply
Brigz
Posts: 6
Joined: 14 Oct 2008, 00:52

Errors on syntax

Post by Brigz »

I cannot get my game to run on ZunTzu. Here is my game file:

Code: Select all

<?xml version="1.0" encoding="windows-1252" ?>
<game-box
	name="Chariot"
	description="Warfare in the Biblical Age"
	copyright="SPI"
	startup-scenario="Chariot.zts">
	<dice-hand type="D6">
		<dice count="2" color="ffffff" pips="000000" />
	</dice-hand>
	<map name="Chariot Map" image-file="New_Chariot_map_1.jpg" resolution="150 dpi" />
	<counter-sheet name="Counters"
		front-image-file="Char_Counters.jpg" front-resolution="150 dpi" />
		<counter-section rows="20" columns="10"
			front-left="42" front-top="42" front-right="561" front-bottom="1081" />
	</counter-sheet>
</game-box>
Here is my dummy startup:

Code: Select all

<?xml version="1.0" encoding="Windows-1252"?>
<game
	game-box="Chariot"
	scenario-name="Startup"
	scenario-description="Beginning Scenario"
	scenario-copyright="SPI">
	<layout board="Chariot Map" />
</game>
I get this error message:

Code: Select all

Error of type XmlException&#58; The 'game box' start tag on line 2 does not match the end tag of 'counter-sheet'. Line15, position 4.
Can you look at my codes and see what is wrong. I went over them several time and they are identical to your examples on the webpage.

Thanks, Dave
User avatar
GJK
221
Posts: 105
Joined: 13 Jul 2007, 12:57
Location: ATX
Contact:

Post by GJK »

You're missing a space at the end of your declaration (1st line) of your dummy scenario file:

You have: 1252"?>
Should be: 1252" ?>

I think that's what's doing it, that's all that I noticed.
"Fat, drunk, and stupid is no way to go through life, son."

-Dean Vernon Wormer
Brigz
Posts: 6
Joined: 14 Oct 2008, 00:52

Post by Brigz »

GJK wrote:You're missing a space at the end of your declaration (1st line) of your dummy scenario file:

You have: 1252"?>
Should be: 1252" ?>

I think that's what's doing it, that's all that I noticed.
I made that change but I still get the same error message. The error appears to be in my game-box file not the scenario file. Thanks anyway. Hopefully someone else will be able to catch the problem. It's frustrating because I spent hours making sure that my files matched the ones used in the tutorial. I even used a very simple basic game to make it easy but I have had no luck.

Thanks again for the attempt to help.
Dave
User avatar
GJK
221
Posts: 105
Joined: 13 Jul 2007, 12:57
Location: ATX
Contact:

Post by GJK »

Ok, change this line from:

Code: Select all

	<counter-sheet name="Counters" 
		front-image-file="Char_Counters.jpg" front-resolution="150 dpi" />
To:

Code: Select all

	<counter-sheet name="Counters" 
		front-image-file="Char_Counters.jpg" front-resolution="150 dpi">
(closing tag at end)
"Fat, drunk, and stupid is no way to go through life, son."

-Dean Vernon Wormer
Brigz
Posts: 6
Joined: 14 Oct 2008, 00:52

Post by Brigz »

Sorry, Dean, that didn't do it.

I know that my script is exactly like the example posted on the Support page. I went over it carefully dozens of times. I may have to email Jerome directly.

Have you been able to run any game-boxes that you designed yourself?

Thanks again,
Dave
morval
Posts: 32
Joined: 28 Sep 2008, 19:59

Post by morval »

Brigz wrote:Sorry, Dean, that didn't do it.

I know that my script is exactly like the example posted on the Support page. I went over it carefully dozens of times. I may have to email Jerome directly.

Have you been able to run any game-boxes that you designed yourself?

Thanks again,
Dave
First thing Iwould do is get an XML editor. One I found for free was at microsoft's website. XML Notepad 2007 in the downloads section. But I'm sure there are lots of others. This will allow you to create the files without having to worry about XML syntax at all. I was having problems with typos until I did this.

Next I created two template files, game-box and startup. In it I have all the possible ZT syntax entered. All you have to do is delete things you are not using. I also added lots and lots of comments to explain how things work. I was going to get Jerome to put these files up here somewhere after he had a look at them of course to see if he thought they would be useful, but he is working on a design program that will make creating game boxes a lot easier so you won't really need to know any XML stuff soon.

I haven't really tested the templates properly since I am in the middle of a family emergency, but I could email you them if you wanted. Email me.... morval at pawsnorth dot com.

Below is a link to an example screen print.

thanks,

morval
http://gallery.rptools.net/v/contrib/mo ... e.jpg.html
User avatar
Bill Barrett
231
Posts: 351
Joined: 25 May 2008, 13:25

Post by Bill Barrett »

Brigz wrote:Sorry, Dean, that didn't do it.

I know that my script is exactly like the example posted on the Support page. I went over it carefully dozens of times. I may have to email Jerome directly.

Have you been able to run any game-boxes that you designed yourself?

Thanks again,
Dave
Gary is right and that solution should have done the trick, because it worked for me...

What error message are you getting now?

Regards, Bill
Brigz
Posts: 6
Joined: 14 Oct 2008, 00:52

Post by Brigz »

Bill Barrett wrote:
Gary is right and that solution should have done the trick, because it worked for me...

What error message are you getting now?

Regards, Bill
I got the same error message as in my original post.

Thanks for the reply.
Dave
Brigz
Posts: 6
Joined: 14 Oct 2008, 00:52

Post by Brigz »

Success! After messing around with the suggestions you guys gave I finally got it to work. First I could only display my map but then realized I needed to include a counter layout in my Startup file. And it works. Now that I have my foot in the door I will experiment with it a bit.

Thanks alot for the help guys. I really appreciate it.

Dave
Post Reply