Mapcycle

eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
edited August 2003 in General Server Discussion
<div class="IPBDescription">whats all this extra stuff ?</div> So mapcycle is simple enough yesh ? Well thats what I thought but I've been wondering about this extra stuff remmed at the top of the NS mapcycle.txt
<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
Instruction for using mapcycle.txt

No, you can't change maxplayers on the server, but you can skip maps that don't fit the current # of players
If no suitable match is found anywhere in your mapcycle file, then the server just moves to the next map in the file anyway.

Minplayers or maxplayers set to 0 mean don't restrict based on that parameter.  You don't have to include minplayers or maxplayers if you are not making a restriction.  They default to 0 if missing.

You can list a file twice in the rotation now

You can issue a command ( rather than setting key value pairs ) at the server console by bracketing it with a blank
key value: e.g., \mycommand\\

minplayers and maxplayers are special tokens and are parsed and removed before the commands are executed

Commands are executed just after the changelevel command occurs.
Be sure to remove conflicting settings from any server.cfg or listenserver.cfg files you use since those values will stomp on the ones you set here

The double quotes are necessary

BTW, the old format will still work<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

So I know how to add maps into rotation but all that stuff above sounds really weird and I want to know how I can use it. For example can I switch sv_allowdownload off when certain maps are running? If so how? Like this? ? ?

<b>ns_hydrosity \sv_allowdownload 0\\ </b>

and would I need to switch it back on for the next map or does it return to defaults?
If you know, or know a dev that might please tell us.

Comments

  • Python_GamersDreamPython_GamersDream Join Date: 2003-08-10 Member: 19369Members
    Hi Eagle, hows it going?

    The Mapcycle.txt introduction describes how to make it so if the number of players isn't met for a certain map then HLDS will skip that map and move to the next map in mapcycle.txt. What the NS team is lacking in the mapcycle.txt file is examples for new HLDS admins to fully understand. Here is a example and explanation of how it would work out:

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->ns_bast
    ns_eclipse "\minplayers\10\maxplayers\20"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    What HLDS does is goes through the mapcycle in order from top to bottom. If it sees that there are more than 10 players but less than 20 players it will move on to the map "ns_eclipse". If there is only 8 players then the server will skip that map and go to ns_bast. Correct me if im wrong, minplayers and maxplayers are the only special tokens available.
  • eagleceaglec Join Date: 2002-11-25 Member: 9948Members, Constellation
    Thanks - that gave me an idea.
    You see I'm not really interested in limiting maps by player count (at the moment) but I was able to add

    ns_hydrosity \sv_allowdownload\0\
    ns_lost \sv_allowdownload\1\


    so when Hydrosity is loaded the allowdownload is turned off. To stop ppl dl'ing it from the server
    then when the map moves to lost allowdownload is turned back on and ppl can still get each others sprays.

    A very useful feature that deserves more attention I think.

    <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • Python_GamersDreamPython_GamersDream Join Date: 2003-08-10 Member: 19369Members
    Great, glad you got it working
Sign In or Register to comment.