Desert map

Content and general development discussion, including maps, quests, and server code from the development team.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Post by Jaxad0127 » Sun Dec 02, 2007 12:00 am

I matched it with the Tulimshar and transition maps originally. It's been fixed now.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Thu Dec 06, 2007 3:37 am

By the way: I am currently programming a little tool that allows to copy parts of one map to another map. This will make it much easier to match the border areas of maps.
  • 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.
User avatar
Len
Knight
Knight
Posts: 1479
Joined: Mon Feb 05, 2007 7:17 am
Location: Lurking in the shadows

Post by Len » Thu Dec 06, 2007 3:47 am

Crush wrote:By the way: I am currently programming a little tool that allows to copy parts of one map to another map. This will make it much easier to match the border areas of maps.
Thank you!!!!!!! lol :shock:
Can’t tell you how much I wanted a tool like that
Image
Pixel Battalion
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Post by Jaxad0127 » Thu Dec 06, 2007 4:08 pm

Yes, that would definitely help. I don't have the borders perfect because of the crack/waves are too hard to eyeball.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Thu Dec 06, 2007 5:57 pm

I wanted to wait a bit with releasing the program but when there is so much demand I will give you an alpha version:
http://www.crushnet.org/TempFiles/tmw/tmxcopy.zip

Usage:
The program is command line based. The usage is:

Code: Select all

tmxcopy sourceFile x y height width targetFile x y [outputFile]
Here an example:
When you want to copy the lower right corner (20x20 tiles) of mapA.tmx to the upper left corner of mapB.txt you would open map A with tiled and check at which coordinates the area you want to copy begins. Let's say mapA is 120x130 tiles. Then the area you want to copy would begin at 100:110 and would be 20x20 tiles large. So the first part of the command is:

Code: Select all

tmxcopy mapA.tmx 100 110 20 20
Then you open the target map to check the coordinates where you want to put the copied map part. We want the upper left corner, so the coordinates are 0:0. That means the next part of the command would be:

Code: Select all

mapB.tmx 0 0
The command is now complete:

Code: Select all

tmxcopy mapA.tmx 100 110 20 20 mapB.tmx 0 0
But when you enter this command the mapB will be overwritten. This could be a problem when you made an error in the command. So it is saver to write the output to a new map file so we can look at the result in Tiled before we replace the original map:

Code: Select all

tmxcopy mapA.tmx 100 110 20 20 mapB.tmx 0 0 temp.tmx
Now we can check temp.tmx to see if the copying worked correctly.


The program works so far but there are still some minor problems:

-Only tested for TMW-compilant maps. I don't guarantee that it works with Tiled maps that are made for other games and thus use different features. It is assumed that the target map and the source maps have the same number of layers, for example.
-Compressed maps (tmx.gz) can not be handled yet (but compressed or uncompressed layers work properly)
-When the target map has an object layer it is moved to the bottom of the layer list of the map (no problem for the game but inconvenient for editing). Objects on the source map are ignored.
-Layer data of output file isn't gzip-compressed yet
-Created TMX file is a bit malformated (but working properly)

The last 2 problems can be solved easily by opening and saving the map in Tiled.
  • 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.
User avatar
Bjørn
TMW Adviser
TMW Adviser
Posts: 1430
Joined: Thu Dec 09, 2004 7:50 pm
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn » Wed Dec 12, 2007 10:34 am

Crush wrote:I wanted to wait a bit with releasing the program but when there is so much demand I will give you an alpha version:
http://www.crushnet.org/TempFiles/tmw/tmxcopy.zip
Awesome idea! It would be nice if you'd put this in Subversion, possibly under tmw/branches/0.0/tools/tmxcopy. Maybe you can then also share modules like map reader and zlib/xml utils with the TMW source.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Post by Crush » Wed Dec 12, 2007 4:33 pm

I already wanted to add this to the repository but forgot about it somehow. Thanks for reminding me.
  • 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