5915 Commits

Author SHA1 Message Date
ShadowNinja
0cc1669f58 Collision: Improve performance by combining 6 vectors into 1 using a struct 2016-09-15 05:25:12 +01:00
paramat
f932e5d286 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.
2016-09-14 09:19:54 +01:00
sfan5
4fa9d44956 Allow escaping of texture names when passed as an argument to a modifier 2016-09-14 09:19:36 +01:00
Eric Mountain
010e090aa6 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".
...
2016-09-13 23:05:21 -04:00
Auke Kok
245b80bdea Plantlike meshoptions: fix degrotate. (#4512)
This snuck in with the meshoptions patch and accidentally kills
degrotate plants. Thanks to @hybriddog for finding this.
2016-09-12 16:04:13 -07:00
raymoo
c5491db85d fix missing parameters in some mentions of entity callbacks 2016-09-12 03:35:28 -04:00
James Stevenson
f109dd756a Return nil on empty get_area() (#4508) 2016-09-10 01:47:13 +10:00
SmallJoker
e30df98803 Anticheat: Use the physics_override modifiers aswell 2016-09-09 01:03:36 -04:00
SmallJoker
24cbd0ed37 Make getStackMax return the correct maximal stack size 2016-09-08 03:37:03 -04:00
paly2
30c1905f89 Add minetest.unregister_item and minetest.register_alias_force 2016-09-08 03:26:52 -04:00
est31
34e6869854 Run updatepo.sh 2016-08-30 06:18:37 +02:00
Rui
fe0e00c1ae Translated using Weblate (Danish)
Currently translated at 30.2% (271 of 895 strings)

Don't end with '\n'.
2016-08-30 06:17:24 +02:00
Rui
e496f959b0 Translated using Weblate (Japanese)
Currently translated at 50.0% (448 of 895 strings)

This is a merger of two commits.
2016-08-30 05:54:09 +02:00
Thomas Wagner Nielsen
8ad94020ff Translated using Weblate (Danish)
Currently translated at 27.3% (245 of 895 strings)
2016-08-30 05:53:54 +02:00
bse666
06a9c36a7d Translated using Weblate (German)
Currently translated at 98.5% (882 of 895 strings)
2016-08-30 05:53:54 +02:00
Mateusz Mendel
bacd1df1c6 Translated using Weblate (Polish)
Currently translated at 42.4% (380 of 895 strings)
2016-08-30 05:53:53 +02:00
Jakub Mendel
5ecba8ad4c Translated using Weblate (Polish)
Currently translated at 42.4% (380 of 895 strings)
2016-08-30 05:53:53 +02:00
Bruno Borges
70fdabd8d1 Translated using Weblate (Portuguese (Brazil))
Currently translated at 87.8% (786 of 895 strings)

Enhancements
2016-08-30 05:53:53 +02:00
Bruno Borges
efa81dca45 Translated using Weblate (Portuguese)
Currently translated at 64.9% (581 of 895 strings)
2016-08-30 05:53:53 +02:00
lisacvuk
6058419f60 Translated using Weblate (Serbian (cyrillic))
Currently translated at 33.2% (298 of 895 strings)
2016-08-30 05:53:53 +02:00
Jean-Baptiste
e490106391 Translated using Weblate (French)
Currently translated at 99.5% (891 of 895 strings)
2016-08-30 05:53:53 +02:00
Onyx Steinheim
07ddbdcbf9 Translated using Weblate (French)
Currently translated at 99.4% (890 of 895 strings)

This is a merger of two commits.
2016-08-30 05:53:39 +02:00
Jeff Huang
1136cc2f55 Translated using Weblate (Chinese (Taiwan))
Currently translated at 100.0% (895 of 895 strings)
2016-08-30 05:47:54 +02:00
Rui
650b3d7880 Document keymap_autorun in settingtypes.txt and minetest.conf.example (#4486) 2016-08-30 05:40:48 +02:00
est31
60189bdb6f Update minetest.conf.example and settings_translation_file.cpp 2016-08-30 04:40:54 +02:00
rubenwardy
23aafd2903 Fix background formspec elements from interfering with each other
Fixes #4397
2016-08-29 01:15:31 +01:00
red-001
4bac47772b Settingtypes.txt: Clarify comments, correct spelling 2016-08-29 01:00:05 +01:00
SmallJoker
326c0acbf2 Builtin: Disallow registering users with the same name
Prevents duplicate names: 'NickName', 'nickname', 'NICKNAME'.
Skips already registered users, so they can connect as usual.
2016-08-29 00:58:39 +01:00
rubenwardy
71f9f4ce26 Allow fields to choose whether they close on enter press 2016-08-27 13:05:01 +01:00
rubenwardy
f0d651e85e Submit name of field on enter key press 2016-08-27 13:02:45 +01:00
paramat
64ad65d6c5 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.
2016-08-26 05:26:52 +01:00
Auke Kok
95ff590bcc 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)
2016-08-26 05:26:08 +01:00
est31
e3f0e0e2b2 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).
2016-08-22 20:23:28 +02:00
Xunto
cd5ec468ef Move on join and on leave messages to lua (#4460) 2016-08-22 20:21:48 +02:00
kahrl
e6fa3d296b 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.
2016-08-21 02:40:23 +02:00
est31
6554d816bf Also support X11 icon for minetest copies installed via make install (#4407)
Fixes #4323.
2016-08-20 21:26:44 +02:00
Tim
19fa0e2ba1 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
2016-08-20 15:48:47 +02:00
Tim
b38a7b70c2 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.
2016-08-20 15:48:47 +02:00
Rogier-5
b74707f896 Fix for failure to find jsoncpp in android build (#4456)
Commit 4503b5 did not update the android build script.
2016-08-19 20:23:30 +02:00
obneq
4e92511773 Mapblock mesh: Fix updateFastFaceRow tiling issue
Increase maximum length of tiled node rows from 2 to mapblock size.
2016-08-18 20:45:18 +01:00
SmallJoker
99690709f9 Script API: Make the craft recipe field 'method' consistent 2016-08-18 20:43:49 +01:00
DonBatman
dd8278c1a2 Lua_api.txt: Change 'maxwear' to 'uses' in 'tool_capabilities'
'maxwear' has been deprecated for over 3 years
Add spaces around '=' nearby
2016-08-14 16:41:06 +01:00
Thomas--S
a75fb2191a 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. 2016-08-12 15:20:30 +02:00
sfan5
999e570d64 Update AppData file with more URLs and keywords 2016-08-12 15:04:02 +02:00
Rogier-5
abac6acd29 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().
2016-08-11 19:22:40 +02:00
Rogier-5
ff78eac229 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.
2016-08-11 00:22:32 +02:00
David Carlier
443165b7b9 couple of memory leaks fixes. 2016-08-10 16:59:32 +02:00
DLaboratory
cf1d2cf3e4 Update the version of irrlicht to 1.8.3, add steps for Sqlite3
Also add note for 64-bit Windows users
2016-08-10 14:23:02 +02:00
Ben Deutsch
59197a8d98 Zooming the camera requires the 'zoom' privilege 2016-08-10 12:18:25 +02:00
Ben Deutsch
42005585d5 Document zoom_fov in settingtypes.txt and minetest.conf.example 2016-08-10 12:18:25 +02:00