Commit Graph

1199 Commits

Author SHA1 Message Date
SmallJoker f86fe84050
HTTP API: Allow binary downloads and headers (#8573)
Add minetest.features.httpfetch_binary_data
2022-05-21 16:17:00 +02:00
paramat 763d624c22
Dungeons: Settable density noise, move number calculation to mapgens (#8473)
Add user-settable noise parameters for dungeon density to each mapgen,
except V6 which hardcodes this noise parameter.

Move the calculation of number of dungeons generated in a mapchunk out
of dungeongen.cpp and into mapgen code, to allow mapgens to generate
any desired number of dungeons in a mapchunk, instead of being forced
to have number of dungeons determined by a density noise.

This is more flexible and allows mapgens to use dungeon generation to
create custom structures, such as occasional mega-dungeons.
2022-05-21 16:17:00 +02:00
ANAND 0b409ca993
builtin/../register.lua: Abort make_wrap_deregistration if param is invalid 2022-05-21 16:16:59 +02:00
paramat 249d1dd9a9
World start time: Move to first full light (day night ratio = 1000) (#8410)
6125 is the time of first full light according to 'get_node_light()',
and the time of first full light visually when basic shaders are on.
This is the optimum default new world start time, taking all possible
games into account.
The previous time assumed a game similar to Minetest Game. Games
should set this setting themselves according to their needs.
2022-05-21 16:16:59 +02:00
rubenwardy fefe71f8b0
Change pitch fly binding to 'P', add to change keys menu (#8314) 2022-05-21 16:16:58 +02:00
Desour aa0ee4cc03
Optimize core.after in a simple way (#8351) 2022-05-21 16:16:58 +02:00
paramat a623a888a7
Require 'waving = 3' in a nodedef to apply the liquid waving shader (#8418)
Makes the liquid waving shader per-nodedef like waving leaves/plants,
instead of being applied to all liquids.
Like the waving leaves/plants shaders, the liquid waving shader can
also be applied to meshes and nodeboxes.

Derived from a PR by t0ny2.
2022-05-21 16:16:58 +02:00
paramat 3c4a039697
Document 'highly unstable' mapgens instead of 'stable' mapgens (#8404) 2022-05-21 16:16:57 +02:00
paramat 02c763a3a7
num_emerge_threads: Fix documentation of automatic selection 2022-05-21 16:16:57 +02:00
ANAND a07575bd51
core.after: Improve assertion message (#8388) 2022-05-21 16:16:56 +02:00
ANAND 6cf1909254
Builtin: Add vector.angle(). Returns the angle between 2 vectors (#7738) 2022-05-21 16:16:56 +02:00
paramat e639e7a37b
num_emerge_threads: Warn of crashes when > 1 (#8357) 2022-05-21 16:16:56 +02:00
HybridDog 6be225b9fd
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
2022-05-21 16:16:55 +02:00
paramat f50fc6a564
Change 'num_emerge_threads' default to 1 (#8303) 2022-05-21 16:16:55 +02:00
HybridDog 744d7a14b4
Add math.factorial (#8298) 2022-05-21 16:16:54 +02:00
Desour f1a228902a
Add sounds for falling and attached nodes (#7719)
* Add sounds for falling and attached nodes

The sound specified in `node_definition.sounds.fall` is used.
When a falling node is spawned at a position or an attached node drops, the sound is played at this position.

* allow all sorts of soundspecs
2022-05-21 16:16:54 +02:00
rubenwardy f205d99aa7
Hide uninstall package button on unmodifiable paths (#8255) 2022-05-21 16:16:53 +02:00
paramat 17fcbff308
Update minetest.conf.example and settings_translation_file.cpp (#8278) 2022-05-21 16:16:53 +02:00
paramat 31f311dff5
Settingtypes.txt: Remove 2 lines missed in a recent commit (#8277) 2022-05-21 16:16:53 +02:00
ANAND 7fb99b3005
Remove 's' from 'automatic forwards' (#8272) 2022-05-21 16:16:52 +02:00
rubenwardy bd3ee5bc40
Content store: Ignore '_game' in game names in ID generation (#8270)
Fixes 'install' button continuing to be displayed after installing a game whose
name ends with '_game'.
2022-05-21 16:16:52 +02:00
Paul Ouellette 388cba692a
Update gamebar on tab enter (#8192) 2022-05-21 16:16:51 +02:00
rubenwardy f737772867
Fix games not updating on deletion
As reported by @random-geek
2022-05-21 16:16:51 +02:00
Paul Ouellette 8a47eee442
Fix content store crash (#8244) 2022-05-21 16:16:50 +02:00
paramat b762d5d369
lua_api.txt, settingtypes.txt: Various improvements (#8252) 2022-05-21 16:16:50 +02:00
Paul Ouellette 7aa851f622
Fix profiler crash by builtin since eea1fda (#8239)
Default to '??' (common Minetest notation) for unknown mods.
2022-05-21 16:16:50 +02:00
rubenwardy 73a5a06fae
Update credits (#8162) 2022-05-21 16:16:49 +02:00
SmallJoker 665810b7b1
Statbars: Reduce initial update interval
Centralize HUD updating in update_builtin_statbars.
Fixes race condition in 'on joinplayer' that causes stat bar bugs.
Correctly scales stat bars to custom max values set by mods.
2022-05-21 16:16:49 +02:00
SmallJoker 6b883e3ddf
Builtin: Fix grayed-out but enabled modpacks 2022-05-21 16:16:48 +02:00
Wuzzy 8cce78a18b
Remove fgettext("") in builtin
This call is useless and wrong, the empty string has a special meaning in Gettext.
2022-05-21 16:16:48 +02:00
rubenwardy 05191fb0aa
Content store: Fix assertion failed on unsuccessful package list fetch
Fixes #8168
2022-05-21 16:16:47 +02:00
rubenwardy 2a14dfb377
Rename 'Content Store' to 'Online Content Repository' in Advanced Settings 2022-05-21 16:16:47 +02:00
rubenwardy 25d2c1cbb6
Add setting to hide mature content from ContentDB 2022-05-21 16:16:46 +02:00
rubenwardy a69666caa9
Fix rename modpack dialog not appearing to take affect 2022-05-21 16:16:46 +02:00
numzero f153266f8c
Fix modpack rename dialog selecting the wrong mod 2022-05-21 16:16:45 +02:00
rubenwardy 52de9fcd47
Content store: Fix overlapping labels 2022-05-21 16:16:45 +02:00
paramat 37619f1b6b
Settings: Slightly increase block generate, block send, object send distances (#8147) 2022-05-21 16:16:45 +02:00
rubenwardy fb70e83b24
Content store: Fix storage leak by storing screenshots in cache (#8137) 2022-05-21 16:16:44 +02:00
rubenwardy f1675a10d3
Content store: Use composite key to track installations (#8054)
Fixes #7967 'Package manager doesn't track content reliably'.
2022-05-21 16:16:44 +02:00
srfqi c9922b15ff
Add setting to disable confirmation on new player registration (#8102) 2022-05-21 16:16:43 +02:00
paramat abbcd8741a
Rename 'Advanced Settings' button to 'All Settings' (#8131) 2022-05-21 16:16:43 +02:00
Wuzzy 889e9039a4
Make advanced settings noiseparams strings translatable (#8062)
Various minor language improvements in settingtypes.txt.
2022-05-21 16:16:42 +02:00
srfqi d808652180
Advanced settings noiseparams: No tailing comma for empty flags
Previously, when editing noiseparams and disabling all the noise
flags, the noiseparam is displyed in advanced settings with a
tailing comma.
2022-05-21 16:16:42 +02:00
Paul Ouellette 289186639f
Remove incorrect feature flag (#8086)
And document the versions that introduced the features.
2022-05-21 16:16:41 +02:00
Paul Ouellette 86a724a406
Fix some misspellings (#8104) 2022-05-21 16:16:41 +02:00
SmallJoker 338465899e
world.mt: Only accept true/false/nil values (#8055)
This patch will make distinguishable mods in modpacks possible in the future
`nil` checks are required to provide backwards-compatibility for fresh configured worlds
2022-05-21 16:16:41 +02:00
rubenwardy 9275e49a34
pkgmgr: Fix games list not being updated after game install
Fixes #8074
2022-05-21 16:16:40 +02:00
paramat a4f320242f
Settingtypes.txt: Rewrite documentation of 'num_emerge_threads' (#8066) 2022-05-21 16:16:40 +02:00
rubenwardy e683cead1c
Content store: Disable more details dialog for now (#8060)
* Content store: Disable more details dialog for now
2022-05-21 16:16:39 +02:00
rubenwardy 18400b1851
Content store: Fix update button not working 2022-05-21 16:16:39 +02:00