I've seen this discussed here a few times before, but, while offering great results, the methods were often complicated, or they were easy, but didn't do a very good job.
SigniferOne created a nice guide for instance
http://www.twcenter.net/forums/showthread.php?t=241854
but for those of you who want to save some time on large maps I'll show you my method:
First off you need two things:
Gimp
map_heights.tga
I suppose photoshop would work just as well, but there may be some differences I am not aware of.
Also I tried to make this a guide anyone could use even if you have never used gimp before so I included a ton of photos. If you are good at gimp simply don't open the spoilers.
This guide should remove almost all land and see triangles, but some may still be left so you may have to fiddle with it.
1. Open up map_heights.tga (yourmod/data/world/maps/base/map_heights.tga)
2. Using the "Select by Color" tool select all the bodies of water on your map.
3. Fill the body(ies) of water with 0,0,253
To do so simply click on the color selector and put in the RGB code of 0,0,253 then click ok
You should now have blue as your selected color (specifically 0,0,253 blue)
now select the bucket fill tool and select fill whole section
Oh, and make sure that the opacity is set to 100, and the mode is normal.
Now simply click anywhere within your selected region. This will fill it with 0,0,253
4.Now go to select, then grow, and choose grow selection by 1 and hit ok.
You should now also have the coasts selected
5.Now we need to deselect the bodies of water so we're going to use "select by color" again only this time hold control when you click on the water so that rather than selecting you deselect it.
You should now only have the coasts selected
6. Now we need to change the color of the coasts to 1,1,1
as in step 3 we are going to use the color selector to change the color to 1,1,1
7. Now fill in the entire coast with 1,1,1 using the bucket tool and fill whole section.
Again make sure you have normal mode selected with 100% opacity
8. Now every pixel adjacent to water should be 1,1,1. Good. Now for the time-consuming part :
Use the color selector to change the color to 2,2,2.
Now select the pencil tool. Make sure the mode is normal, the opacity is 100%, and you have brush: Circle (01) selected.
Now use the pencil to change each corner pixel to 2,2,2 (look at the picture to see what I mean. Red=2,2,2) This may take a while on larger maps.
(corner pixels are the pixels that only border water diagonally)
9. Now change the color to 0,0,0 and use the pencil select tool to change all the "opposite corners" (corners that are bordered on three sides by water) to 0,0,0
10. Good! Now save your work, delete map.rwm (yourmod/data/world/maps/base/map.rwm) and launch the game.
The results should look a little something like this:
Feel free to comment or ask questions
(but go easy on me, this is my first guide )
Thanks to:
Miraj
Gigantus
SigniferOne
For helping me figure this out