SmallJoker
283ef62ab0
Limit formspec fields to 640K ( #13380 )
...
Fixes an issue where long inputs could cause issues when dealing with formspecs.
The expected data is usually below 1 KiB, however that's not a technical limit.
2023-04-09 19:15:04 +12:00
Deve
245220985b
Use SDL threads ( #122 )
2023-02-26 15:22:42 +01:00
luk3yx
f2ca6a6ca5
Drop support for connecting to MT 0.4 servers
2023-01-25 06:34:27 +02:00
luk3yx
df9e57bf05
Add setting to disable texture packs
2022-11-12 10:20:32 +13:00
Vincent Robinson
0bfc98fe26
Backport (II): "FormSpec: 9-slice images, animated_images, and fgimg_middle ( #12453 )"
...
* FormSpec: 9-slice images and animated_images
* Add fgimg_middle; clean up code
* Address issues, add tests
* Fix stupid error; bump formspec version
* Re-add image[] elements without a size
2022-07-03 21:31:56 +03:00
sfan5
0effd2e7a8
Clean up some auth packet handling related code
2022-05-08 17:57:02 +12:00
sfan5
33e2be6bd2
Fix password changing getting stuck if wrong password is entered once
2022-05-08 17:56:57 +12:00
sfan5
686a119e0f
Apply disallow_empty_password to password changes too
2022-05-08 17:56:52 +12:00
sfan5
d4b2acdecf
Fix race condition in registration leading to duplicate create_auth calls
2022-05-08 17:56:47 +12:00
Maksim
98f2fc92df
Minor fixes and changes
2022-04-10 13:20:59 +02:00
luk3yx
f8f32cc628
Make protocol version <37 compatibility a setting
2022-04-08 18:58:07 +12:00
MoNTE48
26a5aed0c4
Mobile: minor fixes
2022-01-27 00:35:15 +01:00
sfan5
991cceaf16
Remove broken timeout behaviour
...
Code that relies on `resend_count` was added in 7ea4a03 and 247a1eb, but never worked.
This was fixed in #11607 which caused the problem to surface.
Hence undo the first commit entirely and change the logic of the second.
2021-12-04 23:47:06 +01:00
sfan5
b7f2ba0da2
Shave off buffer copies in networking code ( #11607 )
2021-12-04 23:47:06 +01:00
MoNTE48
d6b01ab8ef
Revert "Prevent interacting with items out of the hotbar ( #10359 )"
2021-11-16 01:09:50 +02:00
luk3yx
9bd686216a
Make it compile
2021-07-25 12:06:24 +02:00
luk3yx
1aabc2ca14
Merge tag '5.4.1' into main
...
5.4.1
2021-06-08 10:37:38 +12:00
savilli
ae1d82c325
Fix hud_change and hud_remove after hud_add ( #10997 )
2021-04-09 22:05:22 +02:00
Lars Müller
847860fc5c
Block & report player self-interaction ( #11137 )
2021-04-05 16:01:27 +02:00
SmallJoker
77e936445f
Protect dropping from far node inventories
...
Also changes if/if to switch/case
2021-04-05 16:01:21 +02:00
SmallJoker
41beb74ef7
Protect per-player detached inventory actions
2021-04-05 16:01:15 +02:00
SmallJoker
7832b6843e
Server-side authority for attached players ( #10952 )
...
The server must have authority about attachments. This commit ignores any player movement packets as long they're attached.
2021-02-15 20:41:19 +01:00
MoNTE48
2aa0400bd2
Backport MultiCraft Engine changes
2021-02-14 09:58:28 +01:00
sfan5
674d67f312
Encode high codepoints as surrogates to safely transport wchar_t over network
...
fixes #7643
2021-02-02 20:46:08 +01:00
sfan5
c834d2ab25
Drop wide/narrow conversion functions
...
The only valid usecase for these is interfacing with OS APIs
that want a locale/OS-specific multibyte encoding.
But they weren't used for that anywhere, instead UTF-8 is pretty
much assumed when it comes to that.
Since these are only a potential source of bugs and do not fulfil
their purpose at all, drop them entirely.
2021-02-02 20:46:08 +01:00
SmallJoker
7ebd5da9cd
Server GotBlocks(): Lock clients to avoid multithreading issues
2021-02-02 19:10:35 +01:00
sfan5
112a6adb10
Cache client IP in RemoteClient so it can always be retrieved ( #10887 )
...
specifically: after the peer has already disappeared
2021-01-31 20:36:47 +01:00
rubenwardy
4c76239818
Remove dead code ( #10845 )
2021-01-22 15:09:26 +00:00
luk3yx
7b37f2c1d8
Re-add protocol v25-33 support for servers.
2021-01-19 13:24:17 +01:00
sfan5
74762470b2
Fix some minor code issues all over the place
2020-12-24 13:44:54 +01:00
DS
6f8a1c99d5
Documentation for highest formspec_version[] and changelog ( #10592 )
2020-12-18 19:38:07 +01:00
sfan5
ad58ece180
serverpackethandler: Minor log message fixes
...
closes #10434
2020-11-12 21:08:26 +01:00
rubenwardy
7589cbe086
Fix object interaction distance not being checked ( #10547 )
2020-11-09 11:55:15 +01:00
red-001
0abb3e89fa
Block attempts to connect to the client ( #10589 )
...
A Minetest peer initiates a connection by sending a packet with an invalid peer_id, for whatever reason the code for doing this ran on both the client and the server meaning you could connect to a client if you knew what the address:port tuple it was listening on.
2020-11-02 22:21:03 +01:00
SmallJoker
f46509d5e2
Remove unused functions reported by cppcheck ( #10463 )
...
Run unused functions reported by cppcheck
This change removes a few (but not all) unused functions.
Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-05 09:07:33 +02:00
Pierre-Yves Rollo
81c66d6efb
Minimap as HUD element with API control
...
Features:
* Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes()
* New HUD elements for displaying minimap with custom size and placing
* New minimap mode for displaying a texture instead of the map
2020-10-04 15:24:34 +02:00
SmallJoker
947466ab28
(se)SerializeString: Include max length in the name
...
This commit clarifies the maximal length of the serialized strings.
It will avoid accidental use of serializeString() when a larger string can be expected.
Removes unused Wide String serialization functions
2020-10-01 09:52:59 +02:00
SmallJoker
0d128ab344
Inventory: Protect Craft and Drop actions ( #10353 )
...
Change dangerous pointer to unique_ptr for automated deletion.
2020-09-07 21:19:38 +02:00
Lejo
6dcc9e6331
Prevent interacting with items out of the hotbar ( #10359 )
2020-09-04 20:50:33 +02:00
luk3yx
205893620c
Re-add support for protocol versions 25-33.
2020-09-03 21:29:12 +02:00
HybridDog
f5df70764d
[2] Code cleanup in serverpackethandler ( #9349 )
...
* Code cleanup in serverpackethandler
* do not define p_under unless a node is pointed
* use switch-case and reduce indentation
2020-09-01 08:08:18 +02:00
Lars Müller
3693b6871e
Prevent players accessing inventories of other players ( #10341 )
2020-08-29 16:41:03 +01:00
MoNTE48
2f9205c23d
License upgrade to GNU Lesser General Public License 3.0+
2020-08-28 18:31:02 +02:00
David CARLIER
cf5547227d
Complete Haiku platform support. ( #10311 )
...
Fixing linkage/libraries missing issue.
Implements missing platform specifics.
2020-08-23 15:39:32 +02:00
ANAND
291a6b70d6
Allow binding dig, place actions to keys; remove LMB/RMB hardcoding
...
Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
2020-08-15 12:19:20 +03:00
Lejo
715a123a33
Add PUT and DELETE request + specific method value to HTTP API ( #9909 )
2020-07-29 23:16:21 +02:00
sfan5
8ca602150d
Replace std::list<session_t> in networking code ( #10215 )
2020-07-23 19:47:58 +02:00
Lejo
1dd6c8ed7f
Add reconnect button on error: Too many players ( #9405 )
2020-07-12 09:47:52 +02:00
v-rob
b1ff04e06d
Formspec: Make dropdowns optionally return event based on index, not value ( #9496 )
2020-07-10 12:11:26 +02:00
Lars Müller
e7e065f553
Exposing the zoom key to Lua API ( #9903 )
...
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
2020-06-13 22:46:20 +02:00