3f56d6ddc8
RakLibInterface: removed useless needACK condition
2017-09-18 09:42:25 +01:00
1e4cbb0dd9
RakLibInterface: move array initialization to default value
...
doesn't make sense to do this in the ctor when all the others are normal
2017-09-18 09:34:00 +01:00
2c6205e3f3
Added new events for network interface handling, close #1232 ( #1250 )
...
Added
- NetworkInterfaceRegisterEvent (cancellable)
- NetworkInterfaceUnregisterEvent
- NetworkInterfaceCrashEvent
2017-09-06 11:22:10 +01:00
2603f5cc63
Fixed RakLib crashing when exceptions are thrown in packet handlers after the player was closed
...
This occurred if the player happened to be closed during the packet being handled, and then an uncaught exception bubbled up to the RakLibInterface. This resulted in a crash due to trying to get the address of a player who no longer had a network session, in order to block their IP address.
2017-09-01 20:22:02 +01:00
6a717d8050
Fixed PlaySoundPacket
...
thanks @undrfined
2017-08-28 18:32:56 +01:00
90edb8ebe7
Make decoding accessible
2017-08-24 10:45:30 +01:00
50580f4408
Added server ID proper to ping response, fixes #1208 , closes #1306
2017-08-22 12:39:33 +01:00
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
bedfca8698
Fix some type errors on custom ExplodePacket use ( #1297 )
2017-08-19 08:16:10 +01:00
c4d8c28338
Some inspection fixes
2017-08-16 13:07:33 +01:00
ae3a8a5493
Added capability to unblock addresses without a restart
2017-08-14 14:12:06 +01:00
8a02dbb15a
fix crash when var_dumping packets
2017-08-03 08:47:10 +01:00
306bf7be5f
Moved dimension id constants to their own interface (PHP needs enums)
2017-07-31 16:38:01 +01:00
0b47324fe3
Add some constants to AnimatePacket
2017-07-31 16:03:45 +01:00
3e141afe48
Exposed LoginPacket chain data to allow plugins to access this data
2017-07-29 14:27:16 +01:00
f32e880542
Fixed really dumb copy bug breaking crafting
2017-07-22 12:04:52 +01:00
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +01:00
24bdf330d5
Merge branch 'moar-typehints'
2017-07-15 09:43:43 +01:00
6de8415c79
Merge network refactors
2017-07-14 13:04:02 +01:00
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
6a191b5069
Remove useless condition
2017-07-13 19:59:01 +01:00
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
3a214b7ce6
Cleaned up isEncoded mess
2017-07-13 12:21:26 +01:00
6341d3a0dc
don't break the preprocessor
2017-07-13 12:09:03 +01:00
72d1948f30
Improved batch handling
2017-07-13 12:04:47 +01:00
5283975f20
Move inventory ID constants to their own interface
...
ContainerSetContentPacket will be removed in 1.2, and these aren't specific to ContainerSetContentPacket anyway.
2017-07-12 20:04:36 +01:00
a5c6c8b973
Added some fields to new packets
...
gave up on EventPacket because it's a mess, and StructureBlockUpdate is a job all by itself
2017-07-12 19:31:20 +01:00
4731bf0a16
Fix autogenerated version numbers (didn't mean to commit this)
...
I'm working with a beta version >_>
2017-07-12 16:36:04 +01:00
30df0c2418
Refactor a bunch of network-related things for easier auto-generation of protocol stuff
2017-07-12 16:32:39 +01:00
e485999218
Just cut the adapter loose instead of needing extra fields for this
2017-07-12 12:28:54 +01:00
650afe2d94
Added PlayerNetworkSessionAdapter to allow abstraction of NetworkSession base
2017-07-12 12:28:54 +01:00
6bcc8cea8e
Fixed BossEventPacket breaks, now shut up and go away
2017-07-11 15:32:46 +01:00
be7e97e0bb
Fixed server ping responses showing up in the wrong entries on the client
...
Seems it doesn't like negative numbers
2017-07-11 09:28:50 +01:00
2726f2a011
Solved packet encode/decode boilerplate code issue
...
Something as simple as forgetting the reset() when encoding would cause lots of problems which could go unnoticed. This should be fully backwards-compatible but needs more tests.
2017-07-07 13:59:09 +01:00
1493cde07f
Added pause-game LevelEvent constant
2017-07-05 17:51:53 +01:00
409fc282d2
Cleaned up ping response and added missing fields ( #1114 )
2017-07-04 11:17:47 +01:00
4a7c40edd5
ExplodePacket records have a signed Y coordinate -_-
2017-06-26 23:09:20 +01:00
ec079b68a6
Fixed missing packet registrations
2017-06-25 17:36:12 +01:00
ecfcf49984
Added basic encode/decode for gamerules data and added GameRulesChangedPacket
...
needed it for tests
Squashed:
oops
PhpStorm you asshole
2017-06-25 15:43:08 +01:00
c0377fc63a
more typehints, removed more 32-bit leftovers
2017-06-25 11:40:12 +01:00
993af0fa30
Added build-denied action constant
...
don't need this, but good to have for completion's sake
2017-06-23 16:58:28 +01:00
89ca2ac2d5
Found an unknown field in ChangeDimensionPacket
...
No idea what this is actually used for though. It's set when a client dies in a different dimension and respawns in the overworld.
2017-06-22 15:52:29 +01:00
8cd31c2dc4
Fixed crashes starting RCON
2017-06-21 18:15:57 +01:00
86742fcf30
Workaround for flight controls fail on teleport (TODO: fix this properly)
2017-06-20 20:10:20 +01:00
4341fb8347
AddEntityPacket's attributes encoding is still non-standard -_-
...
I thought they fixed this...
2017-06-11 18:09:58 +01:00
789df942b6
Don't try to order packets sent with immediate priority, fixes #1026
2017-06-11 13:04:43 +01:00
61b857a81c
Fixed ExplodePacket
...
fixed-float my ass!
2017-06-10 19:54:04 +01:00
2024e9ecdf
Fixed extremely stupid zero-length bug in BinaryStream
...
pls don't kill me 😢
2017-06-10 18:33:54 +01:00
78c09267e5
Typehinted things in BinaryStream, sorted some methods and related bugfixes
2017-06-07 13:53:10 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00