<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Maps</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>Recent changes to Maps</description><atom:link href="https://sourceforge.net/p/wossname/wiki/Maps/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 27 Oct 2012 21:17:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wossname/wiki/Maps/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v10
+++ v11
@@ -171,5 +171,5 @@
 ----------
 #Map Maker
 
-From version v0.3b forwards, game distributions include an experimental map maker application, that automates the XML code generation and file placement.
+Since version v0.3b, game distributions include an experimental map maker application, that automates the XML code generation and file placement.
 Instructions on it's use can be found on [MapMaker's home page](https://sourceforge.net/p/wossname/wiki/MapMaker).
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 21:17:20 -0000</pubDate><guid>https://sourceforge.net06a87be98ac90dc063190c372e0d50554ab48a6f</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v9
+++ v10
@@ -11,7 +11,7 @@
 -----
 [TOC]
 
--------------------
+--------------------
 #Map Definition File
 
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
@@ -117,7 +117,7 @@
 
 In the above example, the location named *Colosseum* will be displayed on over the pixel on coordinates 4380, 1093 and had the flag of Italy associated with it.
 
---------------
+---------------
 #Map Image File
 
 Map image file is the image that will be displayed in the game as the background on which one clicks when guessing locations.
@@ -125,7 +125,7 @@
 Supported image formats are *jpg*, *png* or *gif*.
 There are no image size restrictions, but images with higher resolution are preferred, to accommodate players with higher screen resolutions.
 
------------------------
+------------------------
 #Country Definition File
 
 In addition to map definition file, it is also possible to declare new countries. This is done with the map's country definition file *countries.xml*. This file is placed int he same directory as map definition file, but is not a required file. In case the game does not discover the *countries.xml* file in the custom map's directory, it uses default country definition file, located in *res/maps/* directory.
@@ -164,6 +164,12 @@
 * **image** country's flag image.
 
 Content of attribute **name** is displayed in the game as the location's country. In order for the location to be associated with a country, it's **country** attribute has to be exactly the same as the **name** attribute of the country.
-Attribute **image** is the short name of the country's flag image file. All flag image files must be located in the *res/maps/flags/* directory. Missing flags will not be displayed.
+Attribute **image** is the short name of the country's flag image file. All flag image files must be located in the *res/maps/flags/* directory. Missing flags will not be displayed. Flag files are restricted to *jpg*, *png* and *gif* formats.
 
 In the above example, country's name will be displayed as *Aland Islands* and image *res/maps/flags/ax.png* will be displayed as it's flag.
+
+----------
+#Map Maker
+
+From version v0.3b forwards, game distributions include an experimental map maker application, that automates the XML code generation and file placement.
+Instructions on it's use can be found on [MapMaker's home page](https://sourceforge.net/p/wossname/wiki/MapMaker).
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 19:33:54 -0000</pubDate><guid>https://sourceforge.net4e98edba81098e972c4deff2efd372dfd4af467c</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v8
+++ v9
@@ -13,6 +13,7 @@
 
 -------------------
 #Map Definition File
+
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
 It has to be placed in a subdirectory of *res/maps/* directory. The name of this subdirectory is the name displayed in the selection box in game's *Host* menu.
 
@@ -103,7 +104,7 @@
 In the above example, the map would be named *Wonders of the World*, displayed it's difficulty as *HARD* and use image *res/maps/maps/relief8k.jpg* as the map image.
 
 
-##Location declarations
+##Location Declarations
 
     &lt;location name="Colosseum" x="4380" y="1093" country="Italy"/&gt;
 
@@ -118,6 +119,7 @@
 
 --------------
 #Map Image File
+
 Map image file is the image that will be displayed in the game as the background on which one clicks when guessing locations.
 Map image file has to be placed into the *res/maps/maps/* directory, otherwise the game will not found it.
 Supported image formats are *jpg*, *png* or *gif*.
@@ -125,3 +127,43 @@
 
 -----------------------
 #Country Definition File
+
+In addition to map definition file, it is also possible to declare new countries. This is done with the map's country definition file *countries.xml*. This file is placed int he same directory as map definition file, but is not a required file. In case the game does not discover the *countries.xml* file in the custom map's directory, it uses default country definition file, located in *res/maps/* directory.
+
+Country definition file serves as a mapping reference between country names and their flags. Custom country definition files serve as a tool, to remove any map location restrictions, that would have been set by the limited set of country declarations in the default *countries.xml* file.
+
+An example of a valid country definition file:
+
+    &lt;?xml version="1.0"?&gt;
+    &lt;!DOCTYPE countries [
+    &lt;!ELEMENT countries (country*)&gt;
+    	&lt;!ELEMENT country EMPTY&gt;
+    		&lt;!ATTLIST country name CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST country image CDATA #REQUIRED&gt;
+    ]&gt;
+    
+    &lt;countries&gt;
+    	&lt;country name="Afghanistan" image="af.png"/&gt;
+    	&lt;country name="Aland Islands" image="ax.png"/&gt;
+    &lt;/countries&gt;
+
+As with the map definition file, the XML file is divided into different sections:
+
+* DTD declaration of XML elements and attributes.
+* Country declarations.
+
+The DTD part is there solely for XML validation purposes. It is the same for all country definition files and must be in every country definition file.
+
+## Country Declarations
+
+    &lt;country name="Aland Islands" image="ax.png"/&gt;
+
+Each country has two attributes:
+
+* **name** - name of the country and
+* **image** country's flag image.
+
+Content of attribute **name** is displayed in the game as the location's country. In order for the location to be associated with a country, it's **country** attribute has to be exactly the same as the **name** attribute of the country.
+Attribute **image** is the short name of the country's flag image file. All flag image files must be located in the *res/maps/flags/* directory. Missing flags will not be displayed.
+
+In the above example, country's name will be displayed as *Aland Islands* and image *res/maps/flags/ax.png* will be displayed as it's flag.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 19:27:10 -0000</pubDate><guid>https://sourceforge.neta61bad76ed56e8d8e5fae0732bbce23a50743b02</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v7
+++ v8
@@ -12,8 +12,7 @@
 [TOC]
 
 -------------------
-Map Definition File
--------------------
+#Map Definition File
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
 It has to be placed in a subdirectory of *res/maps/* directory. The name of this subdirectory is the name displayed in the selection box in game's *Host* menu.
 
@@ -91,7 +90,7 @@
 
 The DTD part is there solely for XML validation purposes. It is the same for all map definition files and must be in every map definition file. It has also been covered at the beginning of this section.
 
-**General Map Attributes:**
+##General Map Attributes
 
     &lt;map name="Wonders of the World" difficulty="hard" image="relief8k.jpg"&gt;
 
@@ -104,7 +103,7 @@
 In the above example, the map would be named *Wonders of the World*, displayed it's difficulty as *HARD* and use image *res/maps/maps/relief8k.jpg* as the map image.
 
 
-**Location declarations:**
+##Location declarations
 
     &lt;location name="Colosseum" x="4380" y="1093" country="Italy"/&gt;
 
@@ -118,13 +117,11 @@
 In the above example, the location named *Colosseum* will be displayed on over the pixel on coordinates 4380, 1093 and had the flag of Italy associated with it.
 
 --------------
-Map Image File
---------------
+#Map Image File
 Map image file is the image that will be displayed in the game as the background on which one clicks when guessing locations.
 Map image file has to be placed into the *res/maps/maps/* directory, otherwise the game will not found it.
 Supported image formats are *jpg*, *png* or *gif*.
 There are no image size restrictions, but images with higher resolution are preferred, to accommodate players with higher screen resolutions.
 
 -----------------------
-Country Definition File
------------------------
+#Country Definition File
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 19:03:01 -0000</pubDate><guid>https://sourceforge.net2b3ba0315806cef8631d02cdba91e4c4efef9984</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v6
+++ v7
@@ -120,7 +120,10 @@
 --------------
 Map Image File
 --------------
-Map image file is the image that will be displayed in the game as the background
+Map image file is the image that will be displayed in the game as the background on which one clicks when guessing locations.
+Map image file has to be placed into the *res/maps/maps/* directory, otherwise the game will not found it.
+Supported image formats are *jpg*, *png* or *gif*.
+There are no image size restrictions, but images with higher resolution are preferred, to accommodate players with higher screen resolutions.
 
 -----------------------
 Country Definition File
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:57:56 -0000</pubDate><guid>https://sourceforge.net582f58f50d96ffbf35e62498fe5c10be114e0d22</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v5
+++ v6
@@ -91,7 +91,7 @@
 
 The DTD part is there solely for XML validation purposes. It is the same for all map definition files and must be in every map definition file. It has also been covered at the beginning of this section.
 
-**General Map Attributes**
+**General Map Attributes:**
 
     &lt;map name="Wonders of the World" difficulty="hard" image="relief8k.jpg"&gt;
 
@@ -101,9 +101,10 @@
 * **image** - name of the map image file.
 
 Attribute **difficulty** can also be declared, but is not required.
+In the above example, the map would be named *Wonders of the World*, displayed it's difficulty as *HARD* and use image *res/maps/maps/relief8k.jpg* as the map image.
 
 
-**Location declarations**
+**Location declarations:**
 
     &lt;location name="Colosseum" x="4380" y="1093" country="Italy"/&gt;
 
@@ -114,6 +115,8 @@
 * **y** - vertical coordinate of the location on the map's image.
 * **country** - name of the country the location belongs to.
 
+In the above example, the location named *Colosseum* will be displayed on over the pixel on coordinates 4380, 1093 and had the flag of Italy associated with it.
+
 --------------
 Map Image File
 --------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:52:17 -0000</pubDate><guid>https://sourceforge.nete5d6cc73fd454915bbc2a10ca4dbb3a067a127c8</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -13,7 +13,7 @@
 
 -------------------
 Map Definition File
-===================
+-------------------
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
 It has to be placed in a subdirectory of *res/maps/* directory. The name of this subdirectory is the name displayed in the selection box in game's *Host* menu.
 
@@ -91,12 +91,34 @@
 
 The DTD part is there solely for XML validation purposes. It is the same for all map definition files and must be in every map definition file. It has also been covered at the beginning of this section.
 
-General Map Attributes
-----------------------
+**General Map Attributes**
 
+    &lt;map name="Wonders of the World" difficulty="hard" image="relief8k.jpg"&gt;
+
+The two required attributes for the map element are:
+
+* **name** - a descriptive name for the map and
+* **image** - name of the map image file.
+
+Attribute **difficulty** can also be declared, but is not required.
+
+
+**Location declarations**
+
+    &lt;location name="Colosseum" x="4380" y="1093" country="Italy"/&gt;
+
+Each location has four required attributes:
+
+* **name** - name of the location.
+* **x** - horizontal coordinate of the location on the map's image.
+* **y** - vertical coordinate of the location on the map's image.
+* **country** - name of the country the location belongs to.
+
+--------------
 Map Image File
-==============
+--------------
 Map image file is the image that will be displayed in the game as the background
 
+-----------------------
 Country Definition File
-=======================
+-----------------------
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:47:50 -0000</pubDate><guid>https://sourceforge.net5355172023ffaca923588d63ddf71dff6574923a</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -13,7 +13,7 @@
 
 -------------------
 Map Definition File
--------------------
+===================
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
 It has to be placed in a subdirectory of *res/maps/* directory. The name of this subdirectory is the name displayed in the selection box in game's *Host* menu.
 
@@ -82,3 +82,21 @@
     	&lt;location name="Machu Picchu" x="2446" y="2347" country="Peru"/&gt;
     	&lt;location name="Petra" x="4902" y="1356" country="Jordan"/&gt;
     &lt;/map&gt;
+
+The XML is divided into three parts:
+
+* DTD declaration of XML elements and attributes.
+* General map attributes.
+* Location declarations.
+
+The DTD part is there solely for XML validation purposes. It is the same for all map definition files and must be in every map definition file. It has also been covered at the beginning of this section.
+
+General Map Attributes
+----------------------
+
+Map Image File
+==============
+Map image file is the image that will be displayed in the game as the background
+
+Country Definition File
+=======================
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:37:55 -0000</pubDate><guid>https://sourceforge.nete8520f26df8db8ab357c1536bbb89db34388d991</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -30,3 +30,55 @@
     		&lt;!ATTLIST location y CDATA #REQUIRED&gt;
     		&lt;!ATTLIST location country CDATA #REQUIRED&gt;
     ]&gt;
+
+An example of a valid definition file is *definition.xml* taken from the *res/maps/wonders/* directory.
+It defines the *Wonders of the World* playable map, corresponding to *wonders* entry in the map selection box in the game menu.
+
+    &lt;?xml version="1.0"?&gt;
+    &lt;!DOCTYPE map [
+    &lt;!ELEMENT map (location*)&gt;
+    	&lt;!ATTLIST map name CDATA #REQUIRED&gt;
+    	&lt;!ATTLIST map difficulty (easy|medium|hard|unknown) "unknown"&gt;
+    	&lt;!ATTLIST map image CDATA #REQUIRED&gt;
+    	&lt;!ELEMENT location EMPTY&gt;
+    		&lt;!ATTLIST location name CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location x CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location y CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location country CDATA #REQUIRED&gt;
+    ]&gt;
+    
+    &lt;map name="Wonders of the World" difficulty="hard" image="relief8k.jpg"&gt;
+    	&lt;location name="Great Pyramid of Giza" x="4804" y="1364" country="Egypt"/&gt;
+    	&lt;location name="Hanging Gardens of Babylon" x="5107" y="1307" country="Iraq"/&gt;
+    	&lt;location name="Statue of Zeus at Olympia" x="4588" y="1190" country="Greece"/&gt;
+    	&lt;location name="Temple of Artemis at Ephesus" x="4718" y="1183" country="Turkey"/&gt;
+    	&lt;location name="Mausoleum at Halicarnassus" x="4720" y="1204" country="Turkey"/&gt;
+    	&lt;location name="Colossus of Rhodes" x="4738" y="1217" country="Greece"/&gt;
+    	&lt;location name="Lighthouse of Alexandria" x="4776" y="1336" country="Egypt"/&gt;
+    	&lt;location name="Ishtar Gate" x="5107" y="1306" country="Iraq"/&gt;
+    	&lt;location name="Stonehenge" x="4054" y="881" country="United Kingdom"/&gt;
+    	&lt;location name="Colosseum" x="4380" y="1093" country="Italy"/&gt;
+    	&lt;location name="Catacombs of Kom el Shoqafa" x="4776" y="1337" country="Egypt"/&gt;
+    	&lt;location name="Porcelain Tower of Nanjing" x="6798" y="1317" country="China"/&gt;
+    	&lt;location name="Hagia Sophia" x="4755" y="1113" country="Turkey"/&gt;
+    	&lt;location name="Leaning Tower of Pisa" x="4332" y="1051" country="Italy"/&gt;
+    	&lt;location name="Taj Mahal" x="5871" y="1428" country="India"/&gt;
+    	&lt;location name="Cairo Citadel" x="4808" y="1363" country="Egypt"/&gt;
+    	&lt;location name="Ely Cathedral" x="4102" y="853" country="United Kingdom"/&gt;
+    	&lt;location name="Cluny Abbey" x="4202" y="989" country="France"/&gt;
+    	&lt;location name="Acropolis of Athens" x="4636" y="1182" country="Greece"/&gt;
+    	&lt;location name="Alhambra" x="4013" y="1200" country="Spain"/&gt;
+    	&lt;location name="Angkor Wat" x="6459" y="1742" country="Cambodia"/&gt;
+    	&lt;location name="Eiffel Tower" x="4148" y="934" country="France"/&gt;
+    	&lt;location name="Kiyomizu-dera" x="7186" y="1250" country="Japan"/&gt;
+    	&lt;location name="Moai Statues" x="1607" y="2664" country="Chile"/&gt;
+    	&lt;location name="Neuschwanstein" x="4340" y="964" country="Germany"/&gt;
+    	&lt;location name="Red Square" x="4952" y="777" country="Russian Federation"/&gt;
+    	&lt;location name="Statue of Liberty" x="2411" y="1120" country="United States of America"/&gt;
+    	&lt;location name="Sydney Opera House" x="7536" y="2818" country="Australia"/&gt;
+    	&lt;location name="Sankore Madrasah" x="4028" y="1665" country="Mali"/&gt;
+    	&lt;location name="Chichen Itza" x="2081" y="1576" country="Mexico"/&gt;
+    	&lt;location name="Christo Redentor" x="3113" y="2569" country="Brazil"/&gt;
+    	&lt;location name="Machu Picchu" x="2446" y="2347" country="Peru"/&gt;
+    	&lt;location name="Petra" x="4902" y="1356" country="Jordan"/&gt;
+    &lt;/map&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:24:39 -0000</pubDate><guid>https://sourceforge.netf0a467b541d54816ba2a21e9779e2889571de26a</guid></item><item><title>WikiPage Maps modified by Jakob Battelino Prelog</title><link>https://sourceforge.net/p/wossname/wiki/Maps/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -8,7 +8,25 @@
 
 The last condition is, strictly speaking, not necessary, but if the referred map image is not found, players will be playing on a blank background.
 
+-----
+[TOC]
 
-**Map Definition File**
+-------------------
+Map Definition File
+-------------------
 Map definition file *definition.xml* is the crucial file for any map. It holds declarations of map's name, difficulty, map image reference and coordinates of all locations.
 It has to be placed in a subdirectory of *res/maps/* directory. The name of this subdirectory is the name displayed in the selection box in game's *Host* menu.
+
+Valid map definition file is defined by the following DTD code:
+
+    &lt;!DOCTYPE map [
+    &lt;!ELEMENT map (location*)&gt;
+    	&lt;!ATTLIST map name CDATA #REQUIRED&gt;
+    	&lt;!ATTLIST map difficulty (easy|medium|hard|unknown) "unknown"&gt;
+    	&lt;!ATTLIST map image CDATA #REQUIRED&gt;
+    	&lt;!ELEMENT location EMPTY&gt;
+    		&lt;!ATTLIST location name CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location x CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location y CDATA #REQUIRED&gt;
+    		&lt;!ATTLIST location country CDATA #REQUIRED&gt;
+    ]&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jakob Battelino Prelog</dc:creator><pubDate>Sat, 27 Oct 2012 18:18:47 -0000</pubDate><guid>https://sourceforge.net7c2602b68095d0cdf433dc816b53c7a948f1ce87</guid></item></channel></rss>