Commit Graph

36 Commits

Author SHA1 Message Date
sfan5 e4bf375ac7 General code cleanups/maintenance 2022-02-09 23:09:32 +01:00
sfan5 b491dd375a Add --dumpblock flag for advanced use
This is not only useful for debugging minetestmapper itself but
also makes it a standalone tool for extracting data you want to work on
from a Minetest map.
2022-02-09 21:52:28 +01:00
sfan5 8e83ce6464 Some more code modernization
also a few small performance improvements
2020-05-08 22:16:13 +02:00
sfan5 2ae790c0b7 Improve --help output 2020-03-28 14:02:27 +01:00
sfan5 7ff2288627 Optimize database access further by allowing "brute-force" queries instead of listing available blocks
Also adds a heuristic that will enable this behaviour automatically.
2020-03-27 23:38:18 +01:00
sfan5 9096f70188 C++11 code modernization 2020-03-26 23:14:47 +01:00
Martijn Versteegh ee5b8a9f86 Add a flag to never output empty images. 2018-11-01 13:10:28 +01:00
sfan5 b2406db169 Fix a few small issues
closes #58
2018-10-20 23:01:03 +02:00
sfan5 657499e981 Fix incorrect exception types 2018-10-20 22:38:09 +02:00
sfan5 f909304e1e Do not require -o to be passed when printing extents 2018-10-20 22:36:39 +02:00
Martijn Versteegh 8e8cc3d1f2 Add an option to get the extent of the map. 2018-10-20 22:32:33 +02:00
sfan5 77fdcd15fb Allow rendering (or omitting) scales at every image edge 2016-11-18 22:01:15 +01:00
Nestorfish 42b36ecdaa Fix crash on unknown option
getopts requires the last element of longopts to be filled with zeros.
2016-09-29 21:11:58 +02:00
sfan5 c79b5ac5ab Remove a little debug code (oops...) 2016-08-09 17:36:43 +02:00
sfan5 6f1b8284f4 Search for colors.txt in multiple locations, fixes #27
Locations (in order):
* <world path>/colors.txt
* $HOME/.minetest/colors.txt (Linux only)
* <share dir>/colors.txt (Linux only for now, defaults to /usr/local/share/minetest)
* current directory (<< this is the old behavior)
2016-08-09 17:35:15 +02:00
sfan5 73dab34d7c Allow specifying location of colors.txt file 2016-08-09 16:45:39 +02:00
Florian Schüller 15fae27b85 Zoom implementation (--zoom option) 2016-08-09 15:35:36 +02:00
sfan5 2cc1ffc543 Re-add --backend to allow overriding auto-detected backend 2014-07-11 10:54:50 +02:00
sfan5 20691186b5 Read backend from world.mt, closes #6 2014-07-08 15:08:07 +02:00
Sfan5 2553e44e8d Add redis database backend 2014-04-26 15:03:32 +02:00
Sfan5 84d46ab8eb Add alpha transparency ability for blocks 2014-04-03 20:32:48 +02:00
Sfan5 46023f77f5 Make it (almost) compile for windows 2014-03-09 12:32:13 +01:00
Sfan5 393d7e2ac0 LevelDB support 2014-03-05 21:42:21 +01:00
Sfan5 15444ff8f6 Add --min-y and --max-y options 2014-03-05 18:06:05 +01:00
Sfan5 33f323b1e3 Add --noshading option, Fix SIGABRT because of uncaught exception when any exception occured 2014-03-05 17:20:06 +01:00
ShadowNinja de94ab8aa6 Fix usage text and rename executable 2013-07-29 12:16:08 -04:00
Miroslav Bendík 7d15dbf4ed Added --geometry support. 2012-11-24 19:25:13 +01:00
Miroslav Bendík 908697427b Removed drawunderground parameter. 2012-08-25 14:12:54 +02:00
Miroslav Bendík 65ae97f54b Added block position decoder. 2012-08-23 13:32:22 +02:00
Miroslav Bendík 957a72e2b4 Parsing of colors moved to TileGenerator. 2012-08-23 12:55:31 +02:00
Miroslav Bendík 3d54e5edaa Added class TileGenerator. 2012-08-23 12:46:22 +02:00
Miroslav Bendík 6a4083d28c Added ColorMap definition. 2012-08-23 12:32:59 +02:00
Miroslav Bendík 375812ea15 Added parsing of colors.txt. 2012-08-23 12:30:09 +02:00
Miroslav Bendík 2adc11fdb5 Added parsing. 2012-08-22 16:04:43 +02:00
Miroslav Bendík efe280f988 Added commandline parameters. 2012-08-22 15:49:45 +02:00
Miroslav Bendík b15a8d4de4 Created project. 2012-08-22 15:22:01 +02:00