public
Fork of BrainDamage/MapConv
Description: A cross platform SMF map compiler for spring
Homepage:
Clone URL: git://github.com/spring/MapConv.git
name age message
file Bitmap.cpp Wed Oct 07 10:22:16 -0700 2009 fixed Mother's mapconv to compile again [BrainDamage]
file Bitmap.h Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file FeatureCreator.cpp Wed Oct 07 10:22:16 -0700 2009 fixed Mother's mapconv to compile again [BrainDamage]
file FeatureCreator.h Thu Mar 30 17:37:04 -0800 2006 MapConv: FeatureCreator: Refactor, geovents sh... [krudat]
file FileHandler.cpp Thu Mar 30 15:16:17 -0800 2006 MapConv: Indentation, removed unused metalmap.r... [krudat]
file FileHandler.h Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file GNUmakefile Loading commit data...
file MapConv.cpp
file MapConv.sln Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file MapConv.vcproj Sun Jun 18 05:23:53 -0700 2006 * Set svn:eol-style property to native to make ... [tvo]
file MemPool.cpp Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file MemPool.h Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file README-texcompress_nogui.txt Tue Dec 11 09:08:06 -0800 2007 * Patch by qknight adding a texcompress variant... [tvo]
file README.txt Thu Mar 30 17:37:04 -0800 2006 MapConv: FeatureCreator: Refactor, geovents sh... [krudat]
file TileHandler.cpp
file TileHandler.h Thu Mar 30 17:37:04 -0800 2006 MapConv: FeatureCreator: Refactor, geovents sh... [krudat]
file byteorder.h Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file ddraw.h Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file filefunctions.h Tue Dec 11 08:47:24 -0800 2007 * Make MapConv compile with boost 1.34.1 (pat... [tvo]
file geovent.bmp Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file jpeg.lib Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file jpeglib.h Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file mapfile.h Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file notes.txt Tue Dec 11 09:08:06 -0800 2007 * Patch by qknight adding a texcompress variant... [tvo]
file nvdxt.exe Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
directory samples/ Tue Dec 11 09:08:06 -0800 2007 * Patch by qknight adding a texcompress variant... [tvo]
file stdafx.cpp Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
file stdafx.h Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file tclap-1.0.5.tar.gz Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
directory tclap-1.0.5/ Mon Mar 27 01:50:30 -0800 2006 MapConv: tclap source and tarball, crude Linux ... [krudat]
file texcompress.cpp Thu Mar 30 15:16:17 -0800 2006 MapConv: Indentation, removed unused metalmap.r... [krudat]
file texcompress_nogui.cpp Tue Dec 11 09:08:06 -0800 2007 * Patch by qknight adding a texcompress variant... [tvo]
file texcompress_nogui.h Tue Dec 11 09:08:06 -0800 2007 * Patch by qknight adding a texcompress variant... [tvo]
file texconv.exe Tue May 03 18:08:30 -0700 2005 Imported initial vendor revision with linefeeds... [dave]
README.txt
MapConv.exe:

As of Mar 2006:

* Images can be any format DevIL supports. 
  That should include every image format you've used before, 
  and adds, say, PNG. (No more huge BMPs!)

* It shouldn't go berserk about geothermal vents.

Texture map:
=============

Size: A multiple of 1024 by a (possibly different) multiple of 1024.

The sizes of the other images are based on the size of the texture
map:

 xsize = Texture map width / 8
 ysize = Texture map height / 8

Metal map:
===========

Size: xsize / 2 by ysize / 2. 

Red: Metal
(Greyscale works correctly.)

Height map:
============

Size: exactly (xsize + 1) by (ysize + 1).

1. Ordinary image

Red: Height. 

2. '.raw'

The file is assumed to have (xsize + 1) * (ysize + 1) *pairs* of octets in
it.

Feature map: 
============

Size: xsize by ysize.

Green:
255   - geovent
200-215 - trees (types 1-16)

Blue:
0-255   - no grass -> full grass

Red:
255  - feature of type on first  line of fs.txt
254  - feature of type on second line of fs.txt
253     - ...

ie.  fs.txt has armjeth_dead on the first line, so a pixel of 255 red places an armjeth_dead !

Format is one feature type per line. 
These features are read from the .tdf files in the mods/<modname.sd7>/features filesystem.

Type map:
==========

Size: xsize / 2 by ysize / 2

Red: Terrain type.


Good luck and have fun!