update to 1.9-pre4, improve the proxy errors a bit

This commit is contained in:
Romain Beaumont 2016-02-27 18:10:11 +01:00
parent 96a1a6c8c4
commit 440a190780
3 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@ Parse and serialize minecraft packets, plus authentication and encryption.
## Features ## Features
* Supports Minecraft version 1.7.10, 1.8.8 and 1.9 (15w40b and 16w05b) * Supports Minecraft version 1.7.10, 1.8.8 and 1.9 (15w40b and 1.9-pre4)
* Parses all packets and emits events with packet fields as JavaScript * Parses all packets and emits events with packet fields as JavaScript
objects. objects.
* Send a packet by supplying fields as a JavaScript object. * Send a packet by supplying fields as a JavaScript object.

View File

@ -132,10 +132,10 @@ srv.on('login', function(client) {
var packetBuff = client.serializer.createPacketBuffer({name:meta.name, params:packetData}); var packetBuff = client.serializer.createPacketBuffer({name:meta.name, params:packetData});
if(!bufferEqual(buffer, packetBuff)) { if(!bufferEqual(buffer, packetBuff)) {
console.log("client<-server: Error in packet " + meta.state + "." + meta.name); console.log("client<-server: Error in packet " + meta.state + "." + meta.name);
console.log(buffer.toString('hex')); console.log("received buffer",buffer.toString('hex'));
console.log(packetBuff.toString('hex')); console.log("produced buffer",packetBuff.toString('hex'));
console.log(buffer.length); console.log("received length",buffer.length);
console.log(packetBuff.length); console.log("produced length",packetBuff.length);
} }
/*if (client.state == states.PLAY && brokenPackets.indexOf(packetId.value) !== -1) /*if (client.state == states.PLAY && brokenPackets.indexOf(packetId.value) !== -1)
{ {
@ -152,10 +152,10 @@ srv.on('login', function(client) {
var packetBuff = targetClient.serializer.createPacketBuffer({name:meta.name, params:packetData}); var packetBuff = targetClient.serializer.createPacketBuffer({name:meta.name, params:packetData});
if(!bufferEqual(buffer, packetBuff)) { if(!bufferEqual(buffer, packetBuff)) {
console.log("client->server: Error in packet " + meta.state + "." + meta.name); console.log("client->server: Error in packet " + meta.state + "." + meta.name);
console.log(buffer.toString('hex')); console.log("received buffer",buffer.toString('hex'));
console.log(packetBuff.toString('hex')); console.log("produced buffer",packetBuff.toString('hex'));
console.log(buffer.length); console.log("received length",buffer.length);
console.log(packetBuff.length); console.log("produced length",packetBuff.length);
} }
}); });
targetClient.on('end', function() { targetClient.on('end', function() {

View File

@ -46,7 +46,7 @@
"endian-toggle": "0.0.0", "endian-toggle": "0.0.0",
"lodash.get": "^4.1.2", "lodash.get": "^4.1.2",
"lodash.merge": "^4.3.0", "lodash.merge": "^4.3.0",
"minecraft-data": "~1.1.0", "minecraft-data": "~1.2.0",
"prismarine-nbt": "0.2.1", "prismarine-nbt": "0.2.1",
"protodef": "^1.1.2", "protodef": "^1.1.2",
"readable-stream": "^2.0.5", "readable-stream": "^2.0.5",