Raised This Month: $32 Target: $400
 8% 

Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)


Post New Thread Reply   
 
Thread Tools Display Modes
FLOOR_MASTER
Senior Member
Join Date: Mar 2008
Old 06-29-2008 , 20:52   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #61

That's a little tricky since the sync point could vary wildly depending on server conditions. For now, I'd recommend changing dmr_map_key as Freelancer suggests. One debug command you may find helpful is sm_dmr, which displays the current dmr_map_key and the anticipated next dmr_map_key. You can then adjust dmr_map_key (sm_cvar dmr_map_key [KEY]) to the anticipated next dmr_map_key.

I've added "add a command to move forward in the DMR" to my to-do, since it's something I do often on my server too.

I'm sorry for the delay in updating this and the maprate plugin. I'll try to make time Monday to do so (updating isn't the problem - thoroughly testing updates is the time-consuming part).
FLOOR_MASTER is offline
Lifer
New Member
Join Date: Feb 2008
Old 07-04-2008 , 16:23   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #62

We appreciate your hard work, and the effort that you put into developing and testing your plugins. Thank you.

Edit: Is there anyway to do OR conditions. e.g. if there are less than 12 players OR its later than 22:00 change to cp_dustbowl?

Last edited by Lifer; 07-06-2008 at 04:08.
Lifer is offline
chundo
Senior Member
Join Date: May 2008
Old 07-07-2008 , 17:20   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #63

It would be pretty great if you could somehow integrate weighted random map selection based on player ratings from your Map Rate plugin.

Maybe that's a separate plugin though.
__________________
chundo is offline
chikencarnage
Senior Member
Join Date: Jan 2008
Old 07-12-2008 , 23:42   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #64

can this be used with end of map voting? like have one set of maps up for voting during a certain time period then have another set of maps up for voting during another time period?
__________________
chikencarnage is offline
omgiafs
Junior Member
Join Date: Jul 2008
Location: Russia
Old 07-27-2008 , 22:52   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #65

Good day for you!

FLOOR_MASTER, could you public source of

http://forums.2fort2furious.com/dmr.php
and, preferably,
http://tf2.2fort2furious.com/images/dmr.php ?

Very interesting graphical representation of maplists
omgiafs is offline
Send a message via ICQ to omgiafs Send a message via Skype™ to omgiafs
willy1234x1
Senior Member
Join Date: Jun 2008
Old 07-29-2008 , 04:54   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #66

Feature request! Make it able to use the ratings off of maprate to switch to higher rated maps as well.
willy1234x1 is offline
sixstringartist
Junior Member
Join Date: Oct 2007
Old 07-29-2008 , 17:30   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #67

In CSS, anytime the countdown to mapchange is shown, it prevents the player from changing weapons (or bomb). This is very annoying and I was wondering if anyone else is experiencing this and if there is a fix/work around?


Edit: My mistake, the issue was not due to this plugin.

Last edited by sixstringartist; 07-29-2008 at 18:09.
sixstringartist is offline
Lim-Dul
Junior Member
Join Date: Jan 2005
Old 07-31-2008 , 17:33   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #68

By the way, Floormaster - how did you get your DMR visualizer to display map settings like number of rounds etc. (I'm not asking how to run map specific configs, just how you got them into your script on the page...)

P.S. You struck the "midnight quirk" from your todo list, Floormaster? I have no ptoblems with splitting the condition into two parts but solving the midnight problem would require code a completely NEW conditional algorithm for time ranges that would accept values like "hh:mm-hh:mm" and that would be quite a bit of coding, I guess.

P.P.S. If anybody thought that Floormaster's DMR on his server was complicated, then take a look at ours (blatant plug: it's on our Custom Map Server; 85.17.239.149:27025 SpecialAttack #5 [TF2 - Custom maps] www.SpecialAttack.net)

http://c.imagehost.org/view/0672/dmrviz.gif

We're using only the player-count criterion but the DMR still is like WTF... Thanks for the DMR visualizer, Floormaster, without it I'd never have been able to find the missing closing bracket that fooked up everything. ;-)

Last edited by Lim-Dul; 08-01-2008 at 11:55.
Lim-Dul is offline
KillerSneak
Member
Join Date: Feb 2008
Old 08-05-2008 , 06:52   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #69

So how can I use this if I'm using multible servers? As i don't see any cvars listed?

Is it possible to setup a drm per server / server.cfg ?

Like i have

DNA #1 / server1.cfg
DNA #2 / server2.cfg
DNA #3 / server3.cfg

Can i have a drm per server.cfg? If yes can someone tell me how ?

EDIT:
dmr_file (default "dmr.txt") Specifies the filename your DMR is stored in. The default filename resolves to orangebox/tf/dmr.txt in TF2, for example.

DNA #1 / server1.cfg dmr_file <- is this commadn for the cfg ? like dmr_file dmrserver1.txt
DNA #2 / server2.cfg dmr_file <- is this commadn for the cfg ? like dmr_file dmrserver2.txt
DNA #3 / server3.cfg dmr_file <- is this commadn for the cfg ? like dmr_file dmrserver3.txt

Would this work?

Last edited by KillerSneak; 08-05-2008 at 07:54.
KillerSneak is offline
crazydog115
Junior Member
Join Date: Jan 2006
Old 08-09-2008 , 19:02   Re: Dynamic Map Rotations (Nextmap Based on # of Players, Time, etc)
Reply With Quote #70

I'm getting the following errors when I run sm_reloaddmr

Quote:
16:01:50 [SM] Native "FormatTime" reported: Invalid time format or buffer too small
16:01:50 [SM] Displaying call stack trace for plugin "dmr.smx":
16:01:50 [SM] [0] Line 374, /home/groups/sourcemod/upload_tmp/phpWgRmeN.sp::CompareDayOfWeek()
16:01:50 [SM] [1] Line 283, /home/groups/sourcemod/upload_tmp/phpWgRmeN.sp::CustomConditionsMet()
16:01:50 [SM] [2] Line 543, /home/groups/sourcemod/upload_tmp/phpWgRmeN.sp:etermineNextMapKey()
16:01:50 [SM] [3] Line 489, /home/groups/sourcemod/upload_tmp/phpWgRmeN.sp:etermineNextMap()
16:01:50 [SM] [4] Line 312, /home/groups/sourcemod/upload_tmp/phpWgRmeN.sp::Command_ReloadDMR()
Also, nextmap and nextmaps don't always work

Here's my DMR:
Code:
"rotation"
{
   "start"   "gravel"
   "gravel"
   {
      "map"         "cp_gravelpit"
      "default_nextmap"   "pldust"
      "fort"
      {
         "players_lte"   "14"
      }
   }
   "pldust"
   {
      "map"         "pl_dustbowl_b4"
      "default_nextmap"   "fort"
   }
   "fort"
   {
      "map"         "ctf_2fort"
      "default_nextmap"   "hydro"
      "labor"
     {
      "players_gte"     "20"
      "day_eq"        "su"
     }
   }
   "labor"
   {
     "map"         "cp_labor"
     "default_nextmap"     "ctfwell"
   }
   "ctfwell"
   {
    "map"         "ctf_well"
    "default_nextmap"     "hydro"
   }
   "hydro"
   {
      "map"         "tc_hydro"
      "default_nextmap"   "bdlnds"
      "cave"
      {
      "players_gte"     "20"
      "day_eq"        "su"
      }
   }
   "cave"
   {
     "map"         "pl_cave_b4"
     "default_nextmap"     "bdlnds"
   }
   "bdlnds"
   {
      "map"         "cp_badlands"
      "default_nextmap"   "canal"
      "dust"
      {
         "players_lte"   "20"
      }
   }
   "canal"
   {
      "map"         "dom_canalzone_b3"
      "default_nextmap"   "granary"
   }
   "granary"
   {
     "map"         "cp_granary"
     "default_nextmap"   "dust"
   }
   "dust"
   {
      "map"         "cp_dustbowl"
      "default_nextmap"   "turbine"
   }
   "turbine"
   {
      "map"         "ctf_turbine"
      "default_nextmap"   "gold"
   }
   "gold"
   {
      "map"         "pl_goldrush"
      "default_nextmap"   "egypt"
      "fast"
      {
         "players_lte"   "22"
      }
   }
   "egypt"
   {
      "map"         "cp_egypt_v2"
      "default_nextmap"   "cpwell"
   }
   "cpwell"
   {
        "map"         "cp_well"
        "default_nextmap"     "fast"
   }
   "fast"
   {
      "map"         "cp_fastlane"
      "default_nextmap"   "gravel"
      "jail"
      {
      "players_gte"     "20"
      "day_eq"        "su"
      }
   }
   "jail"
   {
     "map"         "cp_jailbreak_b3"
     "default_nextmap"     "gravel"
   }
}
What's the problem?

Edit: When I remove the day_eq flags it works fine.

Last edited by crazydog115; 08-11-2008 at 00:37.
crazydog115 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode