aboutsummaryrefslogtreecommitdiff
path: root/src/clientserver.h
Commit message (Expand)AuthorAge
* Allow use all 6 faces for special tiles.RealBadAngel2014-08-25
* Add formspec api versioningsapier2014-06-29
* Fix heart + bubble bar size on different texture packssapier2014-05-07
* Use integers instead of float valuesBlockMen2014-04-12
* Add player:set_eye_offset() by @MirceaKitsune and clean upBlockMen2014-04-12
* Add third person viewBlockMen2014-04-12
* Cleanup client init states by bumping protocol versionsapier2014-04-08
* Add missing "-" to list of allowed chars in media filenamessapier2014-02-02
* Add player:override_day_night_ratio() for arbitrarily controlling sunlight br...Perttu Ahola2014-02-01
* Add player:set_sky() with simple skybox supportPerttu Ahola2014-02-01
* Allow vertical axis particle rotation constraintkhonkhortisan2014-01-13
* Add minetest.swap_nodeNovatux2013-11-30
* Add offset to automatic_face_movement_dirPilzAdam2013-09-10
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Add support for entities to automatic face movement directionsapier2013-08-13
* Weather backward compatibilityproller2013-08-02
* Add support for setting stepheight for entitiessapier2013-07-30
* Bump protocol versionPilzAdam2013-07-20
* Add set_breath and get_breath to lua API.RealBadAngel2013-07-20
* Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAMKahrl2013-05-26
* Fix documentation for HUD commands in protocolPilzAdam2013-05-04
* Generalize hud_builtin_enable into hud_set_flagskwolekr2013-04-25
* Added support to disable built-in HUD elementsDiego Martínez2013-04-24
* Added offset support for HUD itemsDiego Martínez2013-04-23
* Added support for alignment in HUD itemsDiego Martínez2013-04-23
* Lua HUDJonathon Anderson2013-04-18
* Allow modifying movement speed, jump height and gravity per-player via the Lu...MirceaKitsune2013-04-05
* Add different place sound for nodesPilzAdam2013-03-29
* New damage system, add damageGroups to ToolCapabilities, bump protocol versionPilzAdam2013-03-29
* Allow spawning particles from the server, from luaJeija2013-03-23
* Move rightclickable to the proper placePilzAdam2013-03-23
* Include backface_culling flag in serialization format for TileDefsJürgen Doser2013-03-23
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Improved Player PhysicsMirceaKitsune2013-02-14
* Fix buttons not working for Lua-triggered formspecssapier2013-01-07
* Add TOCLIENT_SHOW_FORMSPEC to display formspecs at client from luasapier2013-01-02
* Added ability to fetch media from remote server (using cURL library)Ilya Zhuravlev2012-12-16
* Allow server to accept protocol 13 clients altough they don't work too wellPerttu Ahola2012-11-29
* Ranged support of protocol version on server sidePerttu Ahola2012-11-29
* Default server step to 0.1s and sync object/player update intervals to itPerttu Ahola2012-11-26
* Move a function from clientserver.h to clientserver.cppPerttu Ahola2012-11-26
* New PROTOCOL_VERSION scheme (allow client to support a range of versions)Perttu Ahola2012-11-26
* RealBadAngel's patch which allows the lua api to read pressed player keys. Th...MirceaKitsune2012-11-25
* A bunch of fixesMirceaKitsune2012-11-25
* Version 0.4.3-rc0; increase PROTOCOL_VERSION due to backwards-incompatible In...Perttu Ahola2012-09-05
* Detached inventoriesPerttu Ahola2012-07-24
* Fix map deserialization and remove old serialization codePerttu Ahola2012-07-23
* minetest.register_on_player_receive_fields()Perttu Ahola2012-07-22
* Allow defining player's inventory form in LuaPerttu Ahola2012-07-19
ass="hl opt">(), data.c_str(), data.size()); if (!reply) { errorstream << "WARNING: saveBlock: redis command 'HSET' failed on " "block " << PP(blockpos) << ": " << ctx->errstr << std::endl; freeReplyObject(reply); return false; } if (reply->type == REDIS_REPLY_ERROR) { errorstream << "WARNING: saveBlock: saving block " << PP(blockpos) << "failed" << std::endl; freeReplyObject(reply); return false; } freeReplyObject(reply); return true; } std::string Database_Redis::loadBlock(v3s16 blockpos) { std::string tmp = i64tos(getBlockAsInteger(blockpos)); redisReply *reply; reply = (redisReply*) redisCommand(ctx, "HGET %s %s", hash.c_str(), tmp.c_str()); if(!reply) throw FileNotGoodException(std::string("redis command 'HGET %s %s' failed: ") + ctx->errstr); if(reply->type != REDIS_REPLY_STRING) return ""; std::string str(reply->str, reply->len); freeReplyObject(reply); // std::string copies the memory so this won't cause any problems return str; } void Database_Redis::listAllLoadableBlocks(std::list<v3s16> &dst) { redisReply *reply; reply = (redisReply*) redisCommand(ctx, "HKEYS %s", hash.c_str()); if(!reply) throw FileNotGoodException(std::string("redis command 'HKEYS %s' failed: ") + ctx->errstr); if(reply->type != REDIS_REPLY_ARRAY) throw FileNotGoodException("Failed to get keys from database"); 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))); } freeReplyObject(reply); } Database_Redis::~Database_Redis() { redisFree(ctx); } #endif