Commit Graph

636 Commits

Author SHA1 Message Date
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
sapier c2ddc480de
Add support for Android 2.3+
There have been plenty of ppl involved in creating this version.
I don't wanna mention names as I'm sure I'd forget someone so I
just tell where help has been done:
- The partial android versions done by various ppl
- Testing on different android devices
- reviewing code (especially the in core changes)
- testing controls
- reviewing texts

A big thank you to everyone helping this to be completed!
2022-05-21 16:11:50 +02:00
sapier 37f07818ca
Fix menu crash due to lack of favourites list 2022-05-21 16:11:50 +02:00
sapier 3fa5f247c2
Support for scalable font and gui elements Fix positioning of tabheader in order to be usable for scaling GUIs WARNING: this changes position of current tabheaders, mods have to adjust! 2022-05-21 16:11:49 +02:00
sapier 40cd31db20
Fix broken serverdescription in multiplayer tab 2022-05-21 16:11:49 +02:00
sapier 4689018071
Fix bounding rect for formspec elements label vertlabel and checkboxes 2022-05-21 16:11:48 +02:00
sapier 5b6f7286a2
Fix regression main_menu_script setting not working any longer 2022-05-21 16:11:48 +02:00
sapier d8335372ca
Fix regression dirt texture not beeing default in non cloud menu 2022-05-21 16:11:48 +02:00
sapier 5ad41abbdd
Add support for exiting formspecs by doubleclicking outside 2022-05-21 16:11:47 +02:00
Lord James d87cb5ab42
New feature: drop a item instead a stack while...
sneaking
2022-05-21 16:11:47 +02:00
sfan5 29bc03cf5c
Allow custom liquids to have drops 2022-05-21 16:11:46 +02:00
RealBadAngel 11fceda9b6
Re-add missing shaders setting. (Generate normalmaps) 2022-05-21 16:11:46 +02:00
ShadowNinja 2fafe8b464
Add success and output return values to chat commands 2022-05-21 16:11:45 +02:00
rubenwardy 68ed7cbe50
Add item eat callback 2022-05-21 16:11:45 +02:00
Diego Martínez 86071c16d0
Sort commands and privs alphabetically in '/help'.
Also make a stray variable local.
2022-05-21 16:11:44 +02:00
ShadowNinja 3164569a22
Rework dumping functions
Changes:
  * Add comments to explain the dumping code
  * Add support for dumping values of any type (as '<' <type> '>')
  * Add support for tables as keys in dump2()
  * Make dump2() return it's result (like dump()) rather than printing it
  * Simplify and optimize function serialization via serialize()
2022-05-21 16:11:44 +02:00
sapier bb671de29d
Fix a bunch of small bugs due to mainmenu cleanup Fix doubleclick not working in singleplayer Fix of by one issue on accessing raw list Fix this->self Fix copy&paste error for scroll button 2022-05-21 16:11:44 +02:00
RealBadAngel 4cd0c9843a
Item entity stacks merge on the ground.
Add TTL to item entities.
2022-05-21 16:11:43 +02:00
sapier b72cf8726e
Fix singleplayer dialogs missing game customization 2022-05-21 16:11:43 +02:00
sapier c2df20263f
Add formspec toolkit and refactor mainmenu to use it Fix crash on using cursor keys in client menu without selected server Add support for non fixed size tabviews 2022-05-21 16:11:42 +02:00
sapier 157d239550
Fix old client showing duplicated health bar on new server Fix client not showing hearts and bubbles on connecting to old server Fix server not remembering hud flags correctly 2022-05-21 16:11:42 +02:00
sapier 026083e1a8
Fix healthbar not beeing hidden on disabled damage 2022-05-21 16:11:41 +02:00
ShadowNinja 37c32c715f
Use "core" namespace internally 2022-05-21 16:11:41 +02:00
ShadowNinja 148b74312e
Organize builtin into subdirectories 2022-05-21 16:11:40 +02:00
sapier 4f1adce2b2
Fix heart + bubble bar size on different texture packs Add DPI support for statbar Move heart+bubble bar to Lua HUD Add statbar size (based upon an idea by blue42u) Add support for customizing breath and statbar 2022-05-21 16:11:40 +02:00
sapier d5afcc908e
Fix usage of deprecated functions in builtin 2022-05-21 16:11:39 +02:00
sapier 1db1cc0a68
Add proper lua api deprecated handling 2022-05-21 16:11:39 +02:00
ShadowNinja 811a1412e9
Add support for function serialization to minetest.serialize 2022-05-21 16:11:38 +02:00
ShadowNinja cc78050568
Remove dependency on marshal and many other async changes
This makes a number of changes:
  * Remove the dependency on marshal by using string.dump and loadstring.
  * Use lua_tolstring rather than having Lua functions pass string lengths to C++.
  * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs.
  * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality.
  * Don't wait for async threads to shut down.  (Is this safe?  Might result in corruption if the thread is writing to a file.)
  * Pop more unused items from the stack
  * Code style fixes
  * Other misc changes
