SmallJoker [Wed, 27 Nov 2019 19:36:51 +0000 (20:36 +0100)]
Attachments: Fix interpolation from (0,0,0) after detach
GenericCAO::getPosition() did not take the camera offset into account
LocalPlayer attachment cleanup: Use sane getParent() function
Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
rubenwardy [Fri, 6 Dec 2019 23:00:54 +0000 (23:00 +0000)]
Fix failing build due to code style error
v-rob [Fri, 6 Dec 2019 20:51:10 +0000 (12:51 -0800)]
Add scrollbaroptions FormSpec element (#8530)
Zaoqi [Fri, 6 Dec 2019 20:50:45 +0000 (04:50 +0800)]
Fix android build due to omitted file in src files
Pierre-Yves Rollo [Mon, 4 Nov 2019 08:30:02 +0000 (09:30 +0100)]
Add z-index management to HUD
SmallJoker [Thu, 5 Dec 2019 19:35:31 +0000 (20:35 +0100)]
Fix LocalPlayer-bound sound playback broken by
81c2370
Nils Dagsson Moskopp [Wed, 27 Nov 2019 00:46:59 +0000 (01:46 +0100)]
Fix Debian build dependencies in README
This patch replaces the statement in the README about a build dependency of the
minetest binary on the package “build-essential” with a corresponding statement
about build dependencies on the three packages “g++”, “make”, and “libc6-dev”.
Though often used as a shorthand, “build-essential” is not a package used to
install packages that are essential for building software – “build-essential”
depends on packages that are essential for building Debian packages. Therefore,
the dependency on “build-essential” implies a dependency on a lot of packages that
are not actually necessary to build minetest (e.g. the Perl programming language).
ANAND [Mon, 25 Nov 2019 19:03:34 +0000 (00:33 +0530)]
Use a safer implementation of gsub in core.chat_format_message (#9133)
This search-and-replace implementation does not use Lua pattern-matching
sfan5 [Tue, 19 Nov 2019 19:23:00 +0000 (20:23 +0100)]
Improve client-side packet receiving
paramat [Fri, 22 Nov 2019 20:37:43 +0000 (20:37 +0000)]
Caves: Fix shadowing of 'large_cave_depth' to avoid confusion
paramat [Fri, 22 Nov 2019 19:48:18 +0000 (19:48 +0000)]
Dungeons: Move duplicated y limit checks to generation function
SmallJoker [Wed, 20 Nov 2019 18:39:10 +0000 (19:39 +0100)]
Formspec: Fix priorities for version < 3 (#9121)
* Formspec: Fix priorities for version < 3
1) Introduce 'priority' to 'FieldSpec'
2) Sort elements based on 'priority'
3) Assign 'name' to the Item Image Button's image to show tooltips again
Lars Hofhansl [Wed, 20 Nov 2019 03:42:52 +0000 (19:42 -0800)]
Waves generated with Perlin-type noise #8994
Paramat [Tue, 19 Nov 2019 19:59:17 +0000 (19:59 +0000)]
Move duplicated mapgen parameters to class MapgenBasic (#9134)
'large_cave_depth', 'dungeon_ymin' and 'dungeon_ymax' are duplicated across many mapgens so should have been in class MapgenBasic from the start.
sfan5 [Thu, 14 Nov 2019 16:38:15 +0000 (17:38 +0100)]
Rework packet receiving in ServerThread
Notably it tries to receive all queued packets
between server steps, not just one.
Paramat [Mon, 18 Nov 2019 23:40:01 +0000 (23:40 +0000)]
Randomwalk cave liquids: Remove deprecated 'lava depth' parameter (#9105)
Low-disruption first step towards removing the hardcoded cave liquid
code. Since MT 5.0.0 cave liquids can be defined and located by
biome definitions instead.
In games that do not yet use biome definitions to define and locate
cave liquids (MTGame does), lava will now appear below
y = water_level - 256 instead of below 'lava depth' (usually y = -256).
Therefore no change in most mapgens if using the default 'lava depth'.
William Breathitt Gray [Sat, 16 Nov 2019 18:14:24 +0000 (13:14 -0500)]
Fix find_path for newer jsoncpp installations
The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.
Fixes: https://github.com/minetest/minetest/issues/9119
sfan5 [Thu, 14 Nov 2019 16:58:07 +0000 (17:58 +0100)]
Optimize semaphore wait with zero timeout on POSIX
sfan5 [Sun, 10 Nov 2019 22:17:10 +0000 (23:17 +0100)]
Install client_lua_api.txt documentation too
fixes #9104
sfan5 [Sat, 9 Nov 2019 20:22:06 +0000 (21:22 +0100)]
Fix clang-tidy and lint travis checks
sfan5 [Sat, 9 Nov 2019 15:15:05 +0000 (16:15 +0100)]
[CSM] Fix and improve minetest.get_language()
Previously this method would accidentally reset the locale
and break everything.
sfan5 [Sat, 9 Nov 2019 10:00:19 +0000 (11:00 +0100)]
[CSM] Implement minetest.get_csm_restrictions()
fixes #8068
sfan5 [Fri, 8 Nov 2019 23:41:33 +0000 (00:41 +0100)]
Run on_item_use CSM callback even if item is not marked usable
Mods may want to to handle item interaction even if the item
is not marked usable (= server-side callback exists).
sfan5 [Fri, 8 Nov 2019 23:27:50 +0000 (00:27 +0100)]
Fix camera:get_offset() in CSM
sfan5 [Fri, 8 Nov 2019 23:22:42 +0000 (00:22 +0100)]
[CSM] Expose more env functions
sfan5 [Fri, 8 Nov 2019 21:57:03 +0000 (22:57 +0100)]
Refactor CSM restriction code a bit
This also fixes find_node_near restrictions being ineffective.
sfan5 [Sat, 9 Nov 2019 23:36:29 +0000 (00:36 +0100)]
Call on_secondary_use when object is right-clicked
Paramat [Sun, 10 Nov 2019 01:41:20 +0000 (01:41 +0000)]
Randomwalk caves: Extend beyond mapchunk vertically also (#9094)
Previously, randomwalk caves only extended beyond the mapchunk
borders horizontally, preventing vertical overlap and
interconnection.
sfan5 [Sat, 9 Nov 2019 14:11:21 +0000 (15:11 +0100)]
Be lenient with extra slashes for CSM paths
sfan5 [Sat, 9 Nov 2019 10:29:20 +0000 (11:29 +0100)]
[CSM] Remove non-functional minetest.get_day_count()
sfan5 [Fri, 8 Nov 2019 19:54:25 +0000 (20:54 +0100)]
Corrections to client_lua_api.txt
sfan5 [Fri, 8 Nov 2019 19:18:41 +0000 (20:18 +0100)]
Introduce get_modpath() for CSM
sfan5 [Fri, 8 Nov 2019 19:01:47 +0000 (20:01 +0100)]
Load client mods into memory before execution.
Preperation for server-sent CSM which will eventually need this.
sfan5 [Fri, 8 Nov 2019 17:35:32 +0000 (18:35 +0100)]
Refactor loading of Lua code with mod security
Loic Blot [Sat, 9 Nov 2019 11:50:53 +0000 (12:50 +0100)]
Add arm64-v8a but it's not sufficient for 64bit build
Loic Blot [Sat, 9 Nov 2019 10:37:46 +0000 (11:37 +0100)]
Bump to version code 25
MoNTE48 [Wed, 6 Nov 2019 23:39:39 +0000 (00:39 +0100)]
Android: build fixes & compat fixes
Paramat [Sat, 9 Nov 2019 03:01:22 +0000 (03:01 +0000)]
Silence invalid Clang Format report (#9095)
Paramat [Sat, 9 Nov 2019 02:09:52 +0000 (02:09 +0000)]
Tunnels: Completely disable generation when 'cave width' >= 10.0 (#9093)
Previously, the only way to disable the 3D noise tunnels was to set
'cave width' > 1.0, however doing so did not disable the very intensive
noise calculations or the generation loop.
All the other types of cave generation (randomwalk caves, caverns)
can already be independently and completely disabled.
This feature is now needed more because the small randomwalk caves are
now available for use as an alternative to the 3D noise tunnels.
Paul Ouellette [Fri, 8 Nov 2019 21:18:20 +0000 (16:18 -0500)]
Make core.get_favorites("local") ignore duplicates (#7926)
Paramat [Fri, 8 Nov 2019 03:09:43 +0000 (03:09 +0000)]
Randomwalk caves: Add parameters for number, proportion flooded. Allow small caves (#8928)
Add mapgen parameters to set the range of the random number of
randomwalk caves per mapchunk, and to set the proportion that are
flooded with liquids.
Default values are, for now, unchanged from the previous hardcoded
values.
Add parameters to allow small randomwalk caves
Disabled by default for now as they have never been present in the
non-mgv6 mapgens.
DS [Thu, 7 Nov 2019 19:11:01 +0000 (20:11 +0100)]
Formspec: draw order and clipping for all elements (#8740)
sfan5 [Tue, 5 Nov 2019 18:24:51 +0000 (19:24 +0100)]
Improve documentation around banning (#9088)
* Fix ban chatcommand description
* Correct ban API documentation
SmallJoker [Sun, 3 Nov 2019 11:59:12 +0000 (12:59 +0100)]
Android: Fix broken double-tap after 49 days uptime
SmallJoker [Thu, 17 Oct 2019 18:40:50 +0000 (20:40 +0200)]
Clean up font caching, fix bitmap fonts
Pierre-Yves Rollo [Tue, 10 Sep 2019 13:11:26 +0000 (15:11 +0200)]
Formspec: add hypertext element
DS [Sat, 2 Nov 2019 18:29:14 +0000 (19:29 +0100)]
Add debug.txt.1 to .gitignore (#9081)
This should have been done in #8904.
Alistair Findlay [Sat, 2 Nov 2019 18:28:55 +0000 (05:28 +1100)]
Builtin: Improve /clearobjects message (#9084)
random-geek [Tue, 29 Oct 2019 18:23:12 +0000 (11:23 -0700)]
Change some usages of "deprecated" to "obsolete" (#9062)
"Deprecated" means that something is still in use, but is unsupported and needs to be removed.
"Obsolete" means it is already out of use.
Wuzzy [Fri, 25 Oct 2019 20:29:02 +0000 (22:29 +0200)]
Add help texts for settings that lack one (#9007)
random-geek [Thu, 24 Oct 2019 00:17:00 +0000 (17:17 -0700)]
Change some rough/inappropriate language in comments (#9061)
Paramat [Thu, 24 Oct 2019 00:08:49 +0000 (01:08 +0100)]
Improve light curve parameter limits and documentation (#9054)
Revert gamma upper limit to 3.0 because that was raised based on
a misunderstanding and had no benefit. A sane upper limit is
needed as players on a competitive server tend to use the maximum.
Set gamma lower limit to 0.33 for consistency with 3.0.
Set sane limits on alpha, beta, boost and enforce these in code
to limit values entered in minetest.conf and to avoid easy cheating
by editing settingtypes.txt.
Improve documentation and 'readable' setting names.
Clarify that gamma does not significantly affect natural night light.
light.cpp: Various codestyle and comment improvements.
random-geek [Tue, 22 Oct 2019 23:39:25 +0000 (16:39 -0700)]
Remove legacy file format documentation
random-geek [Mon, 21 Oct 2019 21:59:58 +0000 (14:59 -0700)]
Remove legacy flat-file map code
Dmitry Marakasov [Wed, 23 Oct 2019 18:28:55 +0000 (21:28 +0300)]
Fix build issue due to conflicting s64 type definitions (#9064)
See comment in irrlichttypes.h and https://sourceforge.net/p/irrlicht/bugs/433/
Paul Ouellette [Wed, 23 Oct 2019 17:48:19 +0000 (13:48 -0400)]
Allow calling ItemStack with no arguments (#8783)
Wuzzy [Wed, 23 Oct 2019 17:48:06 +0000 (19:48 +0200)]
Add 4 missing fallback/default textures (#8845)
Processed using 'optipng -o7 -strip all '
SmallJoker [Sun, 20 Oct 2019 10:44:52 +0000 (12:44 +0200)]
Formspecs: Reset version number on rebuild
Paramat [Fri, 18 Oct 2019 20:54:44 +0000 (21:54 +0100)]
Make natural night light as bright as MT 0.4.16 (#9053)
Warr1024 [Fri, 18 Oct 2019 17:17:35 +0000 (13:17 -0400)]
Correction for alpha blending issues in texture mod compositing (#9029)
sfan5 [Mon, 14 Oct 2019 18:20:37 +0000 (20:20 +0200)]
Don't install fonts on ENABLE_CLIENT=0 configurations
Paramat [Mon, 14 Oct 2019 02:30:54 +0000 (03:30 +0100)]
Settingtypes.txt: Various improvements (#9047)
Aaron Suen [Sun, 13 Oct 2019 13:32:39 +0000 (09:32 -0400)]
Fix rotate_node to return the correct itemstack.
All on_* hooks that return an itemstack are NOT guaranteed to
modify and return the original stack. We cannot count on the
behavior of the existing builtin definitions not to be overridden
by game/mod logic.
Paramat [Sat, 12 Oct 2019 23:18:23 +0000 (00:18 +0100)]
Randomwalk caves: Reduce 'insure' value from 10 to 2 (#9035)
This value reduces how far randomwalk caves can extend into the
mapchunk padding, to avoid 'out of voxelmanip' cave nodes which cause
flattened cave walls.
Testing shows that a value of 2 (instead of 10) is enough to make
'out of area' nodes extremely rare.
Reducing this value results in a higher chance of overlap and
connection with caves of neighbour mapchunks.
Hugues Ross [Sat, 12 Oct 2019 16:44:23 +0000 (12:44 -0400)]
Add more visual feedback for button states (#8916)
- Add style properties for overriding the the hovered/pressed state
- By default, hovered buttons are a lighter version of the base color
- By default, pressed buttons are a darker version of the base color
- Add hovered bg image support for image buttons (style property)
sfan5 [Sat, 12 Oct 2019 13:49:06 +0000 (15:49 +0200)]
Continue with 5.2.0-dev
sfan5 [Sat, 12 Oct 2019 13:48:58 +0000 (15:48 +0200)]
Bump version to 5.1.0
updatepo.sh [Wed, 9 Oct 2019 20:03:50 +0000 (22:03 +0200)]
Update minetest.conf.example
updatepo.sh [Wed, 9 Oct 2019 20:03:21 +0000 (22:03 +0200)]
Update translation strings
Translators [Wed, 9 Oct 2019 20:02:28 +0000 (22:02 +0200)]
Update from Weblate (hacky)
Paramat [Wed, 9 Oct 2019 18:39:50 +0000 (19:39 +0100)]
Fix isDead()/autoforward crash (#9031)
Crash occurred in singleplayer when leaving a world with
autoforward enabled then re-entering a world.
SmallJoker [Wed, 9 Oct 2019 17:54:15 +0000 (19:54 +0200)]
ContentCAO: Fix segfault on quit (attached)
ANAND [Tue, 8 Oct 2019 18:36:56 +0000 (00:06 +0530)]
Revert Client::sendPlayerPos optimization (part of
81c7f0a) (#9025)
Comment out the if statement that prevents sending TOSERVER_PLAYERPOS if the player is dead.
sfan5 [Sun, 6 Oct 2019 11:45:31 +0000 (13:45 +0200)]
Fix upright_sprite lighting when colors are set
fixes #9020
SmallJoker [Sun, 6 Oct 2019 12:50:45 +0000 (14:50 +0200)]
Revert "Fix the bgcolor formspec element (#8716)" (#9018)
This reverts commit
1db3d252cff9e8d61fecf1052d7497813851da51.
Temporary solution until a compatible solution is found to define both - formspec and fullscreen backgrounds.
sfan5 [Sat, 5 Oct 2019 15:13:50 +0000 (17:13 +0200)]
Fix warnings in guiButton.h
Warr1024 [Sat, 5 Oct 2019 13:46:57 +0000 (09:46 -0400)]
Merge pull request #8166 from Warr1024/fix7020
Fix (or workaround?) for 'Falling nodes with node inventory cause crash when unloaded'
Jacob Lifshay [Sun, 29 Sep 2019 02:30:58 +0000 (19:30 -0700)]
Fix unwanted detaching when damage = 0
SmallJoker [Wed, 2 Oct 2019 17:11:27 +0000 (19:11 +0200)]
Attachments: Fix attachments to temporary removed objects (#8989)
Does not clear the parent's attachment information when the child is deleted locally.
Either it was removed permanently, or just temporary - we don't know, but it's up to the server to send a *detach from child" packet for the parent.
James Tobin [Tue, 1 Oct 2019 17:09:59 +0000 (13:09 -0400)]
README: Add dependencies for Arch Linux (#8998)
Added Arch Linux dependency list (including base-devel which covers many of them)
Wuzzy [Tue, 1 Oct 2019 17:09:37 +0000 (19:09 +0200)]
All Settings: Set min limit for crtitical settings (#9000)
Paramat [Mon, 30 Sep 2019 20:34:43 +0000 (21:34 +0100)]
Document node drop tool filtering by string matching as deprecated (#9009)
SmallJoker [Sun, 29 Sep 2019 17:57:29 +0000 (19:57 +0200)]
Textures: Load base pack only as last fallback (#8974)
SmallJoker [Sun, 29 Sep 2019 12:52:21 +0000 (14:52 +0200)]
label[]: Fix broken colors since
2c9edef
ANAND [Sun, 29 Sep 2019 11:41:13 +0000 (17:11 +0530)]
Move Quicktune code to util/ (#8871)
rubenwardy [Sun, 29 Sep 2019 11:40:59 +0000 (12:40 +0100)]
Fix error message caused by adding new parameter to background (#8922)
Adds background9[] element to keep backwards compatibility in formspec prepends.
DS [Sun, 29 Sep 2019 11:40:15 +0000 (13:40 +0200)]
Allow grep-ing for on_grant and on_revoke (#8958)
Just two code comments are added.
Muhammad Rifqi Priyo Susanto [Fri, 27 Sep 2019 18:13:08 +0000 (01:13 +0700)]
All settings: Fix missing flags checkbox caused by 'possible flags' order (#8997)
Previously, the 'rivers' checkbox was missing for mgcarpathian, caused by the 'possible flags' order: 'caverns,nocaverns,rivers,norivers'.
Also reorder mgcarpathian 'possible flags', but only for consistency.
lhofhansl [Thu, 26 Sep 2019 20:57:39 +0000 (13:57 -0700)]
Simple shader fixes. (#8991)
1. Pass current camera offset to shader, so shader have access to the global coordinates
2. Pass animation timer to fragment shader. C++ code is already there, just wasn't declared in the shader
3. Delay animation timer wrap-around (from 100s to about 16 minutes)
HybridDog [Thu, 26 Sep 2019 19:03:54 +0000 (21:03 +0200)]
Automatically enable depends of mods when enabling the mods in the world config menu (#3473)
SmallJoker [Tue, 24 Sep 2019 17:05:28 +0000 (19:05 +0200)]
Fix some reference counters (memleak) (#8981)
Fix some reference counters (memleak)
Map::dispatchEvent: Allocation safety using references
sfan5 [Sun, 22 Sep 2019 22:28:26 +0000 (00:28 +0200)]
Fix broken build
The variable name changed but this didn't cause merge conflicts, so it wasn't caught before.
Hugo Locurcio [Sun, 22 Sep 2019 20:48:36 +0000 (22:48 +0200)]
Rename "private messages" to "direct messages" (#8971)
These messages can be read by server administrators, which makes them
not actually private.
DS-Minetest [Thu, 19 Sep 2019 17:50:15 +0000 (19:50 +0200)]
Move the code for meta formspec into bool Game::nodePlacement(const ItemDefinition &selected_def,
sfan5 [Sun, 22 Sep 2019 20:12:21 +0000 (22:12 +0200)]
Punchwear (improved) (#8959)
SmallJoker [Sat, 21 Sep 2019 15:54:52 +0000 (17:54 +0200)]
Fix AreaStore's IDs persistence (#8888)
Improve documentation
Read old formats
Fix free ID function. Return first gap in map
SmallJoker [Sat, 21 Sep 2019 09:44:24 +0000 (11:44 +0200)]
Wieldhand: Specify which ItemStack to use (#8961)
Makes 'get_wield_item' to return the "main" ItemStack
Anand S [Sun, 15 Jul 2018 00:26:30 +0000 (05:56 +0530)]
Add support for per-player FOV overrides and multipliers
sfan5 [Thu, 19 Sep 2019 14:39:57 +0000 (16:39 +0200)]
Remove incorrect MutexAutoLock
The line declared a variable "m_con" instead of locking m_con.
getClient() doesn't need this anyway, so remove it.
DS-Minetest [Sat, 29 Jun 2019 15:06:58 +0000 (17:06 +0200)]
Trigger on_place in many situations even if prediction failed