
09-03-2003, 01:09 PM
I have done some experimenting and since MOH Admin's Forum wont let me register..... I am posting here.
I was looking for other solutions to help get a mixed map server working and this is what I found. If I create a script and put it into my cfg file for the server, the maps will run. Here's an example of what the scrip looks like...
set x1 "g_gametype 4; fraglimit 0; timelimit 20; roundlimit 5; map obj/obj_team1; set nextmap vstr x2"
set x2 "g_gametype 2; fraglimit 0; timelimit 20; roundlimit 5; map dm/mohdm1; set nextmap vstr x3"
set x3 "g_gametype 4; fraglimit 0; timelimit 20; roundlimit 5; map obj/obj_team2; set nextmap vstr x4"
set x4 "g_gametype 2; fraglimit 0; timelimit 20; roundlimit 5; map dm/mohdm2; set nextmap vstr x5"
set x5 "g_gametype 4; fraglimit 0; timelimit 20; roundlimit 5; map obj/obj_team3; set nextmap vstr x6"
set x6 "g_gametype 2; fraglimit 0; timelimit 20; roundlimit 5; map dm/mohdm3; set nextmap vstr x7"
set x7 "g_gametype 4; fraglimit 0; timelimit 20; roundlimit 5; map obj/obj_team4; set nextmap vstr x8"
set x8 "g_gametype 2; fraglimit 0; timelimit 20; roundlimit 5; map dm/mohdm4; set nextmap vstr x1"
vstr x1
I start the server and the first map loads. Since the first map is an OBJ it never rotates to the next so I do it by rcon. Then when the next map loads ( in tdm mode) the timer runs down to zero and the server shuts down. I have tried going to the consol and typing in "nextmap". It then gives me the correct answer. So I type "vstr x2" (for example) and the map changes fine. If I leave the server to do its own thing, I get the error "server shutdown cannot find maps/vstr x2" Or something similar to that. The server keeps tripping over the command in the script. As long as sit at the server and load the maps manually everything its fine.
Anyone have any ideas?
Thanks in advance
|