oweals/minetest.git
8 years agoDon't use ZLIB_WINAPI if the required DLL is not provided to CMake
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.

8 years agoDo not serialize empty NodeMetadata
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.

8 years agoBuiltin: Change error to warning for light_source > 14
paramat [Wed, 21 Sep 2016 03:25:10 +0000 (04:25 +0100)]
Builtin: Change error to warning for light_source > 14

8 years agoIncrease default font size by 1
James Stevenson [Thu, 15 Sep 2016 15:53:17 +0000 (11:53 -0400)]
Increase default font size by 1

8 years agoFix a typo and use proper deprecation notification system
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.

8 years agoRegister.lua: Throw error if node 'light_source' > core.LIGHT_MAX
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.

8 years agoLua_api.txt: Add note of maximum value for node 'light_source'
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.

8 years agoAdd an [invert:<mode> texture modifier
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.

8 years agoCollision: Improve performance by combining 6 vectors into 1 using a struct
ShadowNinja [Sat, 9 Jan 2016 22:07:46 +0000 (17:07 -0500)]
Collision: Improve performance by combining 6 vectors into 1 using a struct

8 years agoDecorations: Generalise 'spawn by' to be used by all decoration types
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.

8 years agoAllow escaping of texture names when passed as an argument to a modifier
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

8 years agoFix "unknown CMake command "check_library_exists" (#4517)
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".
...

8 years agoPlantlike meshoptions: fix degrotate. (#4512)
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.

8 years agofix missing parameters in some mentions of entity callbacks
raymoo [Thu, 8 Sep 2016 18:42:08 +0000 (11:42 -0700)]
fix missing parameters in some mentions of entity callbacks

8 years agoReturn nil on empty get_area() (#4508)
James Stevenson [Fri, 9 Sep 2016 15:47:13 +0000 (11:47 -0400)]
Return nil on empty get_area() (#4508)

8 years agoAnticheat: Use the physics_override modifiers aswell
SmallJoker [Fri, 9 Sep 2016 05:03:36 +0000 (07:03 +0200)]
Anticheat: Use the physics_override modifiers aswell

8 years agoMake getStackMax return the correct maximal stack size
SmallJoker [Tue, 6 Sep 2016 17:13:52 +0000 (19:13 +0200)]
Make getStackMax return the correct maximal stack size

8 years agoAdd minetest.unregister_item and minetest.register_alias_force
paly2 [Sun, 10 Jul 2016 13:15:43 +0000 (15:15 +0200)]
Add minetest.unregister_item and minetest.register_alias_force

8 years agoRun updatepo.sh
est31 [Tue, 30 Aug 2016 04:18:37 +0000 (06:18 +0200)]
Run updatepo.sh

8 years agoTranslated using Weblate (Danish)
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'.

8 years agoTranslated using Weblate (Japanese)
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.

8 years agoTranslated using Weblate (Danish)
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)

8 years agoTranslated using Weblate (German)
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)

8 years agoTranslated using Weblate (Polish)
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)

8 years agoTranslated using Weblate (Polish)
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)

8 years agoTranslated using Weblate (Portuguese (Brazil))
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

8 years agoTranslated using Weblate (Portuguese)
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)

8 years agoTranslated using Weblate (Serbian (cyrillic))
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)

8 years agoTranslated using Weblate (French)
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)

8 years agoTranslated using Weblate (French)
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.

8 years agoTranslated using Weblate (Chinese (Taiwan))
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)

8 years agoDocument keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)
Rui [Tue, 30 Aug 2016 03:40:48 +0000 (12:40 +0900)]
Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486)

8 years agoUpdate minetest.conf.example and settings_translation_file.cpp
est31 [Tue, 30 Aug 2016 02:40:54 +0000 (04:40 +0200)]
Update minetest.conf.example and settings_translation_file.cpp

8 years agoFix background formspec elements from interfering with each other
rubenwardy [Sun, 7 Aug 2016 13:32:31 +0000 (14:32 +0100)]
Fix background formspec elements from interfering with each other

Fixes #4397

8 years agoSettingtypes.txt: Clarify comments, correct spelling
red-001 [Sun, 28 Aug 2016 14:02:33 +0000 (15:02 +0100)]
Settingtypes.txt: Clarify comments, correct spelling

8 years agoBuiltin: Disallow registering users with the same name
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.

8 years agoAllow fields to choose whether they close on enter press
rubenwardy [Sun, 7 Aug 2016 15:22:50 +0000 (16:22 +0100)]
Allow fields to choose whether they close on enter press

8 years agoSubmit name of field on enter key press
rubenwardy [Sun, 7 Aug 2016 15:01:00 +0000 (16:01 +0100)]
Submit name of field on enter key press

8 years agoCamera: Higher frequency limit for view/hand bobbing and footsteps
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.

8 years agoMake plantlike drawtype more fun
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)

