what does this mean? - validation errors

Designed a level that creates new, exciting, and challenging Armagetron game play? Or maybe just something funky. Put it right here.
Post Reply
ZURD101
Core Dumper
Posts: 154
Joined: Mon Jan 07, 2008 10:02 am

what does this mean? - validation errors

Post by ZURD101 »

maping was going great up until this happened...what did i do wrong? what does this mean?
i attached my map this came from.

Code: Select all

ERROR: Validation failed!


race1-o.1.aamap.xml:94: element Wall: validity error : Element Wall content does not follow the DTD, expecting (Point)+, got (Spawn Spawn Spawn Spawn Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point Point )
</Wall>
       ^

Attachments
race1-o.1.aamap.xml
what happened?
(3.21 KiB) Downloaded 172 times
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Post by DDMJ »

Well, first this is what the first line of your map_file shows:

Code: Select all

<!DOCTYPE Resource SYSTEM "AATeam/map-0.2.8.0_rc4.dtd">
Change it to:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Resource SYSTEM "AATeam/map-0.2.8.0_rc4.dtd"
Here's the real problem though:

Code: Select all

...
<Field>
<Wall>

<Spawn	x="550"	y="-954"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-930"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-942"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-964"	xdir="-7"	ydir="-2"	/>

			

	<Point x="57.143" y="-489.505" />
	<Point x="62.857" y="-826.648" />
...
You have the <Wall> tag in the wrong place. Change it to this:

Code: Select all

...
<Field>

<Spawn	x="550"	y="-954"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-930"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-942"	xdir="-7"	ydir="-2"	/>
<Spawn	x="550"	y="-964"	xdir="-7"	ydir="-2"	/>

<Wall>			

	<Point x="57.143" y="-489.505" />
	<Point x="62.857" y="-826.648" />
...
Also, it looks like you're only defining one crazy looking wall. If you want multiple walls, just put the <Points/> inside two <Wall></Wall> tags.
ZURD101
Core Dumper
Posts: 154
Joined: Mon Jan 07, 2008 10:02 am

Post by ZURD101 »

ok! TY!
Post Reply