HowToUseTiledToCreateStendhalMaps: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>MiguelAngelBlanchLardin
imported>Kymara
Line 176: Line 176:


= How to use the map in Stendhal =
= 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!.
To add the map to Stendhal you need to code a bit of XML, but don't worry. It is simple!.


Add the zone to data/conf/zones.xml as explained in [[HowToAddMapsServerStendhal | How to add new maps to server]]
* Run '''ant convertmaps'''
* Or: Save map as <b>.xstend</b> to /games/stendhal/server/data/maps

Then add the zone to data/conf/zones.xml as explained in [[HowToAddMapsServerStendhal | How to add new maps to server]]


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, and more explanation in [[HowToAddMapsServerStendhal | How to add new maps to server]]<br>
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, and more explanation in [[HowToAddMapsServerStendhal | How to add new maps to server]]<br>
<br>
<br>

= Trouble shooting =
= Trouble shooting =
* If you are submitting this for inclusion in the game, please edit the path for the tilesets so it is correct. usually "../../zelda_XXX.png". It is easiest to do this by opening the .tmx file in a text editor.
* If you are submitting this for inclusion in the game, please edit the path for the tilesets so it is correct. usually "../../zelda_XXX.png". It is easiest to do this by opening the .tmx file in a text editor.