Commit Graph

170 Commits

Author SHA1 Message Date
sfan5
6af6be4632 Re-add support for outdated libgd 2018-03-24 16:56:17 +01:00
sfan5
7c71138fec Minor refactoring (2)
Also tunes --drawalpha to hide shadows in deep water better.
2018-03-24 15:24:02 +01:00
sfan5
c15adfd325 Minor refactoring 2018-03-24 14:54:45 +01:00
sfan5
75599e8569 Support all image formats offered by libgd 2018-03-24 14:16:56 +01:00
sfan5
b16f93f183 Properly disable debugging code in Release builds 2018-03-24 14:05:34 +01:00
sfan5
976c690357 Improve exception messages for out-of-bounds image access 2018-03-24 14:05:25 +01:00
sfan5
7288e60cd2 Fix scales being drawn outside of image
closes #54
2018-03-24 13:58:39 +01:00
nekoswag
cca7072eab put color values in quotes
the command line doesn't seem to like the "#" char, see https://forum.minetest.net/viewtopic.php?p=182380#p182380
2018-02-01 14:30:36 +01:00
sfan5
179651e83c Fix failing travis build 2017-09-03 14:36:46 +02:00
Jakub Vaněk
6afe1b78c5 Add support for Redis via UNIX domain sockets (#46) 2017-09-03 14:27:59 +02:00
sfan5
25d1d43004 Update colors.txt 2017-06-06 12:57:00 +02:00
sfan5
4f7d2a5c83 Fix Postgres compilation (closes #45) 2017-03-14 13:48:26 +01:00
sfan5
21444d00c3 Add support for recent MapBlock serialization changes 2017-02-17 15:28:01 +01:00
Daniel Moerner
07c371f68c Write manpage based on README. 2017-01-17 19:05:15 +01:00
sfan5
95b2f46d7e Fix compilation without PostgreSQL 2017-01-14 15:33:25 +01:00
sfan5
bc7d81eb62 Update README (postgresql support) 2017-01-08 23:27:45 +01:00
zeuner
af502f3ac2 PostgreSQL database support 2017-01-08 23:24:09 +01:00
sfan5
d490cf0a31 Fix drawing of transparent nodes without --drawalpha (fixes #41) 2017-01-05 23:37:21 +01:00
sfan5
9503f76805 Add links to Windows build to README 2016-12-18 21:30:52 +01:00
sfan5
34d6b413a6 Update colors.txt 2016-12-05 12:59:07 +01:00
sfan5
02e40d268b Fix travis 2016-11-19 00:01:27 +01:00
sfan5
0167a72967 Code style & comments 2016-11-18 23:57:09 +01:00
sfan5
a41d231c34 Move everything that deals with images directly to an Image class 2016-11-18 23:34:31 +01:00
sfan5
77fdcd15fb Allow rendering (or omitting) scales at every image edge 2016-11-18 22:01:15 +01:00
sfan5
89ed5494cc DBRedis: Move some common code into macros 2016-10-21 21:17:43 +02:00
Christophe Le Roy
9bbc4466ef DBRedis: use HMGET in getBlocksOnZ
Big performance increase on big maps.
2016-10-21 20:36:21 +02:00
Christophe Le Roy
fabde97847 DBRedis: add HMGET
Redis HMGET command allows to query multiple fields in the same request.
Limit to a maximum of DB_REDIS_HMGET_NUMKEYS fields per HMGET request.
2016-10-21 20:36:21 +02:00
Christophe Le Roy
53706e811b DBRedis: add replyTypeStr
Maps Redis response constants to strings
2016-10-21 20:36:21 +02:00
Nestorfish
26b62933ed TileGenerator: free database resources (#38)
Destructor of DB* instance was never called.
Ensure it is, adding missing base class virtual destructor and calling delete when possible to free resources.
2016-10-13 23:26:59 +02:00
Nestorfish
d83f0d9e8d CMake: Fix setting default value for CMAKE_BUILD_TYPE
CMAKE_BUILD_TYPE "Release" default value was not set, quieting among
others compilation warnings.
2016-10-11 03:34:33 +02:00
Christophe Le Roy
c45965eb8d Improvements to Node name/ID mapping code
* Clean m_nameMap between blocks
* Warn about invalid node name IDs
* Early drop of non-significant blocks
2016-10-09 19:22:28 +02:00
sfan5
09945caa14 Fix small typo (std:cerr -> std::cerr) 2016-10-09 15:19:35 +02:00
Christophe Le Roy
bcbfd00eba DBSQLite3: Do not raise in destructor
Throwing exception from destructor is not recommended and generates lots
of warnings during compilation.
Don't use macro SQLRES, and:
 - ignore return code of sqlite3_finalize (of no interest here)
 - log to stderr sqlite3_close failure
2016-10-08 22:02:36 +02:00
sfan5
0bf0d8e035 Fix color parsing code (prev. commit)
Also make sure there's enough parameters: Name, R, G and B
2016-10-08 21:59:34 +02:00
sfan5
173dd75b31 Simplify color parsing code 2016-10-08 13:39:07 +02:00
sfan5
3e2b327167 Update colors.txt 2016-10-08 13:31:03 +02:00
sfan5
877b514971 Automatically use C++11 features when available and remove USE_CXX11 flag 2016-10-06 00:09:06 +02:00
sfan5
13b485a75f Update travis build to new container infrastructure (w/o sudo) 2016-10-06 00:09:06 +02: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
4db3040f2a Fix getting MapBlocks for abs(z) > 2048 with sqlite3 backend (fixed #31) 2016-09-18 14:33:13 +02:00
sfan5
ae9321de1e Clarify format of --geometry in README
closes #22
2016-09-18 13:32:26 +02:00
sfan5
79121ade27 Document --colors in README 2016-08-28 15:58:06 +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
sfan5
ab167d1c68 Clarify license situation (closes #26)
The original author agreed to the BSD license by pushing mireq/minetest-mapper-cpp@07067f443d to his own repository.
Thus the addition of a BSD license in commit 7e3e0a067c was not a mistake and is valid.

This commit removes the LGPL license and unnecessary FreeBSD mention in COPYING (which isn't part of BSD 2-Clause anyway).
2016-08-09 16:18:04 +02:00
sfan5
2ed45633a4 Warn on big image dimensions, fixes #14 2016-08-09 16:04:58 +02:00
Florian Schüller
15fae27b85 Zoom implementation (--zoom option) 2016-08-09 15:35:36 +02:00
sfan5
7c1989a6b2 Improve README (fixes #30) 2016-08-05 16:12:51 +02:00
sfan5
2aa8619777 Update colors.txt 2016-05-16 12:50:33 +02:00