1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 00:45:23 +01:00
Commit Graph

382 Commits

Author SHA1 Message Date
SmallJoker
98fb381910 Break include chains and tidy (part 2) 2025-11-06 19:31:13 +01:00
SmallJoker
329e210326 Break include chains and tidy (#16640)
Co-authored-by: cx384 <cx384@proton.me>
2025-11-02 21:33:10 +01:00
Lars Müller
5f5ea13251 Network: Batch individual particle packets (#16458)
also bumps proto ver
2025-09-22 18:46:34 +02:00
Desour
20f8eb9a6c Make proper use of override in server.h
Fixes warnings introduced by 08b7870.
Also removes unused virutal from getEmergeManager().
2025-09-22 00:40:30 +02:00
lhofhansl
08b7870c79 Monoblocks: optimize blocks that contain a single type of node (#16293)
Reduces memory usage on the server, especially with many user and/or large viewing distances.
Currently disabled on the client due to known data races on a block's data.
2025-09-21 13:19:30 -07:00
sfan5
f714ac0611 Add exclude_player to particle spawners 2025-09-10 20:23:55 +02:00
sfan5
5672b93007 Separate ephemeral from client caching in core.dynamic_add_media() 2025-09-06 11:44:52 +02:00
sfan5
0b66465f33 Adjust Server::dynamicAddMedia() and related parts a bit 2025-09-06 11:44:52 +02:00
sfan5
3f0f7f4285 Show supported backends in --help output (#16441) 2025-08-25 21:36:25 +02:00
JosiahWI
0bb87eb1ff Avoid signal-unsafe operations in POSIX signal handler (#16160) 2025-06-01 15:24:32 +02:00
sfan5
79e0d834fd Rework user limit and checks around join process 2025-05-30 13:02:24 +02:00
sfan5
afb15978d9 Clean up and compress some pre-join packets (#15881) 2025-03-11 20:00:07 +01:00
sfan5
ba62808fe8 Basic camera control API (#15796) 2025-02-19 18:45:45 +01:00
cx384
e9826f7819 Move EnumString to separate file and add enum_to_string (#15714) 2025-01-26 19:17:14 +01:00
sfan5
d0d7c11fe1 Stop ServerThread immediately on errors 2025-01-12 14:49:25 +01:00
SmallJoker
d1dd044455 Reorder client initialization (#15554)
Previously, ServerEnv created a player instance before they're fully initialized.
This commit moves all initialization steps and callbacks into TOSERVER_CLIENT_READY
^ which includes StageTwoClientInit for player loading or creation
2024-12-24 15:24:56 +01:00
SmallJoker
c175046d30 Network: Fix serialization version checks (#15477)
This fixes some incorrect assumptions that the read and write version ranges are identical - whereas they're in fact not.
2024-11-27 18:39:57 +01:00
sfence
d849d51c2d Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
grorp
a450301686 Fix server steps shorter than dedicated_server_step since #13370 (#15330)
Co-authored-by: Desour <ds.desour@proton.me>
Co-authored-by: sfan5 <sfan5@live.de>
2024-10-28 15:57:22 +01:00
Zemtzov7
1b2d24791a Separate anticheat settings (#15040) 2024-10-11 12:01:22 +02:00
sfan5
d2b4c27f21 Implement minetest.ipc_poll() 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
sfan5
c1ea49940b Add questionable workaround for env lock contention 2024-09-26 17:31:49 +02:00
sfan5
5f308deb50 Switch env lock to fair mutex implementation 2024-09-26 17:31:49 +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
1F616EMO~nya
38b4505ad7 Allow requesting reconnect when mods kick player (#14971) 2024-09-12 23:42:46 +02:00
sfan5
1380bf9b88 Fix ordering issue with new server peers 2024-08-31 20:47:38 +02:00
sfan5
7968ab6928 Move network protocol implementation behind an interface 2024-08-21 21:40:58 +02:00
SmallJoker
26deb26f17 Sounds: Partial revert of #14436 and #14341 (#14889)
This reverts functional changes of:
 * commit bf52d1e6 (#14436)
 * commit 63a98538 (#14341)
2024-07-30 21:25:50 +02:00
rubenwardy
6c4a110679 Add world-independent storage directory for mods (#12315)
Fixes #4821
2024-03-24 17:18:58 +00:00
sfan5
bc4ab8b99e General code refactoring/improvements in server, treegen and connection 2024-03-20 16:37:32 +01:00
sfan5
178943b4b7 Improve ServerEnvironment::getRemovedActiveObjects() in many ways 2024-03-20 16:37:32 +01:00
SmallJoker
61a5733692 Unittest: Add inventory callback tests 2024-03-16 20:14:05 +01:00
Lars Müller
bf52d1e624 Fix attached sounds stopping if objects are removed serverside (#14436)
Restores backwards compatibility for death sounds or other sounds that are not supposed to be "cut off" abruptly.

---------

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-03-06 20:36:02 +01:00
sfan5
c524c52baa Fix some common SAO methods to not generate useless update packets 2024-03-06 18:03:57 +01:00
sfan5
5d8a22066c Change how max_lag is calculated and reported (#14378)
-Change how max_lag is calculated and reported

- Cap singleplayer step at 60Hz

- Clarify dedicated_server_step
2024-02-26 20:46:57 +01:00
sfence
63a9853811 Remove attached sounds when the active object is removed (#14341) 2024-02-25 22:10:39 +00:00
sfan5
6ca214fefc Introduce std::string_view into wider use (#14368) 2024-02-17 15:35:33 +01:00
sfan5
2b97fead9e Fix some potential iterator invalidation issues 2024-02-16 12:34:40 +01:00
sfan5
3cac17d23e Lua on each mapgen thread (#13092) 2024-02-13 22:47:30 +01:00
sfan5
d4b107e2e8 Enable dynamic_add_media to take the file data instead of a path 2024-02-13 22:44:10 +01:00
sfan5
c90ebad46b Allow specifying name for dynamic media files 2024-02-13 22:44:10 +01:00
sfan5
93381014a0 Bypass media transfer in single player 2024-02-04 21:23:05 +01:00
SmallJoker
e7dbd325d2 RemotePlayer: make peer ID always reflect the validity of PlayerSAO (#14317)
Upon disconnect, RemotePlayer still had a peer ID assigned even though
the PlayerSAO object was maked as gone (for removal). This commit makes
that the following always holds true:

	(!sao || sao->isGone()) === (peer_id == PEER_ID_INEXISTENT)
2024-02-02 22:13:24 +01:00
sfan5
89f3502b56 Move Server ban check to different point 2024-01-27 10:33:32 +01:00
sfan5
5dbc1d4c08 Move some files to src/server/ 2024-01-27 10:33:32 +01:00
sfan5
6df0de565f Check media requests on the server more carefully 2024-01-23 22:34:36 +01:00
sfence
d0753dddb1 Method add_pos for object/player (#14126) 2024-01-01 22:48:56 +01:00