2022-05-21 16:11:38 +02:00
ShadowNinja 87e7000acc
Revert "Add backtrace to error function"
This reverts commit 5b518ed2feff28c9bf21ad940c1b211b72d71bd1.

This caused duplicate tracebacks and tracebacks when unwanted.
It also ignored the level argument to error() and didn't pass the message (or level) to debug.traceback().
Use xpcall() or lua_pcall()'s errorhandler argument instead.
2022-05-21 16:11:38 +02:00
proller 90e3c67beb
Remove liquid_finite and weather 2022-05-21 16:11:37 +02:00
ShadowNinja 0f8b70ca47
Add checks for nil in minetest.after 2022-05-21 16:11:37 +02:00
BlockMen be5374a983
Fix crash when teleporting near unknown node 2022-05-21 16:11:36 +02:00
Nathanaël Courant d583bca3ab
Fix "ghost stacks" created when a player clicks an item on the ground: since the object is not immediately removed, any other code may still think an object is there, therefore leading to item duplication. This code therefore sets the itemstring to '' after the object is picked up to avoid such issues 2022-05-21 16:11:36 +02:00
RealBadAngel 9b967e9d60
Normal maps generation on the fly. Parallax mapping with slope information. Overriding normal maps. 2022-05-21 16:11:35 +02:00
ShadowNinja 614c5f96c3
Fix error when calling minetest.node_punch without a pointed_thing 2022-05-21 16:11:35 +02:00
sapier 742dba559f
Replace pause and message menu by formspec ones 2022-05-21 16:11:34 +02:00
ShadowNinja aea32fa3c1
Remove "Server -!- " prefix from player messages 2022-05-21 16:11:34 +02:00
ShadowNinja a04aed990e
Add the option to bind to a specific address 2022-05-21 16:11:33 +02:00
ShadowNinja 5318fb3a94
Escape texture pack names 2022-05-21 16:11:33 +02:00
sapier 2b1dff8cb7
Add minetest.kick_player(name, reason) 2022-05-21 16:11:33 +02:00
ShadowNinja 98631ce021
Fix error on mod download failure 2022-05-21 16:11:32 +02:00
ShadowNinja f24746cb6d
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks 2022-05-21 16:11:32 +02:00
ShadowNinja 3818e6c9b5
Add pointed_thing to minetest.register_on_placenode
As suggested by qwrwed.
2022-05-21 16:11:31 +02:00
PilzAdam 49d8888924
Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node 2022-05-21 16:11:31 +02:00
Dániel Varga 58339707b9
Fixed mainmenu lua errors because of changes in get_textlist_index
Fixed lua error when none of the worlds or servers selected are and connect,
delete or configure buttons used.
2022-05-21 16:11:31 +02:00
ShadowNinja 6154aa6365
Fix spelling of "attempt" 2022-05-21 16:11:30 +02:00
ShadowNinja 7e24d1ec9c
Add minetest.override_item 2022-05-21 16:11:30 +02:00
Kahrl c5acb54340
Add formspec table 2022-05-21 16:11:29 +02:00
Nathanaël Courant 56525d21d2
Fix doc and forceloading crash. 2022-05-21 16:11:29 +02:00
Nathanaël Courant 67d99a67be
Add forceloading 2022-05-21 16:11:28 +02:00
Nathanaël Courant 0d4128330e
Deepcopy pointed_thing for after_place_node, give it to on_rightclick too. 2022-05-21 16:11:28 +02:00
ShadowNinja d36ae912e7
Pass pointed_thing to after_place_node 2022-05-21 16:11:28 +02:00
ShadowNinja a9ec22e545
Add protection support to auto-rotated nodes 2022-05-21 16:11:27 +02:00
ShadowNinja 175ab58ef2
Prevent auto-rotated nodes replacing the nodes they are placed on 2022-05-21 16:11:27 +02:00
PilzAdam 2ee07fca1e
Escape error messages in error dialog 2022-05-21 16:11:26 +02:00
Perttu Ahola 7a0b6ae3da
Fix main menu error message dialog: Now multi-line messages aren't cut at half of second line 2022-05-21 16:11:26 +02:00
Ilya Zhuravlev 9e386551a8
Fix absence of images when compiled with RUN_IN_PLACE=0. 2022-05-21 16:11:26 +02:00
Nathanaël Courant a78d69d445
Revert "Fix minetest.facedir_to_dir when param2 is 5 or 7."
This reverts commit 4e5760a5416cbca6945b1b4484cbd96bea7b250c.
2022-05-21 16:11:25 +02:00
Diego Martínez d072d6424d
Add 'on_prejoinplayer' callback 2022-05-21 16:11:25 +02:00
sapier 41deb26bb3
Implement search tab and version picker 2022-05-21 16:11:24 +02:00
ShadowNinja 8c2244886f
Move script_run_callbacks to Lua 2022-05-21 16:11:24 +02:00
ShadowNinja 067f8abc4c
Only create one alias metatable 2022-05-21 16:11:23 +02:00
RealBadAngel 10cff23151
Shaders rework. 2022-05-21 16:11:23 +02:00
0gb.us 41be943528
Assume a selection box for fences
Similar to assuming a selection box for the nodebox drawtype, minetest.register_item() now assumes a selection box for the fencelike drawtype.
2022-05-21 16:11:23 +02:00
kwolekr 9ddac46bd9
Change default value of is_ground_content to true
Most modders would otherwise forget to explicitly define this, and generated nodes aliased from mods would wall-off caves
2022-05-21 16:11:22 +02:00
sapier 4bb6a41c04
Fix modstore/favourites hang by adding asynchronous lua job support 2022-05-21 16:11:22 +02:00
sapier d79c9afa5b
Split server/client port setting to avoid port number clashes in mainmenu 2022-05-21 16:11:21 +02:00
ShadowNinja 150c8bb108
Rollback fixes and get_node_actions 2022-05-21 16:11:21 +02:00
sapier 121b4af913
Temporary disable local install button due to irrlicht dialog breaking localization 2022-05-21 16:11:20 +02:00
Nathanaël Courant 142890c7d8
Fix my name (doesn't display correctly because of utf8 characters) 2022-05-21 16:11:20 +02:00
sfan5 8003c74dc1
Fix rename modpack button not working, fixes #1019 2022-05-21 16:11:20 +02:00
sfan5 0fb659387f
Prevent enabling Shaders if Direct3D is used 2022-05-21 16:11:19 +02:00
ShadowNinja a5613e43c8
Fix usage of 'minetest' where 'engine' was intended 2022-05-21 16:11:19 +02:00
BlockMen 2ec6146212
Fix modmanager screenshot path 2022-05-21 16:11:18 +02:00
kwolekr 674da5f290
Fix issue #1009 (minetest.get_connected_players() returns non-existing players) 2022-05-21 16:11:18 +02:00
PilzAdam 207a6dff9f
Replace print()s with minetest.log() in builtin 2022-05-21 16:11:18 +02:00
sapier 5238e747f4
Fix "TODO read modinfo" in modmanager to improve ui usability 2022-05-21 16:11:17 +02:00
PilzAdam 7219622b7a
Add BlockMen to core dev list 2022-05-21 16:11:17 +02:00
sapier 47e416eab2
Fix game buttons not beeing 48x48 2022-05-21 16:11:16 +02:00
sapier ac7789908a
Fix crash updating gametype without game 2022-05-21 16:11:16 +02:00
4Evergreen4 f85e27a92e
Add wrapper for minetest.rotate_and_place. 2022-05-21 16:11:15 +02:00
whatever ade4d38cdc
Don't assert scalars must be vectors. 2022-05-21 16:11:15 +02:00
Vanessa Dannenberg e3e3597d62
Fix orient_flags to be optional. 2022-05-21 16:11:15 +02:00
Vanessa Dannenberg 5f7e684d94
Add 6d facedir rotation prediction routine 2022-05-21 16:11:14 +02:00
kwolekr 8a862c2591
Add seed entry to world creation dialog 2022-05-21 16:11:14 +02:00
BlockMen 103766d511
Reworked formspecs and kahrl's hexcolor parser 2022-05-21 16:11:13 +02:00
ShadowNinja a78ef8d3a0
Add basic protection support to builtin 2022-05-21 16:11:13 +02:00
Nathanaël Courant f435c5211e
Move the sapling growing and grass adding/removing ABMs to Lua 2022-05-21 16:11:13 +02:00
ShadowNinja 083219e4e3
Add my email address to the main menu credits 2022-05-21 16:11:12 +02:00
ShadowNinja 9cad75342a
Add more checks to vector functions 2022-05-21 16:11:12 +02:00
BlockMen 0092022c14
Don't remove background of games in submenus 2022-05-21 16:11:11 +02:00
0gb.us 07e6b6e8d6
Fixed ignoring of "diggable" property of nodes. 2022-05-21 16:11:11 +02:00
Nathanaël Courant 2f36d25eeb
Add a callback: minetest.register_on_craft(itemstack, player, old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv) 2022-05-21 16:11:10 +02:00
ShadowNinja a137bfd011
Made unknown nodes stop falling nodes properly and shorten lines 2022-05-21 16:11:10 +02:00
Nathanaël Courant 9c171de1c7
Move new core devs to the "Core Developpers" section of mainmenu. 2022-05-21 16:11:10 +02:00
ShadowNinja 4f80ec59c0
Add sanity checks to vector functions 2022-05-21 16:11:09 +02:00
ShadowNinja 3a631b4cee
Remove vector metatable setting
This not only makes the vector functions faster, but also makes them more
consistent with other functions.
2022-05-21 16:11:09 +02:00
Nathanaël Courant 179ab675ee
Add tool callback 2022-05-21 16:11:08 +02:00
Nathanaël Courant 8d7e928523
Fix minetest.facedir_to_dir when param2 is 5 or 7. 2022-05-21 16:11:08 +02:00
fairiestoy 1b90a938c9
Optimized minetest.get_connected_players()
Instead of collecting all objects within a huge radius (which could be
a big value), just register each player that connects and give back the
current hold list.
2022-05-21 16:11:08 +02:00
PilzAdam 8319ca0fa4
Allow to manually specify param2 in minetest.item_place() and return success 2022-05-21 16:11:07 +02:00
Kahrl 8cfbc4cd0b
Change mainmenu texture handling + small misc changes
Texture names must now be escaped in formspec elements image[],
background[], image_button[], image_button_exit[].

Instead of special-case handling of texture loading (and unloading
which was missing) in guiFormSpecMenu.cpp, use the newly created
ISimpleTextureSource interface which is a minimal subset of
ITextureSource. There is an implementation of this interface
used by GUIEngine (MenuTextureSource).

Fix an off-by-one bug in unescape_string; it caused requests for a
texture called "\0".
2022-05-21 16:11:07 +02:00
sapier e666842219
Fix bug: texture pack not overriding default menu textures 2022-05-21 16:11:06 +02:00
PilzAdam 4b683f9296
Use engine.is_yes() in mainmenu 2022-05-21 16:11:06 +02:00
PilzAdam af38ec53d8
Use the Settings Lua interface to read world.mt 2022-05-21 16:11:05 +02:00
sfan5 e459fb8b81
Prevent ModMgr from deleting backend setting in world.mt 2022-05-21 16:11:05 +02:00
sapier af89f4a900
Add sanity check to sort function 2022-05-21 16:11:05 +02:00
sapier 019f1b3fd6
Add backtrace to error function 2022-05-21 16:11:04 +02:00
Ilya Zhuravlev 84615ffdd5
Add escaping to world list in main menu (fixes #896). 2022-05-21 16:11:04 +02:00
Kahrl ec8e09a1f9
World config dialog: Use engine determined path for game mods 2022-05-21 16:11:03 +02:00
Kahrl 2eb584e221
GUIFormSpecMenu focus fixes 2022-05-21 16:11:03 +02:00
Kahrl 73a3347a85
Fix trailing nils being dropped by deprecated minetest.env handler 2022-05-21 16:11:03 +02:00
sapier 243ff49bf2
Add translation for main menu Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp 2022-05-21 16:11:02 +02:00
Nathanaël Courant e9cadb712e
Fix modstore pagecount 2022-05-21 16:11:02 +02:00
Nathanaël Courant 41463d3871
Use get_texturepath() instead of get_gamepath()/../textures 2022-05-21 16:11:01 +02:00
PilzAdam 9529de9b53
Sort modlist alphabetically 2022-05-21 16:11:01 +02:00
PilzAdam e95f47a818
Add ability to activate mods with doubleclick (remove old_style_mod_selection) 2022-05-21 16:11:00 +02:00
Nathanaël Courant 4f2c21b25d
Fix formspec escaping, add escaping to info.txt for texture packs. 2022-05-21 16:11:00 +02:00
Kahrl 88e3c9e930
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2022-05-21 16:11:00 +02:00
Ilya Zhuravlev 4ce777f98d
Fix my name. 2022-05-21 16:10:59 +02:00
PilzAdam 65d6cb2aa3
Dont download modstore info if its isnt needed 2022-05-21 16:10:59 +02:00
Nathanaël Courant 130ebcb5e6
Simplify code of mainmenu world sort 2022-05-21 16:10:58 +02:00
BlockMen e113e3d1dd
Add support for different drowning damage and allow drowning in other nodetypes 2022-05-21 16:10:58 +02:00
PilzAdam e142c50d59
Fix worldlist in servertab being filtered by selected game 2022-05-21 16:10:58 +02:00
Nathanaël Courant 063036dfd0
Add minetest.registered_biomes 2022-05-21 16:10:57 +02:00
PilzAdam 45babc32a3
Dont show gamefilter in TP tab 2022-05-21 16:10:57 +02:00
Nathanaël Courant ab5646888b
Add texture pack selection to main menu 2022-05-21 16:10:56 +02:00
Perttu Ahola a69aed8dea
Allow mods to listen to cheat detections using minetest.register_on_cheat() 2022-05-21 16:10:56 +02:00
PilzAdam 7f3cd9bacc
Play sounds/main_menu.ogg in menu 2022-05-21 16:10:55 +02:00
proller 1b052ca0e3
Better snow fall, finite liquid transform, leveled nodes api 2022-05-21 16:10:55 +02:00
proller 68eb740730
Weather support 2022-05-21 16:10:55 +02:00
sapier f177a87516
Show portnumber for ip adresses only 2022-05-21 16:10:54 +02:00
hdastwb 05ee748813
added (optional) support for 6d facedir in dir_to_facedir and added facedir_to_dir 2022-05-21 16:10:54 +02:00
sapier 52a6e2c483
Fix enable mod/enable button not shown on entering world config dialog 2022-05-21 16:10:53 +02:00
sapier 559cda3eff
Fix bug in world creation Add old style mod selection in worldconfig dialog 2022-05-21 16:10:53 +02:00
sapier 277d85063e
Add missing header/footer for singleplayer tab 2022-05-21 16:10:52 +02:00
sapier 453cdb6d13
Remove debug output 2022-05-21 16:10:52 +02:00
sapier 4cec612448
Fix Bug in modname guessing resulting in undefined modname 2022-05-21 16:10:52 +02:00
sapier 1d24485ee9
merge mainmenu_helper.lua to misc_helpers.lua 2022-05-21 16:10:51 +02:00
sapier ed6ecbaa29
Fix background/overlay/footer/header handling Add missing file headers 2022-05-21 16:10:51 +02:00
sapier 6f906b4b81
Add playernumber to favorites list 2022-05-21 16:10:50 +02:00
sapier 625443d3da
filterlist api cleanup 2022-05-21 16:10:50 +02:00
sapier b55441026c
Add port to favorites if not 30000 Major modmgr overhaul Add missing formspec checkbox doc 2022-05-21 16:10:50 +02:00
sapier 47388da94f
Replace worldlist by generic filterlist implementation 2022-05-21 16:10:49 +02:00
sapier d0930da047
Add support for modstore screenshots Add error output on invalid mmdb entries 2022-05-21 16:10:49 +02:00
sapier beffeef6c9
Swap name/password <-> server description 2022-05-21 16:10:48 +02:00
sapier 04af68e39e
Revert "Fix serverdescription and name not beeing saved to local serverlist"
This reverts commit 7dbbbfc665e285cc9eb9d750c3a449d7da178d4f.
(was added twice)
2022-05-21 16:10:48 +02:00
sapier 9f84e7fa1b
Remove unused required by list in worldconfig 2022-05-21 16:10:47 +02:00
PilzAdam b3262b84fd
Add an option to disable object <-> object collision for Lua entities 2022-05-21 16:10:47 +02:00
sapier b4d6ffd39c
Don't show flags in local favorites 2022-05-21 16:10:47 +02:00
sapier 652fcba2a0
Fix bug server name set to address field when using up/down keys Show server description above connect button instead of in favorites list 2022-05-21 16:10:46 +02:00
sapier c7974fc6fd
Add missing server flags in public serverlist 2022-05-21 16:10:46 +02:00
sapier 14ee46e7cf
Remove lots of debug output from modmgr Fix RUN_IN_PLACE=0 mod install (now mods are saved in user folder in that case) Fix text of field element not unescaped correctly 2022-05-21 16:10:45 +02:00
sapier afba78a47f
Fix serverdescription and name not beeing saved to local serverlist 2022-05-21 16:10:45 +02:00
Kahrl cc9155334d
Add VoxelArea:position, VoxelArea:iter and VoxelArea:iterp 2022-05-21 16:10:44 +02:00
sapier 046dcff30e
Worldlist fixes Add alphabeticaly sorted worldlists Select world after creation Move worldlist handling to separate file Merge world selection of singleplayer/server tab Remove some useless code 2022-05-21 16:10:44 +02:00
sapier 0e66db8f95
Fix serverlist 2022-05-21 16:10:44 +02:00
proller 47d555563a
Public server checkbox 2022-05-21 16:10:43 +02:00
kwolekr 97c03436f6
Revert "Fix serverlist not beeing escaped correctly"
This reverts commit 39d03148e5d98ef5f9a31b131a79ff2bbd71a877.
2022-05-21 16:10:43 +02:00
sapier 6a3d716bf7
Fix header not beeing shown except on singleplayer tab 2022-05-21 16:10:42 +02:00
sapier 32cf551e9d
Fix serverlist not beeing escaped correctly Always use address for server Fix first (empty) element beeing selected after deleting last world 2022-05-21 16:10:42 +02:00
sapier c82ccfcf2d
fix crash on play/start with empty world list make enter button work in create world dialog 2022-05-21 16:10:41 +02:00
PilzAdam 65702a45bb
Make sure that coordinates passed to /teleport are actual numbers 2022-05-21 16:10:41 +02:00
ShadowNinja 0d12f10568
Move math.hypot() to misc_helpers.lua and fix zero-division error 2022-05-21 16:10:41 +02:00
kwolekr 356c2b5def
Lua main menu: Fix world creation dialog 2022-05-21 16:10:40 +02:00
PilzAdam 08d7219736
Set numeric locale in Lua in main menu 2022-05-21 16:10:40 +02:00
sapier 8b89cf28fa
Fix many formspec menu bugs 2022-05-21 16:10:39 +02:00
sfan5 7ecd865028
Fix parseColor, change remaining colorkeys to new format, fix Contributor list 2022-05-21 16:10:39 +02:00
ShadowNinja c95567ac55
Handle 0 vectors in vector.normalize() 2022-05-21 16:10:39 +02:00
ShadowNinja b8071a74f1
Add vector helpers 2022-05-21 16:10:38 +02:00
sfan5 5d8ea4dc07
Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor 2022-05-21 16:10:38 +02:00
kwolekr 5864868a03
Lua main menu: Fix crash on init lua error, mapgen dropdown index, and new worlds not saving index 2022-05-21 16:10:37 +02:00
sapier eb5a9131cc
Replace C++ mainmenu by formspec powered one 2022-05-21 16:10:37 +02:00
PilzAdam 3cb4de50b5
Remove unnecessary debug output in node_dig() 2022-05-21 16:10:36 +02:00
Lord James e4f0c69a53
Infinite tools in creative mode 2022-05-21 16:10:36 +02:00
kwolekr c982b18d74
Add Lua VoxelArea methods: contains, containsp, containsi 2022-05-21 16:10:36 +02:00
kwolekr 1c7092eee6
Add voxelarea.lua helper to builtin 2022-05-21 16:10:35 +02:00
kwolekr 1a2db073d5
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API 2022-05-21 16:10:35 +02:00
Diego Martínez 93b7336c01
Restore old output format of dump() 2022-05-21 16:10:34 +02:00
khonkhortisan 99f845852a
Fix crash in dump() when index is a table 2022-05-21 16:10:34 +02:00
sapier 85ae766dcb
Move scriptapi to separate folder (by sapier)
On the lua side, notably minetest.env:<function>(<args>) should now
be replaced by minetest.<function>(<args>).
The old way is and will stay supported for a long time.

Also:
Update and clean up lua_api.txt (by celeron55)
Move EnvRef to lua and remove add_rat and add_firefly (by kahrl)
Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
2022-05-21 16:10:34 +02:00
PilzAdam db27434100
Fix minetest.features 2022-05-21 16:10:33 +02:00
sfan5 eba3824cb4
Add a Way of checking for specific Feature with Lua Adds minetest.get_feature() and minetest.has_feature() 2022-05-21 16:10:33 +02:00
ShadowNinja 98bf5d2d81
Add option to not prepend "Server -!- " to messages sent with minetest.chat_send_player() 2022-05-21 16:10:32 +02:00
RealBadAngel c1cbc596e4
Use system wide LuaJIT if aviable. 2022-05-21 16:10:32 +02:00
PilzAdam dda94512be
Only enqueue falling nodes if they really want to fall 2022-05-21 16:10:31 +02:00
khonkhortisan 93ce8191b1
unkn own block -> unkn own node 2022-05-21 16:10:31 +02:00
ShadowNinja 308902af73
Add private messaging with /msg 2022-05-21 16:10:31 +02:00
Diego Martínez 6dfa35ea48
Use the nodebox as selection box if it's not set manually 2022-05-21 16:10:30 +02:00
PilzAdam de38f0be50
Add a delay to nodeupdate() 2022-05-21 16:10:30 +02:00
PilzAdam b3bbf4a068
Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt return it 2022-05-21 16:10:29 +02:00
0gb.us 11f86d1def
Don't grant priveleges to non-existent players.
When accidentally misspelling a name, privileges are sometimes granted to non-existent players, leaving them with the extra privileges, but without the default privileges, if they ever join the server. This corrects that by disallowing /grant from working with invalid players. For completeness, it does the same for /revoke.
2022-05-21 16:10:29 +02:00
0gb.us 1c5c5dde8e
Fix node replacement in not-quite-loaded chunks
When first entering an area, sometimes placing nodes replaces other nodes that are not buildable_to. This seems to be caused by the fact that nodes in unloaded map blocks are treated as ignore, a node that is buildable_to. This fixes that, by using get_node_or_nil() instead of the previously-used get_node(), then checking to see if the nodes were actually loaded before replacing.
2022-05-21 16:10:29 +02:00
Splizard 8bddbb6381
Allow falling nodes to pass through solid "buildable_to" nodes. 2022-05-21 16:10:28 +02:00
PilzAdam b573ff1e73
Prevent passing nil to unpack() in minetest.after 2022-05-21 16:10:28 +02:00
Jeija c9a7b492b5
Allow minetest.after to take a variable number of arguments 2022-05-21 16:10:27 +02:00
kwolekr cf03131c13
Allow any character in formspec strings with escape char 2022-05-21 16:10:27 +02:00
PilzAdam dc253e3127
Fix pickup of dropped items when the player only takes a part of them 2022-05-21 16:10:26 +02:00
PilzAdam 21830e51a8
Drop nodes as items when dugged and no room in inventory and dont remove dropped items when no room in inventory 2022-05-21 16:10:26 +02:00
PilzAdam 5b6085743e
Dont drop tools on rightclick 2022-05-21 16:10:26 +02:00