HowToAddMapsServerStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
Adding NPC: updated tyo make you always add to list. pls check xx
imported>Chad3f
Line 21: Line 21:
= Create a map file=
= Create a map file=


To enable a zone in the server, edit the file '''data/conf/zones.xml''' and add an entry (in the appropriete level/top-down/left-right order), giving it the zone name and converted map filename to use:
If you are adding a zone for a new major area, create the file '''data/conf/zones/<area>.xml''' with the following:

<pre>
<?xml version="1.0" encoding="UTF-8"?>
<zones>
<!--
** Load zones. Written from left to right and from top to bottom.
** Please respect it!
-->

</zones>
</pre>

Then edit the file '''data/conf/zones.xml''' and add a relavent entry (in alphabetical order for normal areas):

<pre>
<zone-group uri="zones/<area>.xml"/>
</pre>

To enable a zone in the server, edit the file '''data/conf/zones/<area>.xml''' and add an entry (in the appropriete level/top-down/left-right order), giving it the zone name and converted map filename to use:


<pre>
<pre>