Commit graph

511 commits

Author SHA1 Message Date
roblabla
3cab629259 Oops, remove source-map-support 2015-05-16 01:11:50 +00:00
radare-travis
ad2ad01787 Quickfix for proxy example to properly handle compression changes 2015-05-16 01:08:41 +00:00
radare-travis
790aaaad1a Fix two small bugs in packet scoreboard_team and player_info 2015-05-16 01:08:22 +00:00
radare-travis
02d09e377b Properly handle this frame in nested structures 2015-05-16 01:07:52 +00:00
radare-travis
aad5ba0fd9 Properly handle multiple set_compression requests during PLAY state 2015-05-16 01:07:10 +00:00
Robin Lambertz
6d61de807e Merge pull request #166 from rom1504/fix_editorconfig_indent
fix the indent_size in .editorconfig
2015-05-15 03:36:00 +02:00
Romain Beaumont
1dec8ccffd fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol) 2015-05-14 22:08:49 +02:00
Romain Beaumont
471b53de8f fix the indent_size in .editorconfig 2015-05-14 22:03:43 +02:00
Robin Lambertz
ded460af37 Merge pull request #165 from rom1504/fix_missing_require
fix a missing require in structures.js
2015-05-14 22:01:00 +02:00
Robin Lambertz
b5a89bef89 Merge pull request #164 from rom1504/fix_open_window
fix open_window packet (see http://wiki.vg/Protocol#Open_Window)
2015-05-14 21:28:43 +02:00
Romain Beaumont
55e820aa92 fix the schema (a problem with condition) 2015-05-14 20:10:49 +02:00
Romain Beaumont
77a2eb95dd fix a missing require in structures.js 2015-05-14 20:07:18 +02:00
Romain Beaumont
d3917ad5bc fix open_window packet (see http://wiki.vg/Protocol#Open_Window) 2015-05-14 19:42:52 +02:00
Robin Lambertz
ec0f6860c6 Merge pull request #161 from rom1504/divide_protocol_js
Divide protocol js into several datatypes files
2015-05-14 19:28:57 +02:00
Romain Beaumont
b42e13972c fix gulp 2015-05-14 19:25:20 +02:00
Romain Beaumont
f87dd9595d remove unneeded assert require 2015-05-14 12:58:05 +02:00
Romain Beaumont
778752f097 move packets reading to packets.js, remove some dead code 2015-05-13 15:15:16 +02:00
Romain Beaumont
78e70dad8e reorganize code a bit : debug code going to debug.js, put packets reading code in a function, add types using a addTypes function 2015-05-13 14:47:28 +02:00
Romain Beaumont
fe443e84ff move entity metadata type to minecraft.js 2015-05-13 04:06:14 +02:00
Romain Beaumont
877ede063d move condition type to conditional.js 2015-05-13 04:02:46 +02:00
Romain Beaumont
fe04239090 create structure.js file with array, container and count 2015-05-13 03:56:51 +02:00
Romain Beaumont
17d0aa1a22 move rest buffer to minecraft.js 2015-05-13 03:08:05 +02:00
Romain Beaumont
3b7ae54b88 add minecraft datatype file for minecraft specific packets 2015-05-13 02:58:07 +02:00
Romain Beaumont
6f460e1626 move varint, bool, string, ustring and buffer to utils.js 2015-05-13 02:43:52 +02:00
Romain Beaumont
355a3cb1cd more numeric types move 2015-05-13 02:19:56 +02:00
Romain Beaumont
6660a3aa39 put getField in a utils.js file, create a datatypes dir in src/ make it compile by gulp, move byte to numeric.js 2015-05-13 02:04:26 +02:00
Robin Lambertz
cf65197e12 Merge pull request #159 from rom1504/move_protocol_def_to_json
Move protocol def to json
2015-05-12 14:25:01 +02:00
Romain Beaumont
04a3f72130 readCondition now return value==null when the condition is not met instead of returning null (when read returns null it means there was an error), check if value is null in readContainer and parsePacketData and don't include it if so, improve "field x missing" error message in test.js a bit 2015-05-09 16:08:54 +02:00
Romain Beaumont
63b332ce38 remove condition property checks, also remove that property from the schema 2015-05-09 06:21:39 +02:00
Romain Beaumont
faed176631 add new condition type :
* protocol.js : new read, write and sizeOf methods and add check for condition type inside read
* update protocol.json
* update protocol_schema.json
* some fixes in test.js to handle the new condition type
2015-05-09 05:58:12 +02:00
Romain Beaumont
9c9f358a5d add current json schema (and a small validate.js test using jsonschema module) : makes it easier to fully understand the format 2015-05-09 04:06:33 +02:00
Romain Beaumont
ffa11996c4 remove function test in evalCondition : a condition is now never a function 2015-05-08 04:05:46 +02:00
Romain Beaumont
a1ec6138b7 convert protocol_def.js to protocol.js 2015-05-08 03:52:57 +02:00
Romain Beaumont
b350229160 hexa to hexa string from json convertion 2015-05-08 03:37:42 +02:00
Romain Beaumont
ea2e97d59f removing comments before transformation to json : they'll have to go somewhere else 2015-05-08 03:25:40 +02:00
Romain Beaumont
9abe799715 transform typeArgs function into object 2015-05-08 03:22:37 +02:00
Romain Beaumont
bf8a7899ae transform condition functions into objects 2015-05-08 03:08:30 +02:00
Romain Beaumont
e47feb1cf6 encapsulate condition evaluation 2015-05-08 02:26:45 +02:00
Romain Beaumont
d37d801e01 move protocol definition in separate file 2015-05-08 02:13:07 +02:00
roblabla
5efdc824c1 Change github reported version to fix npm cache bugs 2015-05-04 12:50:38 +00:00
Robin Lambertz
477e003845 Merge pull request #158 from rom1504/svg_badges
svg badges
2015-04-28 14:52:33 +02:00
Romain Beaumont
5afcc93b83 svg badges 2015-04-28 12:08:38 +02:00
roblabla
c034373da7 Revert "Fix stackoverflow in recursion"
This reverts commit 29302ad683.
2015-04-26 13:44:03 +00:00
roblabla
c2acd84f4c Revert "Let's use process.nextTick to avoid multiple gigs of ram usage :D"
This reverts commit 4601abb333.
2015-04-26 13:43:56 +00:00
roblabla
4601abb333 Let's use process.nextTick to avoid multiple gigs of ram usage :D 2015-04-26 13:14:53 +00:00
roblabla
9705990eb4 Merge branch 'master' of github.com:PrismarineJS/node-minecraft-protocol 2015-04-26 13:05:41 +00:00
roblabla
29302ad683 Fix stackoverflow in recursion 2015-04-26 13:03:28 +00:00
roblabla
482d32427d Use it.skip instead of commenting 2015-04-26 13:02:59 +00:00
Robin Lambertz
1315da4111 Merge pull request #155 from rom1504/patch-1
reorganize badges in readme
2015-04-19 23:56:54 +02:00
Romain Beaumont
4f9ce7c449 All README badges on second line 2015-04-16 22:07:18 +02:00