p2r3
516a00f122
fix various compilation issues when targeting esp-idf
2025-09-19 02:24:36 +03:00
Tyler Zars
3bde692976
implement recv_buffer size limit and input validation
...
* Implement recv_buffer size limit and input validation
* Add readLengthPrefixedData helper and refactor some read flows
* Change error to be more accurate
* Add newline to error message
* fix long chat messages kicking clients
* style nitpicks
---------
Co-authored-by: p2r3 <p2r3@p2r3.com >
Co-authored-by: p2r3 <41925384+p2r3@users.noreply.github.com >
2025-09-19 02:00:02 +03:00
SDFTDusername
c5e8408052
implement player poses (sneak/sprint)
...
* Added sending player metadata with poses to everyone
* Renamed sendPlayerMetadataToAll to broadcastPlayerMetadata
* Made entity metadata system flexible
* Made broadcastPlayerMetadata create new metadata instead of using a global one
* Moved writeEntityData, sizeEntityData and sizeEntityMetadata to procedures
* style nitpicks
---------
Co-authored-by: p2r3 <p2r3@p2r3.com >
2025-09-15 22:01:22 +03:00
jcfb
26f068bc09
support native windows binary compilation
...
* add winsock2 to globals.c
* add winsocket2 compatibility to main function
* add winsocket2 to packets.c
* and winsocket2 to procedures.c
* add winsocket 2 compatibility to tools.c
* add winsocket2 to varnum.c
* add mingw64 linker options to build.sh
* fix build
* style nitpicks
* remove old_fd
* update compilation instructions for windows
---------
Co-authored-by: p2r3 <41925384+p2r3@users.noreply.github.com >
2025-09-14 17:11:56 +03:00
breakgimme
3d02dc02bf
use libc htonll if found
2025-09-12 15:27:49 +03:00
p2r3
e49904066e
set up cosmopolitan build workflow
2025-09-09 13:23:52 +03:00
p2r3
7af7462138
add missing documentation
2025-09-07 14:36:31 +03:00
p2r3
b20c9f508f
return sent bytes from send_all
2025-08-31 22:25:43 +03:00
p2r3
f3fbde3134
terminate connections on long network timeouts
2025-08-31 00:01:35 +03:00
p2r3
2f0bf1d802
fix wrong datatype in network timeout timestamp
2025-08-29 17:22:18 +03:00
p2r3
200e9154a0
implement timeout on stalling connections
2025-08-29 16:11:56 +03:00
p2r3
99a09dc59f
debloat includes
2025-08-29 06:21:11 +03:00
p2r3
549745516f
prevent players from dropping and losing items
2025-08-24 20:41:48 +03:00
p2r3
4a90979e2f
improve packet error logging and handling
2025-08-23 01:50:14 +03:00
p2r3
4da773b943
refactor game-specific tools into separate file
2025-08-22 14:00:38 +03:00
p2r3
24f8e2bfad
add lily pad to instamine blocks list
2025-08-22 13:43:55 +03:00
p2r3
ca9edce43a
implement basic support for mobs
2025-08-22 02:29:59 +03:00
p2r3
70c1fb0e7a
implement respawning
2025-08-21 16:37:37 +03:00
p2r3
05f17399f5
implement fall damage
2025-08-21 15:07:49 +03:00
p2r3
2a0d465ad7
handle column blocks more consistently
2025-08-21 13:32:40 +03:00
p2r3
b6b091f600
handle breaking columns of blocks
2025-08-21 00:41:20 +03:00
p2r3
48b03f9e04
fix block changes not persisting
2025-08-21 00:35:30 +03:00
p2r3
8936eb32db
make esp task yielding more consistent and reduce overhead
2025-08-20 15:21:02 +03:00
p2r3
a89043394c
spend less time petting dogs
2025-08-20 06:10:04 +03:00
p2r3
023b866529
ensure all bytes are sent on non-blocking socket
2025-08-20 05:08:57 +03:00
p2r3
66ab597ad0
add player entities
2025-08-20 04:30:29 +03:00
p2r3
293ed517ea
optimize block changes struct
2025-08-19 17:42:45 +03:00
p2r3
20f9856b47
support multiple simultaneous connections
2025-08-18 03:01:41 +03:00
p2r3
1be62beca8
better sync client/server block state
2025-08-18 01:25:28 +03:00
p2r3
d27b085ae5
return items to inventory when closing crafting window
2025-08-17 19:24:31 +03:00
p2r3
bf8c7e8185
address compiler warnings
2025-08-17 03:04:16 +03:00
p2r3
982d260a92
implement furnaces and fix crafting
2025-08-17 01:06:35 +03:00
p2r3
3561b40fb9
implement item durability
2025-08-16 22:23:56 +03:00
p2r3
72718af154
fix slot translation inconsistencies
2025-08-16 21:05:27 +03:00
p2r3
07070416bc
update ore mining behavior
2025-08-16 20:16:34 +03:00
p2r3
7a3e2b5fa2
overhaul worldgen
2025-08-16 16:15:33 +03:00
p2r3
374943669e
optimize applying block changes
2025-08-14 07:25:38 +03:00
p2r3
1d76a0d96e
improve compatibility with espidf
2025-08-14 05:08:08 +03:00
p2r3
2ab196e5f0
implement block mining conditions
2025-08-13 20:57:58 +03:00
p2r3
de2228390e
implement crafting tables (crudely)
2025-08-12 18:22:37 +03:00
p2r3
1fc0f75ed7
implement basic crafting
2025-08-12 17:08:17 +03:00
p2r3
0404fa2cbb
add missing slot mappings
2025-08-12 16:59:05 +03:00
p2r3
3b9ca68a57
spawn players at terrain height level
2025-08-12 13:07:42 +03:00
p2r3
478173d616
refactor to use struct instead of byte buffer
2025-08-12 12:48:28 +03:00
p2r3
269e8346eb
initial code dump
2025-08-12 03:51:57 +03:00