PDA

View Full Version : gametype configs


Boneman
11-09-2007, 03:06 PM
I'm trying to make things very very simple for our very very simple admins because we don't want them to edit any configs on the server to change gametypes.

Back in my MOH days, we had a server.cfg that exec'ed a tdm.cfg for our default setting and could then exec an obj.cfg and the server would be restarted by doing (i think) a "rcon server_restart" and objective mode was loaded.

I haven't been able to find a means of restarting the server into the preferred gametype..is there a way to do this?
Its been at least 4 years since i did configs for MOH and i'm afraid i dumped all that ROM a long time ago. ;)

Thanks

Daboys
11-09-2007, 03:39 PM
You can load different configs anytime but it isn't a full server restart. You could also schedule a restart using software and that would load a new config. I don't know about starting a server under one config, rcon a simple restart command and have the server start use another config. It comes down to the parameters used to start the server.

<MAD>Jackson
11-09-2007, 04:26 PM
i can see where your coming from with this boneman as i to was admin on a moh server and the system you describe did work quite well.
the only thing i can think of too possibly get it to work in cod4 would be to make a default config file for the game type you want the server to start up with (eg TDM) and call it out at the end of the server config maybe something like this :-

//************************************************** ****************************
// Init & Exec CFG Files
//************************************************** ****************************
wait
exec playercontrol.cfg
wait
exec weaponcontrol.cfg
wait
exec gametypes.cfg
wait
exec maprotation.cfg
wait
exec tdm.cfg

and then have another cfg or cfg's for other gametypes or match modes in the folder and call them out though rcon
then upon restarting the server it should restart on the TDM.cfg.
I'am not sure if this will work and don't have the time to make the cfg's and test it maybe someone else can say if it will for sure or if you try it and it works maybe let me know !

Daboys
11-09-2007, 04:30 PM
MOH server admin myself, you talking about the program MOH CI (Counter Intelligence)

http://69.56.234.178/downloads.htm

<MAD>Jackson
11-09-2007, 04:35 PM
no we played mohpa and did it as bonemad say's

DSK
11-09-2007, 04:47 PM
i from MohSP and here is how we did it in rcon:

Have your different configs setup ie tdm = tdm.cfg sd=sd.cfg mixedgametypes= mixed.cfg

in console u type

rcon exec tdm.cfg

now each of the cfg's i mention would be what you would call your server.cfg file. And within each of those you can exec your mapcontrol.cfg, playercontrol.cfg etc.. Note give your map and player cfg unique names for each confg you want to exec.

So in Cod4 its:

/rcon exec tdm.cfg for what you have as your normal mode
and
/rcon exec match.cfg for example would put u in your match mode config.. when done with match then
/rcon exec tdm.cfg and you back to noraml

no server restarts and when u exec the files nobody gets kicked. So when u enter match mode u may have to kick the non match players manually but they can not come back because they wont have the password.

DSK

Boneman
11-11-2007, 05:44 AM
Thanks guys...I'll be working on this using your ideas and when i get it working, I'll post them.
I got sooooo spoiled using bf2cc by not having to write/edit/use configs.

Boneman
11-12-2007, 10:08 PM
Thanks guys...I'll be working on this using your ideas and when i get it working, I'll post them.
I got sooooo spoiled using bf2cc by not having to write/edit/use configs.
well, i've tried it several times but i just can't seem to get the familiar server restart to happen to exec the new config. I'm at a loss.

Has anyone figured out how to exec and load a config without having to do a full server restart?

Spud
11-29-2007, 11:47 PM
Probably has been answered already but after you put in the

/rcon exec tdm.cfg

follow that with

/rcon map_rotate


That does the trick for us.