Commit Graph

318 Commits

Author SHA1 Message Date
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