PDA

View Full Version : Server Rcon Commands


SgtD
10-30-2003, 05:44 PM
http://cod.mcgamers.com/sgtd/CallofDutyServerInformation.html

Got that off of some info from Infinity Ward

Wrasp
10-30-2003, 08:27 PM
NICE !!!! TY :clap:

rudedog
11-01-2003, 09:52 AM
http://cod.mcgamers.com/sgtd/CallofDutyServerInformation.html

Got that off of some info from Infinity Ward

Hey SgtD,
IW has updated their page on their site, added the needed cvars for disabling voting as well as listing what maps are compatible with what game types.

Trinity
11-01-2003, 08:49 PM
Any idea how to run a cfg file from console? Thanks

rudedog
11-01-2003, 09:06 PM
from console -local just type

exec your_cfg_file.cfg

from console -remote type

/rcon exec your_cfg_file.cfg



when I say local it could be your terminaled into your server and you type this into the small square box on the server or your setup as a listening server and playing in the game your hosting.

Hope this helps

wolf
11-01-2003, 09:30 PM
is it possible to have one .cfg file that is on a gamemachine (not the dedicated server) that could be executed. And have rcon adress and pass and also some "alias" in it to make rcon commands more simple to the server?

for example change map, status, server.cfg files and so on. i now it works in mohaa but does it work in CoD

have multiple cfg files on the dedicated server in mohaa and one cfg that is auto executed with a lot of short commands that some ppl have, so they have acces to the server and can use it without a lot of "hard to remember commands".

hope that you understand what i mean...my english...;-(

Hammer
11-01-2003, 10:09 PM
Wolf, I understand what you're asking and at the moment CoD does not allow aliases. However you can use set along with vstr to do something similar.

For example, in mohaa you code write:
alias tdm "g_gametype 2; map dm/mohdm1"

and then simply type tdm at the console and go.

In CoD, you'd need:
set tdm "g_gametype tdm ; map mp_dawnville"

and use vstr tdm to start it.

You can get really fancy with this, but it's still doesn't compare to the flexibility of the alias command.

Trinity
11-01-2003, 11:28 PM
RD I have tried the exec your_cfg_file.cfg and the /rcon exec your_cfg_file.cfg from inside the game. It says it is execing the cfg file but never changes game type. We have a cfg file for each game type and would like to be able to change them at a moments whim. Any idea why it wont work for me?

rudedog
11-02-2003, 08:25 AM
baring any problems with your cfg file.

make sure your calling each game type before each map. IW states this can cuase problems when changing maps or game types through voting. I assume this could also cause problems changing maps / game types through exec-ing cfg files

imported_gengomerpyle
11-04-2003, 08:02 PM
is there a rcon command to restart the whole server not just the map?

imported_m0g
11-06-2003, 01:15 AM
is there a rcon command to restart the whole server not just the map?

Iv'e been loking for this too..?

Tighten
11-06-2003, 01:19 AM
To restart the actual machine that is running the game, or the application itself?

imported_m0g
11-06-2003, 01:26 AM
To restart the actual machine that is running the game, or the application itself?

As in the CoD server, not just the map_restart command...

imported_MMS_Wyatt_Earp
11-06-2003, 03:38 AM
I had to setup my server for 3 different start and stop features for each game types :x . CoD does not like changing gametypes by .cfg i found out. The server would hang just like the gentle said earlier. So i created 2 new .cfg's for BEL and TDM, referenced them in my start and stop, and it works good. Besides, i would rather stop the server before switching any gametypes, mohaa servers after a while would crash after a-while of constaly swapping. Im not saying CoD does not offer on the fly gametype.cfg switching. I have not found it..... yet

rudedog
11-06-2003, 07:20 AM
You can exec the your_server.cfg file and this will kind of restart CoD.

If your refering to, restarting CoD so it recignizes new pk3 files like maps (once we start seeing them) I have not personally tried it and don't have an answer for you. Maybe one of the others could answer.

imported_gengomerpyle
11-06-2003, 08:50 AM
i figured out when you login you rcon password, to restart server using rcon command you use /rcon quit and it will shut server down and if your server host has a auto restart it will start back up in a few minutes

Tighten
11-06-2003, 10:33 AM
Since the RCON your using is part of the application, and the commands being issued are just for the application(COD) I don't think that you can reboot a physical machine with RCON through the game. (almost 100% postive) If this was the case, GSP's everywhere would have nightmares.



i figured out when you login you rcon password, to restart server using rcon command you use /rcon quit and it will shut server down and if your server host has a auto restart it will start back up in a few minutes

This is true of the way we set up our servers. You can also try putting this flag in a shortcut if that is how your server is set up > -restart 3 (3=the number of times it will try and restart the server upon a crash, or quit). I don't use shortcuts to run servers, but it may work.

Regarding that statement above (quit) command, it still does not shut down the server machine, just the application. Which in turn will start fresh with any new settings or file you may have added or changed.

rudedog
11-06-2003, 11:50 AM
Tighten, I think what he meant was, restart CoD itself and not the machine.

I wish there was a restart command. This way you could upload your new PK3 file issue the restart and bam CoD would restart with the new PK3 file.

But this is why people rent from FiberFrag.com to get a control panel to restart their CoD games.

Tighten
11-06-2003, 01:27 PM
Thanks for the compliment!