Error in map testing...

Lux maps won't make themselves.
Post Reply
User avatar
Gurlugon
Luxer
Posts: 31
Joined: Mon Jul 12, 2004 2:35 am
Location: New Jersey
Contact:

Error in map testing...

Post by Gurlugon » Mon Jul 12, 2004 9:05 am

I received this error: "There was an error trying to load the file 'luxmap'.

java.lang.Exception: Error in <line>: null" following "Step 8 - Editing the army locations." in the "Make your own map" tutorial.

Anyone have a hint as to how I can fix this? Thanks in advance.

EDIT: I suppose this would help (sorry for the side-scrolling):

Code: Select all

<?xml version="1.0" ?>
<luxboard>
<version>1.1</version>
<height>600</height>
<width>400</width>
<theme>Ocean</theme>
<title>luxmap</title>
<author>Gurlugon</author>
<email>gurlugon@gmail.com</email>
<webpage>http://www.gurlugon.tk/</webpage>

<continent>
<continentname>South Continent</continentname>
<bonus>2</bonus>

<country>
<name>Majorusur</name>
<id>0</id>
<polygon>272,41,259,48,251,61,204,63,174,53,152,41,126,34,88,22,61,20,41,24,44,38,54,44,89,50,124,68,132,69,162,86,211,104,233,103,251,98,277,98,308,103,337,117,361,118,375,102,374,47,368,29,348,16,333,19,292,54,270,43,259,48,249,64,249,64</polygon>
<adjoining></adjoining>
<armylocation>333,70</armylocation>
</country>
<country>
<name>Minorusur</name>
<id>1</id>
<polygon>254,48,239,34,231,36,206,27,203,27,188,13,178,14,175,21,176,27,185,33,186,51,197,61,205,62,247,62,256,51,255,44</polygon>
<adjoining></adjoining>
<armylocation>207,46</armylocation>
</country>

</continent>

<continent>
<continentname>Central Continent</continentname>
<bonus>2</bonus>

<country>
<name>South-Central</name>
<id>2</id>
<polygon>285,184,283,169,278,153,255,138,219,139,190,149,174,159,158,157,106,121,93,116,60,120,60,160,71,184,85,203,82,229,83,240,81,264,90,292,118,325,136,329,152,329,159,317,197,270,202,259,239,246,273,221,282,200</polygon>
<adjoining></adjoining>
<armylocation>147,229</armylocation>
</country>
<country>
<name>North-Central</name>
<id>3</id>
<polygon>203,263,182,299,170,346,167,377,170,390,191,425,202,441,224,454,235,451,236,440,226,428,226,408,234,371,243,361,244,344,265,325,271,306,268,292,251,270,228,257,206,260</polygon>
<adjoining></adjoining>
<armylocation>203,355</armylocation>
</country>

</continent>

<continent>
<continentname>North Continent</continentname>
<bonus>4</bonus>

<country>
<name>Mitmas</name>
<id>4</id>
<polygon>88,511,90,500,105,490,105,471,110,463,117,456,121,424,130,412,138,413,154,459,155,493,144,518,123,528,112,526,98,523,90,512</polygon>
<adjoining></adjoining>
<armylocation>122,495</armylocation>
</country>
<country>
<name>Kolltas</name>
<id>5</id>
<polygon>86,504,89,497,90,477,85,467,71,457,64,437,52,430,45,432,43,447,37,450,19,445,16,453,24,469,21,487,20,488,31,501,36,504,50,504,67,516,73,516,86,509,86,503</polygon>
<adjoining></adjoining>
<armylocation>46,484</armylocation>
</country>
<country>
<name>Hhnras</name>
<id>6</id>
<polygon>123,530,143,521,148,520,159,510,173,505,197,511,205,510,236,495,241,496,241,501,229,513,229,523,222,533,212,535,193,535,189,563,184,566,152,564,138,554,133,552,124,541,123,529,125,528</polygon>
<adjoining></adjoining>
<armylocation>163,547</armylocation>
</country>
<country>
<name>Drllaas</name>
<id>7</id>
<polygon>32,507,50,507,68,520,72,520,85,512,91,520,99,527,114,529,121,535,123,547,134,556,145,564,157,574,158,578,117,568,106,576,89,571,80,577,73,576,49,562,32,558,28,544,16,533,16,526,24,521,28,521,31,514</polygon>
<adjoining></adjoining>
<armylocation>74,556</armylocation>
</country>

</continent>

<continent>
<continentname>Islands</continentname>
<bonus>2</bonus>

<country>
<name>Cletusia</name>
<id>8</id>
<polygon>365,453,348,455,345,465,333,466,332,472,336,476,341,477,348,488,351,490,365,475,372,474,376,468,367,453</polygon>
<adjoining></adjoining>
<armylocation>360,469</armylocation>
</country>
<country>
<name>Jeboria</name>
<id>9</id>
<polygon>342,507,333,512,328,505,322,504,318,512,310,518,310,526,313,531,321,525,324,523,328,524,333,528,339,527,342,519,343,513</polygon>
<adjoining></adjoining>
<armylocation>334,539</armylocation>
</country>

</continent>

<line><position></position></line>
</luxboard>
I just wanted to throw a simple map together, hence the fact there are only ten countries.

User avatar
rip
Luxer
Posts: 352
Joined: Wed Mar 31, 2004 10:22 am
Location: Vienna Austria
Contact:

Post by rip » Mon Jul 12, 2004 9:44 am

Well, Country 0 has no adjoining countries. That probably throws the parser off.

Is this map 'complete' or are you trying to load it after each incremental change?

rip
--
Who needs to get off his butt and write the .luxb map validator he keeps mumbling to himself about.

User avatar
Gurlugon
Luxer
Posts: 31
Joined: Mon Jul 12, 2004 2:35 am
Location: New Jersey
Contact:

Post by Gurlugon » Mon Jul 12, 2004 10:04 am

It's complete. Here's the map: http://img16.photobucket.com/albums/v47 ... luxmap.jpg

The IDs: http://img16.photobucket.com/albums/v47 ... mapids.jpg

So, I should work on the whole adjoining countries part, and see if it works then?

EDIT: W00t w00t, I got it working. Had to iron out some kinks with the army display on one of the small islands, but the map is done. Thanks, rip.

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10999
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Post by dustin » Mon Jul 12, 2004 2:57 pm

I think the reason for the error was an empty <line> tag:
<line><position></position></line>

User avatar
Gurlugon
Luxer
Posts: 31
Joined: Mon Jul 12, 2004 2:35 am
Location: New Jersey
Contact:

Post by Gurlugon » Wed Jul 14, 2004 4:57 pm

Well, I found a bug, and now I'm trying to update the maps page with the fixed-up version, but it's telling me that the filename is different, even though it looks like it very much ain't. :/

I'd simply rename the file / change the title, but then it would clutter the maps page.

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10999
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Post by dustin » Wed Jul 14, 2004 11:52 pm

OK, that feature is a new addition to the maps page. Could you email me your updated map and I will look into it.

lux@sillysoft.net

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10999
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Post by dustin » Thu Jul 15, 2004 4:21 am

Your updated map should now appear, and the problem fixed so that updates are easier. The filename no longer matters at all.

Post Reply

Who is online

Users browsing this forum: No registered users and 124 guests