paramat [Tue, 17 Mar 2015 05:21:31 +0000 (05:21 +0000)]
Mgv6: Remove addDirtGravelBlobs, replaced by blob ore in Minetest Game
Desert stone above y = -32 not water_level
Remove unused generateExperimental()
fz72 [Sun, 15 Mar 2015 13:52:10 +0000 (14:52 +0100)]
Save creative_mode and enable_damage setting for each world in world.mt
Create Parameters on world initialisation and set settings of old worlds
Loic Blot [Thu, 5 Mar 2015 19:54:36 +0000 (20:54 +0100)]
MutexedQueue inherits must use std::deque instead of std::list
Loic Blot [Tue, 17 Mar 2015 14:48:48 +0000 (15:48 +0100)]
Remove Android makefile ugly make -j hack
Pavel Puchkin [Tue, 10 Mar 2015 17:29:13 +0000 (19:29 +0200)]
Standalone bundle for OSX (w/ dependencies!)
Loic Blot [Tue, 17 Mar 2015 08:13:12 +0000 (09:13 +0100)]
Server::step throw is never catched in minetestserver
Replace it with an errorstream + assert for server
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
Loic Blot [Tue, 17 Mar 2015 13:04:46 +0000 (14:04 +0100)]
Use the NetworkPacket api to read full version string instead of u8 pointers. Also store the reserved byte to use API properly
Fixes #2509
Loic Blot [Tue, 17 Mar 2015 08:16:39 +0000 (09:16 +0100)]
Fix a little regression on SendActiveObjectMessages which send all TOCLIENT_ACTIVE_OBJECT_MESSAGES as reliable
Craig Robbins [Tue, 17 Mar 2015 07:39:59 +0000 (17:39 +1000)]
Minor bug fix (lag between damage flash and hearts updating)
Craig Robbins [Tue, 17 Mar 2015 06:21:48 +0000 (16:21 +1000)]
Fix various damage related bugs (client-side)
E.g. spawning or teleporting into lava to become invinsible
Craig Robbins [Tue, 17 Mar 2015 06:44:17 +0000 (16:44 +1000)]
Minor cleanup: game.cpp
* Sort includes
* Remove unnecessary includes
* Ensure the parameter name for GameRunData is consistent for class member functions
kwolekr [Tue, 17 Mar 2015 01:17:27 +0000 (21:17 -0400)]
Revert "Server::step throw is never catched. Replace it with an errorstream + assert"
This reverts commit
5f8e48c63baf12930430d5d8fc07495021599e61.
Loic Blot [Mon, 16 Mar 2015 19:37:07 +0000 (20:37 +0100)]
Bump android version code
Loic Blot [Mon, 16 Mar 2015 19:25:35 +0000 (20:25 +0100)]
Server::step throw is never catched. Replace it with an errorstream + assert
This throw can be trigger by LuaError exception or ConnectionBindFailed exception in the following functions:
* EmergeThread::Thread()
* ScriptApiEnv::environment_Step()
* ScriptApiEnv::player_event()
* ServerThread::Thread()
est31 [Mon, 16 Mar 2015 16:32:30 +0000 (17:32 +0100)]
Android: Fix auto-entry of server address and port in mainmenu
Fixes #2497.
Loic Blot [Mon, 16 Mar 2015 11:39:27 +0000 (12:39 +0100)]
Move client packet generators to dedicated functions for:
* TOSERVER_INIT_LEGACY
* TOSERVER_DELETEDBLOCKS
* TOSERVER_GOTBLOCKS
* TOSERVER_REMOVED_SOUNDS
Also use a std::vector instead of std::set for TOSERVER_REMOVED_SOUNDS
Loic Blot [Mon, 16 Mar 2015 11:01:40 +0000 (12:01 +0100)]
Move TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD and TOCLIENT_ACTIVE_OBJECT_MESSAGES to private functions
Loic Blot [Mon, 16 Mar 2015 09:19:13 +0000 (10:19 +0100)]
Rename packethandler/{client,server}.cpp to {client,server}packethandler.cpp
* Requested by @Zeno-
* Approved by @nerzhul
Loic Blot [Mon, 16 Mar 2015 09:01:56 +0000 (10:01 +0100)]
If player is dead, permit it to respawn, even if damages are not enabled
* Mods can do setHP function to do damages and override the enable_damage value sometimes
Loic Blot [Sun, 15 Mar 2015 18:09:26 +0000 (19:09 +0100)]
SendPlayerHPOrDie everytime at client connection, damage enabled or not, this will fix the player which stay dead at connection
est31 [Sun, 15 Mar 2015 06:25:22 +0000 (07:25 +0100)]
Finer progress bar updates when initializing nodes
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
Loic Blot [Sun, 15 Mar 2015 10:21:34 +0000 (11:21 +0100)]
Android Makefile update backported from stable-0.4 with minor changes
paramat [Sat, 14 Mar 2015 04:26:04 +0000 (04:26 +0000)]
mg_decoration: Raise highest allowed deco top to max edge of voxelmanip
Remove max_y from functions, simplify code
Loic Blot [Sat, 14 Mar 2015 18:59:14 +0000 (19:59 +0100)]
Android: Backport changes from stable-0.4
Loic Blot [Sat, 14 Mar 2015 17:52:31 +0000 (18:52 +0100)]
Android: fix package name in JAVA sources
Loic Blot [Sat, 14 Mar 2015 17:41:36 +0000 (18:41 +0100)]
Fix package name in AndroidManifest.xml
Loic Blot [Sat, 14 Mar 2015 17:28:02 +0000 (18:28 +0100)]
AndroidManifest.xml version bump
Craig Robbins [Sat, 14 Mar 2015 09:55:35 +0000 (19:55 +1000)]
Disable double-click -> ESC translation for main menu
Loic Blot [Fri, 13 Mar 2015 21:08:41 +0000 (22:08 +0100)]
client.cpp: typo fix and break; fix to make some compilers happy
Loic Blot [Fri, 13 Mar 2015 21:01:49 +0000 (22:01 +0100)]
Replace NetworkPacket pointers to references
Loic Blot [Fri, 13 Mar 2015 15:35:21 +0000 (16:35 +0100)]
Prepare Protocol v25 init & authentication.
* TOSERVER_INIT and TOCLIENT_INIT renamed to _LEGACY
* TOSERVER_PASSWORD merged from dev-0.5, can use protocol v24 and v25
* TOCLIENT_ACCESS_DENIED merged from dev-0.5, can use protocol v24 and v25, with normalized strings an a custom id for custom errors
* new TOSERVER_INIT packet only send MT version, supported compressions, protocols and serialization, this permit to rework everything later without break the _INIT packet
* new TOSERVER_AUTH packet which auth the client
* new TOCLIENT_HELLO packet which send server serialization version atm
* new TOCLIENT_AUTH_ACCEPTED which is send when TOCLIENT_AUTH was okay. After this packet, the client load datas from servers, like after TOCLIENT_INIT_LEGACY packet
Loic Blot [Fri, 13 Mar 2015 13:14:48 +0000 (14:14 +0100)]
Handle the newly added TOCLIENT_ACCESS_DENIED and TOCLIENT_DELETE_PARTICLESPAWNER
* Rename the handlers from _Legacy to regular, because here we can use same handlers
* Fix some packet names and pseudo handlers
Loic Blot [Fri, 13 Mar 2015 12:40:48 +0000 (13:40 +0100)]
Rename some packet and handlers to <packet>_Legacy name for compat layer between new network changes and old network clients
Loic Blot [Fri, 13 Mar 2015 07:57:19 +0000 (08:57 +0100)]
Use the new Player::isDead function when it's the case
SmallJoker [Mon, 2 Mar 2015 20:03:17 +0000 (21:03 +0100)]
Update Indonesian Language
Loic Blot [Thu, 12 Mar 2015 10:27:28 +0000 (11:27 +0100)]
handleCommand_Breath mustn't update breath is player is dead. A dead player doesn't breath.
Add Player::isDead function to check player is dead
Loic Blot [Thu, 12 Mar 2015 09:32:16 +0000 (10:32 +0100)]
Don't handle PlayerPos packet coming from client if player is dead
paramat [Wed, 11 Mar 2015 06:48:06 +0000 (06:48 +0000)]
Mgv5/mgv7: Add desert temples if desert stone detected in mapchunk
est31 [Tue, 10 Mar 2015 15:22:56 +0000 (16:22 +0100)]
Unescape tooltip texts
Previously, tooltips didn't unescape escaped formspec texts.
Item descriptions that trigger tooltips like inside inventories or for item_image_button
don't need to get unescaped, as they don't get set using formspec, but from lua.
paramat [Wed, 11 Mar 2015 05:28:07 +0000 (05:28 +0000)]
Mgv6: Fix uninitialised heightmap used by cavegen
paramat [Tue, 10 Mar 2015 04:51:21 +0000 (04:51 +0000)]
lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorations
ShadowNinja [Wed, 11 Mar 2015 00:45:42 +0000 (20:45 -0400)]
Silence Clang warning
Craig Robbins [Tue, 10 Mar 2015 08:46:28 +0000 (18:46 +1000)]
Ensure that heightmap is initialized before use
Without this, cavegen will use values in the heightmap before they are initialized.
Craig Robbins [Mon, 9 Mar 2015 02:42:25 +0000 (12:42 +1000)]
Stop formspecs closing with double-click in empty area
Behaviour on Android remains the same until other alternatives can be devised (if possible)
See #2425 (and the many other -- now closed -- issues reporting this feature as a bug)
Loic Blot [Sun, 8 Mar 2015 17:13:27 +0000 (18:13 +0100)]
Fix memleak pointed by issue #2439.
Also change bzero to memset. bzero doesn't work on windows
Loic Blot [Sun, 8 Mar 2015 16:42:06 +0000 (17:42 +0100)]
Fix unitialized data when creating TOSERVER_INIT packet
ShadowNinja [Sun, 8 Mar 2015 07:15:16 +0000 (03:15 -0400)]
Make the dummy backend only look up blocks once
Maksim Gamarnik [Sat, 7 Mar 2015 12:34:31 +0000 (14:34 +0200)]
Update Android Makefile
ARMv7 default build
Update curl
Update OpenSSL
paramat [Sat, 7 Mar 2015 03:15:12 +0000 (03:15 +0000)]
Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found
gregorycu [Wed, 21 Jan 2015 13:25:06 +0000 (00:25 +1100)]
Optimize Profiler::avg()
ShadowNinja [Sun, 8 Mar 2015 01:01:59 +0000 (20:01 -0500)]
Don't use luaL_checkstring to read node names, it's only for arguments
This caused confusing error messages like "argument #4 to set_node is not a string."
Mahmut Elmas [Wed, 4 Mar 2015 19:55:47 +0000 (21:55 +0200)]
Add Turkish comment translation to minetest.desktop
est31 [Sat, 7 Mar 2015 18:13:42 +0000 (19:13 +0100)]
Add more Android build files to .gitignore
ngosang [Mon, 26 Jan 2015 11:44:49 +0000 (12:44 +0100)]
Respect game mapgen flags and save world noise params
sapier [Sat, 7 Mar 2015 14:22:35 +0000 (15:22 +0100)]
Fix RUN_IN_PLACE broken due to invalid usage of assert
Craig Robbins [Fri, 6 Mar 2015 10:21:51 +0000 (20:21 +1000)]
For usages of assert() that are meant to persist in Release builds (when NDEBUG is defined), replace those usages with persistent alternatives
Loic Blot [Sat, 7 Mar 2015 12:23:38 +0000 (13:23 +0100)]
Improve Clouds::render mathematics
Craig Robbins [Sat, 7 Mar 2015 05:09:27 +0000 (15:09 +1000)]
Fix Android text bug (no text displaying)
paramat [Fri, 6 Mar 2015 04:46:05 +0000 (04:46 +0000)]
Dungeongen: Optionally set ignore to be untouchable to disable floating dungeons
ShadowNinja [Fri, 27 Feb 2015 07:24:07 +0000 (02:24 -0500)]
Don't start a server for map migration
ShadowNinja [Sun, 16 Nov 2014 20:31:57 +0000 (15:31 -0500)]
Clean up database API and save the local map on an interval
paramat [Thu, 5 Mar 2015 01:53:11 +0000 (01:53 +0000)]
Biome API: Enable decorations placed on water
Add schematic decoration force placement flag
BlockMen [Sun, 22 Feb 2015 14:12:05 +0000 (15:12 +0100)]
Improve group-based connection between raillike nodes
Loic Blot [Thu, 5 Mar 2015 19:12:54 +0000 (20:12 +0100)]
l_get_modnames: Compare using std::sort instead of a custom function which does same work
Loic Blot [Thu, 5 Mar 2015 17:08:19 +0000 (18:08 +0100)]
collisionMoveSimple: use std::vector instead of std::list, this improve the performances
Loic Blot [Thu, 5 Mar 2015 16:57:36 +0000 (17:57 +0100)]
ProfilerGraph: Use std::list instead of std::vector
Craig Robbins [Thu, 5 Mar 2015 06:25:53 +0000 (16:25 +1000)]
Fix mapgen using unitialised height map values
Loic Blot [Thu, 5 Mar 2015 15:20:56 +0000 (16:20 +0100)]
Use std::queue for HTTPFetchRequest and std::vector for log_output instead of std::list
Loic Blot [Thu, 5 Mar 2015 14:34:39 +0000 (15:34 +0100)]
Fix issue #2441: crash on respawn, since a conversion std::list to std::vector on Environment.cpp
* Also change some std::list to std::vector for ClientMap::renderMap
* Remove disabled code in ClientMap::renderMap, disabled since a long time
Loic Blot [Thu, 5 Mar 2015 10:52:57 +0000 (11:52 +0100)]
Replace std::list to std::vector into tile.cpp (m_texture_trash) and move tile.hpp to src/client/
Loic Blot [Thu, 5 Mar 2015 10:39:05 +0000 (11:39 +0100)]
Server.cpp Use std::list instead of std::vector for playSound, fillMediaCache, sendRequestedMedia, sendMediaAnnouncement and related functions
Loic Blot [Thu, 5 Mar 2015 10:18:17 +0000 (11:18 +0100)]
Server::AsyncRunStep: buffered_messages now uses std::vector instead of std::list. * sendRemoveNode and sendAddNodes are also converted as a side effect
BlockMen [Thu, 26 Feb 2015 13:45:31 +0000 (14:45 +0100)]
Fix some rendering glitches
- Fixes particle draworder
- Fixes nodehighlighting
Loic Blot [Thu, 5 Mar 2015 09:43:08 +0000 (10:43 +0100)]
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
* Also remove unused Server::m_modspaths
Loic Blot [Wed, 4 Mar 2015 16:48:07 +0000 (17:48 +0100)]
Remove Queue class which uses std::list and use native std::queue
Craig Robbins [Thu, 5 Mar 2015 05:17:37 +0000 (15:17 +1000)]
Fix memory leak in MapgenV6
paramat [Wed, 4 Mar 2015 10:14:07 +0000 (10:14 +0000)]
Cavegen, mgv5: Cleanup code
Conf.example: Update mgv5 mapgen params
Mgv7: Lava caves only below -256
Loic Blot [Wed, 4 Mar 2015 16:18:57 +0000 (17:18 +0100)]
Use std::vector instead of std::list in StaticObjectList and MutexedMap::getValues()
Loic Blot [Wed, 4 Mar 2015 15:58:04 +0000 (16:58 +0100)]
ABMHandler and player_collisions use sequential read/write. Switch from std::list to std::vector
* Also remove dead code Map::unloadUnusedData which is dead since a long time
Loic Blot [Wed, 4 Mar 2015 15:30:24 +0000 (16:30 +0100)]
ClientInterface::getClientIDs doesn't need a std::list. Use a std::vector for better perfs
Loic Blot [Wed, 4 Mar 2015 14:27:53 +0000 (15:27 +0100)]
We always know playerSAO when calling SendInventory. Using it instead of searching it via peer_id
SmallJoker [Wed, 4 Mar 2015 14:10:00 +0000 (00:10 +1000)]
Radius parameter for /deleteblocks here
Loic Blot [Wed, 4 Mar 2015 11:19:26 +0000 (12:19 +0100)]
Send Position packet on event, don't check it at each AsyncRunStep.
* This permit to cleanup the player checking loop
Loic Blot [Wed, 4 Mar 2015 10:46:31 +0000 (11:46 +0100)]
ASyncRunStep doesn't need to lock when do setTimeOfDaySpeed.
* setTimeOfDaySpeed already lock a mutex when modify the value, we don't need to lock all environment.
* add a fine grain lock for getTimeOfDay and setTimeOfDay to solve environment multithread modifications on this value
Loic Blot [Wed, 4 Mar 2015 10:29:34 +0000 (11:29 +0100)]
Send Inventory packet on event, don't check it at each AsyncRunStep.
* Call UpdateCrafting into SendInventory because this functions is only called before SendInventory
* Use Player* instead of peer_id for UpdateCrafting because SendInventory already has the Player* pointer, then don't loop for searching Player* per peer_id
* m_env_mutex don't need to be used with this modification because it's already locked before the calls
Loic Blot [Tue, 3 Mar 2015 16:36:54 +0000 (17:36 +0100)]
Remove unused m_wielded_item_not_sent
Loic Blot [Tue, 3 Mar 2015 15:23:47 +0000 (16:23 +0100)]
Send Breath packet on event, don't check it at each AsyncRunStep
Loic Blot [Mon, 2 Mar 2015 16:31:31 +0000 (17:31 +0100)]
Send Player HP when setHP (or a setHP caller) is called instead of looping and testing the state change.
Miguel Almeida [Sat, 31 Jan 2015 15:49:44 +0000 (15:49 +0000)]
Fix occlusion
Craig Robbins [Mon, 2 Mar 2015 03:16:01 +0000 (13:16 +1000)]
Fix narrow_to_wide_c (ANDROID)
* Ensure converted string is NUL terminated
* Restore logic to that used prior to
9e2a9b5
paramat [Sun, 1 Mar 2015 01:30:47 +0000 (01:30 +0000)]
Mgv6: Add heightmap. Do not make large caves that are entirely above ground
est31 [Fri, 27 Feb 2015 21:54:16 +0000 (22:54 +0100)]
Add /setpassword and /clearpassword logging
mahmutelmas06 [Wed, 25 Feb 2015 11:18:02 +0000 (20:18 +0900)]
Add Turkish language
Rui [Sun, 22 Feb 2015 12:54:20 +0000 (21:54 +0900)]
Update minetest.po
Loic Blot [Fri, 27 Feb 2015 13:15:17 +0000 (14:15 +0100)]
Revert "Fix particles draworder" (issue #2388)
This reverts commit
c09d026f0561ee3c6db821a7e193716f724a0e4a.
Craig Robbins [Fri, 27 Feb 2015 11:42:00 +0000 (21:42 +1000)]
Change find_surface_nodes_in_area to find_nodes_in_area_under_air
Loic Blot [Sun, 22 Feb 2015 16:01:03 +0000 (17:01 +0100)]
Add find_surface_nodes_in_area LUA call which permit to only get the nodes which touch air. This permit to massively improve performance for mods like plantlife
rubenwardy [Sun, 22 Feb 2015 17:12:55 +0000 (17:12 +0000)]
Wrap lines longer than 80 characters in lua_api.txt ...and minor formating changes
Craig Robbins [Fri, 27 Feb 2015 03:40:27 +0000 (13:40 +1000)]
Fix minor memory leak (Android)
paramat [Tue, 24 Feb 2015 04:06:05 +0000 (04:06 +0000)]
Biome API: Re-calculate biome at every surface in a mapchunk column