paramat [Sun, 2 Oct 2016 23:56:17 +0000 (00:56 +0100)]
Mapblock_mesh_generate_special: Improve performance
Remove uses of std::map.
Make sure we use ContentFeatures reference not value.
Original commit by gregorycu.
paramat [Sun, 25 Sep 2016 21:03:35 +0000 (22:03 +0100)]
Textures: New 'smoke puff' texture from TNT mod
est31 [Mon, 3 Oct 2016 13:55:15 +0000 (15:55 +0200)]
Fix build/warning on non X11 platforms
paramat [Sun, 2 Oct 2016 21:04:47 +0000 (22:04 +0100)]
Builtin/falling: Add fallback vector in case of nil 'wallmounted to dir'
The fallback vector is in case 'wallmounted to dir' is nil due
to voxelmanip placing a wallmounted node without resetting a
pre-existing param2 value that is out-of-range for wallmounted.
The fallback vector corresponds to param2 = 0.
raymoo [Sat, 3 Sep 2016 04:37:51 +0000 (21:37 -0700)]
Forceloading: Transient forceloads
Adds a flag to forceload_block which lets you turn off persistence for
that forceload.
rubenwardy [Thu, 7 Jul 2016 20:10:15 +0000 (21:10 +0100)]
Formspec: Add container[] and container_end[] elements
sfan5 [Sun, 2 Oct 2016 13:44:53 +0000 (15:44 +0200)]
Allow nothing to be selected from formspec parameters
Rui [Sat, 1 Oct 2016 14:16:50 +0000 (23:16 +0900)]
Fix typo in core.after (#4560)
Wuzzy [Wed, 28 Sep 2016 01:00:37 +0000 (03:00 +0200)]
Update default controls in README.txt
paramat [Mon, 26 Sep 2016 22:21:33 +0000 (23:21 +0100)]
Mgv7: Avoid mid-air spawn on disabled mountain terrain, optimise function
'getSpawnLevelAtPoint()' did not account for disabled mountains, it
was possible to be spawned in mid-air where a mountain surface would
have been.
Avoid check for river area if rivers are disabled.
est31 [Fri, 30 Sep 2016 12:30:37 +0000 (14:30 +0200)]
Fix android build
Fixes #4493.
sfan5 [Thu, 29 Sep 2016 14:20:05 +0000 (16:20 +0200)]
Only include keycode unittests in client build (fixes #4559)
sfan5 [Thu, 22 Sep 2016 13:23:54 +0000 (15:23 +0200)]
Add keycode.cpp unittests
sfan5 [Wed, 21 Sep 2016 21:40:19 +0000 (23:40 +0200)]
Rewrite keycode.cpp (Keycode handling & names)
paramat [Fri, 23 Sep 2016 16:01:49 +0000 (17:01 +0100)]
Conf.example: Re-add deleted noise parameter documentation
Re-add documentation of noise parameter formats.
Re-add 'mgv5_np_ground' noise parameters in group format.
Both these were deleted through auto-generation of conf.example.
Add note to builtin/mainmenu/dlg_settings_advanced.lua that this
documentation must be preserved.
sfan5 [Tue, 20 Sep 2016 19:50:42 +0000 (21:50 +0200)]
Update library versions in buildbot
The libraries updated in this commit were built with a set of scripts:
https://gist.github.com/sfan5/
780c24313c164d34634e18677683b9a3
Building new library versions or just using a different MinGW version
is now way easier. This means Windows builds no longer need to use
ancient library versions just because nobody knows how to build them.
sfan5 [Tue, 20 Sep 2016 19:40:05 +0000 (21:40 +0200)]
Don't use ZLIB_WINAPI if the required DLL is not provided to CMake
This allows you to use an stdcall zlib (zlib1.dll instead of zlibwapi.dll)
when building Minetest for win32.
sfan5 [Mon, 19 Sep 2016 18:06:39 +0000 (20:06 +0200)]
Do not serialize empty NodeMetadata
This commit fixes #4516, though note that this will gradually fix MapBlocks
as they are used/modified and thus re-serialized.
paramat [Wed, 21 Sep 2016 03:25:10 +0000 (04:25 +0100)]
Builtin: Change error to warning for light_source > 14
James Stevenson [Thu, 15 Sep 2016 15:53:17 +0000 (11:53 -0400)]
Increase default font size by 1
est31 [Mon, 19 Sep 2016 10:11:31 +0000 (12:11 +0200)]
Fix a typo and use proper deprecation notification system
Fix a typo pointed out by @thecow275.
Also, use the deprecated notification system which respects the
deprecated_lua_api_handling setting.
paramat [Thu, 15 Sep 2016 21:40:19 +0000 (22:40 +0100)]
Register.lua: Throw error if node 'light_source' > core.LIGHT_MAX
Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention
to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game.
Add comment in light.h requiring the constant be changed in both places.
Add lighting bug warning to note in lua_api.txt.
There are hundreds of mod uses of 15 which causes a lighting bug.
paramat [Sun, 11 Sep 2016 21:48:04 +0000 (22:48 +0100)]
Lua_api.txt: Add note of maximum value for node 'light_source'
Maximum is 14.
A value of 15 (reserved for direct sunlight) causes a lighting bug.
Thomas--S [Fri, 12 Aug 2016 15:56:31 +0000 (17:56 +0200)]
Add an [invert:<mode> texture modifier
Inverts the given channels of the base image.
Mode may contain the characters "r", "g", "b", "a".
Only the channels that are mentioned in the mode string will be inverted.
ShadowNinja [Sat, 9 Jan 2016 22:07:46 +0000 (17:07 -0500)]
Collision: Improve performance by combining 6 vectors into 1 using a struct
paramat [Sun, 11 Sep 2016 22:34:43 +0000 (23:34 +0100)]
Decorations: Generalise 'spawn by' to be used by all decoration types
In lua_api.txt, make clear that 'place on' and 'spawn by' can be lists.
sfan5 [Sat, 3 Sep 2016 15:53:15 +0000 (17:53 +0200)]
Allow escaping of texture names when passed as an argument to a modifier
Eric Mountain [Wed, 14 Sep 2016 03:05:21 +0000 (05:05 +0200)]
Fix "unknown CMake command "check_library_exists" (#4517)
Adds CMakeLists.txt include to fix this issue:
$ cmake . -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE \
-DCMAKE_BUILD_TYPE=Release -DENABLE_CURL=TRUE -DENABLE_CURSES=FALSE \
-DENABLE_FREETYPE=TRUE -DENABLE_GETTEXT=FALSE \
-DENABLE_POSTGRESQL=FALSE -DENABLE_SOUND=FALSE -DENABLE_LUAJIT=TRUE \
-DIRRLICHT_SOURCE_DIR=$HOME/irrlicht-1.8.4 -LH
...
CMake Error at src/CMakeLists.txt:339 (check_library_exists):
Unknown CMake command "check_library_exists".
...
Auke Kok [Mon, 12 Sep 2016 23:04:13 +0000 (16:04 -0700)]
Plantlike meshoptions: fix degrotate. (#4512)
This snuck in with the meshoptions patch and accidentally kills
degrotate plants. Thanks to @hybriddog for finding this.
raymoo [Thu, 8 Sep 2016 18:42:08 +0000 (11:42 -0700)]
fix missing parameters in some mentions of entity callbacks
James Stevenson [Fri, 9 Sep 2016 15:47:13 +0000 (11:47 -0400)]
Return nil on empty get_area() (#4508)
SmallJoker [Fri, 9 Sep 2016 05:03:36 +0000 (07:03 +0200)]
Anticheat: Use the physics_override modifiers aswell
SmallJoker [Tue, 6 Sep 2016 17:13:52 +0000 (19:13 +0200)]
Make getStackMax return the correct maximal stack size
paly2 [Sun, 10 Jul 2016 13:15:43 +0000 (15:15 +0200)]
Add minetest.unregister_item and minetest.register_alias_force
est31 [Tue, 30 Aug 2016 04:18:37 +0000 (06:18 +0200)]
Run updatepo.sh
Rui [Tue, 30 Aug 2016 04:09:03 +0000 (04:09 +0000)]
Translated using Weblate (Danish)
Currently translated at 30.2% (271 of 895 strings)
Don't end with '\n'.
Rui [Sun, 17 Jul 2016 15:50:36 +0000 (15:50 +0000)]
Translated using Weblate (Japanese)
Currently translated at 50.0% (448 of 895 strings)
This is a merger of two commits.
Thomas Wagner Nielsen [Fri, 12 Aug 2016 18:51:18 +0000 (18:51 +0000)]
Translated using Weblate (Danish)
Currently translated at 27.3% (245 of 895 strings)
bse666 [Tue, 9 Aug 2016 07:40:53 +0000 (07:40 +0000)]
Translated using Weblate (German)
Currently translated at 98.5% (882 of 895 strings)
Mateusz Mendel [Fri, 29 Jul 2016 19:02:36 +0000 (19:02 +0000)]
Translated using Weblate (Polish)
Currently translated at 42.4% (380 of 895 strings)
Jakub Mendel [Fri, 29 Jul 2016 18:03:41 +0000 (18:03 +0000)]
Translated using Weblate (Polish)
Currently translated at 42.4% (380 of 895 strings)
Bruno Borges [Thu, 21 Jul 2016 17:30:08 +0000 (17:30 +0000)]
Translated using Weblate (Portuguese (Brazil))
Currently translated at 87.8% (786 of 895 strings)
Enhancements
Bruno Borges [Thu, 21 Jul 2016 00:15:09 +0000 (00:15 +0000)]
Translated using Weblate (Portuguese)
Currently translated at 64.9% (581 of 895 strings)
lisacvuk [Wed, 13 Jul 2016 09:50:11 +0000 (09:50 +0000)]
Translated using Weblate (Serbian (cyrillic))
Currently translated at 33.2% (298 of 895 strings)
Jean-Baptiste [Wed, 13 Jul 2016 16:41:45 +0000 (16:41 +0000)]
Translated using Weblate (French)
Currently translated at 99.5% (891 of 895 strings)
Onyx Steinheim [Wed, 13 Jul 2016 16:31:38 +0000 (16:31 +0000)]
Translated using Weblate (French)
Currently translated at 99.4% (890 of 895 strings)
This is a merger of two commits.
Jeff Huang [Wed, 13 Jul 2016 08:23:52 +0000 (08:23 +0000)]
Translated using Weblate (Chinese (Taiwan))
Currently translated at 100.0% (895 of 895 strings)
Rui [Tue, 30 Aug 2016 03:40:48 +0000 (12:40 +0900)]
Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)
est31 [Tue, 30 Aug 2016 02:40:54 +0000 (04:40 +0200)]
Update minetest.conf.example and settings_translation_file.cpp
rubenwardy [Sun, 7 Aug 2016 13:32:31 +0000 (14:32 +0100)]
Fix background formspec elements from interfering with each other
Fixes #4397
red-001 [Sun, 28 Aug 2016 14:02:33 +0000 (15:02 +0100)]
Settingtypes.txt: Clarify comments, correct spelling
SmallJoker [Thu, 28 Jul 2016 12:32:32 +0000 (14:32 +0200)]
Builtin: Disallow registering users with the same name
Prevents duplicate names: 'NickName', 'nickname', 'NICKNAME'.
Skips already registered users, so they can connect as usual.
rubenwardy [Sun, 7 Aug 2016 15:22:50 +0000 (16:22 +0100)]
Allow fields to choose whether they close on enter press
rubenwardy [Sun, 7 Aug 2016 15:01:00 +0000 (16:01 +0100)]
Submit name of field on enter key press
paramat [Sat, 20 Aug 2016 01:05:34 +0000 (02:05 +0100)]
Camera: Higher frequency limit for view/hand bobbing and footsteps
Rebased and tuned version of Calinou's original pull request.
'm_view_bobbing_speed' controls the frequency of view bobbing,
hand bobbing and footsteps, it was limited to a maximum of 40 (walking
frequency) so did not increase if player speed was modified by a
'speed buff', a sprinting mod or modified in .conf or advanced
settngs.
This commit raises the limit to 70 which is suitable for sprinting.
Auke Kok [Fri, 11 Dec 2015 06:58:11 +0000 (22:58 -0800)]
Make plantlike drawtype more fun
Adds several new ways that the plantlike drawtype mesh can be changed.
This requires paramtype2 = "meshoptions" to be set in the node
definition. The drawtype for these nodes should be "plantlike".
These modifications are all done using param2. This field is now
a complex bitfield that allows some or more of the combinations to
be chosen, and the mesh draw code will choose the options based as
neeeded for each plantlike node.
bit layout:
bits 0, 1 and 2 (values 0x1 through 0x7) are for choosing the plant
mesh shape:
0 - ordinary plantlike plant ("x" shaped)
1 - ordinary plant, but rotated 45 degrees ("+" shaped)
2 - a plant with 3 faces ("*" shaped)
3 - a plant with 4 faces ("#" shaped)
4 - a plant with 4 faces ("#" shaped, leaning outwards)
5 through 7 are unused and reserved for future mesh shapes.
bit 3 (0x8) causes the plant to be randomly offset in the x,z
plane. The plant should fall within the 1x1x1 nodebox if regularly
sized.
bit 4 (0x10) causes the plant mesh to grow by sqrt(2), and will cause
the plant mesh to fill out 1x1x1, and appear slightly larger. Texture
makers will want to make their plant texture 23x16 pixels to have the
best visual fit in 1x1x1 size.
bit 5 (0x20) causes each face of the plant to have a slight negative
Y offset in position, descending up to 0.125 downwards into the node
below. Because this is per face, this causes the plant model to be
less symmetric.
bit 6 (0x40) through bit 7 (0x80) are unused and reserved for
future use.
!(https://youtu.be/qWuI664krsI)
est31 [Mon, 22 Aug 2016 02:27:44 +0000 (04:27 +0200)]
Client: disable pre v25 init sending by default
Disable the ability to connect to old servers by default to
improve password security.
If people still want to connect to old (0.4.12 and earlier)
servers, they can flip the send_pre_v25_init setting.
Add the ability to detect if we've tried to connect
to a server which only supports the pre v25 init protocol,
and show an apropriate error message. Most times the error
will already be catched at the serverlist level, the
detection mechanism only acts as last resort, because the
"Connection timed out" error message that would be shown
otherwise would be very confusing.
Automatic "fixing" of this condition is not desired,
as it would allow for downgrade attacks.
As already 161 of the 167 servers on the serverlist
support the new srp based auth protocol (> 96%),
the breakage should be minimal.
Follow up of commit
af30183124d40a969040d7de4b3a487feec466e4 "Add option to not send pre v25 init packet"
Also change the pessimistic assumption of masterlist
server versions to optimistic, in order to avoid buggy
behaviour (favourites not in the serverlist would be
denied to connect to, etc).
Xunto [Mon, 22 Aug 2016 18:21:48 +0000 (22:21 +0400)]
Move on join and on leave messages to lua (#4460)
kahrl [Sun, 21 Aug 2016 00:40:23 +0000 (02:40 +0200)]
gettext.h: include <locale> before defining the gettext macro (#4452)
Fixes #4446: a syntax error that happens if something else (such as
<iomanip> or <locale> in certain libstdc++ versions) includes
<libintl.h> later, which contains a function declaration for gettext
that gets mangled by the macro.
See the added comment in gettext.h and the discussion in #4446/#4452
for details.
est31 [Sat, 20 Aug 2016 19:26:44 +0000 (21:26 +0200)]
Also support X11 icon for minetest copies installed via make install (#4407)
Fixes #4323.
Tim [Wed, 27 Jul 2016 16:46:02 +0000 (18:46 +0200)]
Tidy up generate_from_settingtypes.lua a bit.
* Multiline strings
* Table-concat instead of String-concats
* string.rep instead of loop-concat
* string.format %q instead of manual quotation by gsub
* Assert writeable files
* Generate new settings_translation_file
Tim [Wed, 27 Jul 2016 16:41:16 +0000 (18:41 +0200)]
Move generation from settingtypes out of dlg_settings_advanced
Avoids unreachable code linter warning by moving generation code
(of minetest.conf.example and settings_translation_file.cpp)
out of dlg_settings_advanced.
Due to passing the settings, also it avoids reading the settings file twice.
Instead of activating the code by changing the active if-clauses,
its activation is now done by uncommenting the loadfile() statement.
Rogier-5 [Fri, 19 Aug 2016 18:23:30 +0000 (20:23 +0200)]
Fix for failure to find jsoncpp in android build (#4456)
Commit 4503b5 did not update the android build script.
obneq [Fri, 12 Aug 2016 17:11:56 +0000 (19:11 +0200)]
Mapblock mesh: Fix updateFastFaceRow tiling issue
Increase maximum length of tiled node rows from 2 to mapblock size.
SmallJoker [Sat, 30 Jul 2016 10:50:22 +0000 (12:50 +0200)]
Script API: Make the craft recipe field 'method' consistent
DonBatman [Sun, 14 Aug 2016 11:40:31 +0000 (04:40 -0700)]
Lua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities'
'maxwear' has been deprecated for over 3 years
Add spaces around '=' nearby
Thomas--S [Sat, 2 Jul 2016 15:58:08 +0000 (17:58 +0200)]
Add an [opacity:<r> texture modifier. Makes the base image transparent according to the given ratio. r must be between 0 and 255. 0 means totally transparent. 255 means totally opaque. Useful for texture overlaying.
sfan5 [Fri, 12 Aug 2016 12:33:26 +0000 (14:33 +0200)]
Update AppData file with more URLs and keywords
Rogier-5 [Thu, 11 Aug 2016 17:22:40 +0000 (19:22 +0200)]
Use the standard to_string() functions for C++11 (#4279)
If compiling according to a C++ version before C++11, then define
std::to_string ourselves.
Add a to_wstring version as well
As std::to_string() for floating point types uses %.6f as floating
point format converter, instead of %G, it needs special care.
To preserve ftos() behavior (which is expected to use the %G format
converter), it no longer uses to_string().
Rogier-5 [Wed, 10 Aug 2016 22:22:32 +0000 (00:22 +0200)]
Add infotext containing entity type (e.g. mobs:cow) to unknown entities (#4431)
If a mod is disabled, or upgraded without sufficient backward compatibility,
then entities it has put into the world become unknown, and continue moving
around, but are completely unrecognisable.
This change allows the player to see their type, and therefore which mod is
or was responsible.
David Carlier [Thu, 28 Jul 2016 07:56:22 +0000 (08:56 +0100)]
couple of memory leaks fixes.
DLaboratory [Wed, 13 Jul 2016 08:49:47 +0000 (16:49 +0800)]
Update the version of irrlicht to 1.8.3, add steps for Sqlite3
Also add note for 64-bit Windows users
Ben Deutsch [Tue, 2 Aug 2016 19:36:34 +0000 (21:36 +0200)]
Zooming the camera requires the 'zoom' privilege
Ben Deutsch [Tue, 2 Aug 2016 20:47:47 +0000 (22:47 +0200)]
Document zoom_fov in settingtypes.txt and minetest.conf.example
Esteban I. Ruiz Moreno [Sun, 31 Mar 2013 03:30:32 +0000 (00:30 -0300)]
Add zoom, tweakable with zoom_fov, default key: Z (like optifine)
Tomas [Wed, 10 Aug 2016 10:17:48 +0000 (12:17 +0200)]
Lua->C getintfield() use lua_tointeger (#4408)
previously function used tonumber which returned float
this caused errors in large numbers and resulted in
obj-def-handlers being invalid when retrived from lua tables in c
Rogier-5 [Wed, 10 Aug 2016 10:10:00 +0000 (12:10 +0200)]
Fixes for compiling with a newer (system) jsoncpp (#4429)
* Move included json code to jsoncpp subdirectory
This is needed to avoid having to specify the minetest src directory
as a system include when fixing the json includes.
* Fix json includes
They used "", so that the compiler searches the project's directory
first. The result was that when compiling with a system jsoncpp,
the project's own version of json.h was still included, instead of
the system version.
The includes now use <>, so a system location, or one specified with
'-Ilocation' is searched only.
* Fix for jsoncpp deprecated function warning
When compiling with a newer version of jsoncpp (and
ENABLE_SYSTEM_JSONCPP=true), jsoncpp emits a warning
about a deprecated function that minetest uses.
Ner'zhul [Wed, 10 Aug 2016 10:08:05 +0000 (12:08 +0200)]
Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
This fallback to std::map & std::set for older compilers
Use UNORDERED_SET as an example in decoration and ore biome sets
Use UNORDERED_MAP as an example in nameidmapping
Rémi Verschelde [Wed, 10 Aug 2016 06:51:36 +0000 (08:51 +0200)]
Add simulation category
paramat [Wed, 3 Aug 2016 02:44:33 +0000 (03:44 +0100)]
Decorations: Fix decoration height check errors
Fix height check comparison from '>=' to '>'.
Fix getHeight() for schematic decorations to account for
'deco place center y' flag and for how normal placement
sinks schematic 1 node into the ground.
Jungletrees were not being placed at y = 46, y = 47 despite
having an acceptable 16 nodes of height above ground surface.
paramat [Fri, 29 Jul 2016 02:44:58 +0000 (03:44 +0100)]
Mapgen: Remove unused 'flat' and 'trees' flags from mg_flags
When the 'flat' and 'trees' flags were moved into mgv6_spflags they
were left in mg_flags in an attempt to support old mgv6 worlds. However
their appearence in mg_flags causes confusion, also, later, old-world
support was found to be broken for mgv6 worlds with 'notrees'.
This commit cleans up the mess and comes a month after a thread warning
of the change, and explaining the required action, was posted in the
news subforum. Only old mgv6 worlds with 'flat' or 'notrees' are
affected, a small minority of worlds, the required action being
correctly setting these flags in mgv6_spflags.
Disable a section of the 'map settings manager' unit test which is to
be changed as it is causing problems for pull requests.
Dorian Wouters [Wed, 3 Aug 2016 22:41:54 +0000 (00:41 +0200)]
Fix l_request_insecure_environment not ignoring all whitespace (#4395)
l_request_insecure_environment didn't ignore all whitespace in the
secure.trusted_mods config option.
Replaces std::remove with std::remove_if and the isspace function.
est31 [Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)]
test_map_settings_manager: Fix Wunused-result warning
est31 [Wed, 3 Aug 2016 21:20:36 +0000 (23:20 +0200)]
Porting: Fix endless loop if image format is not recognized
SmallJoker [Fri, 29 Jul 2016 08:23:09 +0000 (10:23 +0200)]
texture_packs.txt: Document special textures
rubenwardy [Fri, 29 Jul 2016 14:39:36 +0000 (15:39 +0100)]
Documentation: Create texture_packs.txt
Combine texture_overrides.txt and sections of lua_api.txt
mtango688 [Thu, 28 Jul 2016 21:40:23 +0000 (15:40 -0600)]
lua_api.txt: Document how to properly clear node metadata
Nathaniel Olsen [Fri, 29 Jul 2016 21:37:06 +0000 (16:37 -0500)]
Update README.txt (#4368)
* Update README.txt
As of Ubuntu 16.10, libpng12-dev is replaced with libpng12-0, since libpng12-0 is available in 16.04 repositories, I think that needed to be changed.
Also I changed 'git-core' to 'git' for fedora users, keep it consistent with the ubuntu/debian instructions.
* Update README.txt
Fernando Carmona Varo [Sun, 24 Jul 2016 12:01:20 +0000 (14:01 +0200)]
buildbot: retrieve short commit hash properly
Instead of trying to manually parse the output of 'git show' which can be different across different git configurations, properly use the 'git rev-parse' command that is intended for this purpose.
Ner'zhul [Thu, 28 Jul 2016 11:13:25 +0000 (13:13 +0200)]
Increase android versionCode (#4350)
This little update is due to a packaging problem when uploading on play store. They don't permit to re upload an APK with same version code.
This case was a fail on openssl packaged version which was old and rejected by Google but they don't remove the APK then i should increase the version code to permit having it on play store
SmallJoker [Tue, 26 Jul 2016 12:39:03 +0000 (14:39 +0200)]
Upright sprite objects: Horizontally flip the front image
For consistent horizontal sprite structure when seen from front and back
Fix code style
Wuzzy [Mon, 25 Jul 2016 20:52:42 +0000 (22:52 +0200)]
Main menu, lua_api.txt: Fix mod/texture pack screenshot size issues
Recommend mod screenshot size in lua_api.txt
Adjust displayed screenshot size of texture packs
Document texture pack files in lua_api.txt
Tim [Sat, 23 Jul 2016 11:29:53 +0000 (13:29 +0200)]
Builtin: Add core.MAP_BLOCKSIZE constant
Tim [Thu, 7 Jul 2016 21:58:52 +0000 (23:58 +0200)]
Builtin: Fix check for a player object in core.check_player_privs
core.check_player_privs accepts as first argument a name or player object, but just tested for a string.
This caused crashes inside builtin, when being passed any unexpected types.
This provides a better (duck-typing like) test, better error reporting.
est31 [Sun, 24 Jul 2016 15:41:36 +0000 (17:41 +0200)]
Update minetest.conf.example and the settings translation file
paramat [Tue, 19 Jul 2016 23:23:08 +0000 (00:23 +0100)]
Mgvalleys / cavegen: Place riverbed nodes under river water
When a CavesNoiseIntersection tunnel intersects a river place biome
'riverbed' nodes in tunnel entrance instead of biome 'top' nodes.
James Stevenson [Thu, 14 Jul 2016 14:07:40 +0000 (10:07 -0400)]
lua_api.txt: Remove tooltip checkbox[] element
est31 [Tue, 12 Jul 2016 20:45:34 +0000 (22:45 +0200)]
HTTP lua API docs: correct some function references
Tim [Tue, 12 Jul 2016 19:51:10 +0000 (21:51 +0200)]
Builtin/profiler: Replace game profiler (#4245)
Use the setting "profiler.load" to enable profiling.
Other settings can be found in settingtypes.txt.
* /profiler print [filter] - report statistics to in-game console
* /profiler dump [filter] - report statistics to STDOUT and debug.txt
* /profiler save [format [filter]] - saves statistics to a file in your worldpath
* txt (default) - same treetable format as used by the dump and print commands
* csv - ready for spreadsheet import
* json - useful for adhoc D3 visualizations
* json_pretty - line wrapped and intended json for humans
* lua - serialized lua table of the profile-data, for adhoc scripts
* /profiler reset - reset all gathered profile data.
This can be helpful to discard of any startup measurements that often spike during loading or to get more useful min-values.
[filter] allows limiting the output of the data via substring/pattern matching against the modname.
Note: Serialized data structures might be subject to change with changed or added measurements.
csv might be the most stable, due to flat structure.
Changes to the previous version include:
* Updated and extended API monitoring
* Correct calculation of average (mean) values (undistorted by idleness)
* Reduce instrumentation overhead.
* Fix crashes related to missing parameters for the future and occasional DIV/0's.
* Prevent issues caused by timetravel (overflow, timejump, NTP corrections)
* Prevent modname clashes with internal names.
* Measure each instrumentation individually and label based on registration order.
* Labeling of ABM's and LBM's for easier classification.
Giving several ABM's or LBM's the same label will treat them as one.
Missing labels will be autogenerated based on name or registration order.
* Configurable instrumentation and reporting. Skip e.g. builtin if you don't need it.
* Profile the profiler to measure instrumentation overhead.
Duane [Mon, 11 Jul 2016 14:46:01 +0000 (09:46 -0500)]
Lua_api.txt: Fix description of node drop behaviour