Parse error?

Designed a level that creates new, exciting, and challenging Armagetron game play? Or maybe just something funky. Put it right here.
Post Reply
User avatar
!TX!Ubunturocks
Average Program
Posts: 50
Joined: Tue May 26, 2009 5:35 pm

Parse error?

Post by !TX!Ubunturocks »

Hi, was was wondering if anyone could help me out. I wanted to use a racing map I made a with armabell a long time ago. I got the name and everything right I think, but when it loads the map every line of code gives me Parser error : premature end of data. :? I use to not have this problem... But now every line of code says it has an error. The funny thing is it use to work fine.
Linux is the future, do not fight it, go with it. If your computer is fast or slow Linux is the way to go.
ImageImageImage
User avatar
Z-Man
God & Project Admin
Posts: 11585
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Parse error?

Post by Z-Man »

Post the map? Errors in every line could hint at encoding errors.
User avatar
!TX!Ubunturocks
Average Program
Posts: 50
Joined: Tue May 26, 2009 5:35 pm

Re: Parse error?

Post by !TX!Ubunturocks »

Here is the map.
Attachments
zappy-2.aamap.xml
(4.75 KiB) Downloaded 294 times
Linux is the future, do not fight it, go with it. If your computer is fast or slow Linux is the way to go.
ImageImageImage
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Parse error?

Post by AI-team »

Here is the formatted map:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<Resource type="aamap" name="tronix" version="2" author="zappy" category="race">
<Map version="2">
      <World>
      <Field>
            <Axes number="8"/>
            <Spawn x="48" y="-80" xdir="0" ydir="1"/>
            <Spawn x="56" y="-80" xdir="0" ydir="1"/>
            <Spawn x="64" y="-80" xdir="0" ydir="1"/>
            <Spawn x="72" y="-80" xdir="0" ydir="1"/>
            <Spawn x="80" y="-80" xdir="0" ydir="1"/>
            <Spawn x="88" y="-80" xdir="0" ydir="1"/>
            <Spawn x="96" y="-80" xdir="0" ydir="1"/>
            <Spawn x="104" y="-80" xdir="0" ydir="1"/>
            
            <Zone effect="death">
                  <ShapeCircle radius="20">
                        <Point x="128" y="64"/>
                  </ShapeCircle>
            </Zone>

            <Zone effect="death">

                  <ShapeCircle radius="22">
                        <Point x="304" y="-42"/>
                  </ShapeCircle>
            </Zone>

            <Zone effect="death">
                  <ShapeCircle radius="22">
                        <Point x="205" y="256"/>
                  </ShapeCircle>
            </Zone>

            <Zone effect="death">

                  <ShapeCircle radius="51">
                        <Point x="152" y="382"/>
                  </ShapeCircle>
            </Zone>

            <Zone effect="death">
                  <ShapeCircle radius="36">
                        <Point x="-53" y="405"/>
                  </ShapeCircle>
            </Zone>

            <Zone effect="win">
                  <ShapeCircle radius="29" growth="0">
                        <Point x="-161" y="604"/>
                  </ShapeCircle>
            </Zone>

            <Wall height="10">
                  <Point x="108" y="-80"/>
                  <Point x="114" y="-76"/>
                  <Point x="124" y="-78"/>
                  <Point x="132" y="-84"/>
                  <Point x="138" y="-94"/>
                  <Point x="140" y="-108"/>
                  <Point x="136" y="-122"/>
                  <Point x="126" y="-134"/>
                  <Point x="110" y="-142"/>
                  <Point x="92" y="-144"/>
                  <Point x="72" y="-138"/>
                  <Point x="54" y="-124"/>
                  <Point x="44" y="-102"/>
                  <Point x="42" y="-76"/>
                  <Point x="50" y="-50"/>
                  <Point x="70" y="-30"/>
                  <Point x="96" y="-16"/>
                  <Point x="128" y="-14"/>
                  <Point x="158" y="-24"/>
                  <Point x="186" y="-46"/>
                  <Point x="202" y="-78"/>
                  <Point x="204" y="-116"/>
                  <Point x="194" y="-154"/>
                  <Point x="168" y="-184"/>
                  <Point x="130" y="-204"/>
                  <Point x="88" y="-210"/>
                  <Point x="44" y="-196"/>
                  <Point x="6" y="-168"/>
                  <Point x="-16" y="-126"/>
                  <Point x="-22" y="-76"/>
                  <Point x="-8" y="-28"/>
                  <Point x="22" y="14"/>
                  <Point x="68" y="42"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="128" y="-16"/>
                  <Point x="128" y="66"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="68" y="40"/>
                  <Point x="68" y="68"/>
                  <Point x="68" y="100"/>
                  <Point x="180" y="100"/>
                  <Point x="180" y="-8"/>
                  <Point x="268" y="-8"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="184" y="-48"/>
                  <Point x="268" y="-48"/>
                  <Point x="312" y="-48"/>
                  <Point x="312" y="16"/>
                  <Point x="208" y="16"/>
                  <Point x="208" y="140"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="180" y="100"/>
                  <Point x="180" y="208"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="208" y="140"/>
                  <Point x="208" y="208"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="208" y="208"/>
                  <Point x="208" y="208"/>
            </Wall>
            
            <Wall height="10">
                  <Point x="-164" y="632"/>
                  <Point x="-156" y="634"/>
                  <Point x="-146" y="632"/>
                  <Point x="-138" y="626"/>
                  <Point x="-132" y="616"/>
                  <Point x="-130" y="602"/>
                  <Point x="-134" y="588"/>
                  <Point x="-144" y="576"/>
                  <Point x="-160" y="568"/>
                  <Point x="-180" y="566"/>
                  <Point x="-198" y="572"/>
                  <Point x="-216" y="588"/>
                  <Point x="-226" y="608"/>
                  <Point x="-228" y="634"/>
                  <Point x="-220" y="660"/>
                  <Point x="-202" y="680"/>
                  <Point x="-174" y="694"/>
                  <Point x="-142" y="696"/>
                  <Point x="-112" y="686"/>
                  <Point x="-86" y="664"/>
                  <Point x="-68" y="632"/>
                  <Point x="-66" y="594"/>
                  <Point x="-78" y="558"/>
                  <Point x="-102" y="526"/>
                  <Point x="-140" y="506"/>
                  <Point x="-184" y="502"/>
                  <Point x="-226" y="514"/>
                  <Point x="-264" y="542"/>
                  <Point x="-288" y="584"/>
                  <Point x="-294" y="634"/>
                  <Point x="-280" y="682"/>
                  <Point x="-250" y="726"/>
                  <Point x="-202" y="754"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="176" y="208"/>
                  <Point x="-112" y="208"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="208" y="208"/>
                  <Point x="208" y="256"/>
                  <Point x="-64" y="256"/>
                  <Point x="-64" y="416"/>
                  <Point x="64" y="416"/>
                  <Point x="64" y="256"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="-112" y="208"/>
                  <Point x="-112" y="464"/>
                  <Point x="96" y="464"/>
                  <Point x="176" y="464"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="176" y="464"/>
                  <Point x="176" y="672"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="64" y="320"/>
                  <Point x="240" y="320"/>
                  <Point x="240" y="672"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="176" y="672"/>
                  <Point x="-112" y="688"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="240" y="672"/>
                  <Point x="240" y="720"/>
                  <Point x="-208" y="752"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="92" y="246"/>
                  <Point x="92" y="231"/>
                  <Point x="92" y="230"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="92" y="230"/>
                  <Point x="92" y="230"/>
                  <Point x="91" y="230"/>
                  <Point x="91" y="229"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="-6" y="235"/>
                  <Point x="-6" y="220"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="-81" y="239"/>
                  <Point x="-103" y="220"/>
            </Wall>
            
            <Wall height="50">
                  <Point x="96" y="465"/>
                  <Point x="94" y="432"/>
            </Wall>
      </Field>
      </World>
