graftmc / friendconnect Goto Github PK
View Code? Open in Web Editor NEWA tool for minecraft bedrock that allows console players to join a server
Home Page: https://github.com/Androecia/FriendConnect
License: Other
A tool for minecraft bedrock that allows console players to join a server
Home Page: https://github.com/Androecia/FriendConnect
License: Other
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'
}
}
Server is not being served.
I'm on arch linux. Tool runs without error, gets my server data- and dies.
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
It seems that 1.19.10 is stuck on joining multiplayer game.
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)
saved.log
Debug log here during npm i friend-connect
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?
[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 [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.
I’d like to get this setup on a raspberry pi (arch Linux) but I haven’t used JavaScript before, could I have some newbie instructions on how to do this?
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?
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?
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
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
Provided Discord server invite link has expired
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
How do you get the Tokens needed for this?
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.
My server is multiversion but only 1.19.0 bedrock users can connect. Help :(
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.