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

[CS:GO] Next Map Mode (1.4.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Plugin ID:
3343
Plugin Version:
1.4.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Change the game mode based on the next map in the rotation.
    Old 11-02-2012 , 13:25   [CS:GO] Next Map Mode (1.4.0)
    Reply With Quote #1

    Next Map Mode

    Version 1.4.0

    If you are upgrading from 1.3.0, delete cfg/sourcemod/nextmapmode.cfg.


    Table of Contents
    ----------------------------------------------------
    Description
    Commands and Cvars
    Requirements
    Installation
    Dependencies
    Credits
    Changelog
    Command Overrides
    To Do
    Notes
    Complementary Plugins
    Download


    Description
    ----------------------------------------------------
    Next Map Mode is a plugin that allows you to
    define modes for specific maps. It will automatically
    change game type and mode appropriately.

    Once map names are placed in cfg/maplist_demolition.txt,
    for instance, those maps will load in Demolition mode
    by default.


    Commands and Cvars
    ----------------------------------------------------
    Commands
    sm_nmm <mode> - (ADMFLAG_CHANGEMAP) Set the mode for the next map. This overrides any other settings and convars. Acceptable arguments for <mode>: (0, 1, 2, 3, 4, Casual, Competitive, [ArmsRace, Arms_Race, Arms Race], Demolition, [Deathmatch, Death_Match, Death Match]). (Command override: sm_nmm)

    Cvars
    sm_nmm_version "1.4.0" - Plugin version.
    sm_nmm_enable "1" - Enable or disable plugin (1 - enable, 0 - disable).
    sm_nmm_defaultmode "0" - What mode should be used if the next map mode is not specified (0-Casual, 1-Competitive, 2-Arms Race, 3-Demolition, 4-Deathmatch).
    sm_nmm_random "0" -Randomize the next map mode (1 - randomize, 0 - don't randomize).

    sm_nmm_maplist_casual "cfg/maplist_casual.txt" - Text file list of casual maps.
    sm_nmm_maplist_competitive "cfg/maplist_competitive.txt" - Text file list of competitive maps.
    sm_nmm_maplist_armsrace "cfg/maplist_armsrace.txt" - Text file list of arms race maps.
    sm_nmm_maplist_demolition "cfg/maplist_demolition.txt" - Text file list of demolition maps.
    sm_nmm_maplist_deathmatch "cfg/maplist_deathmatch.txt" - Text file list of deathmatch maps.

    sm_nmm_mapcycle_casual "" - Mapcyclefile for casual mode (Leave blank for no change)
    sm_nmm_mapcycle_competitive "" - Mapcyclefile for competitive mode (Leave blank for no change)
    sm_nmm_mapcycle_armsrace "" - Mapcyclefile for arms race mode (Leave blank for no change)
    sm_nmm_mapcycle_demolition "" - Mapcyclefile for demolition mode (Leave blank for no change)
    sm_nmm_mapcycle_deathmatch "" - Mapcyclefile for deathmatch mode (Leave blank for no change)



    Requirements
    ----------------------------------------------------
    Counter-Strike: Global Offensive
    SourceMod 1.5.0+


    Installation
    ----------------------------------------------------
    Place nextmapmode.smx in the /csgo/addons/sourcemod/plugins directory.
    Change settings in csgo/cfg/sourcemod/nextmapmode.cfg.
    Add maps to the maplist files according to what you want their default mode to be.

    Example csgo/cfg/maplist_armsrace.txt:
    Code:
    ar_baggage
    ar_monastery
    ar_shoots

    Dependencies
    ----------------------------------------------------
    None


    Credits
    ----------------------------------------------------
    Changelog
    ----------------------------------------------------
    Spoiler
    • 1.4.0 (2 Feburary 2013)
      -Bug fix: Plugin now looks at mp_match_restart_delay instead of erroneously looking at mp_halftime_delay.
      -Map lists are now extracted from text files instead of from convars. You can now define an unlimited number of maps for each mode.
      -Added support for Deathmatch mode.
      -Added MapCycleFile convars to allow for dynamic map cycles when changing modes.
      -Added admin/donor overrides for sm_nmm command.

    Command Overrides
    ----------------------------------------------------
    sm_nmm - Admins with access to this command can use sm_nmm to change the mode for the next map. Note that this command will override the default maplist settings (i.e. if you've set ar_baggage to load in Arms Race mode, and you use "!nmm Casual" and switch to ar_baggage, the map will load in Casual mode).

    You can use admin_groups.cfg or admin_overrides.cfg to change command permissions.

    Example admin_overrides.cfg:
    Code:
    Overrides
    {
    	"sm_nmm" "cdr"
    }
    In this example, only admins who have all three "c", "d", and "r" admin flags can set the next map mode with /nmm <mode>.


    To Do
    ----------------------------------------------------
    • None.

    Notes
    ----------------------------------------------------
    • IMPORTANT: Your server will be UNJOINABLE if your gamemodes_server.txt has not been set up to accomodate all your maps for every mode. See an example of a proper configuration here: https://forums.alliedmods.net/showpo...01&postcount=3
    • Create files named "maplist_competitive.txt", "maplist_deathmatch.txt", etc. in your csgo/cfg/ directory, and place map names in them (in the same manner as mapcycle.txt). If a map name is in "maplist_armsrace.txt", for instance, then that map will load in Arms Race mode by default. If a map is not present in one of the maplists, then the default mode specified by sm_nmm_defaultmode will be used.
    • If you define custom MapCycleFiles, e.g. sm_nmm_mapcyclefile_competitive "cfg/mapcycle_competitive.txt", then mapcycle_competitive.txt will be used as the mapcycle (for purposes of map voting and map rotations) whenever you switch to competitive mode. Note that switching back to another mode will not reset the mapcyclefile to the regular mapcycle.txt, unless you define the convars for the other modes to do so.


    Complementary Plugins
    ----------------------------------------------------
    Download
    ----------------------------------------------------
    Attached Files
    File Type: sp Get Plugin or Get Source (nextmapmode.sp - 7243 views - 10.9 KB)
    __________________

    Last edited by Sheepdude; 02-02-2013 at 18:52.
    Sheepdude is offline
    wolf414
    Member
    Join Date: Aug 2005
    Location: WI
    Old 11-04-2012 , 17:32   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #2

    First of all thank you so much for this!

    I only have one problem..which is a big one.

    Ok I have setup casual and competitive gamemodes. The server starts with casual but switches to competitive mode when we switch to that kind of map. Now lets say I log off after it switches game modes then try to log back into the game...It won't let me connect ..?

    CONSOLE:

    Received game details information from [IP]
    GameTypes: could not find matching map [MAP]
    [MM] Sending reservation request to [IP]
    [MM] Sending reservation request to [IP]


    autoexec.cfg:

    Code:
    // turn on logging first, to maximize what is logged
    log 1
    // game_type and game_mode together determine what is played.
    // use game_type 0 and game_mode 0 for "Classic Casual"
    // use game_type 0 and game_mode 1 for "Classic Competitive"
    // use game_type 1 and game_mode 0 for "Arms race" (standard GunGame)
    // use game_type 1 and game_mode 1 for "Demolition" (GunGame w/a bomb)
    game_type 0
    game_mode 0
    // the map group determines what maps are run
    // mapgroup mg_bomb
    // mapgroup mg_hostage
    // mapgroup mg_dust
    // mapgroup mg_armsrace
    // mapgroup mg_demolition
    // mapgroup random_classic
    mapgroup "mg_fun"
    // this is the starting map
    map "fy_legofire_v1"
    // further settings can be changed in cfg/server.cfg and in gamemodes.txt.

    nextmapmode.cfg:
    Code:
    // This file was auto-generated by SourceMod (v1.5.0-dev+3678)
    // ConVars for plugin "nextmapmode.smx"
    
    
    // Default Mode for undefined maps. 0-Casual, 1-Competitive, 2-Armsrace, 3-Demolition. Default: 0
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    sm_nmm_defaultmode "0"
    
    // Enable (1) or Disable( 0) Next Map Mode. Default: 1
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_nmm_enable "1"
    
    // List of Comma(,) delimited maps for armsrace games
    // -
    // Default: ""
    sm_nmm_maps_armsrace ""
    
    // List of Comma(,) delimited maps for casual games
    // -
    // Default: ""
    sm_nmm_maps_casual "ka_madcage,aim_avianation,aim_deagle7k,fy_urbanstreets_b8,fy_xenom,fy_legofire_v1,aim_iraq,fy_pool_day_beta,fy_astra,fy_cottage_beta,he_tennis_go,ka_outside_aztec,de_westwood,aim_elite_training,fy_office_rest,fy_thomson_bridge"
    
    // List of Comma(,) delimited maps for competitive games
    // -
    // Default: ""
    sm_nmm_maps_competitive "cs_compound_gc,cs_italy,cs_office,cs_sauna_go,cs_storage,de_aurelia,de_aztec,de_belukha_b1a,de_cambodia_bx,de_cefalu_go_a23,de_dust,de_dust2,de_elysium,de_frost_csgo_final1,de_grnlight_b2,de_inferno,de_interrupt_b3,de_kismayo,de_nuke,de_train,de_vertigo,"
    
    // List of Comma(,) delimited maps for demolition games
    // -
    // Default: ""
    sm_nmm_maps_demolition ""
    
    // Randomize the mode each map? Default: 0
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_nmm_random "0"
    Please help. Thanks

    Last edited by wolf414; 11-04-2012 at 17:33.
    wolf414 is offline
    Send a message via MSN to wolf414
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 11-04-2012 , 17:56   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #3

    Quote:
    Originally Posted by wolf414 View Post
    First of all thank you so much for this!

    I only have one problem..which is a big one.

    Ok I have setup casual and competitive gamemodes. The server starts with casual but switches to competitive mode when we switch to that kind of map. Now lets say I log off after it switches game modes then try to log back into the game...It won't let me connect ..?
    I should put as a footnote that this plugin isn't very kind to server administrators, if your game modes haven't been properly set up =P

    Your problem is caused by not having gamemodes_server.txt configured such that every game mode uses the same mapgroup, and all maps are in that single mapgroup. For instance, here is my gamemodes_server.txt:

    Spoiler


    Every mode uses mg_bomb as the mapgroup, and all the maps are listed in mg_bomb. My server commandline looks like this:

    Code:
    srcds -game csgo -console -usercon -tickrate 128 -maxplayers_override 22 +game_type 0 +game_mode 0 +mapgroup mg_bomb +map ar_lego_arena
    Once you have gamemodes_server.txt up to par, you should be set. Note that if you need to change the game mode manually, use sm_nmm <mode>, then change the map.
    __________________
    Sheepdude is offline
    wolf414
    Member
    Join Date: Aug 2005
    Location: WI
    Old 11-05-2012 , 05:18   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #4

    That worked! Thank you for your help!

    Last edited by wolf414; 11-06-2012 at 05:43.
    wolf414 is offline
    Send a message via MSN to wolf414
    Cygnus
    Junior Member
    Join Date: Nov 2012
    Location: Ottawa CA
    Old 12-02-2012 , 09:16   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #5

    Works perfectly, thank you Sheep! Is there any way to have the plug-in tell users what the next game mode is?? I didn't see anything in the configs

    cheers
    Cygnus is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 12-02-2012 , 14:15   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #6

    It does say in chat what the next mode will be. =)
    __________________
    Sheepdude is offline
    illbill_rotterdam
    Senior Member
    Join Date: Sep 2012
    Old 01-22-2013 , 16:42   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #7

    i've installed this plugin but it doenst work, could the plugins mapconfigs_v1.1.1 or deathmatch (v1.5) be the problem?
    illbill_rotterdam is offline
    Sheepdude
    SourceMod Donor
    Join Date: Aug 2012
    Location: Chicago
    Old 01-22-2013 , 18:38   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #8

    Well you don't really need this plugin if you're using map-specific configs, you can just change game_type and game_mode in per-map.

    But what exactly "doesn't work" about the plugin? Did you check that the plugin loaded ("sm plugins list" in console)? If it loaded, can you try "!nmm Casual" in chat and see if it switches the mode? Or is it an issue with the maps not changing to the correct mode when the map ends (and if so, can I see your nextmapmode.cfg)?
    __________________
    Sheepdude is offline
    Sal Grosso
    Junior Member
    Join Date: Aug 2011
    Old 01-25-2013 , 09:16   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #9

    Here stop working after de update.
    Sal Grosso is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 02-02-2013 , 03:25   Re: [CS:GO] Next Map Mode (1.3.0)
    Reply With Quote #10

    Hy can you fix this?
    Got this in my console:

    Quote:
    WARNING: Command too long... ignoring!
    sm_nmm_maps_competitive "de_piranesi,$2000$csgo,awp_lego_8,cs_backall ey_go,cs_boathouse_go_v2,cs_downed_b2,cs_down town_b1,cs_estate,cs_italy,cs_kismayo,cs_litt le_office,cs_office,cs_zimella_csgo,de_airstr ip_csgo,de_alexandra,de_assault_sk,de_atom_pr e7,de_aurelia,de_aztec,de_beroth,de_cache,de_ cambodia_b7,de_camelot,de_cefalu_go_b02,de_co bble_b4,de_ConcreteArena,de_deltamill_csgo,de _dolls_csgo_alpha_1,de_dust,de_dust2,de_dust2 _unlimited_go,de_frost_csgo_final1,de_imagina ry,de_inferno,de_interrupt_b3,de_keidas_b3,de _meteora_b1,de_mill_b1,de_mirage_go,de_nightf ever_beta,de_nuke,de_nuketown,de_palenque,de_ prodigy_csgo_b2,de_rats_1337,de_rats_csgo,de_ train,de_tuscan_fixes_csgo,de_vertigo,de_west wood,de_wetwoodb2,xmas_nipperhouse_csgo
    Cbuf_AddText: buffer overflow
    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 21:11.


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