Closed Mambix closed 7 years ago
Just an update on this: with version 0.2.1 still not working
rcon = RCON(address=SERVER_ADDRESS, password=PASSWORD)
rcon.connect()
rcon.authenticate()
response = rcon.execute('players')
print(response.text)
Traceback (most recent call last):
File "D:/GIT/bitbucket.com/rustBOTina/src/test.py", line 31, in <module>
rcon.authenticate()
File "C:\Python27\lib\site-packages\valve\rcon.py", line 464, in wrapper
return function(instance, *args, **kwargs)
File "C:\Python27\lib\site-packages\valve\rcon.py", line 464, in wrapper
return function(instance, *args, **kwargs)
File "C:\Python27\lib\site-packages\valve\rcon.py", line 524, in authenticate
raise RCONAuthenticationError(True)
valve.rcon.RCONAuthenticationError: Banned
So now it does not connect to a server at all. And it reports the wrong error as I can issue commands on the server from my PC with other tools. So IP is not banned.
p.s. I did some analysis and it almost looks like the data that is sent is not correct. I see the data transmitted with wireshark. But the server just ignores it. Maybe Rust is using RCON protocol that is not to RCON standard???
Ok so I figure it out. classic RCON is depricated in Rust. They use WebRCON, which is RCON over webSockets. So this will not work with new Rust servers. For reference: https://github.com/Facepunch/webrcon
Hi!
I'm testing this on my local rust server and I can't make it work.
Runing
Gives me error:
But when I run this:
I get:
But I can see in RUSTY that the command was executed:
As you can see I also sent 'stats' command and it printed only header line since no players are connected.
Is this a bug or am I doing something wrong here?