Commit Graph

565 Commits

Author SHA1 Message Date
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
Ilya Zhuravlev 577381e132
Set numeric locale for Lua 2022-05-21 16:10:25 +02:00
PilzAdam b611857ef5
Fix minetest.item_place_node() and minetest.item_drop() to always return an ItemStack 2022-05-21 16:10:25 +02:00
RealBadAngel eb7274214f
Fix to on_rightclick not able to change wielded_item 2022-05-21 16:10:24 +02:00
PilzAdam 049b8638c1
Dont call on_rightclick() if sneak is pressed 2022-05-21 16:10:24 +02:00
PilzAdam 279833455c
Fix spread of items in falling code 2022-05-21 16:10:24 +02:00
PilzAdam 42e67c79c1
Add on_rightclick(pos, node, clicker) callback for nodes 2022-05-21 16:10:23 +02:00
PilzAdam f264cf9833
Add ability to change the itemstack in placenode callbacks 2022-05-21 16:10:23 +02:00
jordan4ibanez 3fe947a986
Fix item entity's collision with nodeboxes 2022-05-21 16:10:22 +02:00
PilzAdam f8946b1dc0
Only fly through walls in noclip mode wich requires the noclip privilege 2022-05-21 16:10:22 +02:00
Ilya Zhuravlev f834e7cbad
Fix minetest.get_node_drops(). It should always return list of item names, not ItemStack(s). 2022-05-21 16:10:21 +02:00
PilzAdam ee0d38b5a6
Only check attachment for nodes with group attached_node 2022-05-21 16:10:21 +02:00
PilzAdam fd6ec68aab
Add the group attached_node Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable. 2022-05-21 16:10:21 +02:00
DannyDark 0fabe42737
Log /grant and /revoke command usage 2022-05-21 16:10:20 +02:00
Matthew I f171cb855f
Add shutdown hook interface to Lua API
Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.

Document that minetest.register_on_shutdown() callbacks may not be run

If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
2022-05-21 16:10:20 +02:00
Perttu Ahola 2d07416f38
Revert "Use wielditem drawtype for all nodes in item_entity"
This reverts commit ffad18e42442fed10c312adc989fc62b74e05896.
2022-05-21 16:10:19 +02:00
PilzAdam 6417609dec
Use wielditem drawtype for all nodes in item_entity 2022-05-21 16:10:19 +02:00
Anthony a0f937099e
Fix server crash on /clearpassword
According to #253, using `/clearpassword` without an argument causes the server to crash from an assertion failure. I've resubmitted matttpt's patch as a pull request to aid in merging.
2022-05-21 16:10:19 +02:00
PilzAdam b646e953b6
Make air and ignore drop nothing 2022-05-21 16:07:53 +02:00
PilzAdam ff098bc4bb
Fix a bug in falling code where entities get stuck 2022-05-21 16:07:53 +02:00
PilzAdam 4742943383
Remove a useless comment 2022-05-21 16:07:52 +02:00
PilzAdam 0f873a3beb
Move falling to builtin 2022-05-21 16:07:52 +02:00
Perttu Ahola 7d6ff32d8c
Statically store always_collect field of __builtin:item 2022-05-21 16:07:51 +02:00
Perttu Ahola 38506bfbe6
Add overridable function for handling dropped items from nodes 2022-05-21 16:07:51 +02:00
Perttu Ahola fb96b0f99e
Fix github issue #213: Dropping unknown items crashes the game
The items will now just disappear when dropped.
2022-05-21 16:07:50 +02:00
Matthew I a70919257c
Move chat commands to Lua and remove servercommand.{cpp,h}
Commands moved:
 /me
 /status
 /time
 /shutdown
 /ban
 /clearobjects
