Commit graph

230 commits

Author SHA1 Message Date
u9g
2d42caafb9
Fix Typo in readme example (#129)
* Fix Typo in readme example

* ServerAdvertisement: Fix motd name doc/code inconsistency

* Update advertisement.js

* Update advertisement.js

Co-authored-by: extremeheat <extreme@protonmail.ch>
2021-08-10 21:17:41 -04:00
extremeheat
0437e83fe9
fix 1.17.10 npc packet serialization (#119) 2021-08-02 00:34:13 -04:00
extremeheat
f530677245
Option to use JS implementation of RakNet, fix 1.17.10 issue (#110)
* Default to JS implementation of RakNet

* update server also, adjust test timeout based on number of versions

* 1.17.10: fix texture pack issue, keep raknet default at C++

* force_build
2021-07-17 05:30:13 -04:00
extremeheat
987bf43987
1.17.10 protocol support (#109)
* 1.17.10 support

* add protocol.json

* add extra particle IDs
2021-07-14 17:30:10 -04:00
extremeheat
1cdb0e4c55 Update protodef version 2021-06-23 00:10:58 -04:00
extremeheat
b546cda899 Logging improvements 2021-06-23 00:10:58 -04:00
extremeheat
3f5c4ad12e Relay proxy fixes, handle disconnect 2021-06-23 00:10:58 -04:00
extremeheat
5f0adfab76
1.17 support (#99) 2021-06-09 17:26:44 -04:00
u9g
d02eb6c041
update connect version based on ping response & fix typings (#101)
* update connect ver based on ping resp& add typings

* Fixed and added extremeheat suggestion

* Update API.md

* Update createClient.js
2021-06-09 13:40:45 -04:00
extremeheat
187e74b823 use protodef-compiler-fix to fix npm install 2021-06-04 19:51:22 -04:00
extremeheat
ab70115bd8 Protocol updates for 1.16
* Login packet uses new Encapsulated type
* Add missing packet schemas
* Add more docs
Breaking: revises some field names
2021-06-03 16:52:19 -04:00
extremeheat
d981515a75 Release 3.2.1 2021-06-01 20:10:59 -04:00
extremeheat
e9098aa744 test/proxy: extra debug logging 2021-06-01 20:10:59 -04:00
extremeheat
5af828bcb7 Update types, add authTitle option to relay, client renderDistance -> viewDistance 2021-06-01 20:10:59 -04:00
extremeheat
9cb4a888f4
Fix empty chunks on proxy spawn (#89)
* Fix empty chunks on proxy spawn

Hack to fix issue with chunks not loading when client joins the proxy
* Queue chunk, respawn packets and only send them after player spawn

* fix lint
2021-05-24 12:07:03 -04:00
extremeheat
f0fbf4f859
Send skin data, protocol updates (#88)
* Add skin data

* Serialization updates
* Dynamic shield item id
* NBT reading/writing on void type uses 0 length, fix some third party servers

* Fix proxy empty chunk issue

* Fix scoreboards
compiler needs ../

* fix indentation

* Fix set_score packet

* Fix readme title auth doc

* Implement new compiler vars
2021-05-24 10:17:09 -04:00
extremeheat
76febb29f1
Support xbox title + live.com auth (#86)
* preliminary support for xbox title + live.com auth

* cleanup

* export title list

* add to api docs

* Verify that minecraft token has titleId if did titleAuth

* Minor changes
2021-05-19 09:53:55 -04:00
extremeheat
879a4c21ba Rename src/auth -> src/handshake 2021-05-12 04:29:34 -04:00
extremeheat
b8f6ab4ed3 Remove crypto deps
Use node crypto lib
2021-05-11 21:17:31 -04:00
extremeheat
3a4335a2ae
Fix third party servers, optional client encryption (#83)
* Fix CBMC connections, fix js-raknet
* Remove electron support

* make raknet-native an optional dep

* protocol: fix skin serialization

* enable debugging output in tests

* Fix tests

* Allow server to skip encryption

* update protocol docs
2021-05-11 13:39:46 -04:00
extremeheat
ab8b6ddc0c
Protocol updates, maps and rotation (#77)
* protocol updates
* Add clientbound map packet impl
* Add missing byte rotation implementation

* github: auto collapse generated diffs

* protocol doc fix

* protocol collision fix

* Fix map pixels
2021-05-04 13:56:12 -04:00
extremeheat
faf7373dfd Fix microsoft auth refresh 2021-05-04 03:00:08 -04:00
u9g
39659cf48b
rename hostname to host (#74) 2021-04-23 03:23:43 -04:00
extremeheat
b60fd53ad5
Add relay proxy to tests, docs, fix offline (#71)
* Add relay proxy to tests, docs

* Add proxy example, type defs

* update docs

* proxy: forward login packet, fix offline
2021-04-21 06:22:51 -04:00
extremeheat
5ea8056e04 Fix relay, cleanup 2021-04-20 09:55:57 -04:00
extremeheat
1538c3fc03 Add server MOTD options 2021-04-20 09:55:57 -04:00
extremeheat
7263791581 Async batching 2021-04-20 09:55:57 -04:00
extremeheat
999bfd3569
Enforce server auth, ping on createClient, update docs (#68)
* Add createServer, ping on createClient, update README

* fix createClient keepalive

* resort readme, fix node 14

* Enforce auth on server connections, fix close/connect issues

* add type definitions, update readme, docs

* Wait some time before closing connection, update docs

* wait for server close in tests, fix race bug

* export a ping api

* Rename api.md to API.md

* add ping example
2021-04-18 09:19:59 -04:00
extremeheat
d3723ef42a
1.16.220 support (#66)
* 1.16.220 initial support

* 1.16.220 fixes, electron gcm

* 1.16.220 item stack fix
2021-04-16 16:40:38 -04:00
u9g
d8ff48258c
Add createClient (#61)
* Initial commit

* remove comment

* export obj

* fix export

* add to api.md

* fix old refs to nmp
2021-04-14 23:39:05 +02:00
extremeheat
8663247a2a Lessen logging, fix JWT param 2021-04-14 07:42:36 -04:00
extremeheat
41b9f7b383 viewer: working first person 2021-04-07 07:15:22 -04:00
extremeheat
2aade94033 update raknet-native, remove aes-js 2021-04-07 06:59:22 -04:00
extremeheat
32d52e9878 viewer: refactor and cleanup 2021-04-03 22:56:36 -04:00
extremeheat
d2c0d3c386 viewer: add proxy example 2021-04-03 20:34:42 -04:00
extremeheat
88f88559af switch to browserify-crypto on electron 2021-04-03 20:30:01 -04:00
extremeheat
b79e4a65e4 packet fixes, login chain update, raknet updates 2021-04-03 20:25:53 -04:00
extremeheat
3369fc2790 update server example, use protocol updates
Server example with bedrock-provider
Use 64-bit varints for entity runtime ids
2021-03-26 04:48:23 -04:00
extremeheat
0bdd071876 client example updates 2021-03-26 04:48:21 -04:00
extremeheat
43ef9c9430 Add internal client/server test 2021-03-26 04:48:18 -04:00
extremeheat
e22dfea599 Fix server/client closing 2021-03-26 04:48:14 -04:00
extremeheat
cf6471f6eb Add packet dumper, configuable vanilla server, client events 2021-03-26 04:48:13 -04:00
extremeheat
b079ebc676 Add server close 2021-03-23 03:28:50 -04:00
extremeheat
edcc370426
Add index, .npmignore, connect timeout (#1)
* add index and .npm ignore

* add connect timeout

* update protocol.json

* Update ci.yml

* Update ci.yml
2021-03-22 15:07:25 -04:00
extremeheat
6803d742e6 player input, transaction, bitflag updates 2021-03-22 04:21:06 -04:00
extremeheat
597453100f serializer: absolute path imports 2021-03-21 16:16:20 -04:00
extremeheat
514a84fd19 1.16.210 fix 2021-03-21 16:03:24 -04:00
extremeheat
6b7138695e 1.16.210 update 2021-03-21 07:54:04 -04:00
extremeheat
458136d877
Vanilla server tests, client offline mode (#49)
* vanilla server launcher

* update package.json

* re-add babel to fix standard

* fix ci

* add buffer-equal

* simple fixes

* add offline client support

* fix closing bugs, proper wait for server start

* add test to mocha

* change test timeout to 2 min

* increase timeouts

Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2021-03-17 23:04:14 +01:00
extremeheat
bd97a8e1b7
client close handling, add spawn event (#48) 2021-03-14 00:49:54 +01:00