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:
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?