2022-05-21 16:07:50 +02:00
Matthew I 3b4219b79f
Allow digging of unknown nodes
This allows the removal of nodes with unknown types.
get_item_callback() (C++) would fail if a node has an unknown type.  Now it
will try using the callback from minetest.nodedef_default in this case.
Also, minetest.node_dig() (Lua) was altered to always allow digging when
the node definition is empty (i.e. unknown node).
2022-05-21 16:07:50 +02:00
Perttu Ahola 02416dc628
Make the rollback system VERY FUCKING GOD DAMN POWERFUL 2022-05-21 16:07:49 +02:00
Perttu Ahola ebe1842d0b
Don't track liquids for rollback because of too much log 2022-05-21 16:07:49 +02:00
Perttu Ahola 5fbf87d54d
Experimental-ish rollback functionality 2022-05-21 16:07:48 +02:00
Perttu Ahola 2df90c2bf0
Deprecate minetest.add_to_creative_inventory and use group not_in_creative_inventory instead 2022-05-21 16:07:48 +02:00
Perttu Ahola e6ec4258db
Remove special handling of creative mode 2022-05-21 16:07:47 +02:00
Perttu Ahola a87451a0fe
Detached inventory callbacks and reworked node metadata callbacks 2022-05-21 16:07:47 +02:00
Perttu Ahola 47a9ab6fb0
builtin/item.lua: callbacks with copies of positions and nodes rather than recycle the same ones, which callbacks can modify 2022-05-21 16:07:46 +02:00
Perttu Ahola eb9b1ffc15
Add oldnode parameter to minetest.register_on_placenode callback 2022-05-21 16:07:46 +02:00
Perttu Ahola ea97707ef2
Fix building on top of (pointable && buildable_to) nodes 2022-05-21 16:07:45 +02:00
Perttu Ahola 66a549d9ea
Move /give, /giveme, /spawnentity and /pulverize to builtin/chatcommands.lua 2022-05-21 16:07:44 +02:00
Perttu Ahola dbaef1b2c6
minetest.register_on_player_receive_fields() 2022-05-21 16:07:43 +02:00
Matthew I 9a002ec0b7
Add "/mods" command to list mods to client 2022-05-21 16:07:43 +02:00
Perttu Ahola db3d37aaa8
Actually fix facedir-rotated nodes placed using minetest.env:place_node() 2022-05-21 16:07:42 +02:00
Perttu Ahola 05b928da0a
Check whether node is known before reading definition in __builtin:item:on_step() 2022-05-21 16:07:42 +02:00
Calinou 64a2c71b95
Message cleanups (consistency) and prevent /me when not allowed to shout 2022-05-21 16:07:41 +02:00
darkrose af6f80ba63
Handle nil placer as it might occur when using minetest.env:place_node. (Uberi) 2022-05-21 16:07:41 +02:00
Perttu Ahola 299ce58169
Fix /setpassword and /clearpassword 2022-05-21 16:07:41 +02:00
Perttu Ahola a8b475d195
Remove tiles and special_tiles from node definition prototype because otherwise the old names can't be used 2022-05-21 16:07:40 +02:00
Perttu Ahola 7f37a08eba
Update field names to non-deprecated ones in node definition prototype 2022-05-21 16:07:40 +02:00
Perttu Ahola 15213d8768
Node placement client-side prediction 2022-05-21 16:07:39 +02:00
Perttu Ahola 70b13374d6
Don't deprecate minetest.register_on_placenode and minetest.register_on_dignode 2022-05-21 16:07:39 +02:00
Perttu Ahola 361a4d575c
Add minetest.serialize() and minetest.deserialize() 2022-05-21 16:07:38 +02:00
Perttu Ahola 3519373773
place_node, dig_node and punch_node; an in-game tester tool; remove old code 2022-05-21 16:07:38 +02:00
darkrose 28d4194f24
Add can_dig callback 2022-05-21 16:07:38 +02:00
Perttu Ahola 7b4cdba449
Add ObjRef:is_player() and modify ObjRef:get_player_name() to always return a string to aid better inter-object compatibility of code that assumes objects to be players 2022-05-21 16:07:37 +02:00
Perttu Ahola 157b198e0f
Implement locked chest; add after_place_node and after_dig_node node callbacks 2022-05-21 16:07:37 +02:00
Perttu Ahola c8727f8c5a
on_metadata_inventory_{move,offer,take} 2022-05-21 16:07:36 +02:00
Perttu Ahola 1656cbdaa2
Random node metadata things 2022-05-21 16:07:36 +02:00
Perttu Ahola 1bd4c6b208
Attempt to begin to implement chests and furnace in Lua (with problems) 2022-05-21 16:07:35 +02:00
Perttu Ahola 235ac5dae5
Take out the "Privileges of foo are hidden from you." response of /privs 2022-05-21 16:07:34 +02:00
Perttu Ahola e50d7926d6
Fix executing register_chatcommand-defined commands even in the middle of a chat line 2022-05-21 16:07:33 +02:00
Perttu Ahola e7654568ed
basic_privs to allow granting/revoking interact_extra too 2022-05-21 16:07:33 +02:00
Perttu Ahola 2f0ed0382e
Support static_spawnpoint setting 2022-05-21 16:07:32 +02:00
Perttu Ahola 596cd078dd
Allow redefining minetest.item_place and the like 2022-05-21 16:07:32 +02:00
Perttu Ahola 3f3c06761a
Add basic_privs privilege 2022-05-21 16:07:32 +02:00
Perttu Ahola 3a248a56d3
Improve doc/lua_api.txt and add minetest.get_item_group(name, group) 2022-05-21 16:07:31 +02:00
Perttu Ahola 5c484429fe
Fix unable to join server first time with a password 2022-05-21 16:07:31 +02:00
Perttu Ahola ed35ccceb4
minetest.get_node_group(name, group) 2022-05-21 16:07:30 +02:00
Perttu Ahola 7d9d0bc397
Fix super-small size of regular item entities 2022-05-21 16:07:30 +02:00
Perttu Ahola 8e7ebf59d9
Fix dropped nodeitem visuals 2022-05-21 16:07:29 +02:00
Perttu Ahola 3b5d2c97d5
Implement dropped items as LuaEntities; leave the old ones as is for compatibility 2022-05-21 16:07:29 +02:00
Perttu Ahola e0acbf54dd
Remplement and improve /setting in Lua, now called /set 2022-05-21 16:07:29 +02:00
Perttu Ahola aefc412901
Don't allow /granting unknown privileges 2022-05-21 16:07:28 +02:00
Perttu Ahola 397bd5fc83
Split builtin.lua to multiple files 2022-05-21 16:07:28 +02:00
Perttu Ahola 6cd6c4c224
granting and revoking of all privileges at once 2022-05-21 16:07:27 +02:00