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

[ANY] Empty Server Map Change


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ruifung
Junior Member
Join Date: Aug 2011
Plugin ID:
2506
Plugin Version:
1.0.0.RC3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Changes to a pre-set map if the server is empty.
    Unapprover:
    Reason for Unapproving:
    duplicates existing plugin
    Old 08-20-2011 , 01:30   [ANY] Empty Server Map Change
    Reply With Quote #1

    Empty Server Map Changer
    This plugin is used to force a map change after X number of minutes.
    I use it to prevent one of my admins from leaving my server on itemtest.

    This plugin is not written by me, I found it floating around the internet and decided to share it with the people here. I have modified the original plug-in
    to run a check before changing maps. (Originally it does not check before changing maps).

    CVARS
    sm_esmc_minutesmapchange 30 - Number of minutes after which an empty server will do a map change.
    sm_esmc_defaultmapname pl_hoodoo_final - Name of the map which will be loaded on a triggered map change. (Provided sm_esmc_mapchangemode is set to default)
    sm_esmc_mapchangemode default - Sets the map changing mode. Possible values: [default|nextmap|off].
    Possible Values:
    default - changes to the map stored in sm_esmc_defaultmapname
    nextmap - change to the map stored in nextmap
    off - disables changing maps.

    Credits
    Marco 'MacNetron' de Reus for the original plugin.
    Peace-Maker and Powerlord for helping me with my mistakes.
    Attached Files
    File Type: sp Get Plugin or Get Source (emptyservermapchange.sp - 999 views - 10.1 KB)

    Last edited by ruifung; 08-20-2011 at 07:51.
    ruifung is offline
    Zbeer
    SourceMod Donor
    Join Date: Aug 2010
    Old 08-20-2011 , 06:14   Re: [ANY] Empty Server Map Change
    Reply With Quote #2

    What is the difference from this?
    Zbeer is offline
    ruifung
    Junior Member
    Join Date: Aug 2011
    Old 08-20-2011 , 07:45   Re: [ANY] Empty Server Map Change
    Reply With Quote #3

    Other then the fact in can either change to a specified map or read the nextmap (set by plugins like randomcycle). If I read the other thread correctly, it does not have the ability to read the nextmap.

    Last edited by ruifung; 08-20-2011 at 07:49.
    ruifung is offline
    Chronic1
    SourceMod Donor
    Join Date: Jun 2011
    Old 08-29-2011 , 03:26   Re: [ANY] Empty Server Map Change
    Reply With Quote #4

    Any chance of making this compatible with the Force Mission Changer plugin? I cant use the nextmap.smx because I use FMC. I would really really like to have the server cycle through the maps every 10 minutes until people join, but because I use FMC I can only set it to change to 1 map.
    Chronic1 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-29-2011 , 10:19   Re: [ANY] Empty Server Map Change
    Reply With Quote #5

    I see this has special logic to handle the SourceTV bot, but not the replay bot (or any other bots).

    Also, is it sad that I don't remember why I'm being credited here? :O

    Edit: Honestly, if it handled bots better, I'd probably put it on my server. It bugs me that the other plugin with this functionality requires you to specify the map for the server to load next.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 08-29-2011 at 16:47.
    Powerlord is offline
    Infomastr
    Member
    Join Date: Mar 2011
    Old 09-07-2011 , 10:50   Re: [ANY] Empty Server Map Change
    Reply With Quote #6

    the cvars appear to be simply ignored by the plugin. i have server.cfg set defaultmapname and minutesmapchange to values other than hoodoo and 30 minutes. however, the plugin ignores this and simply goes to hoodoo after 30 minutes.

    Code:
    Executing dedicated server config file
    [SM] Changed cvar "sm_esmc_minutesmapchange" to "10".
    L 09/07/2011 - 10:43:10: [basecommands.smx] "Console<0>" changed cvar (cvar "sm_esmc_minutesmapchange") (value "10")
    [SM] Changed cvar "sm_esmc_defaultmapname" to "cp_dustbowl".
    L 09/07/2011 - 10:43:10: [basecommands.smx] "Console<0>" changed cvar (cvar "sm_esmc_defaultmapname") (value "cp_dustbowl")
    [SM] Changed cvar "sm_esmc_mapchangemode" to "default".
    L 09/07/2011 - 10:43:10: [basecommands.smx] "Console<0>" changed cvar (cvar "sm_esmc_mapchangemode") (value "default")
    exec: couldn't exec pl_badwater.cfg
    Loading mapconfig: general configfile (all.cfg).
    Loading mapconfig: gametype configfile (pl.cfg).
    Loading mapconfig: mapspecific configfile (pl_badwater.cfg).
    [ESMC] No clients ingame and no clients connecting
    [ESMC] Timer created, map change after 30 minutes, based on mode default, going to pl_hoodoo_final
    Infomastr is offline
    Reply


    Thread Tools
    Display Modes

    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 12:49.


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