Main Menu

RCON from the console.

Started by Anonymous, September 27, 2007, 12:16:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anonymous

The most basic way of admining a CS/DoD/TF etc. server is to use RCON from the console window. You are in effect having to type in the commands to your client console that would normally be executed for you by the various scripts/mods that are installed.

If you are familiar with using HLSW to carry out Admin then using the console won't be too much more difficult as you may already know many of the commands.

The difference between raw RCON and HLSW RCON is that in HLSW you can click on players to get a menu or you can use the HLSW console to directly enter RCON commands (such as "mp_restartgame 5" which would restart the map in 5 seconds). In raw RCON you are typing in your client console, not directly in the server as you would with HLSW, consequently you MUST put "rcon " at the front of each RCON command or it will not work.

The first console command you MUST enter is "rcon_password " where you replace "" with whatever the current server RCON password happens to be. This lets the server know that you are allowed to carry out RCON commands. See the first post in this link for the current RCON password to CS/TF servers.

Assuming that you are on the server as a player, once you have correctly entered the RCON password you can now execute RCON commands from the console by typing "rcon" followed by the required command . If you wanted to kick someone, for instance, you would need to type "rcon kick " or "rcon kick ", or if you wanted to turn on friendlyfire, then you would type "rcon mp_friendlyfire 1".

If you want to remotely administer a server when it is full, and you cannot for some reason use HLSW, then start your client Half-Life game as normal.  Without getting into a game, just open up the console and start with "rcon_address ", where is the IP of your server.   Then input  rcon_port  of your server (eg, boomer is on 27019).  Next use "rcon_password ".  Then let loose with your "rcon ".

See Sadako's post for a list of console commands.

Warning: if you fail to enter the correct RCON password and then start entering RCON commands then you will very quickly find your IP address is auto banned. If this happens please post in a public part of the forum so that everyone can see what a plonker you have been and once we have all stopped laughing one of us will unban you :devil:.

I have a file in my cfg folder called dmw.cfg and it contains the line "rcon_password xxxxx" where xxxxx is the current RCON PW. when I join a dmw server I just go to console and type "exec dmw.cfg" and it enters the RCON PW for me.

KKND

I have a file in my cfg folder called dmw.cfg and it contains the line "rcon_password xxxxx" where xxxxx is the current RCON PW. when I join a dmw server I just go to console and type "exec dmw.cfg" and it enters the RCON PW for me.[/quote]

Where do you place that file BB in your TF2 map.?

Anonymous

dmw.cfg goes in the same place as your autoexec.cfg or your userconfig.cfg (depending on which you use). Basically, keep any .cfg files you will want to execute in the cfg folder of your client.

For example I have CSS in:

C:\Program Files\Steam\SteamApps\email_address\counter-strike source\

so my dmw.cfg goes in:

C:\Program Files\Steam\SteamApps\email_address\counter-strike source\cstrike\cfg\

If you wanted to use it for TF as well then you would need to copy it to the equivalent folder in the TF folder structure which I think (as i dont have TF2) would be:

C:\Program Files\Steam\SteamApps\email_address\orangebox\tf\cfg\

but I may be wrong on that.

KKND

Quote from: BlueBall;207650dmw.cfg goes in the same place as your autoexec.cfg or your userconfig.cfg (depending on which you use). Basically, keep any .cfg files you will want to execute in the cfg folder of your client.

For example I have CSS in:

C:\Program Files\Steam\SteamApps\email_address\counter-strike source\so my dmw.cfg goes in:

C:\Program Files\Steam\SteamApps\email_address\counter-strike source\cstrike\cfg\If you wanted to use it for TF as well then you would need to copy it to the equivalent folder in the TF folder structure which I think (as i dont have TF2) would be:

C:\Program Files\Steam\SteamApps\email_address\orangebox\tf\cfg\but I may be wrong on that.

Thnx will have a try..:)

KKND

#4
This is my TF2 cfg dont think it belongs in here?

Whitey

The dmw.cfg will go in that directory and you should then be able to call it from the TF2 console.

KKND

So in there in the above picture off my cfg i put the line

"rcon_password ********" ?

Ore do i have too make a new dir "dmw.cfg" and put in there the line.?

Lost here..:blink:

Whitey

If you only play on the dMw servers you could add the line to your config.cfg but if you play on other servers as well, you should create a new file called dmw.cfg and put the line in it as per BB's instructions.  You would then execute this file from the console before doing any rcon commands.

KKND

#8
Tryed both but none is working..

Im getting unknow command rcon

btw..is it with the " infront and back ore without.?

Maybe get The Sourcemod on the server.:flirty:

Edit: works now ...