SRCDS Steam group


Get/Send SRCDS Console programmatically
#1
I'm creating a little application that will run on my linux server and will do all sorts of tasks.
I'm trying to find ways to extract text from the SRCDS console and also send commands to it without having to connect using the rcon Protocol.

This way my program won't require the rcon password to do work with the game server.

Why am I trying to avoid rcon password?

because getting the rcon password is not easy and safe..
I have implemented a scanner which searches in each srcds folder and extracts the rcon password from the server.cfg file, but that can fail if the rcon password was changed in-game and its not really efficent.

So does anyone know a way to get direct input/output of SRCDS console in C++ or JAVA?
Reply
#2
you can make srcds log all the console. I have forgot the command so maby someone else can help
~ trewq
Reply
#3
Thats not a bad idea. Now I just need to find a way to send char's to the console
Reply
#4
King Goilio Wrote:you can make srcds log all the console. I have forgot the command so maby someone else can help

Yea, in the config, you type
Code:
log on

Concerning sending commands, I don't know how you can enforce it to do whatever without authentication. If anyone finds out how, it will be cool... Does the Valve SDK offer such thing?
Reply
#5
Mani allows ypu to execute Rcon commands without the password so it is possible with a plugin.
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
Reply
#6
Your best bet would probably be to write a sourcemod plugin - and instead of parsing console text, hook the events you want.
[Image: sig_spam.JPG]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)