Skip to content

v1.0.4 - v1.042

Compare
Choose a tag to compare
@nickj609 nickj609 released this 09 Jun 02:21
· 110 commits to main since this release
2142776

Game Mode Manager v1.0.42

Important

  • Back up your GameModeManager.json configuration file and let the plugin generate the new version. This version has significant changes to the configuration file.

  • This update will also install CS2-CustomVotes and overwrite any custom JSON configuration you may have for this plugin. Please make a backup before installing this plugin.

  • If switching between v1.0.41 or earlier to v1.0.42, make sure to remove the old enable_course.cfg and disable_course.cfg files from the settings folder.

Credits

@imi-tat0r for their CS2-CustomVotes API
@kus for their addition of relative paths in the Config.cs file.
@mavproductions for their proactive bug hunting, which resulted in the proper deregistration of per-map votes. (commit 0dd628e).

New Features

  • Player Voting: If enabled, allows voting for custom game modes, game settings, and maps.
  • Custom Menu Styles: You can now choose between "center" and "chat" menus for each setting category.
  • Admin Setting Menu: Enable or disable custom settings. Setting configuration files can be added to a custom settings folder in the csgo/cfg directory using the enable_ and disable_ prefix.

UI/Configuration Changes

  • All file paths are now relative (Thanks @kus!).
  • Game modes now have a friendly name property in the configuration.
  • Map groups can have friendly names using a custom "displayname" property in map group files.

Bug fixes

  • Fixed a bug where map lists wouldn't update after deregistering per map votes. Thanks @mavproductions!
  • Fixed plugin reload exceptions.
  • Fixed an issue where map group change would result in broken votes.

Installation

  1. Install Metamod:Source and Counter Strike Sharp.

  2. Copy addons and cfg folders to /csgo/.

  3. Make sure your gamemodes_server.txt or custom map group file is in VDF Format and contains a list of map groups.

  4. If you are not using the JSON configuration file for specifying game modes, include the "displayname" property within your gamemodes_server.txt or custom map group file for each map group.

    Example:

    "mg_dm"
     	{
     		"imagename"				"mapgroup-bomb"
     		"displayname"			"Deathmatch"
     		"nameID"				"#SFUI_Mapgroup_allclassic"
     		"tooltipID"				"#SFUI_MapGroup_Tooltip_Desc_DeathMatch"
     		"name"					"mg_dm"
     		"icon_image_path"		"map_icons/mapgroup_icon_deathmatch"
     		"maps"
     		{
     			"ar_shoots"												""
     			"ar_baggage"											""
     			"workshop/3070550406/de_safehouse"						""
     			"workshop/3070563536/de_lake"							""
     			"workshop/3070581293/de_bank"							""
     			"workshop/3070923343/fy_pool_day"						""
     			"workshop/3070238628/fy_iceworld"						""
     			"workshop/3070291913/ar_churches_s2r"					""
     			"workshop/3082113929/aim_ag_texture_city_advanced"		""
     			"workshop/3074961197/aim_ag_texture2"					""
     			"workshop/3095778105/aim_ag_texture_jungle"				""
     			"workshop/3109232789/gg_simpsons_vs_flanders_v2"		""
     			"workshop/3086555291/shipment_version_1_0"				""
     			"workshop/3131645522/de_rust"							""
     			"workshop/3133577140/nuketown"							""
     			"workshop/3080114822/mansion"							""
     		}
     	}
    
  5. If needed, update each game mode configuration file (i.e. comp.cfg) to include css_mapgroup <map group>.

  6. Update the configuration file GameModeManager.json.

For more information on the configuration of these features, please see the updated README.md.

Refactoring

There has been a lot of code refactoring to adjust for the addition of these features as well as for readability.

Full Changelog: v1.0.3...v1.0.42