gamemodes/**yourgamemodename**/gamemode/cl_a.gamemodes/**yourgamemodename**/gamemode/a.Make sure these files exist in the correct place: The game could not find cl_a or a of your gamemode. Your Gamemode Text File is invalid or was not found. Common Errors Error loading gamemode: info.Valid You will still load it as terrortown_modded on your server, but it will appear as terrortown to the rest of the world.
If you wish to edit a gamemode but you do not want it to appear under a different category in the server browser and you do not want the edited version to override the original, in cases like editing Trouble In Terrorist Town where a game update could undo your edits, you can copy the gamemode as usual and append _modded to the gamemode's folder name, for example terrortown_modded. The example below tells the resource system to send the two files to the client, and then loads a.ĭeriveGamemode( "sandbox" ) Modding Gamemodes This file is called when the server loads the gamemode. Please note, that while we use a in the example below, it is completely optional. Three files are needed for your gamemode to function properly. The server list displays the icons at 24x24 while the gamemode selection uses 32x32. This image should ideally be 24x24 pixels but it can be up to 32x32. This image should be 128 pixels high and up to 1024 pixels wide. If you want to include backgrounds with your gamemode place them in gamemodes//backgrounds/. Whether this convar should show up for singleplayer, just having this key will enable it, it doesn't matter what the value is The help text to show on the convar (in the console)Įither Text, CheckBox or Numeric. The text to show in game to describe this convar These settings are configurable in the main menu in GMod.
It was moved to the root folder to decrease load times. In previous versions of GMod this section used to have its own file, in gamemode//content/settings/server_settings/. Your text file doesn't have to have a settings section. The settings table allows you to create server configuration convars for your gamemode.
If your gamemode has "RP" in its name, this is the category for you.
This is used to correctly categorise maps in the map selector. "name" "sk_grenades" "text" "Allow Grenades" "help" "If enabled then grenades are enabled" "type" "CheckBox" "default" "1" "name" "sk_maxfrags" "text" "Max Frags" "help" "The maxiumum number of frags before a map change" "type" "Numeric" "default" "20" "base" "base" "title" "Super Killers" "maps" "^sk_" "category" "other" "menusystem" "1" "workshopid" "15895" "settings"