rcon-client icon indicating copy to clipboard operation
rcon-client copied to clipboard

Not working for Chivalry Medieval Warfare

Open avi312singh opened this issue 3 years ago • 0 comments

Title is pretty self explanatory

I took some time to debug the code and here is what happened... Couldn't authenticate

image

Does it have anything to do with the fact chivalry has this documentation for the Rcon Protocol: RCON Documentation

Would this be a problem?

const { Rcon } = require('rcon-client')

async function main() {
    const rcon = new Rcon({
        host: "79.98.25.135",
        port: 25575,
        password: "xxxxxx"
    })

    rcon.on("connect", () => console.log("connected"))
    rcon.on("authenticated", () => console.log("authenticated"))
    rcon.on("end", () => console.log("end"))

    await rcon.connect()

    console.log('connected')
    // console.log(await rcon.send("/list"))

    // await Promise.all([...Array(10)].map((_, i) => rcon.send(`/say ${i}`)))

    rcon.end()
}

main().catch(console.error)

Error: connect ETIMEDOUT 79.98.25.135:25575

avi312singh avatar Jun 20 '21 03:06 avi312singh