Commit Graph

1117 Commits

Author SHA1 Message Date
rubenwardy 6837571319
Add buttons to ContentDB in game bar and configure world (#9944) 2022-05-21 16:17:51 +02:00
Wuzzy b4d042ef54
Add minetest.is_creative_enabled 2022-05-21 16:17:50 +02:00
rubenwardy a57ab6d2dc
Update ContentDB dialog (#9949) 2022-05-21 16:17:50 +02:00
sfan5 1abb3ba2f7
Change item entity collisionbox so that they don't sink into the ground 2022-05-21 16:17:50 +02:00
sfan5 5a985e650b
Fix falling entity not falling through players 2022-05-21 16:17:49 +02:00
rubenwardy 051b66728b
Make ContentDB downloads not block the UI (#9948) 2022-05-21 16:17:49 +02:00
Wuzzy e19d0a346e
Rename “Minimal development test” to “Development Test” (#9928) 2022-05-21 16:17:48 +02:00
rubenwardy 2ec7efd0ec
Add engine version string to ContentDB API request (#9890) 2022-05-21 16:17:48 +02:00
SmallJoker 7a9d57a4b6
Add chat_font_size setting (#9736)
Default font sizes are used when the setting value is 0 or below (clamped by Settings).
2022-05-21 16:17:47 +02:00
sfan5 7e3611c1e9
Fix documentation of emergequeue_limit settings 2022-05-21 16:17:47 +02:00
sorcerykid 83782c6080
Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)
Replace on_auth_fail callback with more versatile on_authplayer
    Better clarify account login process in Lua API documentation
    Change initial timestamp for newly registered accounts to -1
2022-05-21 16:17:47 +02:00
paramat 976af00e17
Various documentation fixes in settingtypes.txt (#9910)
Fix incorrect value of 'mgv7_floatland_density'.
Use correct spelling of 'persistence'.
Move '3d_paralax_strength' into correct section (3D mode).
Refer to 'active_object_send_range_blocks' instead of non-existent 'active_object_range'.
2022-05-21 16:17:46 +02:00
Wuzzy 26809a296d
Rework functionality of leveled nodes (#9852)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-05-21 16:17:46 +02:00
sfan5 53647bc8e0
builtin: Move common/async_event.lua to mainmenu/async_event.lua
It only works in the context of the mainmenu.
2022-05-21 16:17:45 +02:00
rubenwardy 3ea6971764
Add core.open_url() to main menu API (#8592) 2022-05-21 16:17:45 +02:00
Wuzzy 10f3a97a91
Error msg if trying to teleport attached player (#9824) 2022-05-21 16:17:44 +02:00
paramat 76ebe80e55
Add new Mapgen V7 floatland implementation (#9296)
Floatland structure is vertically-compressed 3D noise.
Uses a lacunarity of 1.618 (the golden ratio) for high quality
noise.
Floatlands appear between user-settable Y limits, with smooth
tapering at each limit.
Simple user-settable density adjustment.
Shadow propagation is disabled in and just below floatlands, no
shadows are cast on the world surface.
Can be reconfigured to create a solid upper world layer between
the Y limits, lakes/seas can be optionally added to this.
2022-05-21 16:17:44 +02:00
SmallJoker ac5aaa83df
Add chat_log_level setting (#9223)
Log all higher levels in LogOutputBuffer
Move StreamLogOutput::logRaw to source file like LogOutputBuffer::logRaw for compiling speed
2022-05-21 16:17:44 +02:00
rubenwardy ba458341b2
Item Entity: Add message to moveresult assertion (#9797) 2022-05-21 16:17:43 +02:00
Yaman Qalieh 2f24ef6909
Allow placing auto-rotating nodes on other nodes in on_rightclick (#9859) 2022-05-21 16:17:43 +02:00
Zughy e0550051b9
Document inf value in rollback commands (#9789) 2022-05-21 16:17:42 +02:00
Wuzzy 659fff44df
Add mapgen settings to world creation dialog (#9254) 2022-05-21 16:17:42 +02:00
Wuzzy 143f59d4ad
Add support for statbar “off state” icons (#9462)
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.

Add "off state" textures to the builtin statbars.

Co-authored-by: SmallJoker <mk939@ymail.com>
2022-05-21 16:17:41 +02:00
sfan5 e97eab644a
Enable collide_with_objects for falling entities
falling nodes intentionally still fall through players
fixes #5313
2022-05-21 16:17:41 +02:00
sfan5 789f464a4c
Rewrite falling entity to make use of collision info
fixes #4781, fixes #9293
2022-05-21 16:17:41 +02:00
sfan5 a40c1942a9
Update num_emerge_threads description 2022-05-21 16:17:40 +02:00
Wuzzy 755989d746
Change default keys for cam/minimap to C/V (#9779) 2022-05-21 16:17:40 +02:00
Loïc Blot e18e457a2b
Add MetricsBackend with prometheus counter support 2022-05-21 16:17:39 +02:00
ANAND 95ada50fdb
Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears.

Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
2022-05-21 16:17:39 +02:00
sfan5 66bd90809b
Rewrite builtin item entity to use collision info
fixes #8967
2022-05-21 16:17:38 +02:00
sfan5 93985fccf5
Expose collision information to LuaEntity on_step 2022-05-21 16:17:38 +02:00
sfan5 031321cbb8
builtin: Correctly indicate failure in /spawnentity 2022-05-21 16:17:38 +02:00
David Leal 346570ad2f
Add new command /revokeme <priv> (#9584) 2022-05-21 16:17:37 +02:00
HybridDog ddf381bffc
minetest.serialize: Reversible number serialization (#9722)
* minetest.serialize: Reversible number to string conversion

The %a format is not supported in Lua 5.1.
This commit also adds two tests for number serialization.
2022-05-21 16:17:37 +02:00
SmallJoker 3532df05f3
Add default stack size setting (#8873)
New setting "default_stack_max" to alter the default stack sizes of all items when desired.

Co-authored-by: Pascal Abresch <nep@packageloss.eu>
2022-05-21 16:17:36 +02:00
rubenwardy 3f7595d6ec
Fix delayed error message in start game tab 2022-05-21 16:17:36 +02:00
Desour 93f7ab4fa2
Allow to select en as language in settings menu (#9604)
fixes #9599
2022-05-21 16:17:36 +02:00
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