Go to file
Rogier f7e822adf0 Change verboseStatistics to int (from bool) 2015-03-10 17:47:29 +01:00
doc Documentation updates & Changelog updated 2015-03-10 13:30:34 +01:00
.gitignore Add _CPack_Packages to .gitignore 2015-02-20 13:10:08 +01:00
AUTHORS Document and (attempt to) clarify licensing situation 2014-03-26 11:04:29 +01:00
BlockPos.cpp Implement an iterator for BlockPos 2015-03-10 17:47:29 +01:00
BlockPos.h Implement an iterator for BlockPos 2015-03-10 17:47:29 +01:00
CMakeCPackLists.txt Improve installation and package generation; add deb and rpm 2014-06-18 10:03:20 +02:00
CMakeLists.txt Implement an iterator for BlockPos 2015-03-10 17:47:29 +01:00
COPYING Document and (attempt to) clarify licensing situation 2014-03-26 11:04:29 +01:00
Changelog Documentation updates & Changelog updated 2015-03-10 13:30:34 +01:00
Color.cpp Allow specifying lighter or darker variants of built-in colors. 2015-02-20 13:10:09 +01:00
Color.h Recognise some symbolic colors (red, green, blue, yellow, black, white, gr[ae]y, and more) 2015-02-20 13:10:09 +01:00
LICENSE Document and (attempt to) clarify licensing situation 2014-03-26 11:04:29 +01:00
LICENSE.BSD-2clause Document and (attempt to) clarify licensing situation 2014-03-26 11:04:29 +01:00
LICENSE.LGPLv2.1 Document and (attempt to) clarify licensing situation 2014-03-26 11:04:29 +01:00
PixelAttributes.cpp Allow scaling a map to a smaller size while generating. (1/2, 1/4 .. 1/16) 2015-02-20 13:10:09 +01:00
PixelAttributes.h Fix Windows build (isnan not defined -> std::isnan) 2015-03-10 12:01:55 +01:00
PlayerAttributes.cpp Player attributes moved to separate class. 2012-09-01 16:40:18 +02:00
PlayerAttributes.h Player attributes moved to separate class. 2012-09-01 16:40:18 +02:00
README.rst Documentation updates & Changelog updated 2015-03-10 13:30:34 +01:00
TileGenerator.cpp Change verboseStatistics to int (from bool) 2015-03-10 17:47:29 +01:00
TileGenerator.h Change verboseStatistics to int (from bool) 2015-03-10 17:47:29 +01:00
ZlibDecompressor.cpp Improve error messages for zlib decompression errors 2014-05-22 10:41:12 +02:00
ZlibDecompressor.h Improve error messages for zlib decompression errors 2014-05-22 10:41:12 +02:00
autogenerating-colors.txt Clarify autogenerating colors 2014-04-09 11:04:35 +02:00
cmake_config.h.in Improve installation and package generation; add deb and rpm 2014-06-18 10:03:20 +02:00
colors-average-alpha.txt Improve the colors of water (esp. for --drawalpha) & make lava transparent. 2014-06-19 13:31:53 +02:00
colors-cumulative-alpha.txt Improve the colors of water (esp. for --drawalpha) & make lava transparent. 2014-06-19 13:31:53 +02:00
colors.txt Make ice slightly transparent 2015-02-20 13:10:08 +01:00
config.h Add shorthand options to draw tiles matching map-blocks and map-chunks 2015-02-20 13:10:08 +01:00
db-leveldb.cpp Cleanup sqlite3 database code a bit 2015-03-10 12:01:55 +01:00
db-leveldb.h Cleanup sqlite3 database code a bit 2015-03-10 12:01:55 +01:00
db-redis.cpp Cleanup sqlite3 database code a bit 2015-03-10 12:01:55 +01:00
db-redis.h Cleanup sqlite3 database code a bit 2015-03-10 12:01:55 +01:00
db-sqlite3.cpp Improve sqlite access speed by using rowid in query if possible 2015-03-10 12:01:55 +01:00
db-sqlite3.h Improve sqlite access speed by using rowid in query if possible 2015-03-10 12:01:55 +01:00
db.h Cleanup sqlite3 database code a bit 2015-03-10 12:01:55 +01:00
empty.cpp Use C++11 if possible 2014-05-22 10:41:12 +02:00
heightmap-colors-rainbow.txt Add rainbow colors configuration file for heightmap 2015-02-20 13:10:09 +01:00
heightmap-colors.txt Allow reading heightmap colors from file, and use separate option for nodes file 2015-02-20 13:10:09 +01:00
heightmap-nodes.txt Allow reading heightmap colors from file, and use separate option for nodes file 2015-02-20 13:10:09 +01:00
mapper.cpp Change verboseStatistics to int (from bool) 2015-03-10 17:47:29 +01:00
minetest-database.h Improve memory use of BlockPos 2015-03-03 08:29:04 +01:00
package-description.txt Improve installation and package generation; add deb and rpm 2014-06-18 10:03:20 +02:00
types.h Use a common ustring type definition instead of different custom versions 2014-05-22 10:12:03 +02:00
version Updated changelog with recent changes, and updated base version 2014-06-18 11:44:24 +02:00

