Extending maps.xml in 0.1.*

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
Exceptionfault
Peon
Peon
Posts: 21
Joined: 20 Jul 2008, 15:46
Location: Germany
Contact:

Extending maps.xml in 0.1.*

Post by Exceptionfault »

Newbies are commonly unfamiliar with the geography of the world, the names of cities or specialities like "the bat cave". Therefore they are very lost at the beginning. Yes, reading the wiki would help a lot, but fair-minded, who reads the wiki first?

I suggest extending the maps.xml with at least one attribute called description. Maybe in the first run, one could use the descriptions from the wiki http://wiki.themanaworld.org/index.php/Map_development.

This description could be used in many places:
  • Character selection at login (where did your char wait for you?)
  • Entrance of a new map ("You entered the city/cave of ..")
    This would need a maptype like "city, indoor, underground.." as additional attribute.
  • Information in tmwweb. Its better to present "Tulishmar" then "new_1-1" as location of a character to both, players and admins
The maps.xml could look like this (this shouldn't break the current Maphandler during parse):

Code: Select all

Index: maps.xml
===================================================================
--- maps.xml	(revision 4559)
+++ maps.xml	(working copy)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <maps>
-    <map id="1" name="new_1-1"/>
+    <map id="1" name="new_1-1" description="Tulishmar"/>
     <map id="2" name="new_2-1"/>
     <map id="3" name="new_3-1"/>
     <map id="4" name="new_4-1"/>
Never say: "Always"! Always say: "Never say never"! - Tom Kyte @ Ask Tom Live in Berlin 2008

Image
User avatar
Shaggy
Novice
Novice
Posts: 132
Joined: 22 Apr 2008, 12:56
Location: Liverpool, England

Re: Extending maps.xml in 0.1.*

Post by Shaggy »

Why do the maps need to be called new_#-1.wlk anyway? Surely this would make the maintenance of TMW harder than if they were tulim.wlk, s-desert.gat, etc?
Enjoyed The Mana World? Then check out Aethyra (http://www.aethyra.com).
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Extending maps.xml in 0.1.*

Post by Crush »

@Exceptionfault:

Maps.xml is a server-sided file. It should not even be in a 0.1 client installation.

But the information you mentioned could be easily included in the map files themself. The map format allows to add an arbitary number of key-value map property pairs.

@Shaggy:

Here are the map naming conventions which will be used on the new server after backward compatibility to 0.0.x has been abandoned: http://wiki.themanaworld.org/index.php/Map_naming
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Exceptionfault
Peon
Peon
Posts: 21
Joined: 20 Jul 2008, 15:46
Location: Germany
Contact:

Re: Extending maps.xml in 0.1.*

Post by Exceptionfault »

The supposed naming scheme of maps for the new server can be found here: http://wiki.themanaworld.org/index.php/Map_naming

The concept suggests a naming method after "continent-coordinates[_point of interest].tmx" which will result in something like this
argaes-c7.tmx
tonori-e5.tmx
tonori-e4_tulimshar.tmx
which is also not pretty, and should not be shown to the enduser. This leads us back to the description field.
Never say: "Always"! Always say: "Never say never"! - Tom Kyte @ Ask Tom Live in Berlin 2008

Image
Exceptionfault
Peon
Peon
Posts: 21
Joined: 20 Jul 2008, 15:46
Location: Germany
Contact:

Re: Extending maps.xml in 0.1.*

Post by Exceptionfault »

Crush wrote: Maps.xml is a server-sided file. It should not even be in a 0.1 client installation.
Indeed, the server has to send the description to the client, if the user enters a new map.
Crush wrote: But the information you mentioned could be easily included in the map files themself. The map format allows to add an arbitary number of key-value map property pairs.
That would be possible, but its a lot more work for tmwweb. It has to read and parse all mapfiles and keep them in sync then just read one small and simple xml file.
Never say: "Always"! Always say: "Never say never"! - Tom Kyte @ Ask Tom Live in Berlin 2008

Image
User avatar
5t3v3
Warrior
Warrior
Posts: 451
Joined: 31 Oct 2007, 15:08
Location: Belgium
Contact:

Re: Extending maps.xml in 0.1.*

Post by 5t3v3 »

I think that a much more elegant slution would be a "worldmap" button, that pops up a world map (possibly explored areas only) with useful info like: current locations, cities, quests...
In game characters: "5t3v3" and "L "
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Extending maps.xml in 0.1.*

Post by Crush »

I just committed a sourcecode change (to 0.0.x) which uses the "name" property of map files as the caption of the minimap window. Now it is up to the content dev people to add name properties to all map files.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply