It would make life so much easier while updating lua scripts on dedicated server...
Forum
CS2D Scripts Send RCON remotelySend RCON remotely
8 replies 1
It would make life so much easier while updating lua scripts on dedicated server...
But the tool requires Microsoft .NET Framework, making it pretty much Windows-only.
Also note that external RCon can be a security risk and that it only works when the server is configured correctly. Features like sv_rconusers disable external RCon.
1
data = bytearray([1,0,242,4,'test',12,'sv_name test'])
This format one doesn't work
Edit:
1
2
2
MESSAGE = "1.0.242.4.test.12.sv_name test" data = MESSAGE.encode('utf-8')
This one sends the line but server doesn't execute the command
edited 1×, last 04.07.18 09:15:17 am
I am on correct path already but I am stuck with converting password string to bytes + ascii
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
password = 'test' command = 'sv_name test' first = (1).to_bytes(1, byteorder='big') second = (0).to_bytes(1, byteorder='big') third = (242).to_bytes(1, byteorder='big') fourth = (4).to_bytes(1, byteorder='big') fifth = ???? msg = first + second + third + fourth print('message: ', msg) ///Output: message: b'\x01\x00\xf2\x04'
Btw if there was a working example line it would be much easier for a noob like me to send that line
I made this but have no idea if server can accept it:
b'\x01\x00\xf2\x04test\x0c\x00sv_name test'
Ok I tried this line just for the sake of it and it works
Success in something you have no idea at feels good
1