From The Mana World
Line 24: Line 24:
So we got to create some rules how these walls are generated.
So we got to create some rules how these walls are generated.


==step 1==
==create a new map==
Create a new map.
Create a new map.
Save this map where ever you want.
Save this map where ever you want.
I suggest the  tmwdata/maps folder of the "tmwdata" project from our [[Git repository]].  
I suggest the  tmwdata/maps folder of the "tmwdata" project from our [[Git repository]].  


==step 2==
==setup rules.txt==
Within the same folder of your map there needs to be a textfile "rules.txt",  
Within the same folder of your map there needs to be a textfile "rules.txt",  
which contains pathes to rulefiles.
which contains pathes to rulefiles.
Line 37: Line 37:
[[Media:Automapping_example_rules_txt]]
[[Media:Automapping_example_rules_txt]]


==step 3==
==setup the rules.tmx==
Now we need to make the rules with tiled and these rules need to be saved to the path given in the textfile of step 2.
Now we need to make the rules with tiled and these rules need to be saved to the path given in the textfile of step 2.


These patches should be  
These patches should be  
http://pastebin.com/TjFTFaPt
http://pastebin.com/TjFTFaPt
http://pastebin.com/meEugKBS
http://pastebin.com/meEugKBS

Revision as of 11:20, 19 September 2010

What is the Automapping feature?

Guess you want to make a map, which looks this:

Automapping example cave 1.png

So you have an idea how the form of the cave is. Now you must create this map. How long does it take? maybe an hour?

With the automapping feature you just draw the outline of the cave which looks like this:

Automapping example cave 2.png

What are the advantages?

- just one layer to edit
- just draw what you mean there should be (cave in the middle with a little sea)
- no need for drawing and combining many tiles for the wall. This is done automatically

So this feature generates from the given draft the cave. How long does it take to make such an one-layer draft? 10 minutes?

how to use it?

The automapping feature needs to know how the tiles have to be setup, to create such an cave-wall. So we got to create some rules how these walls are generated.

create a new map

Create a new map. Save this map where ever you want. I suggest the tmwdata/maps folder of the "tmwdata" project from our Git repository.

setup rules.txt

Within the same folder of your map there needs to be a textfile "rules.txt", which contains pathes to rulefiles.

Check if there is such an file. If not put something like this: Media:Automapping_example_rules_txt

setup the rules.tmx

Now we need to make the rules with tiled and these rules need to be saved to the path given in the textfile of step 2.



These patches should be http://pastebin.com/TjFTFaPt http://pastebin.com/meEugKBS