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
Desour
322c4a5b2b
Rework server stepping and dtime calculation
2023-12-25 10:07:03 +01:00
Warr1024
7e143cb33d
Manually configurable minimum protocol version ( #14054 )
...
Partially address #13483 . Server operators can set a minimum
protocol version to match the game requirements (or any other
restriction they may want), and it's applied as an additional
constraint on top of the baseline compatibility range, optional
strict_protocol_version_checking, and any kick-on-join used by
the game/mods.
2023-12-21 18:53:30 +01:00
SmallJoker
a7e5456099
Server: avoid re-use of recent ParticleSpawner and Sound IDs ( #14045 )
...
This improves the reliability when removing and re-adding handles quickly.
Looping through the entire ID range avoids collisions caused by any race condition.
2023-11-29 21:10:19 +01:00
Gregor Parzefall
33cc29bbda
Allow setting custom third person front view camera offset ( #13686 )
...
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2023-10-02 13:44:03 +02:00
Gregor Parzefall
26453df2f7
Don't crash if a Lua error occurs inside get_staticdata
2023-07-03 20:34:02 +02:00
sfan5
32ff832108
Save Lua globals after mod loading
...
These are used for the async env currently and will be needed elsewhere soon.
2023-06-23 09:05:26 +02:00
DS
edcbfa31c9
Sound refactor and improvements ( #12764 )
2023-06-16 20:15:21 +02:00
Desour
8b73743baa
Reduce number of recursively included headers
...
This should improve compilation speed.
Things changed:
* Prefer forward-declarations in headers.
* Move header-includes out of headers if possible.
* Move some functions definitions out of headers.
* Put some member variables into unique_ptrs (see Client).
2023-04-27 18:50:33 +02:00
rubenwardy
39f4d26177
Add minetest.get_player_window_information() ( #12367 )
2023-02-27 22:58:41 +00:00
Jude Melton-Houghton
7701e70dc9
Make MapEditEvent more complete
...
SetBlocksNotSent is no longer used.
2022-12-24 08:24:59 -05:00
Jude Melton-Houghton
d0a118f5b1
Add minetest.get_game_info
and allow reading game.conf
( #12989 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-11-28 07:21:43 -05:00