HowToUseTiledToCreateStendhalMaps: Difference between revisions

Content deleted Content added
imported>StephenIerodiaconou
No edit summary
imported>MiguelAngelBlanchLardin
No edit summary
Line 152:
 
Please note that, if during your work you find that some important tiles are missing please create the tile and send it to us so that everyone get it and can see your tile.
 
= How to use the map in Stendhal =
To add the map to Stendhal you need to code a bit of Java, but don't worry. It is simple!.
 
# Save map as <b>.stend</b>. <br>This will create a set of files that match <i>*.stend</i> in Tiled folder with the name of the layers.
# Grab these files and copy to .../games/stendhal/server/maps
# Edit StendhalRPWorld.java:
<pre>
public void onInit() throws Exception
{
addArea("village",1);
addArea("tavern",1);
addArea("city",1);
addArea("plains",1);
addArea("dungeon_000",1);
addArea("afterlive",1);
addArea("forest",1);
addArea("dungeon_001",2);
 
addAreat("your_area",0);
}
</pre>
Just remember to increase one the number each time you update the map.
 
Finally if you want to fine tunning the map by adding NPC, or something else, just create a new file name <b>base name of your map</b>.java <i>( in our example that is your area )</i> and edit it. See other files on the same folder to know how to do it.