Commit Graph

73 Commits

Author SHA1 Message Date
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
SDFTDusername
f6333429eb implement arm swinging animation
* Added packets to show players swinging their arms

* fix misleading comment

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-14 16:59:25 +03:00
p2r3
e3589a02f0 fix player entities desyncing on join sometimes 2025-09-13 20:06:25 +03:00
Bradlee Barnes
969f7d3974 send server brand during login
* send server brand to client

* send brand regardless of `0x02` being recieved by server or not

* send brand regardless of `0x02` being recieved by server or not
+ if statement to match previous lines

* ifdef check for brand sending

* commit main.c for ifdef check (i forgot)

* commit main.c for ifdef check (i forgot)

* change sc_pluginMessage to sc_sendPluginMessage

- added params to it for use in other cases
- other changes to fit PR reviews

* revert .gitignore

* revert unrelated changes

* send byte instead of varint for constant packet id

* gate declaration of brand string behind ifdef

* make logging consistent with codebase

---------

Co-authored-by: p2r3 <p2r3@p2r3.com>
2025-09-13 14:22:06 +03:00
fox3000foxy
81865cb7ac add string bounds check when copying player name 2025-09-12 19:04:36 +03:00
p2r3
433a2ca350 add missing return statement 2025-08-30 21:46:34 +03:00
p2r3
a824c2d63b add item pickup animations 2025-08-30 20:48:01 +03:00
p2r3
99a09dc59f debloat includes 2025-08-29 06:21:11 +03:00
p2r3
ca6f8afbea implement chests 2025-08-28 23:51:00 +03:00
p2r3
fc327299b4 don't send gameplay packets to clients who haven't loaded in 2025-08-28 02:27:04 +03:00
p2r3
b5d72f852e make simulation distance equal to view distance 2025-08-28 01:46:39 +03:00
p2r3
c1a78e8509 fix sending wrong entity id to clients during login 2025-08-28 01:34:09 +03:00
p2r3
f5119d0b70 improve hunger mechanics 2025-08-27 17:03:55 +03:00
p2r3
68eb77c424 remove unnecessary data from server list ping 2025-08-27 16:15:57 +03:00
p2r3
b46f5927a2 handle server list ping 2025-08-27 14:50:17 +03:00
p2r3
84fda79901 implement hunger system 2025-08-26 02:29:00 +03:00
p2r3
623f7765d7 sync block light to the client (kinda) 2025-08-24 22:28:03 +03:00
p2r3
549745516f prevent players from dropping and losing items 2025-08-24 20:41:48 +03:00
p2r3
82eed6be9e fix clearing wrong slots when closing crafting table 2025-08-24 15:31:37 +03:00
p2r3
0945de26f0 refactor use item handler 2025-08-23 17:54:05 +03:00
p2r3
3c86db75fb implement composter 2025-08-23 15:55:46 +03:00
p2r3
ee69d3ab9b support placing blocks on containers while sneaking 2025-08-23 04:24:06 +03:00
p2r3
f9bd73d1eb fix right click dealing damage 2025-08-23 02:15:32 +03:00
p2r3
d9f6511af1 improve block placement checks 2025-08-23 02:06:01 +03:00
p2r3
4a90979e2f improve packet error logging and handling 2025-08-23 01:50:14 +03:00
p2r3
47ffa755c7 fix compile warnings 2025-08-23 00:01:37 +03:00
p2r3
e311b0cbe4 implement mob combat 2025-08-22 17:41:29 +03:00
p2r3
f366e7fdc6 add more mob types 2025-08-22 15:33:42 +03:00
p2r3
4da773b943 refactor game-specific tools into separate file 2025-08-22 14:00:38 +03:00
p2r3
6fc5d07699 support common miscellaneous packets 2025-08-22 13:41:19 +03:00
p2r3
9fd9ede50d fix off-by-one error in chat packet 2025-08-22 13:22:55 +03:00
p2r3
5a0f8fd376 fix typo in chat code 2025-08-22 02:28:18 +03:00
p2r3
c9e404813d fix esp-idf nitpicks 2025-08-22 01:56:13 +03:00
p2r3
05862bf62a implement chat messages 2025-08-21 17:45:39 +03:00
p2r3
33c564e0fc add player join messages 2025-08-21 17:03:26 +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
e60b5a44f9 send biome data to clients 2025-08-20 23:11:07 +03:00
p2r3
8936eb32db make esp task yielding more consistent and reduce overhead 2025-08-20 15:21:02 +03:00
p2r3
023b866529 ensure all bytes are sent on non-blocking socket 2025-08-20 05:08:57 +03:00
p2r3
48b6c7cfb4 fix compatibility with esp-idf 2025-08-20 04:55:28 +03:00
p2r3
19c49f8d54 fix wrong angle order in spawn entity packet 2025-08-20 04:32:55 +03:00
p2r3
66ab597ad0 add player entities 2025-08-20 04:30:29 +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
d66175d91f optimize chunk transmission 2025-08-17 17:28:42 +03:00