HELP ME PLEASE! (to make new continents with the Map Editor)

Lux maps won't make themselves.
Post Reply
Fattmatt

HELP ME PLEASE! (to make new continents with the Map Editor)

Post by Fattmatt » Thu Dec 09, 2004 4:13 pm

In the 4.4 map editor, how do I make a new continent
For instance when you start making countries they are all on the same continent. How do I make it so that the next country I draw is on a different continent?

User avatar
mbauer
Not A Truck
Posts: 3959
Joined: Mon Jun 28, 2004 3:59 pm
Location: Tallahassee

Post by mbauer » Thu Dec 09, 2004 4:17 pm

at the moment you can't. You have to take the .luxb file into bbedit and manually seperate the countries into different continents.


mbauer

Fattmatt

Post by Fattmatt » Thu Dec 09, 2004 4:29 pm

How do I do that? (Walkthrough Please?)

User avatar
mbauer
Not A Truck
Posts: 3959
Joined: Mon Jun 28, 2004 3:59 pm
Location: Tallahassee

Post by mbauer » Thu Dec 09, 2004 4:59 pm

Ok, once you have gotten your map drawn in the map editor save it.

1. Navigate to your saved maps folder. On a mac it is located at ~/Library/Application Support/Lux/Boards/Saved where ~ is your user folder. On a PC it is located in Program Files/Lux/Support/Boards/Saved.

2. Find your map in that "Saved" folder and open it in BBedit (BBedit is preferred but any program like BBedit should work) what you will find is something that looks similar to this:

Code: Select all

<luxboard>
<version>1</version>
<height>700</height>
<width>1150</width>
<theme>Civil War</theme>
<title>American Civil War</title>
<author>Mark Bauer</author>
<email>bauer32301@yahoo.com</email>
<description></description>


<continent>
	<continentname>Olustee</continentname>
		<bonus>1</bonus>

	<country>
		<name>Olustee</name>
		<id>0</id>
		<polygon>636,71,650,73,660,81,664,91,664,103,662,113,123,630,124,621,121,611,111,608,97,611,83,621,74,631,71</polygon>
		<adjoining></adjoining>
	</country>
</continent>
3. This is the hard part: A continent tag must contain all of the information below:

Code: Select all

<continent>
<continentname>name of the continent goes here</continentname>
<bonus>bonus value goes here</bonus>

</continent>
Create how ever many new continents you want under the original one large one by using this code. Then fill in the desired names and bonus values


4. After the </bonus> and before </continent> of the continent tag is where you place all the countries that go into the continent. A country tag must contain all of the following:

Code: Select all

<country> 
      <name>country name goes here</name> 
      <id>id value here</id> 
      <polygon>polygon coordinates here</polygon> 
      <adjoining>adjoing countries id values here</adjoining>
      <armylocation>coordinates of army box here</armylocation> 
   </country> 
you should not have to worry about filling any of the country information in, as the map editor should have done that for you already. Now in the original one large continent you'll have to find all the countries that you want to place in the new continent tags that you created. Make sure you copy all of the information above for those countries. Then once you have placed the countries into their respective continent tags make sure you delete them out of the original one large continent tag, as duplicates will cause you quite a headache.

5. Make sure each continent has an ending </continent> to close the continent otherwise it will think you have more countries to place.

6. Make sure you only have 1 </luxboard> tag and it is at the very end of the document. This closes the lux map.

7. Save the file but make sure not to change the extension, save it any other format, or move it's save location.

Your done!

Hope that helped I wrote it quickly and off the top of my head let me know if you have any problems


mbauer

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

Post by dustin » Thu Dec 09, 2004 6:11 pm

OK, this is what you have to do:

- Find the map file on your computer's filesystem. It will be inside your Support/Boards/Saved/ folder.
- Open up the map file in any text editor (i.e. notepad or textedit).
- You will see the list of countries that you created in this file. In between countries you must add the following text: </continent><continent>

For example your file might have:

Code: Select all

...
	<country>
		<name>top</name>
		<id>4</id>
		<adjoining>2</adjoining>
		<polygon>239,310 270,270 190,277 188,316 239,310</polygon>
	</country>
	<country>
		<name>side</name>
		<id>1</id>
		<adjoining>0</adjoining>
		<polygon>222,181 256,208 213,214 174,131 222,181</polygon>
	</country>...
You would then change it to be:

Code: Select all

...
	<country>
		<name>top</name>
		<id>4</id>
		<adjoining>2</adjoining>
		<polygon>239,310 270,270 190,277 188,316 239,310</polygon>
	</country>
</continent><continent>
	<country>
		<name>side</name>
		<id>1</id>
		<adjoining>0</adjoining>
		<polygon>222,181 256,208 213,214 174,131 222,181</polygon>
	</country>...
Then save the file in your text editor. In the next version of Lux it will be possible to do this from inside the Map Editor.

Fattmatt

Post by Fattmatt » Thu Dec 09, 2004 9:23 pm

Hey thanks, appreciate the help. If all goes well i'll have my map up in a few days.

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

Post by dustin » Fri Dec 10, 2004 1:55 am

Weird, I didn't notice your post mb when I posted mine...

[cue the twilight zone music...]

User avatar
Kef
Lux Translator
Posts: 4471
Joined: Tue Feb 24, 2004 11:23 am
Location: in j0r f0rumz, Tr0||in j0r t0pixzz
Contact:

Post by Kef » Fri Dec 10, 2004 6:34 am

what ever happend to the lux theme music?

User avatar
mbauer
Not A Truck
Posts: 3959
Joined: Mon Jun 28, 2004 3:59 pm
Location: Tallahassee

Post by mbauer » Fri Dec 10, 2004 7:57 am

dustin wrote:Weird, I didn't notice your post mb when I posted mine...

[cue the twilight zone music...]
yeah beat you to it :lol: :lol: :wink:


I also posted mine like an hour before you! You're gettin' slow old man. :wink:


mbauer

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

Post by dustin » Sun Dec 26, 2004 4:40 pm

Hey fattmatt,
I post this here in the hopes that you read it.

The map you submitted doesn't specify a theme. So if somebody has it set to the space theme then they can't see the connecting lines. So you might want to specify a theme. I'll give it a day or so incase you want to do this, then I will just let the map go in as is.

peace

Post Reply

Who is online

Users browsing this forum: No registered users and 67 guests