thanks, coolinfratec wrote:Hi, my last favour for you:
RCON Protocol on PB
-
- Enthusiast
- Posts: 176
- Joined: Sun Jun 28, 2009 7:07 pm
- Location: RUS
-
- Enthusiast
- Posts: 176
- Joined: Sun Jun 28, 2009 7:07 pm
- Location: RUS
-
- Enthusiast
- Posts: 176
- Joined: Sun Jun 28, 2009 7:07 pm
- Location: RUS
thanks, found the solution:cas wrote:Maybe unicode switch (and possibly some tweaks in code) should help.registrymechanic22 wrote:Hi all
Please Give:
how to send Russian text of the server, and then on to the server come scribble ... ((
???
PrintN(SendText$) 'bad text'
CharToOem_(SendText$,SendText$)
PrintN(SendText$) 'good text'
Re: RCON Protocol on PB
I try to implement this code to my communication with server program, but it's work wrong. After it connected, server print in stdout: "Disconnected: Invalid Password" but passwords is OK and after that my program crashed with that error: "[08:51:30] [ERROR] rcon.pb (Line: 45) [08:51:30] [ERROR] Invalid memory access. (read error at address 20)".
Program crashes in:
ProtocolExamples: https://developer.valvesoftware.com/wik ... _Libraries
P.S. after i disable unicode executable, Authorization for now WORK FINE, but commands don't execute and reached "Receive timeout!"
P.S.S. after debug in sniffer I found that SERVERDATA_AUTH_RESPONSE dont sended to Client, so we dont need to check that.... ALL WORKED !!!
Program crashes in:
Code: Select all
Procedure RConReceive(Con, *ID, *CommandResponse, *Str1, *Str2, MaxWait)
Result = -1
*Buffer = AllocateMemory(8192) ;<<<--------
ProtocolExamples: https://developer.valvesoftware.com/wik ... _Libraries
P.S. after i disable unicode executable, Authorization for now WORK FINE, but commands don't execute and reached "Receive timeout!"
P.S.S. after debug in sniffer I found that SERVERDATA_AUTH_RESPONSE dont sended to Client, so we dont need to check that.... ALL WORKED !!!
Re: RCON Protocol on PB
Hi,
I changed all my code to send and receive ASCII.
It should work now independent from the compiler settings.
According to your link:
I changed all my code to send and receive ASCII.
It should work now independent from the compiler settings.
According to your link:
BerndWhen the server receives an auth request, it will respond with an empty SERVERDATA_RESPONSE_VALUE, followed immediately by a SERVERDATA_AUTH_RESPONSE indicating whether authentication succeeded or failed
Re: RCON Protocol on PB
Thanks Bernd for your code!
I use this constants:
work fine for me (RUST dedicated server)
I use this constants:
Code: Select all
#SERVERDATA_AUTH = 3
#SERVERDATA_AUTH_RESPONSE = 0
#SERVERDATA_EXECCOMMAND = 2
#SERVERDATA_RESPONSE_VALUE = 4