8 years agoClient: disable pre v25 init sending by default 4461/head
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).

8 years agoMove on join and on leave messages to lua (#4460)
Xunto [Mon, 22 Aug 2016 18:21:48 +0000 (22:21 +0400)]
Move on join and on leave messages to lua (#4460)

8 years agogettext.h: include <locale> before defining the gettext macro (#4452)
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.

8 years agoAlso support X11 icon for minetest copies installed via make install (#4407)
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.

8 years agoTidy up generate_from_settingtypes.lua a bit.
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

8 years agoMove generation from settingtypes out of dlg_settings_advanced
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.

8 years agoFix for failure to find jsoncpp in android build (#4456)
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.

8 years agoMapblock mesh: Fix updateFastFaceRow tiling issue
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.

8 years agoScript API: Make the craft recipe field 'method' consistent
SmallJoker [Sat, 30 Jul 2016 10:50:22 +0000 (12:50 +0200)]
Script API: Make the craft recipe field 'method' consistent

8 years agoLua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities'
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

8 years agoAdd an [opacity:<r> texture modifier. Makes the base image transparent according...
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.

8 years agoUpdate AppData file with more URLs and keywords
sfan5 [Fri, 12 Aug 2016 12:33:26 +0000 (14:33 +0200)]
Update AppData file with more URLs and keywords

8 years agoUse the standard to_string() functions for C++11 (#4279)
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().

8 years agoAdd infotext containing entity type (e.g. mobs:cow) to unknown entities (#4431)
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.

8 years agocouple of memory leaks fixes.
David Carlier [Thu, 28 Jul 2016 07:56:22 +0000 (08:56 +0100)]
couple of memory leaks fixes.

8 years agoUpdate the version of irrlicht to 1.8.3, add steps for Sqlite3
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

8 years agoZooming the camera requires the 'zoom' privilege
Ben Deutsch [Tue, 2 Aug 2016 19:36:34 +0000 (21:36 +0200)]
Zooming the camera requires the 'zoom' privilege

8 years agoDocument zoom_fov in settingtypes.txt and minetest.conf.example
Ben Deutsch [Tue, 2 Aug 2016 20:47:47 +0000 (22:47 +0200)]
Document zoom_fov in settingtypes.txt and minetest.conf.example

8 years agoAdd zoom, tweakable with zoom_fov, default key: Z (like optifine)
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)

8 years agoLua->C getintfield() use lua_tointeger (#4408)
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

8 years agoFixes for compiling with a newer (system) jsoncpp (#4429)
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.

8 years agoPermit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
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

8 years agoAdd simulation category
Rémi Verschelde [Wed, 10 Aug 2016 06:51:36 +0000 (08:51 +0200)]
Add simulation category

8 years agoDecorations: Fix decoration height check errors
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.

8 years agoMapgen: Remove unused 'flat' and 'trees' flags from mg_flags
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.

8 years agoFix l_request_insecure_environment not ignoring all whitespace (#4395)
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.

8 years agotest_map_settings_manager: Fix Wunused-result warning
est31 [Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)]
test_map_settings_manager: Fix Wunused-result warning

8 years agoPorting: Fix endless loop if image format is not recognized
est31 [Wed, 3 Aug 2016 21:20:36 +0000 (23:20 +0200)]
Porting: Fix endless loop if image format is not recognized

8 years agotexture_packs.txt: Document special textures
SmallJoker [Fri, 29 Jul 2016 08:23:09 +0000 (10:23 +0200)]
texture_packs.txt: Document special textures

8 years agoDocumentation: Create texture_packs.txt
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

8 years agolua_api.txt: Document how to properly clear node metadata
mtango688 [Thu, 28 Jul 2016 21:40:23 +0000 (15:40 -0600)]
lua_api.txt: Document how to properly clear node metadata

8 years agoUpdate README.txt (#4368)
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

8 years agobuildbot: retrieve short commit hash properly
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.

8 years agoIncrease android versionCode (#4350)
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

8 years agoUpright sprite objects: Horizontally flip the front image
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

8 years agoMain menu, lua_api.txt: Fix mod/texture pack screenshot size issues
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

8 years agoBuiltin: Add core.MAP_BLOCKSIZE constant 4362/head
Tim [Sat, 23 Jul 2016 11:29:53 +0000 (13:29 +0200)]
Builtin: Add core.MAP_BLOCKSIZE constant

8 years agoBuiltin: Fix check for a player object in core.check_player_privs
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.

8 years agoUpdate minetest.conf.example and the settings translation file
est31 [Sun, 24 Jul 2016 15:41:36 +0000 (17:41 +0200)]
Update minetest.conf.example and the settings translation file

8 years agoMgvalleys / cavegen: Place riverbed nodes under river water
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.

8 years agolua_api.txt: Remove tooltip checkbox[] element
James Stevenson [Thu, 14 Jul 2016 14:07:40 +0000 (10:07 -0400)]
lua_api.txt: Remove tooltip checkbox[] element

8 years agoHTTP lua API docs: correct some function references
est31 [Tue, 12 Jul 2016 20:45:34 +0000 (22:45 +0200)]
HTTP lua API docs: correct some function references

8 years agoBuiltin/profiler: Replace game profiler (#4245)
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.

8 years agoLua_api.txt: Fix description of node drop behaviour
Duane [Mon, 11 Jul 2016 14:46:01 +0000 (09:46 -0500)]
Lua_api.txt: Fix description of node drop behaviour

8 years agoTreegen: Improve use of signed vs. unsigned integers
paramat [Sun, 10 Jul 2016 15:03:53 +0000 (16:03 +0100)]
Treegen: Improve use of signed vs. unsigned integers

To fix GCC 6.1.1 compilation warning:
'assuming signed overflow does not occur when assuming
that (X - c) > X is always false'

8 years agoRun updatepo.sh
est31 [Tue, 12 Jul 2016 18:50:20 +0000 (20:50 +0200)]
Run updatepo.sh

8 years agoUpdate minetest.conf.example, and settings_translation_file.cpp
est31 [Tue, 12 Jul 2016 18:49:33 +0000 (20:49 +0200)]
Update minetest.conf.example, and settings_translation_file.cpp

8 years agoTranslated using Weblate (French)
Onyx Steinheim [Tue, 12 Jul 2016 16:56:29 +0000 (16:56 +0000)]
Translated using Weblate (French)

Currently translated at 100.0% (887 of 887 strings)

8 years agoTranslated using Weblate (Dutch)
ikmaak [Fri, 8 Jul 2016 10:32:09 +0000 (10:32 +0000)]
Translated using Weblate (Dutch)

Currently translated at 89.6% (795 of 887 strings)

8 years agoTranslated using Weblate (Indonesian)
Muhammad Rifqi Priyo Susanto [Thu, 23 Jun 2016 17:34:59 +0000 (17:34 +0000)]
Translated using Weblate (Indonesian)

Currently translated at 55.8% (495 of 887 strings)

8 years agoTranslated using Weblate (Spanish)
Roberto Mengíbar Fernández [Tue, 14 Jun 2016 21:57:46 +0000 (21:57 +0000)]
Translated using Weblate (Spanish)

Currently translated at 59.0% (524 of 887 strings)

8 years agoTranslated using Weblate (French)
Guillaume Robert [Mon, 13 Jun 2016 18:39:36 +0000 (18:39 +0000)]
Translated using Weblate (French)

Currently translated at 91.2% (809 of 887 strings)

8 years agoTranslated using Weblate (Chinese (China))
arsdragonfly [Sat, 11 Jun 2016 10:56:31 +0000 (10:56 +0000)]
Translated using Weblate (Chinese (China))

Currently translated at 75.1% (667 of 887 strings)

8 years agoTranslated using Weblate (Serbian (cyrillic))
Лазар Вукановић [Thu, 9 Jun 2016 11:11:15 +0000 (11:11 +0000)]
Translated using Weblate (Serbian (cyrillic))

Currently translated at 31.5% (280 of 887 strings)

8 years agoAdded translation using Weblate (Serbian (cyrillic))
Лазар Вукановић [Thu, 9 Jun 2016 08:40:00 +0000 (08:40 +0000)]
Added translation using Weblate (Serbian (cyrillic))

8 years agoTranslated using Weblate (Esperanto)
Tim [Sat, 4 Jun 2016 13:18:08 +0000 (13:18 +0000)]
Translated using Weblate (Esperanto)

Currently translated at 32.2% (286 of 887 strings)

8 years agoTranslated using Weblate (Chinese (China))
susan [Fri, 3 Jun 2016 12:31:02 +0000 (12:31 +0000)]
Translated using Weblate (Chinese (China))

Currently translated at 74.1% (658 of 887 strings)

8 years agoFix typos (#4298)
Snipie [Sat, 9 Jul 2016 14:00:14 +0000 (14:00 +0000)]
Fix typos (#4298)

8 years agoUbuntu build HOWTO: Suggest to install git instead of git-core
est31 [Fri, 8 Jul 2016 15:07:31 +0000 (17:07 +0200)]
Ubuntu build HOWTO: Suggest to install git instead of git-core

The package docs for the git-core Ubuntu package in all supported
Ubuntu versions, including 12.04 say:

This is a transitional dummy package.  The 'git-core' package has been
renamed to 'git', which has been installed automatically.  This git-core
package is now obsolete, and can safely be removed from the system if no
other package depends on it.

Fixes #4109

8 years agoFix -Wterminate warnings in rollback.cpp as well
est31 [Fri, 8 Jul 2016 05:26:00 +0000 (07:26 +0200)]
Fix -Wterminate warnings in rollback.cpp as well

Fix #4137 for rollback.cpp as well.