7046 Commits

Author SHA1 Message Date
ANAND
59c12c768a Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738) 2019-03-17 15:37:16 +13:00
luk3yx
c80b1e61ed Change Android package name 2019-03-17 14:32:35 +13:00
Muhammad Rifqi Priyo Susanto
1fa149e134 Android: Replace movement buttons with joystick (#7126)
* Android: Replace movement buttons with joystick

Replace movement control buttons (arrows at bottom left screen) with virtual joystick.
Joystick has 8 directions (same as keyboard). Basically, just map it to keyboard input.
Joystick applies only on left 1/3 of screen.
Joystick's position can be fixed by enabling fixed_virtual_joystick setting.
Three new images:
(1) placeholder joystick,
(2) joystick container (background), and
(3) joystick cursor.
Remove unused images: movement control buttons (*_arrow.png).
New data type: touch_gui_joystick_move_id

Joystick's fixed position is spaced one button size from bottom and from left of screen.
Remove unused variable: m_joystick_downlocation
2019-03-17 14:30:07 +13:00
luk3yx
64b4c0fcf6 Enable the password manager on Android devices 2019-03-17 14:22:51 +13:00
luk3yx
cdda1e9988 Revert version to 0.4.18.5-dev 2019-03-17 14:14:03 +13:00
luk3yx
ba05c12b57 Hacky workaround to enforce the security of logs 2019-03-17 14:12:51 +13:00
luk3yx
b940c7f5fa Add a (primitive) "Saved passwords" screen. 2019-03-13 21:20:01 +13:00
luk3yx
8bc0fc31b8 Make the password manager use minetest.serialize.
• minetest.serialize() is probably better than the weird .conf-format it used to use.
2019-03-13 19:40:39 +13:00
luk3yx
916dba380f Bugfixes 2019-03-13 18:22:43 +13:00
luk3yx
f108624989 Enable the password manager by default. 2019-03-13 18:20:28 +13:00
luk3yx
78d2a584a1 Make the password manager faster to respond
• Don't load the "Join Game" tab again before continuing to connect.
2019-03-13 18:05:39 +13:00
luk3yx
e5864b6caf Add button to disable the password manager. 2019-03-13 17:51:45 +13:00
luk3yx
c5db4466b4 Add .saved_passwords to the gitignore. 2019-03-13 17:24:03 +13:00
luk3yx
3c37fabf4b Add a (rudimentary) password manager. 2019-03-13 17:06:07 +13:00
luk3yx
1b2a6cde3c Add chatcommand aliases
• /hasprivs is now an alias for /haspriv.
 • /tp is now an alias for /teleport.
2019-03-13 15:36:56 +13:00
Ezhh
66aeaff750 Rename hasprivs command to haspriv (#7860) 2019-03-13 15:25:01 +13:00
tenplus1
a7f6fb4ef0 get_node_drops: Make empty drop return empty table (#7592)
This stops get_node_drops from returning an empty string when using drop = "" and instead returns the supposed empty table instead {}
2019-03-13 15:24:20 +13:00
SmallJoker
b20bb5717c Make the server status message customizable (#7357)
Remove now redundant setting show_statusline_on_connect
Improve documentation of `minetest.get_server_status`
2019-03-13 15:02:44 +13:00
Anand S
bf27f17b1c Add hasprivs chat command (#7336)
Require 'basic_privs' priv
Only the online players are listed.
2019-03-13 15:00:13 +13:00
SmallJoker
19f6ec9450 Fix the /shutdown command (#7431) 2019-03-13 15:00:03 +13:00
number Zero
31a79083a3 Fix typo (GH#7421) 2019-03-13 14:59:49 +13:00
Loïc Blot
9071062448 CSM/SSM: Add on_mods_loaded callback (#7411)
* CSM/SSM: Add on_mods_loaded callback
2019-03-13 14:59:09 +13:00
ClobberXD
e3dcdbad3a Check if player exists on use of /privs (#7554)
* /privs: Check if player exists
2019-03-13 14:53:40 +13:00
paramat
88795b9f9a Spawn level: Add 'get_spawn_level(x, z)' API
Returns a suitable player spawn y co-ordinate for unmodified terrain.
2019-03-13 14:47:04 +13:00
Paramat
74f64c1c73 Vertical biome blend: Tune PRNG seed for finer detail (#7329) 2019-03-13 14:46:13 +13:00
paramat
8b5b291147 Biomes: Fix vertical biome blend 2019-03-13 14:45:34 +13:00
paramat
f93cac5239 Biome API: Add 'get_biome_name(biome_id)' API
Change name of default biome to a more suitable lowercase 'default'.
2019-03-13 14:43:12 +13:00
paramat
5f7cfce654 Biomes: Add 'get heat', 'get humidity', 'get biome data' APIs
'get biome data' returns biome id, heat and humidity.
Clean up nearby lines in lua_api.txt.
2019-03-13 14:43:10 +13:00
Paramat
f46c0b9c3f Biomes: Add vertical biome blend (#6853)
Add 'vertical blend' parameter to biome registration that defines how
many nodes above the biome's 'y max' limit the blend will extend.
2019-03-13 14:42:17 +13:00
luk3yx
55b566f3c2 Append default formspec theme in CSMs. 2019-03-13 08:38:25 +13:00
rubenwardy
5fb79e38a6 Fix cast from const by accessing string data directly (#8354)
Fixes #8327
2019-03-13 08:17:48 +13:00
paramat
ee99140e3a Simple decorations: Make 'place_offset_y' usable with simple decorations
Necessary for placing the base cube of 'plantlike_rooted' drawtype in the
seabed instead of on it.
Useful for placing decorations sunk into, or buried in, the ground.
2019-03-12 21:27:27 +13:00
paramat
e976ac2bb5 Biomes/decorations/ores: Make relative to 'water_level' setting
Add 'biome_zero_level' argument to 'generateBiomes()', 'deco_zero_level'
argument to 'placeAllDecos()' and 'ore_zero_level' to 'placeAllOres()'
to allow mapgens to vertically shift the registered biomes, decorations
and ores per-mapchunk.
Will also allow many realm possibilities in future mapgens.
2019-03-12 21:21:55 +13:00
luk3yx
c069e219f0 Rename gui_formbg.png to builtin_gui_formbg.png.
• Prevents conflicts with custom subgames/mods that could have a different gui_formbg.png.
 • This texture should not be used outside of the engine and minimal subgame to ensure backwards-compatibility.
2019-03-12 20:56:24 +13:00
luk3yx
b3dc9b6b45 (Temporarily) switch to a minetest_game fork.
• (Hopefully temporarily) switch to my minetest_game fork, that removes binoculars (it currently doesn't work with minetest-luk3yx-4 0.4.19), and fixes the player collisionbox offset.
2019-03-12 18:11:01 +13:00
luk3yx
4990564959 Change version to 0.4.19 2019-03-12 18:03:51 +13:00
luk3yx
1f13b7584f Use a formspec background in the "minimal" game
• Use the now built-in gui_formbg.png in the "minimal" game
 • Make the minimal warning text yellow to stand out more.
2019-03-12 17:27:16 +13:00
luk3yx
61e806f312 Add pause menu background and add a copy of gui_formbg.png. 2019-03-12 17:10:29 +13:00
Dániel Juhász
5cff3e4865 Expose getPointedThing to Lua
This commit introduces Raycast, a Lua user object, which can be
used to perform a raycast on the map. The ray is continuable, so one can
also get hidden nodes (for example to see trough glass).
2019-03-12 16:39:17 +13:00
SmallJoker
47b883b4b9 is_area_protected: Rename from intersects_protection (#7073)
* is_area_protected: Rename from intersects_protection
Return first protected position
Clarify docs: Mods may overwrite the function
2019-03-12 15:36:57 +13:00
Paramat
7fb7a79f8d Intersects_protection(): Move from Minetest Game to builtin (#6952)
A useful function that applies 'core.is_protected()' to a 3D lattice of
points evenly spaced throughout a defined volume, with a parameter for
the maximum spacing of points.
2019-03-12 15:36:34 +13:00
red-001
6b3d44e5c5 Allow the join/leave message to be overridden by mods. 2019-03-12 15:33:25 +13:00
luk3yx
4003b03eb3 Add formspec prepends (or appends?)
• Implements https://github.com/minetest/minetest/pull/7099 in a backwards-compatible way.
 • Formspec prepends are appended (I don't think prepending them works) to formspecs before sending them to clients. This way older clients will still be able to display formspec prepends.
2019-03-12 14:52:53 +13:00
luk3yx
0cee3e3c3a Allow main menu music to be disabled. 2019-03-12 13:40:16 +13:00
luk3yx
ac62ffacc2 Regenerate minetest.conf.example 2019-03-08 08:57:47 +13:00
luk3yx
6dfe2a2e3f Update bump_version.sh 2019-03-08 08:47:31 +13:00
rubenwardy
0d8cdab46f Fix incorrect string length check after cast 2019-03-08 08:14:11 +13:00
sfan5
6b505ab61a Update a few dependency versions for buildbot (#8319) 2019-03-08 08:13:25 +13:00
HybridDog
0eaf6f7b54 World config: Make depends easier to read (#7396)
* Do not always show every depends textfieds

When there are no dependencies, it does not longer show an empty list.

* Adjust the list height to avoid a scrollbar when possible

* change minimum height and no dependencies message

* Do not get depends for modpacks
2019-03-08 08:11:10 +13:00
Jozef Behran
f001791201 Optimize interaction distance checker (#8193)
The "what" parameter is being passed by value, most likely by
accident as the type is "const std::string". Convert it to a
reference by adding the missing "&".
2019-03-08 08:10:23 +13:00