PDA

View Full Version : load map from script


oddball1
06-18-2004, 04:16 PM
anyone know how to load a new map from script in a dedicated server?

i want to autorotate the maplist when no players are on.

GaSplat
06-19-2004, 12:42 AM
If using vstr rotations I suppose you could create a script that stuffs a vstr nextmap command after a specific period of time. I have done something similar with other Q3TA games but not MOH. Should be doable but might conflict with other mods (like admin tools) that use the precache. If you write it to work as a MAM module that should avoid conflicts, at least with MAM.

oddball1
06-19-2004, 10:03 PM
If using vstr rotations I suppose you could create a script that stuffs a vstr nextmap command after a specific period of time. I have done something similar with other Q3TA games but not MOH. Should be doable but might conflict with other mods (like admin tools) that use the precache. If you write it to work as a MAM module that should avoid conflicts, at least with MAM.
the problem isn't the next map, only the map command in the script. in console it would be something like map obj/obj_team1
i need a command like that for in the script

GaSplat
06-20-2004, 02:21 AM
You can stuff a map command just as well, but it will always be the same map, over and over, wouldn't it? Not much of a rotation. Search the forum for "vstr nextmap" if you want to learn how you can use that to not only change the map, but set the next map to change to as well.

modtheater.com should have a tutorial on how to stuff commands from within a script. You will probably want to launch your own thread that counts off the time and then stuffs the vstr nextmap command.

As to how to turn it all into a MAM module, there is a MAM forum you can explore here on the forums. Its under the thrid party tools.

oddball1
06-20-2004, 08:57 AM
You can stuff a map command just as well, but it will always be the same map, over and over, wouldn't it? Not much of a rotation. Search the forum for "vstr nextmap" if you want to learn how you can use that to not only change the map, but set the next map to change to as well.

modtheater.com should have a tutorial on how to stuff commands from within a script. You will probably want to launch your own thread that counts off the time and then stuffs the vstr nextmap command.

As to how to turn it all into a MAM module, there is a MAM forum you can explore here on the forums. Its under the thrid party tools.


Allready have the script working together with mam. instead of the new map command it comes up with a text now because i don't know that commeand.
so the rest is working allready.
i'll check the modtheater.com website.
thnx