Commit graph

41 commits

Author SHA1 Message Date
extremeheat
7b74cbf712
Fix zigzag type move in prismarine-nbt (#471)
* Fix rename of zigzag varint type in prismarine-nbt

* fix
2023-12-27 12:53:39 -05:00
extremeheat
d2c4430833
Add missing data to client login user chain (#420)
Fix connecting to pocketmine servers
2023-06-25 14:20:50 -04:00
extremeheat
6d708339aa
Release 3.29.0 (#411)
* Release 3.29.0

* tests: swap UAs to see if fixes flaky CI

* lint

* tests: increase head timeout

* undo ua changes
2023-06-08 05:26:22 -04:00
andriycraft
17d5b15bac
Update genPacketDumps.js (#393)
* Update genPacketDumps.js

* Update genPacketDumps.js
2023-05-04 12:59:56 -04:00
extremeheat
6737ab09d0 startVanillaServer: handle server timeout on head request 2022-11-29 00:41:53 +00:00
extremeheat
a326d42a10
Release 3.21.0 (#315)
* Update HISTORY.md

* Update package.json

* Update HISTORY.md

* Update startVanillaServer.js

* Update startVanillaServer.js

* Update startVanillaServer.js

* lint
2022-10-29 03:24:52 -04:00
extremeheat
c51b55d4c7
Make CI less flaky (#293)
* add debug code to server start

* Reduce number of versions tested on Github Action CI to speed up tests

* test: Ask OS for free port instead of random int
2022-10-04 02:47:06 -04:00
extremeheat
72dd749717
tools/vanillaServer: add HEAD request timeout
prevent long hangs
2022-09-24 15:46:33 -04:00
extremeheat
f88c8d0bc4
1.19.30 support, improve error handling and server pong data (#284)
* Update server advertisement

* 1.19.30 protocol support
* Handle configurable compressor
* Support updated 1.19.30 login flow with NetworkSettings
* Improve serialization error handling on client

* refactor compressor handling

* Fix client on older versions, fix internal error handling

* Improve error handling

* Log console connection errors; use raknet-native for proxy test
2022-09-24 13:53:26 -04:00
Miniontoby
ce06762dce
test: Add -u flag unzipping vanilla server (#262)
* Fixed startVanillaServer.js

I fixed the CI by editing startVanillaServer.js and adding -u to unzip and tar

* Update startVanillaServer.js
2022-08-24 00:34:14 -04:00
extremeheat
370ca96f2e
Update startVanillaServer.js
Debug log on CI
2022-07-21 06:24:15 -04:00
extremeheat
b6d0ab3765
Make CI more reliable (#217)
* Use 2-attempt server start method in dump test

* Update startVanillaServer.js

replace download from curl to nodejs https

* fix syntax error

* corrections

* rm some logging

* fix
2022-06-09 14:46:05 -04:00
extremeheat
52156a0024
Add XUID field for client offline mode client chain (#203)
* Add XUID field for client offline mode client chain

* Update serverPlayer.js

handle alternative casing

* test/internal.js: randomize test port

* fix

* test server starting retry
2022-04-30 19:02:56 -04:00
extremeheat
dc3fb5629e
1.18.30 (#198) 2022-04-20 16:11:02 -04:00
extremeheat
bb2179a8cb
Fix port collision caused by race condition in tests (#164)
* Fix port collision caused by race condition in tests

The ipv6 port is not randomized, if the previous ports for the last test didn't get freed in time, the server can crash on launch

* try again

* Update index.d.ts

* Update genPacketDumps.js
2021-12-15 23:55:32 -05:00
extremeheat
1a1fa618e4
1.18 update (#157) 2021-12-04 01:10:47 -05:00
extremeheat
adfa248e2d
Default createClient to latest version, fix server motd version (#144)
* Default createClient to latest version, fix server motd version

* Update vanilla.js
2021-10-08 05:56:10 -04:00
extremeheat
f8ea6c01f4
Use minecraft-data for protocol data (#126)
* use minecraft-data protocol data

* use minecraft-data for extra data

* Update .npmignore

* update skin data

* fix example

* remove .gitattr

* fix mcdata skin import, disable install script
2021-09-25 22:57:29 +02:00
extremeheat
1f7e94e5db
Update some examples, cleanup (#136)
* Update some examples, cleanup

* lint
2021-09-18 19:50:43 -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
1cdb0e4c55 Update protodef version 2021-06-23 00:10:58 -04:00
extremeheat
5f0adfab76
1.17 support (#99) 2021-06-09 17:26:44 -04:00
extremeheat
187e74b823 use protodef-compiler-fix to fix npm install 2021-06-04 19:51:22 -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
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
u9g
39659cf48b
rename hostname to host (#74) 2021-04-23 03:23:43 -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
extremeheat
aec81efba8 Merge branch 'master' of https://github.com/PrismarineJS/bedrock-protocol into examples 2021-04-14 07:25:38 -04:00
u9g
21a0dcd393
Add metadata dumping to dumpPackets.js (#63) 2021-04-14 04:23:04 -04:00
u9g
ed2dbcc568 Add packet dumper with same format as java dumper 2021-04-11 00:56:33 -04:00
extremeheat
32d52e9878 viewer: refactor and cleanup 2021-04-03 22:56:36 -04:00
extremeheat
a55eaddc98
Add packet dumper, new server example, internal client/server test (#4)
* Add packet dumper, configuable vanilla server, client events

* Fix server/client closing

* Add internal server test

* protocol: use WindowID types

* Add internal client/server test

* test timeout fixes

* client example updates

* update server example, use protocol updates
Server example with bedrock-provider
Use 64-bit varints for entity runtime ids

* fix internal test packet path
2021-03-26 05:19:08 -04:00
extremeheat
0bdd071876 client example updates 2021-03-26 04:48:21 -04:00
extremeheat
be98fc6cf8 test timeout fixes 2021-03-26 04:48:20 -04:00
extremeheat
bb9b94fa02 Add internal server test 2021-03-26 04:48:15 -04:00
extremeheat
cf6471f6eb Add packet dumper, configuable vanilla server, client events 2021-03-26 04:48:13 -04:00
extremeheat
b569cb6353 update build script 2021-03-21 19:41:52 -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
extremeheat
58e011e06d
Login refactoring (#45)
* Refactor auth + encryption

Fix a bug with client account token caching

* move some files
2021-03-13 19:50:16 +01:00