Commit graph

95 commits

Author SHA1 Message Date
Romain Beaumont
188848b364 improve error in sizeOf of serializer.js, fix remaining numerical id in createClient 2015-09-12 21:49:17 +02:00
Romain Beaumont
3b272159fd add field name in error in serializer.js 2015-09-12 21:49:17 +02:00
Romain Beaumont
9804d0983b transform play numerical ids to names, remove most entity metadata test values for compatibility 2015-09-12 21:49:17 +02:00
roblabla
f952db3cc6 Phase out native position. Implement entityMetadataLoop. 2015-09-12 00:40:24 +00:00
roblabla
b255eaadd1 Implement bitfields. Add tests for utils datatypes 2015-09-12 00:40:18 +00:00
roblabla
71c93bb3d6 Implement anonymous structure members 2015-09-11 22:42:50 +00:00
roblabla
a267cc1515 Revert "Fix anon structures not working in sizeOf"
This reverts commit 86f1f23053.
2015-09-11 22:39:16 +00:00
roblabla
2b98c09fba Slightly fix the broken error handling 2015-09-11 22:12:20 +00:00
roblabla
86f1f23053 Fix anon structures not working in sizeOf 2015-09-11 22:11:53 +00:00
roblabla
79ded321bf Add extend type support 2015-09-03 13:05:11 +00:00
roblabla
ee3b865daa Fix typo in option type 2015-09-03 13:05:11 +00:00
Robin Lambertz
388879bd4b Merge pull request #227 from roblabla/feature-addOption
Add option type
2015-09-02 19:37:04 +02:00
roblabla
e260f15163 Fix error handling using undefined variables 2015-08-29 13:00:34 +00:00
roblabla
ed372e6f39 Add option type 2015-08-28 15:21:59 +00:00
roblabla
7e145f763d First attempt at better error handling, also some general cleanup 2015-08-27 20:48:45 +00:00
roblabla
3282cf69c7 Introduce switch and void, remove condition 2015-08-25 11:55:25 +00:00
roblabla
ba8a3790aa Add the new type syntax support. Old type syntax doesn't work 2015-08-24 18:25:56 +00:00
Romain Beaumont
3892fb6de3 bump minecraft data : now multi version support 2015-08-21 16:19:46 +02:00
Robin Lambertz
c365478955 Merge pull request #215 from roblabla/feature-countType
Add countType support
2015-08-17 21:27:09 +02:00
roblabla
c7841e98d8 Don't bubble up errors from the client to the server 2015-08-15 16:25:19 +00:00
roblabla
3d6db80593 TypeArgs should default to an empty object in case it is undefined 2015-08-13 16:36:42 +00:00
roblabla
f91da617d7 Add countType support 2015-08-13 16:36:30 +00:00
Romain Beaumont
1f681ed810 add keepAlive option in createServer 2015-08-08 17:21:36 +02:00
Robin Lambertz
9eeea84e92 Merge pull request #208 from rom1504/better_error_and_fix_from_1.9
Better error and fix from 1.9
2015-08-08 14:53:23 +02:00
Robin Lambertz
ebf9d431a5 Merge pull request #207 from rom1504/use-minecraft-data
use protocol.json from minecraft-data
2015-08-06 14:29:02 +02:00
Romain Beaumont
5743cd8b64 Revert "Add some debug information (useful to update to an updated protocol)"
This reverts commit d2435c8dcd.
2015-08-05 23:30:04 +02:00
roblabla
ff95752e45 Store yggdrasil login results, some use-cases need it 2015-08-05 21:19:01 +00:00
Romain Beaumont
d2435c8dcd Add some debug information (useful to update to an updated protocol) 2015-08-02 18:14:58 +02:00
Romain Beaumont
f625cd8e8b Remove some console.log 2015-08-02 18:14:58 +02:00
Romain Beaumont
4466bedac9 Fix entityMetadata : container is ambiguous 2015-08-02 18:14:58 +02:00
Romain Beaumont
6b6303b853 use protocol.json from minecraft-data
fix #163
2015-08-01 20:13:32 +02:00
Romain Beaumont
1226f0f520 split index.js into mainly createClient.js and createServer.js
also create a few other files containing common information and functions :
* mcHexDigest.js which contain the function of the same name used in both createClient.js and createServer.js
* ursa.js which handle the abstraction on top of ursa and ursa-purejs : used in both createClient.js and createServer.js
* version.js used in index.js, createClient.js and createServer.js
2015-07-27 02:26:36 +02:00
roblabla
452be2b196 Bump MINOR, UUIDs are now represented as dashed string 2015-07-18 17:48:26 +00:00
Robin Lambertz
c9a740f989 Merge pull request #178 from roblabla/feature-remove-ustring
Remove ustring
2015-05-23 15:27:26 +02:00
roblabla
3815201792 Remove ustring 2015-05-23 10:27:35 +00:00
Romain Beaumont
1a9e08cbd8 move createPacketBuffer and parsePacketData functions to serializer, also move protocol's exports to serializer 2015-05-23 03:31:47 +02:00
roblabla
2b1a0f86cd Improved error handling 2015-05-22 23:43:32 +00:00
Robin Lambertz
84079bb0a8 Merge pull request #173 from rom1504/refactor_numeric
refactor numeric.js : all the functions were the same
2015-05-23 01:16:30 +02:00
Romain Beaumont
3c61f24991 remove write callback
knowing when the packet has been sent is not an useful information : the fact that it's sent doesn't mean it is received and what we usually want is that the packets are in the proper order no when they are sent
2015-05-23 01:10:58 +02:00
roblabla
f6a16bfdff Reintroduce packetsToParse 2015-05-22 22:25:12 +00:00
roblabla
64f24858dd Fix writing packets by name or [state,id] 2015-05-22 22:24:47 +00:00
roblabla
f5192ba8b7 remove debug in serializer transform 2015-05-22 21:32:10 +00:00
roblabla
3c0a8eee8f Remove now unused functions 2015-05-22 19:24:09 +00:00
roblabla
f5dda55f81 Reintroduce writeRaw 2015-05-22 19:22:21 +00:00
roblabla
6e6b51ca10 Better node compatibility : Use readable-stream 2015-05-22 19:00:01 +00:00
roblabla
17dea74357 Rewrite of the internal serializer using transform streams 2015-05-21 20:35:03 +00:00
Romain Beaumont
9866ee41fb refactor numeric.js : all the functions were the same 2015-05-21 16:56:38 +02:00
roblabla
fb6641b374 Fix node-mc-proto disconnecting players from the notchian client 2015-05-19 13:08:09 +00:00
Romain Beaumont
6446b205f0 add callback to write (socket.write *is* async) fix #168 2015-05-18 19:01:23 +02:00
Romain Beaumont
8a6a9c00e9 fix compressPacketBuffer : it was not compressing anything until now, also fix a problem in newStylePacket to handle the correct dataSize 2015-05-18 18:24:10 +02:00