Commit Graph

636 Commits

Author SHA1 Message Date
Diego Martínez 60a5b2ac4d
Initialize facedir and wallmounted tables only once.
This makes the functions a bit faster since they don't
have to recreate the tables every invocation, and makes
the code more readable.

Also, document `wallmounted_to_dir`.

The function was implemented but not documented in `lua_api.txt`.
2022-05-21 16:13:18 +02:00
Kahrl c4db9d23ff
Log /clearobjects mode 2022-05-21 16:13:17 +02:00
Kahrl ed493305e4
Add '/clearobjects quick' 2022-05-21 16:13:17 +02:00
RealBadAngel d8c9c7deac
Filmic HDR tone mapping 2022-05-21 16:13:17 +02:00
RealBadAngel e942240abf
Cleanup selection mesh code, add shaders for halo and selection boxes 2022-05-21 16:13:16 +02:00
Diego Martínez 6dc6ea419e
builtin: Fix `print` crashing on nil "holes".
The engine implementation of `print` packs the varargs into a
table and passes the table directly to `table.concat`. If you
pass any value not supported by `table.concat` (particularly
`nil`), the server crashes. This is unexpected behavior, as
`print` is supposed to be able to work with anything.

This patch changes the implementation so it first converts
all arguments using `tostring`, which fixes the issue and
makes the custom `print` function compatible with the stock
Lua behavior.
2022-05-21 16:13:16 +02:00
RealBadAngel 204f43d9c9
Use meshes to display inventory items 2022-05-21 16:13:15 +02:00
Splizard 35bae38ca3
Add admin command which says who the administator is for the server. 2022-05-21 16:13:15 +02:00
Duane Robertson 3a9235fc1c
Mgvalleys: use standard caves
Replace simple caves with V5 caves, adding unpredictable water and lava
settings and massive caves based on subterrain. Remove fast terrain mode
and accompanying settings. Remove superfluous temperature/humidity
settings. Remove lava/water height setting. Fix errors in humidity
handling and remove humidity_break_point setting. Move cave noises to
generateCaves. Fix minor formatting/naming issues and use
MYMAX/MYMIN/myround.
2022-05-21 16:13:14 +02:00
Auke Kok 3cef28e731
New timer design.
I could honestly not make much sense of the timer implementation
that was here. Instead I've implemented the type of timer algorithm
that I've used before, and tested it instead.

The concept is extremely simple: all timers are put in an ordered
list. We check every server tick if any of the timers have
elapsed, and execute the function associated with this timer.

We know that many timers by themselves cause new timers to be
added to this list, so we iterate *backwards* over the timer
list. This means that new timers being added while timers are
being executed, can never be executed in the same function pass,
as they are always appended to the table *after* the end of
the table, which we will never reach in the current pass over
all the table elements.

We switch time keeping to minetest.get_us_time(). dtime is
likely unreliable and we have our own high-res timer that we
can fix if it is indeed broken. This removes the need to do
any sort of time keeping.
2022-05-21 16:13:14 +02:00
Diego Martínez d10a5cfedb
Fix world config menu ignoring `name` in `mod.conf`. 2022-05-21 16:13:13 +02:00
RealBadAngel 580ea1201e
Show infotext with description for item entities 2022-05-21 16:13:13 +02:00
Rogier e577c35a3c
Fix error message in settings tab overlapping 'save' button
The save button is now fully functional again when an error message
is shown.

After an invalid value is entered in the settings tab dialog, the GUI
label for the error message that is shown was partly overlapping the
'save' button, so that the top half of the button could not be clicked
on.
2022-05-21 16:13:12 +02:00
Duane Robertson e64db54315
Add Valleys mapgen. 2022-05-21 16:13:12 +02:00
paramat bffee113cf
Mgflat: Set blank default spflags. Unhide 2022-05-21 16:13:11 +02:00
Rogier 6a3484c135
Fix the checking of flags values in the settings tab
Changes:
- Accept setting an empty flags-type value in the settings tab
  if the variable specification permits it
- Don't accept substrings of flag values
  E.g. with values: 'one,two,three', 'hree', 'w', etc. used to
  be accepted. Not any more
- Don't accept flags with random pattern-matching special characters
  E.g. with values: 'one,two,three', 'on.', '(o)[n]e*' etc. used
  to be accepted. Not any more.
