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
a34134918a
implement mob "panic" behavior
2025-09-14 15:37:05 +03:00
p2r3
e7e9d307e6
fix chunks sometimes not loading after unclean shutdown
2025-09-14 14:59:13 +03:00
p2r3
925b841e95
refactor mob movement
...
Fixes #64
2025-09-14 14:58:31 +03:00
p2r3
1f9aa50573
fix delayed fall damage from swimming
...
Closes #61
2025-09-14 03:23:50 +03:00
p2r3
39f5c69bc3
fix crash when overwriting terrain with a chest
...
Closes #48
2025-09-14 02:08:16 +03:00
p2r3
e81e75a6d7
ensure mob uuid uniqueness on login
...
Closes #51
2025-09-14 01:30:42 +03:00
p2r3
61eb38a83d
fix block changes not syncing on interval
2025-09-13 21:58:03 +03:00
p2r3
bdb4e4b72c
remove trailing whitespace
2025-09-13 21:55:01 +03:00
p2r3
e3589a02f0
fix player entities desyncing on join sometimes
2025-09-13 20:06:25 +03:00
p2r3
bad337a032
fix compilation error when targeting esp-idf
2025-09-13 18:26:31 +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
p2r3
efac4c125d
fix compilation error on label syntax quirk
2025-09-13 00:10:33 +03:00
KornineQ
fddef798e3
Don't take fall damage in creative or spectator
2025-09-12 23:08:13 +03:00
anmol-patankar
ba03d92ad0
fix mobs spawning in water
...
* Fixed underwater under lava mob spawn issue #17
* made comment changes
* minor fix
* method name change
* method change
* fixed
2025-09-12 19:53:08 +03:00
fox3000foxy
81865cb7ac
add string bounds check when copying player name
2025-09-12 19:04:36 +03:00
breakgimme
3d02dc02bf
use libc htonll if found
2025-09-12 15:27:49 +03:00
p2r3
a83acbda67
add option to tie movement updates to tickrate
2025-09-11 22:00:32 +03:00
p2r3
e4c0c6b6e9
fix armor not equipping from right click
2025-09-10 20:11:59 +03:00
p2r3
55da6c7d4c
fix features generating when they shouldn't
2025-09-09 21:20:40 +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
550edbdb37
centralize configuration options
2025-09-07 14:07:12 +03:00
p2r3
a72f405b7a
fix not blocks not dropping their item when the held tool breaks
2025-09-06 17:26:47 +03:00
p2r3
102a7d46f8
make beef dumps opt-in via config
2025-09-02 00:33:25 +03:00
p2r3
64846381f4
add option to sync block changes on an interval
2025-09-02 00:29:21 +03:00
p2r3
7a81625cd4
sync beefdump data to disk
2025-09-02 00:27:00 +03:00
p2r3
390befe9cf
fix potentially uninitialized pointers
2025-09-01 22:28:38 +03:00
p2r3
b20c9f508f
return sent bytes from send_all
2025-08-31 22:25:43 +03:00
p2r3
6bef88f60d
update ore generation
2025-08-31 22:23:19 +03:00
p2r3
d608014470
use global tick counter to handle regular events at different rates
2025-08-31 21:45:47 +03:00
p2r3
8011a1adfd
implement armor
2025-08-31 05:30:18 +03:00
p2r3
3151f0b6f2
add a way to restore world data over the network
2025-08-31 01:56:47 +03:00
p2r3
d6138616a4
fix wrong relative coordinates when fetching terrain
2025-08-31 01:39:00 +03:00
p2r3
f3fbde3134
terminate connections on long network timeouts
2025-08-31 00:01:35 +03:00
p2r3
7d390ed899
add a way to dump world data over the network
2025-08-30 22:36:49 +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
759399dac8
optimize world generation
2025-08-30 16:56:00 +03:00
p2r3
4a7f9554a8
add player death messages
2025-08-30 01:12:20 +03:00
p2r3
a1ef1c52d2
don't give players items when their inventory is full
2025-08-30 00:44:02 +03:00
p2r3
ee63b7c7f4
reset client loading fallback timer on player init
2025-08-30 00:37:33 +03:00
p2r3
5e4462a3bc
broadcast disconnecting players
2025-08-30 00:14:47 +03:00
p2r3
6886dd59ce
use negative mob entity ids to avoid conflicts
2025-08-29 23:58:47 +03:00
p2r3
ce903d088f
remove redundant flag set
2025-08-29 23:53:22 +03:00
p2r3
5797e2f781
generate more unique uuids for mobs
2025-08-29 23:44:29 +03:00
p2r3
ba68f435b7
make flowing water break falls
2025-08-29 23:38:45 +03:00
p2r3
ec7bb49876
add leaves to replaceable blocks for structures
2025-08-29 23:36:19 +03:00
p2r3
849adf0568
handle player loading flag more cautiously
2025-08-29 23:33:25 +03:00