README.rst

Minetest Mapper
###############

A tool to generate maps of minetest and freeminer worlds.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Quick links (functional on github. Elsewhere possibly not):

:All features:		`<doc/features.rst>`_
:User manual:		`<doc/manual.rst>`_
:Changelog:		`<Changelog>`_
:Building:		`<doc/build-instructions.rst>`_
:Github:		`<https://github.com/Rogier-5/minetest-mapper-cpp>`_
:Bugs:			`<https://github.com/Rogier-5/minetest-mapper-cpp/issues>`_
:Windows packages:	`<https://github.com/Rogier-5/minetest-mapper-cpp/wiki/Downloads>`_

Features (short list)
=====================

Map Generation Features
-----------------------

* Support for both minetest and freeminer worlds
* Support for sqlite3, leveldb and redis map databases
* Generate a subsection of the map, or a full map
  (but note that the size of generated images is limited)
* Generate regular maps or height-maps
* All colors for regular or height maps are configurable
* Draw player positions
* Draw different geometric figures, or text on the map
* Draw the map at a reduced scale. E.g. 1:4.
* Draw a scale on the left and/or top side of the map,
  and/or a height scale (for height maps) on the bottom.
* Optionally draw some nodes transparently (e.g. water)
* User Manual

Build Features
--------------
* Supports both the gcc and clang compiler suites
* Build rpm, deb and/or tar.gz installation
  packages. Or simply type 'make install'.

Quick Start
===========

Windows
-------

Check the download page to obtain a compiled version:
`<https://github.com/Rogier-5/minetest-mapper-cpp/wiki/Downloads>`_

Install Dependencies
--------------------

Make sure development versions of the following packages are installed.
For more detailed instructions, see `<doc/build-instructions.rst>`_.

**Libraries:**

* libgd
* sqlite3
* leveldb (if leveldb support is desired)
* hiredis (if redis support is desired)

**Build environment:**

* C++ compiler suite (clang or gcc)
* cmake
* make


Compile
-------

Plain:

::

    cmake .
    make

With levelDB and Redis support:

::

    cmake -DENABLE_LEVELDB=true -DENABLE_REDIS=true .
    make

Generate a Map
----------------

After compilation, and optional installation, minetestmapper is started as follows:

('\\' is a continuation character - the command-line continues
on the next line. Type return only after the line that does
not end with the continuation character)


::

    minetestmapper \
	--input <world-directory> \
	--output <image-file-name.png>

If the world is not too large, and if minetestmapper is installed in
a  system directory, it will most likely work as expected.

Possibly, minetestmapper will not be able to find a colors.txt file. If that happens,
the colors.txt file can be specified on the command-line:

::

    minetestmapper \
	--input <world-directory> \
	--output <image-file-name.png> \
	--colors <filename>

Or the colors.txt file must be installed in a location where minetestmapper will find it.
A colors.txt file (named ``colors.txt``, in lowercase) in the world's directory will certainly
be found. Depending on the system and the configuration, other locations are available. Use the
following command to find out which:

::

    minetestmapper \
	--input <world-directory> \
	--output <image-file-name.png> \
	--verbose-search-colors=2

Manual
======

For more elaborate compilation and installation documentation, please consult
the build manual: `<doc/build-instructions.rst>`_.

For more elaborate usage instruction, please consult the user manual: `<doc/manual.rst>`_.