map formats on TMWserv

Got something on your mind about the project? This is the correct place for that.
Forum rules
This forum is for feature requests, content changes additions, anything not a Bug in the software.
Please report all bugs on the Support Forums
Post Reply
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

map formats on TMWserv

Post by 5t3v3 » 02 Jul 2008, 16:38

Hi, I don't know if this is already set or not. But I thought there might be a lot of practical benefits in choosing which ways the maps are coded.
To illustrate what I mean, consider the old coding for eathena:

Code: Select all

...
<layer name="Collisions" width="200" height="130">
<data encoding="base64" compression="gzip">
H4sIAAAAAAAAAO2Z2Y7dOAwFM/f/P3qQBwOGI8laSB7KKgIFTDq3tZCn7O7M7/fnzw8AAAAAAAAAAAA+xb1WPgOwMxGlviNAL+pS3x+gRNZS9wXOZpdS9wnOYsdS9wzOYOdS9w6+x9dK3U/4Dl75VJe6r7A/Xy91f2EfTi91/yEvX6/eO6rnALmg/i31TEDPzhVxB...
This makes for low readability.
Consider the following alternative for a small 10 by 10 map

Code: Select all

...
<layer name="Collisions" width="10" height="10">
xxxxxxxxxx
xxxxxxxxxx
xxx----xxx
xxx----xxx
xxx----xxx
xxx--xxxxx
xxx--xxxxx
xxx----xxx
xxxxxxxxxx
xxxxxxxxxx
...
Of course as we start using more and more tilessets, each with more tiles in it, one character/tile wouldn't do it. And we could have 2 or 3 characters/tile. (2 characters=> (26+10)^2 combinations=1296 different tiles; 3 characters => 46656 combinations)

The practical benefit,
1. It makes it very easy to fix mapbugs in textformat if you know where to look.
2. It makes it a lot easier to copy parts of maps when one map overlaps the other.
3. Experienced mappers can even map entirely from texteditor.
The downside of course would be that the mapfiles become a lot larger, but I don't know whether this increase in length would really cause any problems, since textfiles don't really take up much space.
In game characters: "5t3v3" and "L "
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: 01 Nov 2007, 18:35
Location: Internet

Re: map formats on TMWserv

Post by Jaxad0127 » 02 Jul 2008, 17:11

EAthena doesn't use that map format. The client and TMWServ do.
Image
User avatar
5t3v3
Novice
Novice
Posts: 451
Joined: 31 Oct 2007, 16:08
Location: Belgium
Contact:

Re: map formats on TMWserv

Post by 5t3v3 » 02 Jul 2008, 17:13

jaxad0127 wrote:EAthena doesn't use that map format. The client and TMWServ do.
Oh ok :) thx for the correction, but eitherway, still seems like something worth considering?
In game characters: "5t3v3" and "L "
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 17:08
Location: Germany

Re: map formats on TMWserv

Post by Crush » 02 Jul 2008, 17:34

The tmx file format is the native Tiled map format. Any improvement suggestions to it should be directed directly to the tiled development team.
  • 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