1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 09:55:22 +02:00
Commit Graph

970 Commits

Author SHA1 Message Date
sfan5
c8dc9c2b8d Increase safety checks around ObjectRefs 2024-10-12 22:37:17 +02:00
sfan5
41091a147c Handle VOXELFLAG_NO_DATA when in VManip get_data() 2024-10-12 22:37:17 +02:00
sfan5
6d5103900f Some refactoring and fixes to VoxelArea and VoxelManip
In particular this validates the edges of VoxelArea and fixes
all the nonsense tests uncovered by it.
2024-10-12 22:37:17 +02:00
sfan5
d2b4c27f21 Implement minetest.ipc_poll() 2024-10-11 12:00:59 +02:00
sfan5
72801d0233 Implement minetest.ipc_cas() 2024-10-11 12:00:59 +02:00
sfan5
f1a436619f Add generic IPC mechanism between Lua envs 2024-10-11 12:00:59 +02:00
Lars Mueller
06907aa99b Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
paradust7
3a7c8279bf Split log.h to speed up compilation (#15258) 2024-10-09 16:24:44 +02:00
grorp
6ac4447134 Make bloom parameters server-controlled (#15231) 2024-10-09 15:08:03 +02:00
rubenwardy
78aab8c95d ContentDB redesign: Add package dialog
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de>
2024-10-05 18:40:26 +01:00
sfence
a19d0033bc Add forgotten lua_pop 2024-10-04 10:42:37 +02:00
SmallJoker
3797ca52c4 Network: offload often changed constants to source file (#15207)
* Network: offload often changed constants to source file

This prevents unnecessary recompiling when using incremental builds.
There is also no need to have separate max proto version variables;
as they're subject to the handshake between client and server. The
code is also expected to support the same version (or higher).

Co-authored-by: sfan5 <sfan5@live.de>
2024-10-02 11:01:30 +02:00
grorp
22ef4c8be1 Expose analog joystick input to the Lua API (#14348) 2024-10-01 17:21:42 +02:00
sfan5
700fbc803d Minor improvements to metadata handling 2024-09-27 21:35:27 +02:00
sfan5
0220d0d492 Encapsulate envlock 2024-09-26 17:31:49 +02:00
grorp
526a2f7b8c Dehardcode the death formspec (#15155)
Co-authored-by: Paul Ouellette <oue.paul18@gmail.com>
2024-09-24 22:37:44 +02:00
Elias Åström
f65fe80e81 Add minetest.bulk_swap_node (#15043)
Co-authored-by: sfan5 <sfan5@live.de>
2024-09-24 22:25:34 +02:00
GefullteTaubenbrust2
d8f1daac25 Visual Effects Vol. 1 (#14610)
This PR adds a variety of effects to enhance the visual experience.

    "soft" clouds look
    Tinted shadows
    Crude water reflections (sky and sun) and waves
    Translucent foliage
    Node specular highlights
    Adjusted fog color (more saturated where the fog is lighter)
    Minor changes to volumetric lighting (crudely simulates the effect of depth)

Co-authored-by: sfan5 <sfan5@live.de>
2024-09-24 11:14:27 -07:00
Erich Schubert
4ac86db8e3 Simplify getGameTime function usage (#15187) 2024-09-20 15:05:51 +02:00
sfan5
7ae51382c8 Refactor ABM/LBM related code 2024-09-20 15:05:26 +02:00
Gregor Parzefall
7bab390413 Add time_to_day_night_ratio to the Lua API 2024-09-14 12:13:11 +02:00
Gregor Parzefall
f9c0354af1 Add colorspec_to_table to the Lua API 2024-09-14 12:13:11 +02:00
1F616EMO~nya
38b4505ad7 Allow requesting reconnect when mods kick player (#14971) 2024-09-12 23:42:46 +02:00
SmallJoker
0c4f03d9a5 Reduce include count in headers 2024-09-02 16:09:32 +02:00
sfan5
b8b99d5cf1 Use std::string_view in logging code 2024-09-02 16:09:14 +02:00
Lars Müller
21ed680b10 Make getting bone overrides return the "same" euler angles (#15007) 2024-08-26 21:22:38 +02:00
Gregor Parzefall
ab7af5d15a Fix trailing whitespace from #14179 2024-08-21 20:30:58 +02:00
grorp
66b3db3601 Fix mods folder being read twice with RUN_IN_PLACE=1 (#15024) 2024-08-21 20:25:58 +02:00
sfence
f2c66b9ceb Add possibility to easier override HP and breath engine logic by Lua (#14179)
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-08-21 20:24:43 +02:00
Lars Müller
9ccd9d341f Revert empty form name deprecation warnings 2024-08-20 11:49:41 +02:00
Daniel Hajjar
ec115ffe2a Make SecureRandom non-failable 2024-08-20 11:49:15 +02:00
cx384
03e600a721 Fix whitespaces 2024-08-17 21:02:54 +02:00
j-r
1fb49e9ca7 Add shared mods path to get_modpaths
...because the documentation implies it should be.
2024-08-17 19:48:40 +02:00
Lars Mueller
d3ca269c79 Add minetest.is_valid_player_name utility 2024-08-16 22:13:16 +02:00
Lars Mueller
6874c358ea Allow managing object observers
-----

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2024-08-16 22:13:16 +02:00
Lars Mueller
cc8e7a569e Switch player names to std::string 2024-08-16 22:13:16 +02:00
1F616EMO~nya
98e51a0159 Clamp hotbar selection to slots that exist (#14869) 2024-08-12 15:35:13 +02:00
sfan5
85e717fcd1 Rework object attachment handling to fix bugs (#14825) 2024-08-12 15:32:18 +02:00
SmallJoker
e236ad8348 Lua API: fix OOB array access in find_nodes_near (#14948) 2024-08-11 20:21:12 +02:00
Lars Müller
8ed55b3aff Help modders deal with object invalidation (#14769)
* Skip invalid objects in raycasts
* Add `ObjectRef:is_valid` method
* Add object inside radius / area iterators which skip invalid objects
* Update docs to clarify object invalidation and how to deal with it

---------

Co-authored-by: sfan5 <sfan5@live.de>
2024-07-01 20:50:38 +02:00
1F616EMO~nya
321b217feb Log node/ore name when detecting deprecated fields (#14794) 2024-07-01 17:26:15 +02:00
sfan5
b7e886a740 Rename sha256 header
fixes #14710
2024-06-10 18:49:43 +02:00
Desour
cdbbac5b6d Move sha256.c to lib/
Precompiled headers don't work if we're not a pure C++ project.
2024-05-27 17:12:39 +02:00
sfan5
39fd9b93c3 Introduce proper error handling for file streams 2024-05-14 18:33:08 +02:00
Lars Mueller
70bddcf318 Fix wrong name for bone override interpolation field 2024-05-04 02:09:35 +02:00
Lars Müller
2efd0996e6 Document empty string as form name (#14601) 2024-04-30 13:50:31 +02:00
sfan5
ac4f13e78f Add minetest.get_gen_notify to mapgen env (#14568) 2024-04-30 13:50:18 +02:00
grorp
2bdd0a6bdb Add physics overrides for walk speed and Fast Mode (#14475)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
2024-04-30 13:50:01 +02:00
sfence
72cb4e9bea Allow nil puncher in object:punch (#14319) 2024-04-28 17:55:04 +02:00
OgelGames
05d5dc4cec Fix InvRef bugs and add unit tests (#14591) 2024-04-28 00:13:44 +02:00