Commit Graph

144 Commits

Author SHA1 Message Date
Christophe Le Roy
94ba67275d 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-14 08:01:48 +02:00
Christophe Le Roy
d57d222b22 DBRedis: add replyTypeStr
Maps Redis response constants to strings
2016-10-14 08:01:48 +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
sfan5
464afcb3e9 Fix failing travis build (apt-get update missing) 2016-04-15 21:55:27 +02:00
sfan5
9b4d6a72e2 Update leveldb download URL in travis before_install script 2016-01-15 10:27:36 +01:00
sfan5
87292adcb4 Fix incorrect regexes in autogenerating-colors.txt and update colors.txt yet again 2016-01-15 10:20:05 +01:00
sfan5
0eb653d72b Update colors.txt and instructions for auto-generating it 2016-01-14 21:52:15 +01:00
sfan5
ce759d7724 Fix --{min,max}-y, thanks to @PilzAdam 2015-10-29 23:13:41 +01:00
sfan5
6e30d4702c Update colors.txt 2015-05-01 11:44:54 +02:00
sfan5
a361e4d1eb Rename some variables to make their purpose clearer 2015-03-18 22:49:19 +01:00
sfan5
70b75507fe Clarify function of thickness param of nodes 2015-03-18 22:22:10 +01:00
sfan5
80ad231b1f Add travis build status to README 2014-12-24 23:05:25 +01:00
sfan5
79968f2a35 Travis integration 2014-12-24 23:02:46 +01:00
sfan5
722f02d121 Add workaround for color.txt parsing on MinGW 2014-12-20 13:09:56 +01:00
sfan5
20b340e2ee Fix problems with USE_CXX11 2014-12-20 12:41:16 +01:00
sfan5
1c47825d70 Fix number rounding, clarify comment and change var. names 2014-09-02 14:49:56 +02:00
sfan5
b7f0a8a29a Fix --geometry producing wrong results 2014-09-01 18:42:50 +02:00
sfan5
88df29a6b3 Add CMake option to use C++11 features 2014-08-02 16:31:45 +02:00
sfan5
2cc1ffc543 Re-add --backend to allow overriding auto-detected backend 2014-07-11 10:54:50 +02:00
sfan5
bca8d3ce07 Improve error reporting if setting is not found 2014-07-08 15:31:01 +02:00
sfan5
e85a49873a Fix --drawalpha 2014-07-08 15:08:07 +02:00
sfan5
20691186b5 Read backend from world.mt, closes #6 2014-07-08 15:08:07 +02:00
sfan5
fe534d9026 Fix #2 2014-07-08 14:02:20 +02:00
sfan5
4076903980 Fix small bug in redis backend 2014-07-08 13:54:41 +02:00
sfan5
dff4589152 Improve color parsing, hopefully fixes #7 2014-05-21 15:16:29 +02:00
Sfan5
d8cfe79116 Better error reporting for LevelDB backend 2014-05-13 14:15:44 +02:00
Sfan5
925de1bb79 Fix default colors being wrong 2014-04-28 17:43:50 +02:00
Sfan5
79d338a90c Better error reporting for Redis backend 2014-04-28 17:37:04 +02:00
Sfan5
2553e44e8d Add redis database backend 2014-04-26 15:03:32 +02:00