roblabla
19434979bd
Fix couple in protocol
2014-04-13 14:25:45 +02:00
roblabla
d7f3e5cd05
Support 1.7.6 protocol
2014-04-11 20:03:24 +02:00
roblabla
c1a5b8294b
woops, add back the 'packet' event
2014-04-11 02:08:17 +02:00
roblabla
b7dd1ba04e
Remove old debug code
2014-04-11 01:48:42 +02:00
roblabla
0a4b365242
Add opportunistic parsing.
2014-04-11 01:48:06 +02:00
roblabla
457df31b0b
Container, array, buffer and count types added
2014-04-04 10:32:20 +02:00
roblabla
c0ba7f8127
Proper generic read/write/sizeOf functions
2014-04-01 15:43:57 +02:00
roblabla
7b9f170fb2
Fix bug in sizeOfMatchArray making the tests fail
2014-03-31 00:07:30 +02:00
roblabla
ffef3f97b5
Merge branch 'master' into feature-packetnames
...
Conflicts:
lib/protocol.js
2014-03-31 00:01:49 +02:00
roblabla
2d40fec760
Fix #73 - this string should be unlimited
2014-03-16 18:52:17 +01:00
roblabla
2f90252eaa
Merge upstream, fix mistakes in examples
2014-03-16 18:14:55 +01:00
roblabla
244ad8ed39
Use ProtocolLib naming scheme. Use hasOwnProperty instead of equality
2014-03-16 18:06:57 +01:00
DannyAAM
aa0402979e
modify some packet variable name
...
fix chat problem with multi-byte characters
2014-02-22 18:52:24 +08:00
deathcap
0cd3ed13d9
Add packet names
2014-01-13 21:56:56 -08:00
roblabla
875d10ed0b
Protocol 1.7 support, Yggdrasil login support, new Client State API
2014-01-06 00:57:18 +01:00
darthfett
9b274df54a
Cleanup: terminate all statements with semicolons, remove unnecessary semicolons, remove unused variables, add hasOwnProperty checks in 'for x in y' loops.
2013-11-19 16:55:30 -07:00
Matt Bell
5e75cdf75d
Updated protocol version to support 1.6.4
2013-09-26 15:35:41 -07:00
Florian Wesch
de220e1fa1
set unavailable fields to null
2013-08-26 14:22:53 +02:00
Florian Wesch
170566d700
New way to handle conditional fields in packets
...
Some packets have conditional fields. The previous way to handle
those was to provide a single condition for each packet type
which determined if additional fields are appended to the packet.
Unfortunately this is not enough for some packets: They have
complex conditions that cannot be expressed this way.
This diff changes the way conditional fields are handled: For
each field in each packet there is a new optional 'condition'
function which will be called with the packet data. Only if
the 'condition' function returns true, the field is de/encoded.
This diff also adds new (previously missing) conditions.
2013-08-26 13:00:28 +02:00
roblabla
6a530522a6
Add an unlimited string length for server chat packet
2013-08-07 19:05:59 +02:00
Xabier de Zuazo
c0a66738a3
packet 0x2c: writing fixed, UUID format simplified
2013-07-12 13:19:34 +02:00
Xabier de Zuazo
c597436b70
packet 0x2c: properties updated to support 1.6.2 version (elementList added)
2013-07-11 12:08:46 +02:00
Xabier de Zuazo
6b09737dec
Added packet 0x85 (Tile Editor Open)
2013-07-11 08:15:53 +02:00
Xabier de Zuazo
ae2046d991
packet 0xfe (ping): some fields renamed, put the correct protocol version in mc.ping()
2013-07-11 08:15:53 +02:00
Matt Bell
f3657f74e0
Bumped protocol version for 1.6.2
2013-07-10 21:33:17 -07:00
Xabier de Zuazo
767f64153b
improved 0x64 packet support, code refactorized using an optional_fields hash
2013-07-08 10:07:07 +02:00
Xabier de Zuazo
c9a081fd6a
client ping fixed
2013-07-07 20:25:59 +02:00
Xabier de Zuazo
e46fd6f1c7
packet 0x27: leash from int to ubyte
2013-07-07 19:15:39 +02:00
Xabier de Zuazo
058d6eb12e
packet 0x64 (OpenWindow): support for the optional entityId field
2013-07-07 12:29:18 +02:00
Xabier de Zuazo
1ac3e12099
packet 0xfe (ping): updated to support 1.6.1
2013-07-07 11:04:15 +02:00
Xabier de Zuazo
9c3f671a22
packet 0x13: added jumpBoost field
2013-07-07 10:24:49 +02:00
Xabier de Zuazo
dcbaf3836e
packet 0x27: leash from bool to int
2013-07-07 09:13:53 +02:00
Matt Bell
e46a98a5a5
Updated to protocol version 73 (1.6.1)
2013-07-07 09:05:05 +02:00
Xabier de Zuazo
2665649363
protocol version updated to support minecraft 1.5.2
2013-05-05 04:08:12 +02:00
Xabier de Zuazo
664c7e380a
print sent and received packet contents in debug mode
2013-04-15 06:40:09 +02:00
Xabier de Zuazo
a48d6dcdd8
Merge pull request #55 from stith/patch-1
...
Connect to a server's SRV record if they specify one
2013-04-14 21:21:51 -07:00
Matt Stith
88255413ce
Only look for SRV records if necessary
...
Vanilla client implementation only looks for SRV records when the server port isn't specified, so let's mirror that behavior.
2013-04-15 00:09:04 -03:00
Xabier de Zuazo
120da4a20f
packet 0x66 (Click Window): shift
field renamed to mode
2013-04-14 11:27:53 +02:00
Matt Stith
d0664f37b4
Connect to a server's SRV record if they specify one
2013-04-13 17:23:31 -03:00
Xabier de Zuazo
8760ff55bc
in packet 0x66, "shift" must be of type byte instead of boolean
2013-04-13 16:41:53 +02:00
Robin Lambertz
6c945b6265
Fix packet 0xce, "create" should be a byte.
...
Renamed "create" to "action", and made it a byte.
According to wiki.vg, 0 is create, 1 to remove, and 2 to update.
2013-04-08 15:35:35 +02:00
Xabier de Zuazo
34e06bdd48
added entity metadata debugging message
2013-04-06 21:48:39 +02:00
Xabier de Zuazo
086d47b725
errors printing in readEntityMetadata() improved
2013-04-06 19:48:22 +02:00
Xabier de Zuazo
353f156d1a
fix buffer length checking bug in readSlot()
2013-04-06 19:34:10 +02:00
Xabier de Zuazo
e176938682
Protocol version updated to 1.5.1
2013-04-06 05:41:40 +02:00
Xabier de Zuazo
936ba5832d
added debug output for read/written packet ids
2013-04-06 05:04:47 +02:00
Xabier de Zuazo
b699d5506a
added debug() method for NODE_DEBUG=mc-proto
2013-04-06 05:02:36 +02:00
Xabier de Zuazo
0ff49078ff
friendlyFire on 0xd1 package id changed from bool to byte type
2013-04-06 04:48:05 +02:00
Xabier de Zuazo
38f46998e3
Unrecognized packetId error printing id in hex
2013-04-06 04:45:32 +02:00
Matt Bell
2c00c9f8be
Fixed bug where the wrong type was used when serializing entityMetadata
2013-03-18 14:13:03 -07:00