</Map>
</Resource>

I haven't tried the map yet , but I think those "-" you put at the beginning of each blank line cause the error it.
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
!TX!Ubunturocks
Average Program
Posts: 50
Joined: Tue May 26, 2009 5:35 pm

Re: Parse error?

Post by !TX!Ubunturocks »

Thanks for your help but, I still get the same errors. The weird thing is this use to work. I am confused about that...
Linux is the future, do not fight it, go with it. If your computer is fast or slow Linux is the way to go.
ImageImageImage
User avatar
Z-Man
God & Project Admin
Posts: 11585
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Parse error?

Post by Z-Man »

AI-team wrote:I think those "-" you put at the beginning of each blank line cause the error it.
Sounds like a safe bet, especially since they're not even ASCII.
User avatar
!TX!Ubunturocks
Average Program
Posts: 50
Joined: Tue May 26, 2009 5:35 pm

Re: Parse error?

Post by !TX!Ubunturocks »

Those "-" are not even in the map code anymore and I get the same errors. I wonder if something could be broke on my armagetron installation?
Linux is the future, do not fight it, go with it. If your computer is fast or slow Linux is the way to go.
ImageImageImage
User avatar
Z-Man
God & Project Admin
Posts: 11585
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Parse error?

Post by Z-Man »

It's also missing

Code: Select all

<!DOCTYPE Resource SYSTEM "AATeam/map-0.2.8.0_rc4.dtd">
(other DTDs work too, of course) as the second line. With that, it works for me as AI-Team posted it.
User avatar
!TX!Ubunturocks
Average Program
Posts: 50
Joined: Tue May 26, 2009 5:35 pm

Re: Parse error?

Post by !TX!Ubunturocks »

Wow, thank you very much. It is now working. I am very happy, thanks a lot! :D
Linux is the future, do not fight it, go with it. If your computer is fast or slow Linux is the way to go.
ImageImageImage
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: Parse error?

Post by AI-team »

Oh I didn't even notice the dtd was missing :lol:


/me is a noob
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
Post Reply