Dylan K. Taylor
c58a1bf9b7
Protocol changes for 1.12.0.28
2019-07-12 19:00:15 +01:00
Frago9876543210
1cf4cf8614
Fixed decoding entries in SetScorePacket
...
closes #3000
2019-07-09 15:49:24 +01:00
Takuya Sawada
ab4b1be363
add constants for boat action of AnimatePacket
...
closes #2991
2019-07-03 16:30:45 +01:00
Dylan K. Taylor
6925451f3f
StartGamePacket: added rogue field
...
this was added after 1.11.0 without a protocol version bump.
2019-06-22 20:25:50 +01:00
Dylan K. Taylor
eb161f8e1c
Use base64 instead of hex to display binary in some places
...
base64 takes less space than hex, which is beneficial for logging larger payloads.
2019-06-06 14:43:20 +01:00
Dylan K. Taylor
80f8a27094
Fixed implicit dependency on MobArmorEquipmentPacket field ordering
...
the order of the slots is entirely dependent on Mojang whims, so we shouldn't let our internals rely on it.
2019-06-04 18:16:56 +01:00
Dylan K. Taylor
341c480e13
ContainerSetDataPacket: added missing furnace property ID
2019-06-03 18:21:29 +01:00
Dylan K. Taylor
cf538afb84
LevelEventPacket: added two extra IDs
2019-05-31 15:31:03 +01:00
Dylan K. Taylor
00644dd529
Fixed an edge-case in AvailableCommandsPacket decoding
2019-04-26 12:32:42 +01:00
Dylan K. Taylor
3c941dd992
Move more stuff to BedrockData submodule
2019-04-25 18:23:31 +01:00
Dylan K. Taylor
2bdbb9794c
New, more efficient blockstate table format
...
this reduces the file size by ~90%.
2019-04-25 17:28:22 +01:00
Dylan K. Taylor
898009a91b
Sync crafting data changes
...
this seems to fix #2881 , at least the reproducing case that was given.
2019-04-25 16:22:12 +01:00
Dylan K. Taylor
793f93afdb
NetworkSession: sync with latest code generation changes
2019-04-25 14:49:20 +01:00
Dylan K. Taylor
64506ea3ae
PacketPool: add @throws
2019-04-25 14:48:55 +01:00
Dylan K. Taylor
4a35516441
Reduce BatchPacket hacks
...
we can't get rid of these hacks entirely because BAcKWARdS ComPaTIbilitY, but this at least ensures that things over PID 127 won't burn the house down when 1.12 gets here. This also reduces conflicts with 4.0 line.
2019-04-25 14:48:36 +01:00
Dylan K. Taylor
fa70127241
1.11.0 protocol changes
2019-04-24 19:54:16 +01:00
Dylan K. Taylor
fc76d04dcb
StartGamePacket: allow specifying a custom runtimeID table
...
this is not the intended goal, but it's a happy side effect of making it easier to extract structured information from the client.
2019-04-24 18:40:29 +01:00
Dylan K. Taylor
db896b9faf
ok i'm done
...
i am obviously not in any fit state to be doing this today...
2019-04-21 14:22:54 +01:00
Dylan K. Taylor
76c234e4e6
add some limits on batches
2019-04-21 14:16:38 +01:00
Dylan K. Taylor
8fcb44de7d
Merge branch '3.6' into 3.7
2019-03-29 19:55:36 +00:00
Dylan K. Taylor
f4480c07ee
Updated NBT dependency
2019-03-29 19:47:15 +00:00
Dylan K. Taylor
c09e2301c8
Merge branch '3.6' into 3.7
2019-03-29 14:35:35 +00:00
Dylan K. Taylor
8e9f787d33
Implement runtimeID table randomization, closes #2841
2019-03-29 14:35:06 +00:00
Dylan K. Taylor
89833b3b68
Merge branch '3.6' into 3.7
2019-03-26 15:01:59 +00:00
Dylan K. Taylor
a10a656a5d
Network: add a README to mcpe namespace
2019-03-26 15:01:00 +00:00
Sandertv
2659ed8d91
AvailableCommandsPacket: Updated the argument type constants for 1.10. ( #2824 )
2019-03-22 15:07:15 +00:00
Dylan K. Taylor
9c01ecbe7e
Merge branch '3.6' into 3.7
2019-03-21 19:02:20 +00:00
Dylan K. Taylor
cce99b07af
1.10.0 updates
2019-03-20 19:17:41 +00:00
Sandertv
1a8b33dafe
AvailableCommandsPacket: Updated the ARG_TYPE constants
...
closes #2817
2019-03-18 08:58:07 +00:00
Dylan K. Taylor
faca610594
NetworkBinaryStream: remove dead field
2019-03-03 12:38:03 +00:00
Dylan K. Taylor
79b7e08e60
Silence NetworkStackLatencyPacket spam from dev builds
2019-02-23 11:03:50 +00:00
Dylan K. Taylor
b8703d5dff
Protocol changes for 1.9.0
2019-02-07 21:56:42 +00:00
Drew
d7f86f0240
Hack for client side regeneration (disable natural regeneration gamerule) ( #2722 )
2019-01-31 18:45:25 +00:00
Dylan K. Taylor
47321114eb
login: allow 60 seconds clock drift on login JWT
...
can everyone please just use NTP already?
2019-01-20 15:51:29 +00:00
Dylan K. Taylor
cb591a98f4
NetworkBinaryStream: Skip item NBT which is too large when encoded
...
Encoded tags larger than 32KB overflow the length field, so we can't send these over network. However, it's unreasonable to randomly throw this burden off onto users by crashing their servers, so the next best solution is to just not send the NBT. This is also not an ideal solution (books and the like with too-large tags won't work on the client side) but it's better than crashing the server or client due to a protocol bug. Mojang have confirmed this will be resolved by a future MCPE release, so we'll just work around this problem until then.
2019-01-16 21:50:43 +00:00
Dylan K. Taylor
4b9a142a5d
Import global functions and constants for enhanced performance
...
This is better for performance because these then don't need to be reevaluated every time they are called.
When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.
However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
Dylan K. Taylor
11b59498d9
TakeItemEntityPacket: add missing decode, close #2633
2019-01-04 11:45:37 +00:00
Dylan K. Taylor
0f941410f6
Use more appropriate exceptions in the protocol layer
2019-01-03 17:57:06 +00:00
Dylan K. Taylor
504cc3bf8b
AddEntityPacket: fix some bugs in legacy ID conversion handling
2019-01-03 17:00:16 +00:00
Dylan K. Taylor
f7de6eb59f
Network: Deprecate some garbage
...
Deprecations on a patch version breaks release protocol, but I don't care at this point. Nobody should have been using this shit anyway.
2018-12-31 22:52:39 +00:00
Dylan K. Taylor
daf56e990b
Get rid of some network-layer asserts
...
NEVER assert on user data. 🤦
2018-12-30 12:42:52 +00:00
Dylan K. Taylor
70df1579a8
Merge branch 'release/3.4' into release/3.5
2018-12-20 20:02:00 +00:00
Dylan K. Taylor
ea9f9aa250
Update some non-critical protocol magic numbers
2018-12-20 19:59:42 +00:00
Dylan K. Taylor
34a899e28b
Clean up Utils error handling functions (internal)
2018-12-16 17:50:00 +00:00
Dylan K. Taylor
c05697f506
Merge branch 'release/3.4' into release/3.5
2018-12-14 09:39:21 +00:00
Dylan T
660d42e8d1
Backport usage of SetLocalPlayerAsInitializedPacket to 3.4 ( #2558 )
...
This fixes various problems, such as forms not working on PlayerJoinEvent.
2018-12-13 20:07:17 +00:00
Dylan K. Taylor
dbeceb02f9
fixup 1.8 crafting, take 2
2018-12-13 10:54:15 +00:00
Dylan K. Taylor
fd77dd0066
Revert "Fixed crafting grid transaction handling, close #2559 "
...
This reverts commit dfeb62491a
.
2018-12-13 10:38:04 +00:00
Dylan K. Taylor
87ce87112b
Merge branch 'release/3.4' into release/3.5
2018-12-13 09:56:21 +00:00
Dylan K. Taylor
1d71f5edb3
DataPacket: more detail in error messages for undefined fields
2018-12-13 09:55:50 +00:00