oweals/minetest.git
7 years agoFix dark liquids (#6621)
Vitaliy [Sat, 18 Nov 2017 09:57:22 +0000 (12:57 +0300)]
Fix dark liquids (#6621)

* Update light storage format

7 years agoOre API documentation: Update and improve
paramat [Thu, 16 Nov 2017 22:08:22 +0000 (22:08 +0000)]
Ore API documentation: Update and improve

7 years agoBiome dust node: Only place on 'walkable' cubic non-liquid drawtypes
paramat [Wed, 15 Nov 2017 23:52:31 +0000 (23:52 +0000)]
Biome dust node: Only place on 'walkable' cubic non-liquid drawtypes

No longer decide placement on 'buildable_to' parameter.
Dust nodes only look acceptable placed on cubic nodes.
Modders may not want to make their plantlike decorations 'buildable_to'.

7 years agoLoad files from subfolders in texturepacks
number Zero [Wed, 13 Sep 2017 20:03:18 +0000 (23:03 +0300)]
Load files from subfolders in texturepacks

Updated and rebased version of a PR by red-001

7 years agoAllow zoom to actually show more data.
Lars Hofhansl [Thu, 16 Nov 2017 05:58:23 +0000 (21:58 -0800)]
Allow zoom to actually show more data.

This allows the client to retrieve blocks at a greater distance
from the server, thus allowing for a real zoom.

7 years agoFix item and wield meshes (#6596)
Vitaliy [Tue, 14 Nov 2017 18:23:34 +0000 (21:23 +0300)]
Fix item and wield meshes (#6596)

7 years agoMainmenu: Make capitalisation consistent in mainmenu and advanced settings
ezhh [Mon, 13 Nov 2017 19:02:26 +0000 (19:02 +0000)]
Mainmenu: Make capitalisation consistent in mainmenu and advanced settings

7 years agoPlayerSAO damage: Update to cope with variable player heights
paramat [Fri, 10 Nov 2017 20:11:14 +0000 (20:11 +0000)]
PlayerSAO damage: Update to cope with variable player heights

Nearby codestyle cleanup.

7 years agoSounds: Add falling node sounds
Auke Kok [Thu, 9 Nov 2017 06:40:59 +0000 (22:40 -0800)]
Sounds: Add falling node sounds

Falling nodes should make a sound. This can only be done here,
so for simplicity we just call the sound_play() here with the node
place sound. We ignore any gain value in the sound spec since a
falling node should be loud, so the 1.0 default gain makes sense
here.

7 years agoImprove Settings tab button alignments
ezhh [Mon, 13 Nov 2017 01:42:57 +0000 (01:42 +0000)]
Improve Settings tab button alignments

7 years agoLua_api.txt: Add documentation of required mapgen aliases
paramat [Sun, 12 Nov 2017 19:10:08 +0000 (19:10 +0000)]
Lua_api.txt: Add documentation of required mapgen aliases

7 years agoRemove incorrect entry from settingtypes
Ezhh [Sun, 12 Nov 2017 00:45:22 +0000 (00:45 +0000)]
Remove incorrect entry from settingtypes

7 years agoMove files to subdirectories (#6599)
Vitaliy [Wed, 8 Nov 2017 22:56:20 +0000 (01:56 +0300)]
Move files to subdirectories (#6599)

* Move files around

7 years agoMake use of safe file writing in auth handler (fixes #6576)
sfan5 [Tue, 7 Nov 2017 10:47:28 +0000 (11:47 +0100)]
Make use of safe file writing in auth handler (fixes #6576)

7 years agoAdd minetest.safe_write_file() to script API
sfan5 [Tue, 7 Nov 2017 10:46:06 +0000 (11:46 +0100)]
Add minetest.safe_write_file() to script API

7 years agoFix issue Minetest crash when custom font path is not exist
Muhammad Rifqi Priyo Susanto [Sat, 3 Jun 2017 02:51:48 +0000 (09:51 +0700)]
Fix issue Minetest crash when custom font path is not exist

We try to use default fallback for both mono and main font when custom font path is not exist. This way, if Minetest is not corrupted, we could avoid crash.

7 years agoLua_api.txt: Add documentation for 'eye_height' player object property
paramat [Mon, 6 Nov 2017 13:14:56 +0000 (13:14 +0000)]
Lua_api.txt: Add documentation for 'eye_height' player object property

7 years agoItem entities: Enable item collision detection for sudden movement
DTA7 [Mon, 18 Sep 2017 18:18:55 +0000 (20:18 +0200)]
Item entities: Enable item collision detection for sudden movement

7 years agoLINT: Add files to whitelist, fix detected indent errors
paramat [Mon, 6 Nov 2017 09:58:26 +0000 (09:58 +0000)]
LINT: Add files to whitelist, fix detected indent errors

7 years agoPlayer eye height: Make this a settable player object property
paramat [Fri, 3 Nov 2017 19:10:53 +0000 (19:10 +0000)]
Player eye height: Make this a settable player object property

7 years agoFix Settings tab formspec alignment (#6585)
Ezhh [Sun, 5 Nov 2017 10:15:32 +0000 (10:15 +0000)]
Fix Settings tab formspec alignment (#6585)

7 years agoDo not scale texture unless necessary.
Lars Hofhansl [Sun, 5 Nov 2017 01:05:47 +0000 (18:05 -0700)]
Do not scale texture unless necessary.

This avoids scaling textures to 'texture_min_size' unless it is actually
required (because either auto-scaling or bi/trilinear filtering is enabled)

7 years agohttpfetch: Enable gzip support
sfan5 [Sat, 4 Nov 2017 21:19:27 +0000 (22:19 +0100)]
httpfetch: Enable gzip support

7 years agoRewrite rendering engine (#6253)
Vitaliy [Tue, 31 Oct 2017 18:27:10 +0000 (21:27 +0300)]
Rewrite rendering engine (#6253)

* Clean draw_*() arguments

* Split rendering core

* Add anaglyph 3D

* Interlaced 3D

* Drop obsolete methods

7 years agoAdd sha1 to lua utils. (#6563)
Rob Blanckaert [Mon, 30 Oct 2017 07:18:18 +0000 (00:18 -0700)]
Add sha1 to lua utils. (#6563)

7 years agoInitial Haiku support (#6568)
miqlas [Mon, 30 Oct 2017 07:17:43 +0000 (08:17 +0100)]
Initial Haiku support (#6568)

* Iitial Haiku support

7 years agoFix day_night_ratio_do_override not being initialised server-side 6569/head
rubenwardy [Sun, 29 Oct 2017 18:31:50 +0000 (18:31 +0000)]
Fix day_night_ratio_do_override not being initialised server-side

Causes get_day_night_ratio() to return unpredictable results.

7 years agoCSM: Add a way to get current locale from CSM
lisacvuk [Sat, 28 Oct 2017 06:56:10 +0000 (08:56 +0200)]
CSM: Add a way to get current locale from CSM

7 years agoBiome API: Add decoration flags for underground decorations
paramat [Wed, 11 Oct 2017 00:06:40 +0000 (01:06 +0100)]
Biome API: Add decoration flags for underground decorations

Add "all_floors" and "all_ceilings" flags for simple and schematic
decorations. Decorations are placed on all floor and/or ceiling surfaces.
Decorations are placed before dungeon generation so placement in dungeons
is not possible.

Add 'getSurfaces()' function to mapgen.cpp that returns 2 arrays of y
coordinates for all floor and ceiling surfaces in a specified node column.

Move 'getHeight()' checks into DecoSimple and DecoSchematic. Delete
'getHeight()' functions.

7 years agoAllow overriding tool capabilities through itemstack metadata
raymoo [Tue, 18 Apr 2017 23:30:27 +0000 (16:30 -0700)]
Allow overriding tool capabilities through itemstack metadata

This makes it possible to modify the tool capabilities of individual
itemstacks by calling a method on itemstack metadata references.

7 years agoAvoid filtering low-res textures for animated meshes (incl. players) (#6562)
lhofhansl [Sat, 28 Oct 2017 08:33:47 +0000 (01:33 -0700)]
Avoid filtering low-res textures for animated meshes (incl. players) (#6562)

7 years agoFix default item callbacks to work with nil users (#5819)
raymoo [Sat, 28 Oct 2017 08:30:50 +0000 (01:30 -0700)]
Fix default item callbacks to work with nil users (#5819)

* Fix default item callbacks to work with nil users

* item.lua: Handle node drops for invalid players

The if-condition for the dropping loop is the same as `inv`, which means that the 2nd possible definition of `give_item` is never used.
Remove redundant `local _, dropped_item`

7 years agoAdd missing? include
Esteban I. Ruiz Moreno [Wed, 25 Oct 2017 13:23:24 +0000 (10:23 -0300)]
Add missing? include

7 years agoReduce server FOV with forward speed
Lars Hofhansl [Thu, 26 Oct 2017 06:10:33 +0000 (23:10 -0700)]
Reduce server FOV with forward speed

This causes blocks in front of the player to be rendered sooner and
blocks in the periphal view (that would soon be out of view) a bit later.
Overall this leads to smoother rendering as the player is moving around.

7 years agoMinetest.conf.example(.extra): Updates due to noise group format
paramat [Mon, 23 Oct 2017 04:07:27 +0000 (05:07 +0100)]
Minetest.conf.example(.extra): Updates due to noise group format

Autogenerate minetest.conf.example to convert noises to the now standard
'group format'.
Delete the now unnecessary minetest.conf.example.extra.

7 years agoLua_api.txt: Revert changes to NoiseParams format example
Muhammad Rifqi Priyo Susanto [Mon, 23 Oct 2017 04:04:22 +0000 (11:04 +0700)]
Lua_api.txt: Revert changes to NoiseParams format example

7 years agoImprovements/fixes for noise parameter input in advanced settings
Muhammad Rifqi Priyo Susanto [Sat, 9 Sep 2017 17:49:12 +0000 (00:49 +0700)]
Improvements/fixes for noise parameter input in advanced settings

Formspec input for each individual noise parameter and flag.
Allow noise flags to be set in advanced settings, previously only settable
in minetest.conf.

Standardise 'group format' for noise parameters set in minetest.conf, as
only these support noise flags. However the older 'single line' format is
still accepted to support existing minetest.conf files.
Therefore auto-generate minetest.conf.example with noise parameters in
'group format'.

Setting 'type' in settingtypes.txt is now either 'noise_params_2D' or
'noise_params_3D', the dimension number is displayed in the advanced
settings edit page.

7 years agoCorrect `prot_vers` in lua_api.txt.
Auke Kok [Fri, 20 Oct 2017 04:39:45 +0000 (21:39 -0700)]
Correct `prot_vers` in lua_api.txt.

We should avoid providing incorrect struct members in documentation
since people will be coding based on them.

7 years agoSet range of blocks to retrieve per roundtrip to 2.
Lars Hofhansl [Thu, 19 Oct 2017 16:46:30 +0000 (09:46 -0700)]
Set range of blocks to retrieve per roundtrip to 2.

This is a small, partial revert of #6483, which had set this to 1.

7 years agodirectiontables.cpp: fix a warning reported by VS2017
Loic Blot [Tue, 17 Oct 2017 20:29:05 +0000 (22:29 +0200)]
directiontables.cpp: fix a warning reported by VS2017

7 years agoFix inventory drag drop flag (#6416)
asl97 [Tue, 17 Oct 2017 19:50:58 +0000 (03:50 +0800)]
Fix inventory drag drop flag (#6416)

7 years agoAdd updated settings_translation_file
Esteban I. RM [Mon, 16 Oct 2017 23:44:48 +0000 (20:44 -0300)]
Add updated settings_translation_file

7 years agodon't pass g_settings around, and use it directly
Esteban I. RM [Mon, 16 Oct 2017 00:22:22 +0000 (21:22 -0300)]
don't pass g_settings around, and use it directly

7 years agoRegenerate minetest.conf.example and translation file
Esteban I. RM [Sun, 15 Oct 2017 23:29:08 +0000 (20:29 -0300)]
Regenerate minetest.conf.example and translation file

7 years agoImplement #6096
Esteban I. RM [Sun, 15 Oct 2017 23:28:42 +0000 (20:28 -0300)]
Implement #6096

7 years agoFix strict_protocol_version_checking functionality after ee9a442
SmallJoker [Mon, 16 Oct 2017 18:12:48 +0000 (20:12 +0200)]
Fix strict_protocol_version_checking functionality after ee9a442

7 years agoDon't try to craft a non-existent item
Esteban I. RM [Sun, 15 Oct 2017 05:52:05 +0000 (02:52 -0300)]
Don't try to craft a non-existent item

7 years agoReal global textures (#6105)
Vitaliy [Sun, 15 Oct 2017 07:34:14 +0000 (10:34 +0300)]
Real global textures (#6105)

* Real global textures

* Add world-aligned textures
* Update minimal to support world-aligned tiles
* Update minimal

7 years agoCache server config settings. (#6530)
lhofhansl [Sun, 15 Oct 2017 07:32:17 +0000 (00:32 -0700)]
Cache server config settings. (#6530)

* Cache server config settings.

7 years agoProfiler: Fix var args not being passed to callback register function 6531/head
rubenwardy [Sat, 14 Oct 2017 17:28:56 +0000 (18:28 +0100)]
Profiler: Fix var args not being passed to callback register function

Fixes #6517

7 years agoRetrieve a small cone of blocks in the direction of the players velocity.
Lars Hofhansl [Sun, 1 Oct 2017 01:54:43 +0000 (18:54 -0700)]
Retrieve a small cone of blocks in the direction of the players velocity.

This helps retrieving the right set of blocks when the player is falling,
traveling on cart, or in general traveling in a direction different from
the view direction.

7 years agoFormspec: Fallback to 'label' in readonly textarea[]
SmallJoker [Fri, 13 Oct 2017 21:05:52 +0000 (23:05 +0200)]
Formspec: Fallback to 'label' in readonly textarea[]
Guarantees backwards compatibility for this formspec element change

7 years agoSimple decorations: Make 'place_offset_y' usable with simple decorations
paramat [Mon, 9 Oct 2017 19:13:10 +0000 (20:13 +0100)]
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.

7 years agoSmooth lighting: Fix light leaking through edge-connected corners
DTA7 [Mon, 2 Oct 2017 23:23:49 +0000 (01:23 +0200)]
Smooth lighting: Fix light leaking through edge-connected corners

For solid nodes, the lighting at a corner becomes face-dependent, which
means that only the four nodes in face-direction contribute to the
lighting (getSmoothLightSolid).
For special nodes, which use the lighting values at the eight corners of
a node, the lighting is not face-dependent, but certain nodes of the
eight surrounding nodes of a corner (here indices 4, 5, 6 and 7) can be
obstructed.

Ambient occlusion now also occurs for solid nodes, if two, three or four
of the four nodes in face-direction are solid.

7 years agoFix warnings introduced by 9b8fa99fe30728c1fcfa73cdf74211841bdae9fb
Loic Blot [Tue, 10 Oct 2017 17:30:18 +0000 (19:30 +0200)]
Fix warnings introduced by 9b8fa99fe30728c1fcfa73cdf74211841bdae9fb

7 years agoThread: fix a crash on Windows due to data race condition on Thread::m_start_finished...
Loïc Blot [Tue, 10 Oct 2017 10:27:08 +0000 (12:27 +0200)]
Thread: fix a crash on Windows due to data race condition on Thread::m_start_finished_mutex (#6515)

7 years agoNetworkPacket::putRawPacket: resize m_data to datasize + memcpy
Loic Blot [Mon, 9 Oct 2017 22:47:37 +0000 (00:47 +0200)]
NetworkPacket::putRawPacket: resize m_data to datasize + memcpy

In some cases NetworkPacket was created using default constructor and m_data is not properly sized.
This fixed out of bounds memory copy
Also use memcpy instead of std::vector affectation to enhance packet creation

7 years agoSimple decorations: Add 'param2_max' parameter for random param2
paramat [Sun, 8 Oct 2017 20:08:52 +0000 (21:08 +0100)]
Simple decorations: Add 'param2_max' parameter for random param2

If 'param2_max' is not used, parameter 'param2' works as before for
compatibility.
If 'param2_max' is used, 'param2' and 'param2_max' become the lower
and upper bounds of a per-decoration random param2.

7 years agoTravis: Update clang from 4.0 to 5.0 (#6467)
Loïc Blot [Mon, 9 Oct 2017 09:32:06 +0000 (11:32 +0200)]
Travis: Update clang from 4.0 to 5.0 (#6467)

* Update clang from 4.0 to 5.0

7 years agoFormspec: textarea with scrollbar improvements
adrido [Mon, 9 Oct 2017 04:57:18 +0000 (06:57 +0200)]
Formspec: textarea with scrollbar improvements

Increase scrollrate depending on fontsize

Scroll on mousewheel

Allow scrolling and marking text on non writable textareas

Update lua api about readonly mode

Show scrollbar if text overflows

7 years agoFormSpec : Add an auto vertical scrollbar to the textarea
adelcoding1 [Sat, 18 Feb 2017 19:40:37 +0000 (11:40 -0800)]
FormSpec : Add an auto vertical scrollbar to the textarea

7 years agoReplace deprecated WINAPI GetVersionInfoEx (#6496)
adrido [Sat, 7 Oct 2017 13:13:13 +0000 (15:13 +0200)]
Replace deprecated WINAPI GetVersionInfoEx (#6496)

* Replace deprecated WINAPI GetVersionInfoEx

7 years agoDo not grant all privs to the admin - changes game behavior (#6460)
lhofhansl [Sat, 7 Oct 2017 13:12:09 +0000 (06:12 -0700)]
Do not grant all privs to the admin - changes game behavior (#6460)

* Do not grant all privs to admins.

* Default give_to_admin to give_to_singleplayer

7 years agoAdd setting for near plane distance. (#6395)
Rob Blanckaert [Sat, 7 Oct 2017 13:11:48 +0000 (09:11 -0400)]
Add setting for near plane distance. (#6395)

* Allow setting the near plane

* - Add near_plane limit of 0.5 to prevent x-ray.
- Add more details to near_plane setting.

7 years agoUnkown nodes: Provide position on interact (#6505)
SmallJoker [Sat, 7 Oct 2017 13:11:07 +0000 (15:11 +0200)]
Unkown nodes: Provide position on interact (#6505)

* Unkown nodes: Provide position on interact

7 years agosettingtypes.txt: Update zoom description (#6443)
James Alexander Stevenson [Fri, 6 Oct 2017 17:56:05 +0000 (13:56 -0400)]
settingtypes.txt: Update zoom description (#6443)

7 years agoMove register_on_modchannel_signal() (#6497)
James Alexander Stevenson [Thu, 5 Oct 2017 14:14:10 +0000 (10:14 -0400)]
Move register_on_modchannel_signal() (#6497)

Moved from lua_api.txt to client_lua_api.md.

7 years ago[CSM] Add callback on open inventory (#5793)
Vincent Glize [Mon, 2 Oct 2017 20:09:49 +0000 (22:09 +0200)]
[CSM] Add callback on open inventory (#5793)

7 years agoParticleSpawner::step cleanup and rotation fix (#6486)
SmallJoker [Mon, 2 Oct 2017 18:40:59 +0000 (20:40 +0200)]
ParticleSpawner::step cleanup and rotation fix (#6486)

* Particles: Move spawner code to a separate fucntion

7 years agoCAO footstep sounds: Reduce gain to balance volume 5679/head
paramat [Tue, 19 Sep 2017 15:39:30 +0000 (16:39 +0100)]
CAO footstep sounds: Reduce gain to balance volume

7 years agoStratum ore: Allow use with no noise for simple horizontal strata
paramat [Sat, 30 Sep 2017 09:23:57 +0000 (10:23 +0100)]
Stratum ore: Allow use with no noise for simple horizontal strata

If either of the 2 noise parameters are omitted the ore will occur from y_min
to y_max in a simple horizontal stratum. As this does not compute noise
performance improves, and is ideal for placing many layers.

Clean up some nearby ore documentation.

7 years agogame.cpp: remove dead code for proto v25 compat (#6481)
Loïc Blot [Sat, 30 Sep 2017 14:41:18 +0000 (16:41 +0200)]
game.cpp: remove dead code for proto v25 compat (#6481)

Protocol v25 is not supported anymore

7 years agoFix attached particle spawners far from spawn (#6479)
raymoo [Sat, 30 Sep 2017 13:23:52 +0000 (06:23 -0700)]
Fix attached particle spawners far from spawn (#6479)

* Fix attached particle spawners far from spawn

When far from spawn, attached particle spawners
did not spawn particles.

7 years agoMake Player::peer_id server-side only and add getters and setters (#6478)
Loïc Blot [Sat, 30 Sep 2017 10:00:05 +0000 (12:00 +0200)]
Make Player::peer_id server-side only and add getters and setters (#6478)

* Make Player::peer_id server-side only and add getters and setters

Player::peer_id has no sense client side, move it to server, make it private and add setter and getter
Also add some PEER_ID_INEXISTENT instead of harcoded 0

7 years agoLocalplayer: Fix disable_jump effect and getStandingNodePos()
SmallJoker [Sat, 23 Sep 2017 14:29:48 +0000 (16:29 +0200)]
Localplayer: Fix disable_jump effect and getStandingNodePos()

Leave the old move code untouched.

7 years agoLua_api.txt: Clarify arguments of functions, plus some cleanup
Hybrid Dog [Mon, 28 Aug 2017 18:21:28 +0000 (20:21 +0200)]
Lua_api.txt: Clarify arguments of functions, plus some cleanup

7 years agoDocument orientation parameter of set_attach (#6473)
raymoo [Thu, 28 Sep 2017 16:40:47 +0000 (09:40 -0700)]
Document orientation parameter of set_attach (#6473)

7 years agoAdd static_save property to luaentites to not save them statically. (#5112)
orwell96 [Thu, 28 Sep 2017 15:11:51 +0000 (17:11 +0200)]
Add static_save property to luaentites to not save them statically. (#5112)

* Add no_static_save property to luaentites to not save them statically.
This allows for temporary objects that would get deleted anyway as soon as they are loaded again without the static saving overhead.

* Use positive meaning for static_save object property

* Invert meaning also for the LUA parameter
Note: getboolfield() does not change &result when field does not exist, so it defaults to the default value in the header file, which is 'true'.

* Extend push_object_properties()

7 years agoServer: affect bind_addr on constructor instead of start() (#6474)
Loïc Blot [Thu, 28 Sep 2017 11:47:30 +0000 (13:47 +0200)]
Server: affect bind_addr on constructor instead of start() (#6474)

bind_addr is already ready when using constructor as we read is.IPv6 from it, instead pass the whole address

7 years agoFix some forgotten u16 -> session_t in ad7daf7b52348e1b71aa803be10de5b2134cba11
Loic Blot [Wed, 27 Sep 2017 21:48:06 +0000 (23:48 +0200)]
Fix some forgotten u16 -> session_t in ad7daf7b52348e1b71aa803be10de5b2134cba11

7 years agoFix recent commit: std::max -> std::fmax for floats (#6469)
Paramat [Wed, 27 Sep 2017 21:03:41 +0000 (22:03 +0100)]
Fix recent commit: std::max -> std::fmax for floats (#6469)

Fixes commit a455297d297c0819a7eff89e51e5f01a5ac731c3
<cmath> header was already present in commit.

7 years agoLint fix
Loic Blot [Wed, 27 Sep 2017 20:41:50 +0000 (22:41 +0200)]
Lint fix

7 years agoAdd session_t typedef + remove unused functions (#6470)
Loïc Blot [Wed, 27 Sep 2017 17:47:36 +0000 (19:47 +0200)]
Add session_t typedef + remove unused functions (#6470)

* Add session_t typedef + remove unused functions

u16 peer_id is used everywhere, to be more consistent and permit some evolutions on this type in the future (i'm working on a PoC), uniformize u16 peer_id to SessionId peer_id

7 years agoUpdate version correctly again (#6462)
SmallJoker [Tue, 26 Sep 2017 18:30:42 +0000 (20:30 +0200)]
Update version correctly again (#6462)

* Update version correctly again
Partial revert of PR 6331

* It doesn't update automatically

7 years agoUpdate JsonCPP to 1.8.3 (#6466)
Loïc Blot [Tue, 26 Sep 2017 18:30:14 +0000 (20:30 +0200)]
Update JsonCPP to 1.8.3 (#6466)

* Update JsonCPP to 1.8.3

* Fix deprecated functions

Json::FastWriter, Json::StyledWriter and Json::Reader are marked deprecated since 1.1 and are deprecated in 0.8 but not shown at compilation time.

Use new methods to serialize/deserialize

7 years agopreview: try to send mod channel messages 4 seconds after joining, not after loading mod
Loic Blot [Tue, 26 Sep 2017 06:31:56 +0000 (08:31 +0200)]
preview: try to send mod channel messages 4 seconds after joining, not after loading mod

7 years agoAdd mute setting (toggled by the mute key and in the volume menu) (#6415)
DTA7 [Tue, 26 Sep 2017 06:17:50 +0000 (08:17 +0200)]
Add mute setting (toggled by the mute key and in the volume menu) (#6415)

* Add mute setting (toggled by the mute key and in the volume menu)

7 years agoImplement mod communication channels (#6351)
Loïc Blot [Mon, 25 Sep 2017 22:11:20 +0000 (00:11 +0200)]
Implement mod communication channels (#6351)

Implement network communication for channels

* Implement ModChannel manager server side to route incoming messages from clients to other clients
* Add signal handler switch on client & ModChannelMgr on client to handle channels
* Add Lua API bindings + client packet sending + unittests
* Implement server message sending
* Add callback from received message handler to Lua API using registration method

7 years agoCan_zoom player object property: Add missing documentation
paramat [Mon, 25 Sep 2017 18:28:46 +0000 (19:28 +0100)]
Can_zoom player object property: Add missing documentation

7 years agoPositional sound: Limit volume when closer than 1 node
paramat [Sat, 23 Sep 2017 07:38:22 +0000 (08:38 +0100)]
Positional sound: Limit volume when closer than 1 node

Change OpenAL distance model from AL_INVERSE_DISTANCE to
AL_INVERSE_DISTANCE_CLAMPED to avoid excessive volume when very close
to the sound location, for example MTG doors, and MTG fire sounds which
are combined at an average position and often located in air nodes.

Because AL_REFERENCE_DISTANCE has been reduced to 1 node (the distance
under which gain is clamped), multiply volume by the same factor to keep
sound gains the same as before, since the gain is calculated as:

gain = (AL_REFERENCE_DISTANCE / distance)

7 years agoFix blocks written by vmanip not being marked as modified
sfan5 [Sat, 23 Sep 2017 15:05:55 +0000 (17:05 +0200)]
Fix blocks written by vmanip not being marked as modified

This bug can be triggered by e.g. calling minetest.place_schematic()
and stopping the server immediately afterwards.

7 years agoSet placer to nil instead of a non-functional one in item_OnPlace (#6449)
DTA7 [Thu, 21 Sep 2017 19:52:52 +0000 (21:52 +0200)]
Set placer to nil instead of a non-functional one in item_OnPlace (#6449)

* Set placer to nil instead of a non-functional one

This requires nil checks in core.rotate_node and core.rotate_and_place.

7 years agoon_death: Fix callback number of pushed arguments (Fixes #6451)
SmallJoker [Thu, 21 Sep 2017 17:56:11 +0000 (19:56 +0200)]
on_death: Fix callback number of pushed arguments (Fixes #6451)

7 years agokeycode.cpp: use std::unordered_map for keypress cache
Loic Blot [Thu, 21 Sep 2017 16:47:42 +0000 (18:47 +0200)]
keycode.cpp: use std::unordered_map for keypress cache

7 years agoFix compile error in openbsd (#6430)
jcalve [Wed, 20 Sep 2017 21:29:47 +0000 (23:29 +0200)]
Fix compile error in openbsd (#6430)

Include the header that defines AF_INET and AF_INET6

7 years agoRooted plantlike drawtype: Add remaining documentation
paramat [Tue, 19 Sep 2017 07:10:07 +0000 (08:10 +0100)]
Rooted plantlike drawtype: Add remaining documentation

Plus a small clarification of 'glasslike framed' documentation.

7 years agoLeveled nodebox: Change levels from 1/63rds to 1/64ths
paramat [Mon, 18 Sep 2017 04:08:56 +0000 (05:08 +0100)]
Leveled nodebox: Change levels from 1/63rds to 1/64ths

Add missing documentation of leveled nodebox to lua_api.txt, plus
a little cleaning up nearby.

7 years agoBiome API: Revert biomes, decos, ores being relative to water level
paramat [Sat, 16 Sep 2017 23:26:20 +0000 (00:26 +0100)]
Biome API: Revert biomes, decos, ores being relative to water level

Feature is unnecessary and would greatly complicate future development,
it would also make 'get biome at pos' extremely complex.
Mgv7: Revert option to repeat surface biomes in floatlands, which
depended on the above.

7 years agoBiome generation: Fix layers of 'filler' nodes at biome y limits
paramat [Sun, 17 Sep 2017 01:54:17 +0000 (02:54 +0100)]
Biome generation: Fix layers of 'filler' nodes at biome y limits

Error was exposed by commit a1389c38658fe69c3bd25c3099bae9a4e51ed401
'nplaced' was not set to U16_MAX when biome 'stone' was placed, so when
biome was recalculated in a column of stone, the 'nplaced' value
caused a few remaining filler nodes to be placed.
Occurs when the lower biome has a deeper depth of 'top' plus 'filler'
than the upper biome.

7 years agoFix Rotate Node Placement (#6424)
tenplus1 [Sat, 16 Sep 2017 20:39:38 +0000 (21:39 +0100)]
Fix Rotate Node Placement (#6424)

This properly checks for creative mode or privilege when using fixed rotate_node() function.