Alliedassault

Alliedassault (alliedassault.us/index.php)
-   Tech Questions & Problems (alliedassault.us/forumdisplay.php?f=8)
-   -   How Can I Make A Mix Map Server (alliedassault.us/showthread.php?t=29696)

*MBC* Twig Masters 08-28-2003 01:24 PM

How Can I Make A Mix Map Server
 
I have been running a TDM server for a couple months now and i have had a few requests for Objective maps on the server. I found the mod created by Crow King for mixing maps and it works fine. The problem is....when the OBJ maps load, they stay running. The server rotation gets stuck there. How do I set it up so the map will change even when there is nobody on the server?

Dragonwraith 08-28-2003 04:13 PM

the way i did it was i took the map .scr's and added

main:

setcvar "g_gametype" "4" the game type you want
setcvar "fraglimit" "1" the # of rounds
setcvar "roundlimit" "10" the time limit you want

and then made a pk3 with the scripts and sent it to the server.

folder set up in the pk3

maps>DM all your DM maps here
maps>OBJ all your OBJ maps here
I like this way because you can have different round and time limits for all the maps. Just make sure ALL the map .scr's have the same gametype as your server.cfg so the server will show up under the right server type you want.

*MBC* Twig Masters 08-28-2003 05:24 PM

So I have to change each map file to make it work? Is there any other way?

*MBC* Twig Masters 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


All times are GMT -6. The time now is 12:37 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.