GithubHelp home page GithubHelp logo

graftmc / friendconnect Goto Github PK

View Code? Open in Web Editor NEW
63.0 4.0 19.0 365 KB

A tool for minecraft bedrock that allows console players to join a server

Home Page: https://github.com/Androecia/FriendConnect

License: Other

TypeScript 96.60% JavaScript 3.40%
mcbe minecraft bedrock realms bds geyser nukkit pocketmine java server

friendconnect's People

Contributors

atxltheaxolotl avatar densellp avatar djstompzone avatar erisfiregamer1 avatar jrcarl624 avatar loki-101 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

friendconnect's Issues

JSON parse error

Was working fine for a couple of days, then suddenly:

undefined:1

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at packageData (node:internal/deps/undici/undici:6370:23)
at specConsumeBody (node:internal/deps/undici/undici:6348:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Users/minecraft/Desktop/bds/node_modules/friend-connect/dist/xbox/modules/rta.js:126:24

and

node:internal/deps/undici/undici:14062
Error.captureStackTrace(err, this);
^

TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:14062:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (node:internal/deps/undici/undici:7897:28)
at node:internal/deps/undici/undici:7855:50
at Immediate._onImmediate (node:internal/deps/undici/undici:7884:37)
at process.processImmediate (node:internal/timers:471:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}

Tool does not work

Server is not being served.
I'm on arch linux. Tool runs without error, gets my server data- and dies.

not working on: new version

i dont use friend connect anymore because it crashesh the most of times and that makes my server crash. also please update it for node.js v20

1.19.10 issue

It seems that 1.19.10 is stuck on joining multiplayer game.

Server Advertisement Error for an IPv6 server.

This is a geyser enabled java server, natively running on IPv6 with the java flag -Djava.net.preferIPv6Addresses=true. When I use the IPv6 domain of this server as the ip in this tool, I get these errors in the console and I get stuck on connecting to multiplayer game.

[FriendConnect ] Server Advertisement Error
Error Name:  Error
Error Message:  Invalid connection address minecraft.domain.com/19132
Error Stack:  Error: Invalid connection address minecraft.domain.com/19132
    at new Client (/home/ryuo/FriendConnect/node_modules/raknet-native/lib/RakNet.js:8:19)
    at new RakNativeClient (/home/ryuo/FriendConnect/node_modules/bedrock-protocol/src/rak.js:45:19)
    at ping (/home/ryuo/FriendConnect/node_modules/bedrock-protocol/src/createClient.js:87:15)
    at Session.getAdvertisement (file:///home/ryuo/FriendConnect/node_modules/friend-connect/dist/index.js:419:30)
    at Timeout._onTimeout (file:///home/ryuo/FriendConnect/node_modules/friend-connect/dist/index.js:133:26)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

random crash and not auto restarting

Hello, I managed to get this setup up and running on my server and it works pretty darn good for the most part. However I ran into an issue where the friend-connect disconnected for some reason and after attempting to reconnect, it just gets stuck on this step and doesn't progress any further. I know I can just restart it manually, but that's not a good long term solution. Any ideas?

Screenshot 2022-09-01 133444

Friendconnect sometimes just stops working

[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.

Friendconnect sometimes just stops working

[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] AutoFriend Interval
[FriendConnect [email protected]] 79 profile(s) have this account friended.
[FriendConnect [email protected]] 79 profile(s) have this account friended.

This happens randomly depending of how many players are connecting through friendconnect.

AutoFriend kicks people when trying to connect

When I try to join the bot's server, it just kicks me out and says unable to connect to world. I checked the console and when I'm kicked out, the AutoFriend is doing its work. How can I fix this?

Can't run new version

Hi, im updating from an old version of friend-connect and usually launch this project with the following batch script:

:start
@cmd /C "node --es-module-specifier-resolution=node %~dp0\index.js"
timeout /t 5
goto :start

However now im getting the following error:

C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src>goto :start
(node:13732) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/errors:491
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/C:/Users/minecraft/Desktop/bdsx-master/plugins/FriendConnect-main/src/index.js' imported from C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src\
    at new NodeError (node:internal/errors:400:5)
    at finalizeResolution (node:internal/modules/esm/resolve:308:15)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at node:internal/modules/run_main:58:28
    at loadESM (node:internal/process/esm_loader:91:11) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.13.0

Any idea why it's not working?

Unable to Connect to World

I have the Pteradactyl Egg running on my server...

The friend request is accepted automatically, the server shows in my friends list no problem, relays the correct server stats (Name, MOTD, and Player Counts). However when I attempt to connect, I just get the Unable to connect to world error.

I have verified in my .env file, and the test/index.js file that all settings are correct for my server, and have tried to get a friend (outside my home network) to connect as well. Same result

Can't connect to world

When I try to join the bot's server, it displays me this message: Unable to connect to world. The world is no longer available to join. Unable to connect to world.

How to fix this?
P.S. Sometimes I can join, but rarely

Server Advertisement Error

Not sure if this is a bug or if I am doing something wrong, but when I run "node --es-module-specifier-resolution=node ./start.js" (./start.js is the file path) I get the following error. It begins by initializing the accounts listed in the start.js file (which it should), but then immediately throws a "Server Advertisement Error). I tested this on two different computers and got the same results. I also reinstalled Node JS and FriendConnect and restarted my computer and still got the same error. I copied the error from the friend-connect-error.log file.

OS: Windows 10 (10.0.19044 Build 19044)
Node JS version: 18.12.1

[1670742559799] Server Advertisement Error:

	Name: TypeError

	Message: Wrong arguments

	Stack: TypeError: Wrong arguments
at new Client (C:\Users\Tyler\Desktop\XboxConnect\node_modules\raknet-native\lib\RakNet.js:8:19)
at new RakNativeClient (C:\Users\Tyler\Desktop\XboxConnect\node_modules\bedrock-protocol\src\rak.js:35:19)
at ping (C:\Users\Tyler\Desktop\XboxConnect\node_modules\bedrock-protocol\src\createClient.js:87:15)
at Session.getAdvertisement (file:///C:/Users/Tyler/Desktop/XboxConnect/node_modules/friend-connect/dist/index.js:419:30)
at new Session (file:///C:/Users/Tyler/Desktop/XboxConnect/node_modules/friend-connect/dist/index.js:76:14)
at file:///C:/Users/Tyler/Desktop/XboxConnect/start.js:3:1
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)

	Error: TypeError: Wrong arguments

TypeError: Wrong arguments

node --es-module-specifier-resolution=node  --experimental-fetch index.js

I get the following error when I run

(node:17644) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
[FriendConnect [email protected]] Initializing Account
[FriendConnect [email protected]] Initializing Account
[FriendConnect ] Server Advertisement Error
Error Name:  TypeError
Error Message:  Wrong arguments
Error Stack:  TypeError: Wrong arguments
    at new Client (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\raknet-native\lib\RakNet.js:8:19)
    at new RakNativeClient (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\bedrock-protocol\src\rak.js:35:19)
    at ping (C:\Users\hm74c\OneDrive\ドキュメント\FriendConnect\node_modules\bedrock-protocol\src\createClient.js:87:15)
    at Session.getAdvertisement (file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/node_modules/friend-connect/dist/index.js:419:30)
    at new Session (file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/node_modules/friend-connect/dist/index.js:76:14)
    at file:///C:/Users/hm74c/OneDrive/%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/FriendConnect/index.js:3:1

The part that looks like%E3%83%89%E3%82%AD%E3 is a Japanese character.

bug: npm modules are out of date

Modules in the package.json file are very out of date. My suggestion would be to install a tool like renovate to the repo so it can submit PRs one at a time for dependency updates. Work can also be done locally to fund all the node modules one at a time to update their versions to be more stable and supported.

I can't run it

when I run it, the error message always comes and the download and installation was not successful
Screenshot_20230204-074858

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.