aboutsummaryrefslogtreecommitdiff
path: root/minetest.conf.example
Commit message (Expand)AuthorAge
* Add configurable PRAGMA synchronous =proller2013-09-17
* Add fallback font support for some languages.Ilya Zhuravlev2013-09-08
* Fix remnants of s32 enable_shadersKahrl2013-09-04
* Add a setting for HighPrecisionFPU (fixes #763).Ilya Zhuravlev2013-08-25
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Remove farmeshKahrl2013-08-13
* Make freetype usage configureable by a settingPilzAdam2013-08-04
* Change large amount of objects to be configurable via a setting in minetest.c...Novatux2013-08-04
* Weather supportproller2013-07-27
* Fix modstore URLsPilzAdam2013-07-22
* Disable gamemanager by defaultPilzAdam2013-07-22
* Masterserver mods announse, ipv6, better curl errorsproller2013-07-13
* Add texture bumpmapping feature.RealBadAngel2013-07-04
* Update wiki urlBlockMen2013-07-03
* Replace C++ mainmenu by formspec powered onesapier2013-07-02
* Remove texture atlas / AtlasPointer, rename getTextureRaw to getTextureKahrl2013-07-02
* Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-27
* New math mapgen with fractal based worldsproller2013-06-23
* Add support for IPv6proller2013-06-23
* Add a setting for max loop count per step in liquid updatePilzAdam2013-06-20
* Add and implement setting max_clearobjects_extra_loaded_blocks.Kahrl2013-06-03
* Replace c55.me linksKahrl2013-06-03
* Fix link in minetest.conf.exampleRuss2013-05-20
* Add mouse_sensitivity optionEsteban I. Ruiz Moreno2013-05-13
* Disable fall bobbing by default; enable using fall_bobbing_amount = 1.0Perttu Ahola2013-04-23
* Mapgen indev: float islands, larger far biomesproller2013-03-24
* Add singlenode mapgen; generates solely the node 'mapgen_singlenode', default...Perttu Ahola2013-03-22
* Add missing settings to minetest.conf.examplePilzAdam2013-03-17
* initial mapgen indev version with farscale feature and huge cavesproller2013-03-16
* Re-add jungles, apple treeskwolekr2013-03-16
* Liquid fine tuningproller2013-03-14
* Add cloud menu background by Krisi, configurable with the menu_clouds option.ShadowNinja2013-03-13
* Change default settings for log level, texture atlas, document new settingskwolekr2013-02-27
* new adjustable finite liquidproller2013-02-24
* new auto masterserverproller2013-02-22
* Some kind of middleway values for player acceleration for nowPerttu Ahola2013-02-15
* Add Freetype supportIlya Zhuravlev2013-02-14
* Improved Player PhysicsMirceaKitsune2013-02-14
* Document remote_media settingIlya Zhuravlev2013-02-07
* Add mapgen parameters to minetest.conf.examplePerttu Ahola2013-01-21
* Add a list of servers to the "Multiplayer" tabJeija2013-01-21
* Add a setting to enable always flying fastPilzAdam2013-01-07
* Fix typo doubletab -> doubletapPilzAdam2013-01-04
* Switch to fly mode if spacebar is doubleclickedPilzAdam2013-01-04
* Repeated right clicking when holding the right mouse buttonJeija2013-01-04
* Add selectionbox_color, crosshair_color, and crosshair_alpha optionsEsteban I. Ruiz Moreno2012-12-27
* Added ability to fetch media from remote server (using cURL library)Ilya Zhuravlev2012-12-16
* Default to preload_item_visuals=truePerttu Ahola2012-12-02
* Add enable_shaders to minetest.conf.examplePerttu Ahola2012-12-02
* Add setting preload_item_visualsPerttu Ahola2012-12-02
ass="hl opt">} freeReplyObject(reply); } } Database_Redis::~Database_Redis() { redisFree(ctx); } void Database_Redis::beginSave() { redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "MULTI")); if (!reply) { throw DatabaseException(std::string( "Redis command 'MULTI' failed: ") + ctx->errstr); } freeReplyObject(reply); } void Database_Redis::endSave() { redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "EXEC")); if (!reply) { throw DatabaseException(std::string( "Redis command 'EXEC' failed: ") + ctx->errstr); } freeReplyObject(reply); } bool Database_Redis::saveBlock(const v3s16 &pos, const std::string &data) { std::string tmp = i64tos(getBlockAsInteger(pos)); redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "HSET %s %s %b", hash.c_str(), tmp.c_str(), data.c_str(), data.size())); if (!reply) { warningstream << "saveBlock: redis command 'HSET' failed on " "block " << PP(pos) << ": " << ctx->errstr << std::endl; freeReplyObject(reply); return false; } if (reply->type == REDIS_REPLY_ERROR) { warningstream << "saveBlock: saving block " << PP(pos) << " failed: " << std::string(reply->str, reply->len) << std::endl; freeReplyObject(reply); return false; } freeReplyObject(reply); return true; } void Database_Redis::loadBlock(const v3s16 &pos, std::string *block) { std::string tmp = i64tos(getBlockAsInteger(pos)); redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "HGET %s %s", hash.c_str(), tmp.c_str())); if (!reply) { throw DatabaseException(std::string( "Redis command 'HGET %s %s' failed: ") + ctx->errstr); } switch (reply->type) { case REDIS_REPLY_STRING: { *block = std::string(reply->str, reply->len); // std::string copies the memory so this won't cause any problems freeReplyObject(reply); return; } case REDIS_REPLY_ERROR: { std::string errstr(reply->str, reply->len); freeReplyObject(reply); errorstream << "loadBlock: loading block " << PP(pos) << " failed: " << errstr << std::endl; throw DatabaseException(std::string( "Redis command 'HGET %s %s' errored: ") + errstr); } case REDIS_REPLY_NIL: { *block = ""; // block not found in database freeReplyObject(reply); return; } } errorstream << "loadBlock: loading block " << PP(pos) << " returned invalid reply type " << reply->type << ": " << std::string(reply->str, reply->len) << std::endl; freeReplyObject(reply); throw DatabaseException(std::string( "Redis command 'HGET %s %s' gave invalid reply.")); } bool Database_Redis::deleteBlock(const v3s16 &pos) { std::string tmp = i64tos(getBlockAsInteger(pos)); redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "HDEL %s %s", hash.c_str(), tmp.c_str())); if (!reply) { throw DatabaseException(std::string( "Redis command 'HDEL %s %s' failed: ") + ctx->errstr); } else if (reply->type == REDIS_REPLY_ERROR) { warningstream << "deleteBlock: deleting block " << PP(pos) << " failed: " << std::string(reply->str, reply->len) << std::endl; freeReplyObject(reply); return false; } freeReplyObject(reply); return true; } void Database_Redis::listAllLoadableBlocks(std::vector<v3s16> &dst) { redisReply *reply = static_cast<redisReply *>(redisCommand(ctx, "HKEYS %s", hash.c_str())); if (!reply) { throw DatabaseException(std::string( "Redis command 'HKEYS %s' failed: ") + ctx->errstr); } switch (reply->type) { case REDIS_REPLY_ARRAY: dst.reserve(reply->elements); for (size_t i = 0; i < reply->elements; i++) { assert(reply->element[i]->type == REDIS_REPLY_STRING); dst.push_back(getIntegerAsBlock(stoi64(reply->element[i]->str))); } break; case REDIS_REPLY_ERROR: throw DatabaseException(std::string( "Failed to get keys from database: ") + std::string(reply->str, reply->len)); } freeReplyObject(reply); } #endif // USE_REDIS