Commit Graph

1180 Commits

Author SHA1 Message Date
Hugo Locurcio dfa84c2322
Allow relative directories for `screenshot_path`, tweak default path (#9122)
This will likely be more intuitive for users and should play better
with sandboxed distributions such as Flatpak.

In addition, the screenshot directory will now be created if it doesn't
exist already.
2022-05-21 16:17:35 +02:00
Wren Turkal 3c04a4c31d
Add allowed_mapgens option in game.conf. (#9263)
The game.conf has a disallowed_mapgens option. However, some games
require a certain mapgen to be used, like the CTF plugin. This change
adds an option to specify allowed mapgens so that the setting can be
specified in a way that needn't be updated as map generators are added
to Minetest.
2022-05-21 16:17:35 +02:00
rubenwardy 998fdbdaf3
Update credits for 5.2.0 (#9593) 2022-05-21 16:17:34 +02:00
sfan5 fb880865e0
Builtin: Make item entities glow less (#9594)
minor adjustment to #9200
2022-05-21 16:17:34 +02:00
ANAND 8338e55fac
Ignore near_plane setting on non-Android platforms (#8749)
Camera's near-plane will be hard-coded to 0.1 on all non-Android platforms. The upper-bound of this setting has been reduced to 0.25, as 0.5 is just way too high.
2022-05-21 16:17:33 +02:00
Wuzzy 6a94a59520
Add comments for translators (#9510)
* Add translator comments for "special" strings

* Add translator comments for some "tricky" strings
2022-05-21 16:17:33 +02:00
Wuzzy e45995ad1c
Fix some chatcommands not returning a value (#9503) 2022-05-21 16:17:33 +02:00
Wuzzy 3dc79a8569
Cleanup global namespace pollution in builtin (#9451) 2022-05-21 16:17:32 +02:00
sfan5 7204509308
Fix potential security issue(s), documentation on minetest.deserialize() (#9369)
Also adds an unittest
2022-05-21 16:17:32 +02:00
Wuzzy 783098c161
Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid nodes (#9339)
* Fix pathfinder fail when startpos is over air
* Note down pathfinder restrictions
* Implement real A* search
* Pathfinder: Implement buildPath non-recursively
* Update find_path documentation
* Pathfinder: Check if jump path is unobstructed
* Pathfinder: Fix drop check first checking upwards
* Pathfinder: Return nil if source or dest are solid
* Pathfinder: Use priority queue for open list
2022-05-21 16:17:31 +02:00
sfan5 8cfe6e3a31
Profiler: Fix wrong function name for entities 2022-05-21 16:17:31 +02:00
sfan5 36adf45697
Move core.get_connected_players() implementation to C++
Keeping the ObjectRefs around in a table isn't ideal and this allows
removing the somewhat nonsensical is_player_connected() added in 86ef7147.
2022-05-21 16:17:30 +02:00
Wuzzy a2983962f7
Falling nodes: Add support for facedir, colorfacedir, wallmounted, colorwallmounted, color, airlike, signlike, torchlike and glow (#9205) 2022-05-21 16:17:30 +02:00
SmallJoker 739965416b
Builtin: Fix error by digging unknown nodes 2022-05-21 16:17:30 +02:00
sfan5 d76e2848bb
Convert sound_play uses in builtin to ephemeral 2022-05-21 16:17:29 +02:00
sfan5 6e956c9c07
Let node 'place' and 'dug' sounds be heard by other players 2022-05-21 16:17:29 +02:00
HybridDog 9c47c36741
Add table.shuffle (#8299) 2022-05-21 16:17:28 +02:00
rubenwardy a4076c69c0
Update settingtypes.txt for new languages 2022-05-21 16:17:28 +02:00
rubenwardy f81f909463
Add Lua unit tests to builtin using busted (#9184) 2022-05-21 16:17:28 +02:00
HybridDog 6a4a4fb737
Add table.key_value_swap (#9248) 2022-05-21 16:17:27 +02:00
paramat c6c2924273
Remove Mapgen V7 floatlands in preparation for new implementation (#9238)
Preserve the floatland flag of existing worlds, to be used again
when the new implementation is added.
2022-05-21 16:17:27 +02:00
Wuzzy e675431e87
Fix item eat sound not played if last item (#9239) 2022-05-21 16:17:26 +02:00
lhofhansl 29b09aec3e
Allow wave_heights up to two nodes. #9220 2022-05-21 16:17:26 +02:00
ANAND fab31e65e0
/privs: Delimit output list of privs with commas (#9224) 2022-05-21 16:17:25 +02:00
Wuzzy 87511649f7
Builtin: Make dropped light_source nodes glow (#9200) 2022-05-21 16:17:25 +02:00
Bluebird c928c4eb43
Make core.item_place_node return position of placed node. (#7713) 2022-05-21 16:17:25 +02:00
sfan5 0afb8b9450
Correct documentation around minetest.item_place
The code that calls minetest.item_place_object was removed
in 2013 in commit fc61c8809b9a1d47d9f117446764107a56cec956.
2022-05-21 16:17:24 +02:00
rubenwardy db5fed2cd6
Fix luacheck errors 2022-05-21 16:17:24 +02:00
ANAND 13bd22bb39
Use a safer implementation of gsub in core.chat_format_message (#9133)
This search-and-replace implementation does not use Lua pattern-matching
2022-05-21 16:17:23 +02:00
paramat 0fd9c533c6
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'.
2022-05-21 16:17:23 +02:00
paramat 2e72d96513
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.
2022-05-21 16:17:22 +02:00
paramat 020412b3a2
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.
2022-05-21 16:17:22 +02:00
sfan5 65ac2ba313
Improve documentation around banning (#9088)
* Fix ban chatcommand description
* Correct ban API documentation
2022-05-21 16:17:21 +02:00
Pierre-Yves Rollo 559893ecbe
Formspec: add hypertext element 2022-05-21 16:17:21 +02:00
Alistair Findlay 1e3ed331cb
Builtin: Improve /clearobjects message (#9084) 2022-05-21 16:17:20 +02:00
random-geek 6983312bb6
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.
2022-05-21 16:17:20 +02:00
Wuzzy e336781e49
Add help texts for settings that lack one (#9007) 2022-05-21 16:17:19 +02:00
paramat de46384c5b
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.
2022-05-21 16:17:19 +02:00
paramat ed42ec1ebc
Settingtypes.txt: Various improvements (#9047) 2022-05-21 16:17:18 +02:00
Aaron Suen 0010957299
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.
2022-05-21 16:17:18 +02:00
Warr1024 1e37f540e5
Merge pull request #8166 from Warr1024/fix7020
Fix (or workaround?) for 'Falling nodes with node inventory cause crash when unloaded'
2022-05-21 16:17:17 +02:00
Wuzzy b4241e1dc7
All Settings: Set min limit for crtitical settings (#9000) 2022-05-21 16:17:17 +02:00
Desour 241704049e
Allow grep-ing for on_grant and on_revoke (#8958)
Just two code comments are added.
2022-05-21 16:17:17 +02:00
srfqi 4ba095f2fb
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.
2022-05-21 16:17:16 +02:00
HybridDog a2a8ebd68f
Automatically enable depends of mods when enabling the mods in the world config menu (#3473) 2022-05-21 16:17:16 +02:00
Hugo Locurcio dea9dc1be6
Rename "private messages" to "direct messages" (#8971)
These messages can be read by server administrators, which makes them
not actually private.
2022-05-21 16:17:15 +02:00
sfan5 598a344d97
Punchwear (improved) (#8959) 2022-05-21 16:17:15 +02:00
SmallJoker e885b6b9bb
Fix AreaStore's IDs persistence (#8888)
Improve documentation
Read old formats
Fix free ID function. Return first gap in map
2022-05-21 16:17:15 +02:00
Tim Myers d6a5edd1d2
Also print help commands to chat for server terminal (#8869) 2022-05-21 16:17:14 +02:00
Hugo Locurcio 72d4f571d7
Improve undersampling settings
The setting now accepts values between 1 and 8 in the
Advanced Settings menu.
Values 0 and 1 now behave the same way (setting it to 1 won't
disable MSAA anymore), so there's no need to expose 0 as a value.

This closes #8939.
2022-05-21 16:17:14 +02:00