Trying to connect to a CS:S Server [VB6]

  • Thread starter Thread starter Xandu
  • Start date Start date
X

Xandu

Guest
Hi,

I'm making a program which needs to connect to a CS:S Server so i can let the program execute RCon commands. I already made a program like this for Enemy Territory but the way i did it then doesn't seem to work on the CS:S Servers. I'm using the Winsock component at UDP protocol.

Does anyone know how to connect?

Xandu
 
I was trying to do this awhile back with CS:S Beta back in the day :P

Anyhoo I found out that the rcon protocol has changed from half-life 1. It is no longer UDP but TCP. Due to my short attention span I gave up (which is a shame), mostly due to my lack of TCP knowledge. If you get something going, maybe you could post the code?

EDIT:

Here's a wiki on it...
http://wikki.kquery.net/index.php/Other:SourceRcon

EDIT2: Oh Wow it has class libraries, those weren't there last time I saw. And theres one for C#! This is pretty cool. All the code is already done :D!
 
Wow that's strange. I wrote the C# one, I had no idea that'd been posted up there.
 
Thx for the info McFace but like the site you posted says does a line that i send to authenticate be <length> <ID> <SERVERDATA_AUTH> <string> <string2>
so that means if i fill it in it's something like this: 10 1 3 <pass of like 5 chars> & chr(0)
If i do this i wont get anything back from the server

It's the connecting part i need to get done but i dont know how, theres a good php example but i'm not good at php so.....plz some help here

Xandu
 
Back
Top