-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disconnecting VANILLA connection attempt... #14
Comments
I'm getting the same error with the same code (pointed at my server instead) Has anyone solved this already? I googled but sadly found nothing :( Is this no longer maintained? |
Additional info, I'm running forge 1.15.2 31.2.46 |
@SamL2020 try this
IIRC, this needs to be false or the auto config won't work. I'm no expect though. I haven't gotten this working myself, but hopefully this helps! |
The Forge handshake protocol changed significantly since 1.7 - 1.12, versions 1.13 and later use "FML2 Protocol": https://wiki.vg/Minecraft_Forge_Handshake#FML2_protocol_.281.13_-_Current.29 would need to implement FML2 in node-minecraft-protocol-forge to support this version |
anyone working on that? |
Same error when connecting to a Forge server behind a Velocity proxy. My bot's code const autoVersionForge = require('./third-party/node-minecraft-protocol-forge').autoVersionForge;
const mineflayer = require('./third-party/mineflayer')
const bot = mineflayer.createBot({
host: process.argv[2],
port: parseInt(process.argv[3]),
username: process.argv[4],
password: process.argv[5],
brand: "forge" // even without this I get the same error
})
autoVersionForge(bot._client)
const welcome = () => {
bot.chat('/server ForgeCreative') // Connect to the Forge Server
bot.chat('hi! uiodfshdsfuiodfshidihsdfisdfhisdfiodfshui')
}
bot.once('spawn', () => {
welcome()
})
bot.on('message', (message, position, sender, verified) => {
const msg = message.toAnsi()
if (position == 'chat') {
let player = null
for (playerName in bot.players) {
if (bot.players[playerName].uuid == sender) {
player = bot.players[playerName]
break
}
}
console.log(player.username, msg)
}
if (position == 'system') {
console.log(msg)
}
})
bot.on('kicked', console.log)
bot.on('error', console.log) Velocity information
Forge information The bot is able to connect to none Forge servers behind the same Velocity proxy and real Forge clients can connect to the forge server. |
I also can't get it to connect to my Forge 1.18.2 server. |
Code in JS is:
The server is forge 1.15.2
Disconnecting VANILLA connection attempt...
was in console of serverThe text was updated successfully, but these errors were encountered: