For Terrain.act file (Map gradient):
Act-To-Tga
Code:
"D:\Programs\ImageMagick\convert.exe" -depth 8 -size 256x1 rgb:Terrain.act Terrain.tga
Tga-To-Act
Code:
"D:\Programs\ImageMagick\convert.exe" -depth 8 -size 256x1 Terrain.tga rgb:Terrain.act
Know, that first 48 colors are for the water, the next 208 for the land.