HowToAddMapsServerStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>MiguelAngelBlanchLardin
No edit summary
imported>MiguelAngelBlanchLardin
No edit summary
Line 5: Line 5:
Ok, and I assume that you can write or at least read Java.
Ok, and I assume that you can write or at least read Java.


# Modify map TMX file
= Modify map TMX file=
The maps files are just XML files with special tags, open your maps and make sure that you set x,y position of your map on the world.
The maps files are just XML files with special tags, open your maps and make sure that you set x,y position of your map on the world.
Semos village is right now (500000,500000) so use something near yours to set correctly the map position.
Semos village is right now (500000,500000) so use something near yours to set correctly the map position.
Line 15: Line 15:
The later is prefered as it will also update world.tmx graphics.
The later is prefered as it will also update world.tmx graphics.


# Modify world.tmx
= Modify world.tmx=
Now make sure if your map is new that world.tmx shows it by adding a new tileset with your map image.
Now make sure if your map is new that world.tmx shows it by adding a new tileset with your map image.
This step is just for your mental wellness. Stendhal don't use world.tmx.
This step is just for your mental wellness. Stendhal don't use world.tmx.


# Create a map file
= Create a map file=
Create a new Java source file at '''games/stendhal/server/maps/<name>.java'''
Create a new Java source file at '''games/stendhal/server/maps/<name>.java'''


Line 52: Line 52:


Find where your zone should be and just place it between that.
Find where your zone should be and just place it between that.
Now once it is added, test the result by starting server.

= Populating zones =