2022-05-21 16:13:11 +02:00
Rogier 4e30d1bb0a
Improve parsing of setting types from settingtypes.txt for settings tab
- Accept numbers prefixed with '+'
- Accept multiple spaces instead of just a single one where spaces are expected
- Allow flags to have an empty default value
2022-05-21 16:13:10 +02:00
Dalai Felinto 2461f6d985
New 3D Mode: Pageflip
The pageflip mode requires a stereo quadbuffer, and a modern graphic
card. Patch tested with NVidia 3D Vision.

The mini-map is not drawn, but that's what is done for topbottom and
sidebyside modes as well.

Also most of the time the user would prefer the HUD to be off. That's
for the user to decide though, and toggle it manually.

Finally, the interocular distance (aka eye separation) is twice as much
as the "3d_paralax_strength" settings. I find this a strange design
decision. I didn't want to chance this though, since it's how the other
3d modes interpret this settings.
2022-05-21 16:13:10 +02:00
paramat b36217f608
Liquids: Flow into and destroy 'floodable' nodes
Add new node property 'floodable', default false
Define "air" as floodable = true in C++ and lua
2022-05-21 16:13:10 +02:00
Jean-Patrick Guerrero eadd017507
Alphabetical sorting of texture packs in menu (fixes #3487) 2022-05-21 16:13:09 +02:00
HybridDog 93de351e5f
Fix missing localization for obj 2022-05-21 16:13:09 +02:00
paramat 681434bc5d
Mgfractal: Add 3D and 4D fractals
3D Mandelbrot/Mandelbar
3D Christmas Tree
3D Mandelbulb
3D Cosine Mandelbulb
4D Mandelbulb
Plus corresponding julia set for each
Add credits for formulas
Rename parameter 'formula' to 'fractal'
Speed optimisations
2022-05-21 16:13:08 +02:00
est31 111be664a8
Fix some setting documentation
* Horizontal and vertical are used wrongly. Use height and width because
	horizontal/vertical describes different things. Thanks @kilbith for pointing out.
* Update minetest.conf.example and settings_translation_file.cpp
* Correct maximum/minimum copy paste mistake.
2022-05-21 16:13:08 +02:00
Alex Ford 8341ca836e
Add on_secondary_use when right clicking an item in the air 2022-05-21 16:13:07 +02:00
Robert Zenz e7bc7c6857
Simplify regex used in check_modname_prefix and other improvements.
Simplified the regex used, added comments and changed the error message
to contain the correct mod name.
2022-05-21 16:13:07 +02:00
paramat 90edce95c3
Mgfractal: Move julia set selection into formula parameter
Improve default parameters
Update and improve documentation
Unhide mapgen, but is still unstable
2022-05-21 16:13:06 +02:00
paramat 93356f96df
Mapgen: Add global 'decorations' flag
Flag is set by default in MapgenParams
The global 'trees' flag remains but is now
undocumented and unset by default in MapgenParams
Add mgv6_spflag 'trees' set by default in
defaultsettings.cpp to affect new worlds only
This is automatically backwards
compatible for existing worlds
2022-05-21 16:13:06 +02:00
Rui aedf15826c
Log static_spawn error only once 2022-05-21 16:13:05 +02:00
paramat 78d2dee49e
Mgfractal: Revert unnecessary duplication of parameters 2022-05-21 16:13:05 +02:00
paramat dfce6ebd28
Mgfractal: Create a choice of 4 mandelbrot formulas 2022-05-21 16:13:04 +02:00
paramat 86b75dbdfa
Mgv6: Move global mapgen flag 'flat' into mgv6 spflags
Add mgv6 spflag 'flat'
Global flag is kept for backwards compatibility but is now undocumented
2022-05-21 16:13:04 +02:00
Robert Zenz 4662b21222
Add the player name to dropped items
The player name is now added in the field "dropped_by" on the created
entity.
2022-05-21 16:13:04 +02:00
paramat d35da6cac9
Mapgen: Add flat mapgen in hidden form 2022-05-21 16:13:03 +02:00
est31 bf7ed56ddd
Settings tab: add v3f type
Add the v3f type, currently is just a nice placeholder for string.
Currently undocumented, on wish of @PilzAdam, to support future changes.
2022-05-21 16:13:03 +02:00
kwolekr f9e25279e1
Improve LuaVoxelManip documentation 2022-05-21 16:13:02 +02:00
paramat 5bc192a744
Conf.example, settingtypes: Improve mgfractal documentation 2022-05-21 16:13:02 +02:00
est31 d70090cc51
Add server side ncurses terminal
This adds a chat console the server owner can use for administration
or to talk with players.
It runs in its own thread, which makes the user interface immune to
the server's lag, behaving just like a client, except timeout.
As it uses the same console code as the f10 console, things like nick
completion or a scroll buffer basically come for free.
The terminal itself is written in a general way so that adding a
client version later on is just about implementing an interface.

Fatal errors are printed after the console exists and the ncurses
terminal buffer gets cleaned up with endwin(), so that the error still
remains visible.

The server owner can chose their username their entered text will
have in chat and where players can send PMs to.
Once the username is secured with a password to prevent anybody to
take over the server, the owner can execute admin tasks over the
console.

This change includes a contribution by @kahrl who has improved ncurses
library detection.
2022-05-21 16:13:01 +02:00
paramat 3d92807282
Settingtypes: Correct documentation for mgfractal
Use type 'string' for v3fs and add comments
2022-05-21 16:13:01 +02:00
paramat 272541a8bb
Mgfractal: Add documentation to conf.example and settingtypes 2022-05-21 16:13:00 +02:00
kwolekr 0b80c8c114
Add callback parameter for core.emerge_area() 2022-05-21 16:13:00 +02:00
Rui914 9bca5b37c4
minetest. to core. 2022-05-21 16:13:00 +02:00
paramat e532e69c98
findSpawnPos: Add setting for max height above water level
Increase default from 6 to 16 to help with mgv7 and mgfractal
Large-scale or alternative mapgens can result in a lowland spawn point not
being found, causing a spawn at (0, 0, 0) possibly buried underground
The max height is now settable to allow correct player spawn
in any mapgen or when using custom noise parameters
2022-05-21 16:12:59 +02:00
PilzAdam 7e69f86aa5
Fix parameter passing to gettext call 2022-05-21 16:12:59 +02:00
BlockMen 1f21ad4da2
Check if hitter has inventory when punching item
Fixes #3280
2022-05-21 16:12:58 +02:00
Rui c0297ebcbe
Credits: Remove my name 2022-05-21 16:12:58 +02:00
PilzAdam 2f0e5a075d
Escape " in generated settings_translation_file.cpp 2022-05-21 16:12:58 +02:00
PilzAdam 4067cf06c3
Fix setting comments 2022-05-21 16:12:57 +02:00
PilzAdam b7a3bf1e30
Don't allow games or mods to add secure. settings 2022-05-21 16:12:57 +02:00
est31 bd43e63b83
Better gettext support for protocol version mismatch messages
Previously, xgettext failed to resolve the dynamic call.
Thanks to @JakubVanek for pointing this out.
2022-05-21 16:12:56 +02:00
PilzAdam c391792fca
Improve Lua settings menu
* Add key settings to setting table and ignore them later
  This way they are added to the auto-generated minetest.conf.example
* Add flags type
* Add input validation for int, float and flags
* Break in-game graphic settings into multiple sections
* Parse settingtpes.txt in mods and games
* Improve description for a lot of settings
* Fix typos and wording in settingtypes.txt
* Convert language setting to an enum
2022-05-21 16:12:56 +02:00
Robert Zenz 9ad5562efb
Add more ways to pass data to check_player_privs
The callback can now be invoked with either the player object or name as
the first parameter, and with either a table or a list of strings, like
this:

    minetest.check_player_privs(player_name, { shout = true, fly = true })
    minetest.check_player_privs(player_name, "shout", "fly")
    minetest.check_player_privs(player, { shout = true, fly = true })
    minetest.check_player_privs(player, "shout", "fly")
2022-05-21 16:12:55 +02:00
est31 b29666b49a
Display sane output for empty descriptions
According to its man page, the function gettext(3)
"may return a nonempty string" when msgid is "".

This commit fixes a bug where the comment ""
for some settings caused gettext to return a
"nonempty string", in this case header info of the
po file.
2022-05-21 16:12:55 +02:00
PilzAdam 86c317e796
New settings tab contain all possible settings
Settings are automatically parsed from builtin/settingtypes.txt
The edit dialog automatically adjust based on the type of setting
2022-05-21 16:12:55 +02:00
ShadowNinja 8fc9b3b9cb
Refactor logging
- Add warning log level
- Change debug_log_level setting to enumeration string
- Map Irrlicht log events to MT log events
- Encapsulate log_* functions and global variables into a class, Logger
- Unify dstream with standard logging mechanism
- Unify core.debug() with standard core.log() script API
2022-05-21 16:12:54 +02:00
Rui f3c5e76d9a
Localize digprop_err function 2022-05-21 16:12:54 +02:00
Jean-Patrick Guerrero e55a5a1c24
Add viewing range GUI setting 2022-05-21 16:12:53 +02:00
Fernando Carmona Varo 095cfc2c70
Added minetest.wallmounted_to_dir 2022-05-21 16:12:53 +02:00
est31 e1b5a8789e
Some map border related fixes
1. Check for entity addition success in spawn_item implementation
2. Check for success in item_drop callback, so that the player
doesn't lose the item if they are outside bounds and try to drop it.
3. When existing player joins game, check that their position is inside
map bounds. If not, set their position to the return value of findSpawnPos().
4. Make findSpawnPos() respect the border

2 fixes a lua crash if a player drops an item outside map bounds.
3 fixes an assertion crash if a player leaves when being outside map bounds,
and then rejoins.
2022-05-21 16:12:52 +02:00
kwolekr 37a94ffa9d
Add /emergeblocks command and core.emerge_area() Lua API 2022-05-21 16:12:52 +02:00
est31 7feed28ef0
Replace "self program" with "this program" in fstk boilerplates
... and remove trailing whitespace.
2022-05-21 16:12:51 +02:00
Rui914 39001fe1f5
Minor tweaks handle_settings_buttons 2022-05-21 16:12:51 +02:00
Rui914 ffffe22f15
Change my email 2022-05-21 16:12:50 +02:00
Rui 55ccf6bce8
Small fixes of minetest.has_feature 2022-05-21 16:12:50 +02:00
Rui 4c9302c8a2
Minor tweaks __builtin:falling_node 2022-05-21 16:12:49 +02:00
est31 4a83767d37
Credits tab: fix accidental merger of two contributors
Fixes #3125
2022-05-21 16:12:49 +02:00
Rui914 5ef81a0e15
Use gettext to "None" of texture pack list 2022-05-21 16:12:49 +02:00
kwolekr 8cda9256e1
Remove some emails from credits tab 2022-05-21 16:12:48 +02:00
kwolekr f6393ae381
Update credits tab 2022-05-21 16:12:48 +02:00
est31 1da33c4586
Client: disable mmdb modstore
The service isn't online, and on the long term, mmdb will likekly be
replaced with other services from the modding community.
2022-05-21 16:12:47 +02:00
est31 e21528442c
Don't do formspec escaping twice for loading description 2022-05-21 16:12:47 +02:00
kwolekr 3120d9e8e2
SAPI: Track last executed mod and include in error messages 2022-05-21 16:12:46 +02:00
Jean-Patrick Guerrero 777a203e5f
Fix FSAA dropdown option reset after changing another dropdown option 2022-05-21 16:12:46 +02:00
Jean-Patrick Guerrero 10557bce20
Remove drivers dropdown in the settings tab 2022-05-21 16:12:45 +02:00
Nathanaël Courant a0a5a74b4e
Update my name 2022-05-21 16:12:45 +02:00
est31 fbc95ae055
Optional reconnect functionality
Enable the server to request the client to reconnect.

This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
2022-05-21 16:12:44 +02:00
sfan5 7a1854f798
Fix crash in mainmenu when loaded subgame does not have a "menu" directory 2022-05-21 16:12:44 +02:00
sfan5 22c20ffd4d
Allow random menu images for subgames 2022-05-21 16:12:43 +02:00
Mark Schreiber 4e8e0fdff1
Add antialiasing UI setting
The Irrlicht engine supports antialiasing, and Minetest already supports
saving an antialiasing setting in its configuration file.  However,
Minetest lacked UI elements to set this setting, and previously the only
way to enable the feature was by hand-editing the configuration file.

Add a drop-down menu that can enable antialiasing.
2022-05-21 16:12:43 +02:00
Marcin e235a42346
Add ability to specify coordinates for /spawnentity 2022-05-21 16:12:42 +02:00
ExcaliburZero b7d559dafe
Change texture pack description file name
Change the name for texture pack description files from "info.txt" to "description.txt" in order to keep the naming consistent between description files for both mods and texture packs.

Also add backwards compatibility for texture packs that use "info.txt", and note in the log that "info.txt" is depreciated.
2022-05-21 16:12:42 +02:00
Jean-Patrick Guerrero f00186f204
Fix remnant bugs on mainmenu
- Stop attempting to start a world when no world's created/selected in server tab
- Better world's indexes handling between subgames lists
2022-05-21 16:12:41 +02:00
RealBadAngel 23e4c70d72
Add new leaves style - simple (glasslike drawtype) 2022-05-21 16:12:41 +02:00
Jean-Patrick Guerrero 5707f97a05
Fix attempt to start a world when no world is selected/created 2022-05-21 16:12:40 +02:00
Sokomine afdd384f40
Set server_announce to world.mt and respect modes when changing subgame 2022-05-21 16:12:40 +02:00
Sokomine 7345adbbb5
Fix world.mt not written when selecting mode 2022-05-21 16:12:39 +02:00
est31 06cedfb052
Fix single click world select 2022-05-21 16:12:39 +02:00
Jean-Patrick Guerrero 2c8a161000
Fix bugs in mainmenu 2022-05-21 16:12:38 +02:00
rubenwardy f17181e748
Add Lua errors to error dialog 2022-05-21 16:12:38 +02:00
est31 d375d875a1
Update credits tab 2022-05-21 16:12:37 +02:00
Wuzzy 4917a66e19
Don't highlight entries in credits 2022-05-21 16:12:37 +02:00
Craig Davison 406b5bf810
Remove reference to deprecated privilege 2022-05-21 16:12:36 +02:00
TeTpaAka 77c2bf43c3
Add minetest.register_on_player_hpchange 2022-05-21 16:12:36 +02:00
HybridDog c1853e2893
More reliable serverlist behaviour
-> remember the previously loaded serverlist, and use if new one failed
-> show a "loading" serverlist
2022-05-21 16:12:35 +02:00
HybridDog 80e032e167
Decrease minetest.after globalstep lag
* abort if theres no active timer
* only reduce the timer.time of all timers when its necessary
* move updating timers_to_add into a seperate function
2022-05-21 16:12:35 +02:00
est31 e648a40cec
Nicer time setting logging
Now logs

ACTION[ServerThread]: player sets time to 6:03

instead of

ACTION[ServerThread]: player sets time to 6:3
2022-05-21 16:12:35 +02:00
est31 fea38f3780
Fix wrong replace from previous commit 2022-05-21 16:12:34 +02:00
est31 1c971d206e
Localize inside whole misc_helpers.lua 2022-05-21 16:12:34 +02:00
ShadowNinja 6afcc26bac
Add core.get_dir_list 2022-05-21 16:12:33 +02:00
LeMagnesium de7cd53f41
Added hour:minute format to time command
* The time command now accepts parameters in the form <hour>:<minute>,
    and if invoked with no parameters returns the current time in said format.
2022-05-21 16:12:33 +02:00
Brandon d564d4d2b8
Add minetest.register_on_punchplayer 2022-05-21 16:12:32 +02:00
tenplus1 e172295337
Don't crash if an item gets dropped into unloaded space
Items dropped into unloaded map space will crash game so here's a fix...
2022-05-21 16:12:32 +02:00
est31 e50a93d25a
Item entity merging refactor
Don't ident too much, and add a comment.
2022-05-21 16:12:32 +02:00
Nathanaël Courant 2f8a628334
Add code to support raillike group names 2022-05-21 16:12:31 +02:00
Tomas Brod c1f7c3a378
Fix minetest.clear_* creating new LOCAL table instead of clearing the existing one.
On calling clear_redistered_biomes the registered_biomes table is cleared
by creating a new empty table, but the pointer is not updated to point to
the new one. So after calling more register_biome, the registered_biome
table always contains 0 items, which is an error. Instead, the table is
cleared by removing all its items so the pointer (minetest.registered_*)
remains valid.
2022-05-21 16:12:31 +02:00
srfqi 75f9ff161a
Remove fly mode in simple main menu
As the fly mode option is avaiable in-game, this is not used anymore.
2022-05-21 16:12:30 +02:00
ShadowNinja 6e61c7d92a
Add minetest.global_exists() 2022-05-21 16:12:30 +02:00
est31 c2dcb45bf8
Add reason to kicked log message and use present tense 2022-05-21 16:12:29 +02:00
Zeno- efeec55ab8
Let main menu scale (non-Android)
This fixes main menu not fitting for 800x600 (and lower resolutions) on PC builds
2022-05-21 16:12:29 +02:00
Zeno- ca83a3ab72
Update credits 2022-05-21 16:12:29 +02:00
Loïc Blot afa56e9c91
Remove duplicate code since 8ca08a850ff2494652aa0ac2daa3d00f03aa4e7a 2022-05-21 16:12:28 +02:00
fz72 3f6d3e066a
Save creative_mode and enable_damage setting for each world in world.mt
Create Parameters on world initialisation and set settings of old worlds
2022-05-21 16:12:28 +02:00
est31 bc5ae25d1a
Android: Fix auto-entry of server address and port in mainmenu
Fixes #2497.
2022-05-21 16:12:27 +02:00
SmallJoker 6d524e3940
Radius parameter for /deleteblocks here 2022-05-21 16:12:27 +02:00
est31 944e67af37
Add /setpassword and /clearpassword logging 2022-05-21 16:12:27 +02:00
ShadowNinja 53f255dbc9
Fix serialization of floating point numbers 2022-05-21 16:12:26 +02:00
Nathanaël Courant b7db67f168
Add modname convention checking
Fixes #2037
2022-05-21 16:12:26 +02:00
est31 5a662882bf
Server: announce MIN/MAX protocol version supported to serverlist. Client: check serverlist
Client now informs about incompatible servers from the list, this permits to prevent the protocol movements.
Server announces its supported protocol versions to master server
2022-05-21 16:12:25 +02:00
Perttu Ahola 352b5c8a72
Use fixed size for builtin menus on non-android platforms 2022-05-21 16:12:25 +02:00
Loïc Blot b6c7b01e45
Fix unused (and so, broken) enable_rollback_recording. This option must be reloaded at server loop but loaded when server starts, for data consistency (not a hot load variable) ok @ShadowNinja 2022-05-21 16:12:24 +02:00
fz72 de358b6b55
Fix map_seed not changed when creating a new world after login to another 2022-05-21 16:12:24 +02:00
rubenwardy aabe33eea2
Fix minetest.item_eat's replace_with_item, fixes #2292 2022-05-21 16:12:24 +02:00
Loïc Blot 223b4c09ca
Fix issue #2278, Connection sent before address data loading 2022-05-21 16:12:23 +02:00
est31 1052201620
Fix crash on passing false as value in table to table.copy(t)
Fixes #2293.
2022-05-21 16:12:23 +02:00
ngosang 4bd260afbd
Minor fixes in translations 2022-05-21 16:12:22 +02:00
Rui 04904a1ab8
Fix store.lua bug: default screenshot 2022-05-21 16:12:22 +02:00
Rui 914d344a97
Fix tab_mods.lua: default screenshot patch
https://forum.minetest.net/viewtopic.php?f=6&t=11201
Fixed this bug.
2022-05-21 16:12:22 +02:00
ngosang 10ab4608f8
Fix 'Download complete' dialog in the mods store 2022-05-21 16:12:21 +02:00
kwolekr 201f783d75
Hud: Modify Y-positioning of health/breath starbars to prevent overlapping with Hotbar 2022-05-21 16:12:21 +02:00
rubenwardy bd42a0c92e
Change assignment to global in a function to warning 2022-05-21 16:12:20 +02:00
kwolekr a4bc5e525e
Prevent null concatenation when /deleteblocks is provided an incorrect format 2022-05-21 16:12:20 +02:00
ShadowNinja 32911a2064
Fix imprecise serialization of large numbers 2022-05-21 16:12:19 +02:00
Zeno- 4ff1574c23
Allow filter and mipmap drop down menues to be translated 2022-05-21 16:12:19 +02:00
kwolekr 02fb28a2a9
Reorganize supported video driver query mechanisms 2022-05-21 16:12:19 +02:00
kwolekr a48bf4ad0b
Revert "Fix style on settings tab"
This reverts commit 7b17b9059e30cef384ecca37feec87cdcdfd39b8.
2022-05-21 16:12:18 +02:00
Jean-Patrick Guerrero 75b18a7b37
Fix style on settings tab 2022-05-21 16:12:18 +02:00
kwolekr 5d9c758b13
Simplify deleteblocks chat command argument parsing
Add optional core.pos_to_string decimal place rounding
Move core.string_to_pos to builtin/common/misc_helpers.lua for consistency
2022-05-21 16:12:17 +02:00
kwolekr b18ccd0056
Add ability to delete MapBlocks from map
Also add a Lua API and chatcommand for this
2022-05-21 16:12:17 +02:00
Diego Martínez d6acaced3f
Fix typo in `serialize.lua`. 2022-05-21 16:12:17 +02:00
Jean-Patrick Guerrero b04cd996b9
Add missing return value for filter/mipmap dropdown in mainmenu 2022-05-21 16:12:16 +02:00
Jean-Patrick Guerrero b7c595f5ea
Small tweaking (alignement - client tab) 2022-05-21 16:12:16 +02:00
Jean-Patrick Guerrero 618dd99293
Reorganizing client and server tabs 2022-05-21 16:12:15 +02:00
kwolekr f18dcb6ee8
builtin: Unify register wrapper functions and wrap clear_registered_* functions too 2022-05-21 16:12:15 +02:00
paramat 7e7ae1390b
Remove builtin_biome.lua from builtin and add simple biome minimal 2022-05-21 16:12:14 +02:00
sapier ec52d6dc7a
Remove automatic consistent formspec size <-> font size (now has to be done manually) Set builtin formspecs to autoscale in order to get consistent formspec look and feel Uncouple label positioning from font size (May break some formspecs but is required to allow manual font adjustment) 2022-05-21 16:12:14 +02:00
ShadowNinja 43ee012597
Add registered_ores and registered_decorations 2022-05-21 16:12:14 +02:00
Diego Martínez c2450727a1
Fix off-by-one error in `string:split` implementation. 2022-05-21 16:12:13 +02:00
sapier 4bf651e1b8
Fix forgotten favourite list image update of simple menu 2022-05-21 16:12:13 +02:00
sapier b35dfcaefa
Re-add lost way to debug simple menu on PC 2022-05-21 16:12:12 +02:00
kwolekr e12164adb2
Add core.get_mapgen_names() to Main Menu API (and use it)
Also rewrite mapgen registration for static initialization
2022-05-21 16:12:12 +02:00
kwolekr c06d3f19e4
Expose mapgen parameters on scripting init
Add minetest.get_mapgen_params()
Deprecate minetest.register_on_mapgen_init()
2022-05-21 16:12:12 +02:00
Kahrl 5ee1b776ba
Ignore downloaded public serverlist if public_serverlist is false
Fixes #1807: When the server list finishes downloading, the local server
list resets in certain conditions
2022-05-21 16:12:11 +02:00
Diego Martínez a88e2f410b
Faster string.split implementation. 2022-05-21 16:12:11 +02:00
fz72 5d11429074
MainMenu: Save 'hide gamemods' and 'hide modpack contents' checkbox state (fixes #1960) 2022-05-21 16:12:10 +02:00
kwolekr 06d67db3cc
Temporarily set default biome in builtin
This should probably be removed when minetest_game has proper biomes.
If I hear "the whole map is just stone!" again after this, I am going to detonate.
2022-05-21 16:12:10 +02:00
Kahrl a5032d9c3b
Remove vertlabels from main menu and relayout a bit 2022-05-21 16:12:09 +02:00
Kahrl 96b6aa6e4b
Display serverlist flags as icons 2022-05-21 16:12:09 +02:00
Zeno- 64bc547162
Revert "Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly"
This reverts commit 9878e8de4fdf232ebb77b396766c339786c01218.

See: https://github.com/minetest/minetest/issues/1939 and IRC log for discussion
2022-05-21 16:12:09 +02:00
paramat 1adec0e3c5
Fix undeclared globals in functions and shorten lines in misc_helpers.lua. 2022-05-21 16:12:08 +02:00
SmallJoker e98bb3edcc
Ignore .name directories and files
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:08 +02:00
Kahrl 9806ede6a3
Always escape user provided data in mainmenu fields 2022-05-21 16:12:07 +02:00
SmallJoker 2dba3fd295
Add Lua helper functions vector.apply(v) math.sign(x, tolerance) 2022-05-21 16:12:07 +02:00
Calinou 493521898f
Make dropped items larger and rotate faster
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:07 +02:00
SmallJoker 7fa045415f
Add minetest.copy_table(table) To get rid off the "table references"
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:06 +02:00
Craig Davison 8ed639715a
Fix some undeclared global variables 2022-05-21 16:12:06 +02:00
Kodexky 0a6a8ab23b
Fix Android main menu crash, and user data directory check.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:05 +02:00
dvere 694e0d0781
Adjust the values of dirs1 and dirs2 so that rotate_and_place orients textures correctly
According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
2022-05-21 16:12:05 +02:00
ShadowNinja 4bc849b059
Make duplicate warning checks file and line specific 2022-05-21 16:12:04 +02:00
sapier 7b55a9a5cd
Fix console spaming by debug function on mod checking for global variable to exist. 2022-05-21 16:12:04 +02:00
ShadowNinja f57278fe5a
Update credits menu 2022-05-21 16:12:04 +02:00
ShadowNinja 041d9e5417
Simplify loading of Android version of menu 2022-05-21 16:12:03 +02:00
ShadowNinja d92c59d47d
Fix leaking global in texture pack menu 2022-05-21 16:12:03 +02:00
ShadowNinja adf3454250
Add strict module
Also fix leaking globals found by it.
2022-05-21 16:12:02 +02:00
ShadowNinja 5805e555cf
Tweak core.serialize
This adds proper support for nested tables and improves performance a bit.
2022-05-21 16:12:02 +02:00
Wouters Dorian d5b1f42ef1
Improved VoxelArea variable locality, thus performance
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2022-05-21 16:12:02 +02:00
Wuzzy 7999b22a29
Add tooltips to main menu subgames button bar 2022-05-21 16:12:01 +02:00
paramat 00a13badea
Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs 2022-05-21 16:12:01 +02:00
ShadowNinja d9875f12f2
Fix dump() indentation with non-tab indents 2022-05-21 16:12:00 +02:00
Ryan Newell c8a29cc3b7
Add last_login field to auth.txt
Also shortens some related code and adds more parameters to string.split.
2022-05-21 16:12:00 +02:00
rubenwardy 18473c4ed7
Add notice when only minimal is installed 2022-05-21 16:11:59 +02:00
Kahrl 5d3435cbfa
Change topleft text when switching subgames, fixes #1728 2022-05-21 16:11:59 +02:00
LeMagnesium 2a038ee038
Add a better error message when trying to teleport another player without bring privileges 2022-05-21 16:11:59 +02:00
BlockMen 450048b470
Add optional framed glasslike drawtype 2022-05-21 16:11:58 +02:00
SmallJoker 6fb306753d
Use round if falling node is misplaced
Fixes: http://i.imgur.com/arAWw1i.png (middle-right)
2022-05-21 16:11:58 +02:00
ShadowNinja f32731396b
Make dump's output prettier
Changes:
  * Indentation with tabs by default.
  * Array keys dumped without "[i] = " prefix.
  * String keys that are valid identifiers aren't enclosed in '[""]'.
  * Basic support for multiple references (as specified in the comment).
2022-05-21 16:11:57 +02:00
SmallJoker f445d7a0f3
Fix wrong video_driver setting when changing in mainmenu
Fixes issue with direct3d(8|9)
2022-05-21 16:11:57 +02:00
sapier 266fe0cdf7
Fix retval of entity.get_staticdata beeing lost while profiling is enabled 2022-05-21 16:11:57 +02:00
sapier bc4f8c8979
Add video driver selection to settings menu (based uppon idea from webdesigner97) 2022-05-21 16:11:56 +02:00
Casimir adeb452c4a
Remove buildable_to nodes without dropping item when replaced by a falling node 2022-05-21 16:11:56 +02:00
sapier c98969fa39
Fix caption of config mods button (simple menu) 2022-05-21 16:11:55 +02:00
sapier b92b8a51ce
Mod profiling support
Config settings:
profiling = true/false (gather statistics)
detailed_profiling = true/false (break mod times to callbacks)

Chat commands:
save_mod_profile saves current statistics in debug.txt and shows on console (on default loglevel)
2022-05-21 16:11:55 +02:00
BlockMen 2d346ed082
Fix mainmenu game initialisation 2022-05-21 16:11:54 +02:00
ShadowNinja 3637581db5
Formspec escape fixed seen in world creation menu 2022-05-21 16:11:54 +02:00
sfan5 b0be73b638
Rework texture generating code, add texture grouping via ( ... ) 2022-05-21 16:11:54 +02:00
ShadowNinja 21f38e1fcb
Remove vector assertions
These were initially added to get tracebacks for invalid vector errors, but it
didn't work and tracebacks have since been properly fixed in the core.
2022-05-21 16:11:53 +02:00
Zefram e5c4318f4e
Fix indexing error in timer processing 2022-05-21 16:11:53 +02:00
sapier dd0e0e019f
Add srollbar formspec element 2022-05-21 16:11:52 +02:00
Nathanaël Courant 79490bfcdc
Fix crash reported here: https://forum.minetest.net/viewtopic.php?f=6&t=9726 2022-05-21 16:11:52 +02:00
proller 1dd3ac8929
Remove proller from credits 2022-05-21 16:11:51 +02:00
proller 3250c781d2
Remove indev mapgen 2022-05-21 16:11:51 +02:00
proller 6b0f33e73a
Remove math mapgen 2022-05-21 16:11:51 +02:00