Raised This Month: $51 Target: $400
 12% 

Map Cvar Chooser


Post New Thread Reply   
 
Thread Tools Display Modes
Author
CaffeinePowered
Junior Member
Join Date: Dec 2007
Location: Illinois
Plugin ID:
378
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Improved map cvar loader designed to improve upon previous functionality
    Old 05-09-2008 , 23:46   Map Cvar Chooser
    Reply With Quote #1

    This plugin will load a custom cvar list for specified maps, it is meant to expand on the functionality of the default options built into Source, as well as combining the functionality of these two plugins.

    The improvements on previous works are a simpler config and file structure, only one file is required as opposed to several files to accomplish the same functionality.

    This plugin supports prefix matching, but not partial name matching.

    Cvars Created: None

    Config Path
    /addons/sourcemod/configs/

    Config Structure:
    Code:
    cp_dustbowl 
    { 
         cvar 1 
         cvar 2 
    } 
    ctf_* 
    { 
         cvar 1 
         cvar 2 
    }
    Games Tested:
    Team Fortress 2
    Attached Files
    File Type: sp Get Plugin or Get Source (MapCvar.sp - 3003 views - 5.7 KB)
    File Type: cfg mapcvarlist.cfg (158 Bytes, 1449 views)

    Last edited by FlyingMongoose; 06-21-2008 at 08:44.
    CaffeinePowered is offline
    Send a message via AIM to CaffeinePowered
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 05-10-2008 , 11:32   Re: Map Cvar Chooser
    Reply With Quote #2

    I have tested and this works awesome. Approved.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    dann
    Senior Member
    Join Date: Nov 2007
    Old 06-21-2008 , 08:49   Re: Map Cvar Chooser
    Reply With Quote #3

    does this actually work with sourcemod varibles like reserved slots and the afk manager?
    dann is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 06-21-2008 , 10:09   Re: Map Cvar Chooser
    Reply With Quote #4

    So if i understand it correct it can replace the map config plugins, am i right?
    PStar is offline
    r3dh3adkid
    Senior Member
    Join Date: Apr 2008
    Location: Georgia
    Old 06-23-2008 , 20:40   Re: Map Cvar Chooser
    Reply With Quote #5

    er....dunno why but i'm getting this error

    Code:
    20:39:13 L 06/23/2008 - 20:39:04: [SM] Native "IsEndOfFile" reported: Invalid file handle 0 (error 4)
    20:39:13 L 06/23/2008 - 20:39:04: [SM] Debug mode is not enabled for "MapCvar.smx"
    20:39:13 L 06/23/2008 - 20:39:04: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 58 on
    __________________
    r3dh3adkid is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 06-23-2008 , 21:20   Re: Map Cvar Chooser
    Reply With Quote #6

    Quote:
    Originally Posted by r3dh3adkid View Post
    er....dunno why but i'm getting this error

    Code:
    20:39:13 L 06/23/2008 - 20:39:04: [SM] Native "IsEndOfFile" reported: Invalid file handle 0 (error 4)
    20:39:13 L 06/23/2008 - 20:39:04: [SM] Debug mode is not enabled for "MapCvar.smx"
    20:39:13 L 06/23/2008 - 20:39:04: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 58 on
    I think there could be something wrong whit your mapcvarlist.cfg.
    Could you post yours? I think this could be a missing "{" or "}".
    PStar is offline
    r3dh3adkid
    Senior Member
    Join Date: Apr 2008
    Location: Georgia
    Old 06-23-2008 , 22:18   Re: Map Cvar Chooser
    Reply With Quote #7

    Its quite big....

    Code:
    //List Cvars Between Curly brackets
    //One Cvar per line
    default
    {
        //Server Name
        hostname "|SovP| Testhouse! [PARTY/Custom Menu/FunSounds/FastSpawn]"
    
        //Default Gravity
        sv_gravity 800
        
        //Birthday Mod - On
        tf_birthday 1
        
        //Build Restrict - On
        sm_buildrestrict_enabled 1
        
        //Build Restriction - Red
        sm_buildrestrict_red_dispensers 1
        sm_buildrestrict_red_teleport_entrances 1
        sm_buildrestrict_red_teleport_exits 1
        sm_buildrestrict_red_sentries 1
        
        //Build Restriction - Blue
        sm_buildrestrict_blu_dispensers 1
        sm_buildrestrict_blu_teleport_entrances 1
        sm_buildrestrict_blu_teleport_exits 1
        sm_buildrestrict_blu_sentries 1
    
        //Maprate
        maprate_autorate_delay 1
        maprate_autorate_time 300
        maprate_db_config maprate
        
        //Kigen Anti-Cheat
        kac_validate 0
    
        //Spam Medic
        sm_cvar tf_max_voice_speak_delay -100
    
        //Show Damage Box - Off
        sm_cvar sm_showdamage 0
    
        //Advertisements Interval - 15 Seconds
        sm_cvar sm_advertisements_interval 15
    
        //Bad Name Ban Immunities - On
        sm_cvar sm_bnb_allowimmun 1
    
        //Bad Name Ban Action - (-1 kick, 0 perm)
        sm_cvar sm_bnb_bantime -1
    
        //Bad Name Ban Logs - On
        sm_cvar sm_bnb_log 1
    
        //Bad Name Ban - Reason
        sm_cvar sm_bnb_reason "Do not wear our tags without being in the clan"
    
        //Spawn Protection - On
        sp_on 1
    
        //Spawn Protection Time - 5 Seconds
        sp_time 5
    
        //Sudden Death Melee - On
        sm_suddendeathmelee_enable 1
        
        //Respawn time - 5 Seconds
        mp_respawnwavetime 5
    }
    cp_*
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 8
    }
    ctf_*
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 3
    }
    og_*
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 6
    }
    pl_*
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 10
    }
    sn_*
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 10
    }
    whoaaaaaa
    {
        sm_buildrestrict_enabled 1
    
        sm_buildrestrict_red_sentries 0
        sm_buildrestrict_blu_sentries 0
    }
    tc_hydro
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 8
    }
    sn_snipervolcano
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    sn_sniper_nsa
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    rj_rckteer
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    pyro_achieve_b1
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    melee_ringking
    {
        sp_time 2
    
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
    }
    mario_kart_cp_a11f
    {
        sm_cvar mp_stalemate_at_timelimit 20
    }
    duel_octagon_B1
    {
        mp_respawnwavetime 0
    }
    duel_inexistence_b3
    {
        mp_respawnwavetime 0
    }
    dm_store
    {
        mp_respawnwavetime 0
    }
    dm_Shipment_v2
    {
        sp_time 6    
    
        // Max number of rounds to play before server changes maps
        mp_maxrounds 15
        
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 0
    
        mp_respawnwavetime 0
    }
    dm_castlewars_v2
    {
        mp_respawnwavetime 0
    }
    dm_biosphere_v3
    {
        sp_time 4
    }
    cyberpunk
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    ctf_hallofdeath
    {
        mp_respawnwavetime 0
        sp_time 2
    }
    ctf_convoy_v2
    {
        mp_respawnwavetime 0
    }
    cp_sentrywart14
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 2
        
        //changes respawn to 0 (def 10)
        mp_respawnwavetime 0
    
        //Enable/disable restricting buildings in TF2.
        sm_buildrestrict_enabled 1
    
        sm_buildrestrict_red_dispensers 2
        sm_buildrestrict_red_teleport_entrances 2
        sm_buildrestrict_red_teleport_exits 1
        sm_buildrestrict_red_sentries 2
    
        sm_buildrestrict_blu_dispensers 2
        sm_buildrestrict_blu_teleport_entrances 2
        sm_buildrestrict_blu_teleport_exits 1
        sm_buildrestrict_blu_sentries 2
    }
    cp_oilrig_b3
    {
        mp_respawnwavetime 7
    }
    cp_neodam_b3
    {
        mp_respawnwavetime 3
    }
    cp_elimination_b1
    {
        mp_maxrounds 7
    }
    cp_corporation_b3
    {
        mp_respawnwavetime 3
    }
    cp_beach_final
    {
        mp_respawnwavetime 4
    }
    cp_arenaball
    {
        mp_respawnwavetime 2
    }
    avanti_b1
    {
        // Max number of rounds to play before server changes maps
        mp_maxrounds 3
    
        // Max number of rounds one team can win before a server changes maps
        mp_winlimit 4
    }
    achievementbox_b3
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    achievement_help
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    air_gladiator_beta2
    {
        wait 180000; sm_map sm_nextmap
        mp_respawnwavetime 0
    }
    __________________
    r3dh3adkid is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 06-24-2008 , 07:36   Re: Map Cvar Chooser
    Reply With Quote #8

    Hmm, ther is nothing wrong whit it.....
    Could you enable debug info? It could help the author to solve the problem.
    Could you write you SM version to?
    PStar is offline
    r3dh3adkid
    Senior Member
    Join Date: Apr 2008
    Location: Georgia
    Old 06-24-2008 , 12:59   Re: Map Cvar Chooser
    Reply With Quote #9

    Code:
    L 06/24/2008 - 12:55:10: [SM] Native "IsEndOfFile" reported: Invalid file handle 0 (error 4)
    L 06/24/2008 - 12:55:10: [SM] Displaying call stack trace for plugin "MapCvar.smx":
    L 06/24/2008 - 12:55:10: [SM]   [0]  Line 90, /home/groups/alliedmodders/forums/files/3/3/1/9/2/26551.attach::LoadCvarList()
    L 06/24/2008 - 12:55:10: [SM]   [1]  Line 55, /home/groups/alliedmodders/forums/files/3/3/1/9/2/26551.attach::OnMapStart()
    __________________
    r3dh3adkid is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 06-24-2008 , 14:09   Re: Map Cvar Chooser
    Reply With Quote #10

    Try delete the plugin and reinstall it.
    But keep your cfg file.
    Try to load the plugin whit the original cfg and after it whit you modified cfg.
    And see if it is caused by the modifie cfg or not.
    PStar 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 09:04.


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