[CPMA] Quit server after one map is played

Locked
4science
Posts: 11
Joined: Mon Mar 26, 2012 3:03 pm

[CPMA] Quit server after one map is played

Post by 4science »

Hello,

I am trying to use Q3/CPMA for an experiment. I am currently working on a Python script that handles the logic of the experiment. I start Q3 from my Python script and load the game with a certain configuration file that specifies the server settings. This part runs smoothly. My question now is, how do I /quit the server after the first map has been played? That is, instead of having some kind map rotation logic, I want the server to disconnect and the game to exit (i.e. as if I enter /quit in the console).

I set the map in MyServer.cfg which is located in /cpma/cfgs/ by adding map q3dm1 in the end. I then start the game by calling quake3.exe with these parameters:

Code: Select all

+nosplash +set fs_game cpma +exec cfgs/MyServer.cfg


I guess that my 'quitting after first map is played' logic needs to be incorporated in the MyServer.cfg file. I know that normal map rotations are handled with the nextmap command in VQ3 but I can't get this to work in CPMA.

I feel like I am missing something obvious -- this shouldn't be a problem. I couldn't find anything about it in the documentation, though. Can someone help?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: [CPMA] Quit server after one map is played

Post by ^misantropia^ »

`map <name>; set nextmap quit`?
4science
Posts: 11
Joined: Mon Mar 26, 2012 3:03 pm

Re: [CPMA] Quit server after one map is played

Post by 4science »

^misantropia^ wrote:`map <name>; set nextmap quit`?
I tried that and it didn't work. I tried this as well:

Code: Select all

set nextmap quit
map q3dm1
Thinking that maybe the nextmap var has to be defined before or something. Didn't work either.

What is confusing me is that your solution works in VQ3. That's why I put the [CPMA] tag in front of the name of the topic... this has to be a CPMA-specific problem. Or do I miss something obvious?
Locked