Commit Graph

1180 Commits

Author SHA1 Message Date
lhofhansl aef1804e43
Allow the ABM time budget to be configurable. 2022-05-21 16:17:56 +02:00
rubenwardy d07f7b7f09
ContentDB: Add Update All and download queuing (#9995) 2022-05-21 16:17:56 +02:00
ANAND 2c1848211c
Allow binding dig, place actions to keys; remove LMB/RMB hardcoding
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2022-05-21 16:17:55 +02:00
1F616EMO 858ae0dfdf
Change `last-login` command to show player name in output (#10263) 2022-05-21 16:17:55 +02:00
paramat 86807859e8
Mapgen Flat: Add caverns, disabled by default (#9913)
Add the caverns used in V5, V7, Valleys, Carpathian.
Disabled by default to not be force-enabled in existing worlds.
2022-05-21 16:17:55 +02:00
SmallJoker b636d018bf
Falling: Fix error caused by missing param2
Falling nodes that were spawned prior the recent falling node changes did not require param2.
Default to param2 = 0 when none is found in the node data.
2022-05-21 16:17:54 +02:00
rubenwardy a8f8a7948e
Fix incorrect view URL for games
package.id is a sanitised combination of author and basename, used to
compare remote and local content. Minetest ignores `_game` when comparing
game names, so package.id has `_game` removed. This meant that the wrong
URL was being generated for View.
2022-05-21 16:17:54 +02:00
LoneWolfHT 7abd2a9ce5
Add object crosshair, disable entity selectionboxes by default (#9523)
Adds new object crosshair base pack texture
2022-05-21 16:17:53 +02:00
sfan5 9c7339ad64
Fix ContentDB menu icons not appearing on Windows 2022-05-21 16:17:53 +02:00
NetherEran 153557e3f7
Some vector functions useful for working with rotations (#9572)
* added vector.rotate

* added vector.forward_from_rotation and vector.up_from_rotation

* added vector.forward_up_to_rotatiton

* fixed some bugs and formatting with vector functions

* shortened name of some new vector functions and added documentation

* made vector.rotate not require a unit vector as axis

* fixed crash with vector.forward_up_to_rot

* renamed new vector functions, made vector.rotate apply a rotation matrix, old vector.rotate is now called vector.rotate_around_axis

* documented vector function changes

* removed some whitespace to appease luacheck

* implemented and fixed optimization of vector.rotate_around_axis by SmallJoker

* added some unit tests for rotation vector functions

* clarified that rotation vectors are in radians and according to the left hand rule

* hopefully appeased luacheck

* renamed rotation_to_horizontal to forward_at_rotation, rotation_to_vertical to up_at_rotation

* handled cases where sin or cos are 0 in rotation vector functions

* added more comments

* clarified documentation of rotation vector functions

* added more unit tests

* changed way in which vector.rotate_around_axis is adjusted for left handed coordinate systems

* made vector.rotate_around_axis actually left handed

* unrolled matrix multiplication

* removed vector.forward_at_rotation and vector.up_at_rotation

* prettified vector.rotate_around_axis, made previous commits not break anything

* removed references to removed vector.forward_at_rotation and vector.up_at_rotation

* removed documentation of removed vector functions

* clarified documentation and fixed styling of rotation vector functions

* restyled comments minorly

* spelling fixes and some hopefully better comments

* allowed 'up' to be missing from vector.directions_to_rotation and removed requirement for unit vectors as arguments

* made vector.rotate_around_axis() right handed again for consistency

* documented previous changes

* made matrix multiplication actually multiply

* renamed vector.directions_to_rotation() to vector.dir_to_rotation()

* optimized a distance comparison

* Fixed potential false positive in unit tests.

Co-authored-by: NetherEran <nethereran@hotmail.com>
2022-05-21 16:17:53 +02:00
Paul Ouellette 81e7460b30
LuaItemStack: Add __tostring metamethod (#8785)
* LuaItemStack: Add __tostring metamethod

* Clean up LuaItemStack::checkobject
2022-05-21 16:17:52 +02:00
rubenwardy ffaa3cdd6b
Fix incorrect extension used for ContentDB thumbnails 2022-05-21 16:17:52 +02:00
rubenwardy 72b9ac6b36
Add HTTP API to main menu (#9998) 2022-05-21 16:17:51 +02:00
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