Aller au contenu
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Créer son mapgroup


    bicran

    Messages recommandés

    voici mon fichier gamemodes_server, ce qui est en rouge est le rajout pour la creation des mapgroup

     

    // To use this file, rename it to GameModes_Server.txt
    //
    // Values here override the default gamemodes.txt 
    "GameModes_Server.txt"
    {
    "gameTypes"
    {
     "classic"
     {
      "gameModes"
      {
    
       "competitive"
       {
        "value"      "1"
        "nameID"     "#SFUI_GameModeCompetitive"
        "descID"     "#SFUI_GameModeCompetitiveDesc"
        "matchmakingvalue" "competitive"
        "uid"    "2"
        "maxplayers"   "10"
    
        // These are the descriptive ui elements to display in the information box on.
        // These key/values should be pairs of strings.  The "key" will appear in the left
        // column, the "value" will appear in the right column.
        "ui"
        {
         "0"  { "label" "#SFUI_CashColon"    "value" "$800" }
         "1"  { "label" "#SFUI_WinMatchColon"   "value" "30 #SFUI_Rounds" }
         "2"  { "label" "#SFUI_TimePerRoundColon"  "value" "2 #SFUI_Minutes" }
         "3"  { "label" "#SFUI_BuyTimeColon"   "value" "45 #SFUI_Seconds" }
         "4"  { "label" "#SFUI_SpectateColon"   "value" "#SFUI_SpectateTeamOnly" }
         "5"  { "label" "#SFUI_BotsColon"    "value" "#SFUI_BotDifficulty3" }
        }
        // These are the configs that get executed when a game mode of this type is created
        "exec"
        {
         "exec" "gamemode_competitive.cfg"
         "exec" "gamemode_competitive_server.cfg"
        }
        // Map groups for offline modes
        "mapgroupsSP"
        {
         "random_classic" "0"
         "mg_de_train"  "1"
         "mg_de_dust"  "2"
         "mg_de_dust2"  "3"
         "mg_de_aztec"  "4"
         "mg_de_inferno"  "5"
         "mg_de_nuke"  "6"
         "mg_de_vertigo"  "7"
         "mg_cs_italy"  "8"
         "mg_cs_office"  "9"
        }
        // Map groups for online modes
        "mapgroupsMP"
        {
         "mg_de_train"  "0"
         "mg_de_dust2"  "1"
         "mg_de_inferno"  "2"
         "mg_de_nuke"  "3"
         "mg_de_dust"  "4"      
         "mg_de_aztec"  "5"
         "mg_de_vertigo"  "6"
         "mg_cs_italy"  "7"
         "mg_cs_office"  "8"
         [color=#ff0000]"mg_rftag_compet" "9"[/color]
        }
       }
    
      } 
     }
     "gungame"
     {
      "value"    "1"
      "nameID"   "#SFUI_GameTypeGungame"
      // This is the list of game modes supported by this game type.
      "gameModes"
      {
       "gungameprogressive"
       {
        "value"    "0"
        "nameID"   "#SFUI_GameModeGGProgressive"
        "descID"   "#SFUI_GameModeGGProgressiveDesc"
        "matchmakingvalue" "competitive"
        "uid"    "11"
        "maxplayers"   "10"
        // These are the descriptive ui elements to display in the information box on.
        // These key/values should be pairs of strings.  The "key" will appear in the left
        // column, the "value" will appear in the right column.
        "ui"
        {
         "0"  { "label" "#SFUI_WinMatchColon"   "value" "30 #SFUI_Minutes" }
         "1"  { "label" "#SFUI_SpectateColon"   "value" "#SFUI_SpectateAnyone" }
         "2"  { "label" "#SFUI_BotsColon"    "value" "#SFUI_BotDifficulty2" }
        }
        // These are the configs that get executed when a game mode of this type is created
        "exec"
        {
         "exec" "gamemode_armsrace.cfg"
         "exec" "gamemode_armsrace_server.cfg"
        }
    
        // Map groups for offline modes
        "mapgroupsSP"
        {
         "random_ar"  "0"
         "mg_ar_baggage"  "1"
         "mg_ar_monastery" "2"
         "mg_ar_shoots"  "3"
        }
        // Map groups for online modes
        "mapgroupsMP"
        {
         "mg_armsrace" "0"
        [color=#ff0000] "mg_rftag_gg" "1"[/color]
        }
        "weaponprogression_ct"
        {
         "mp9"   { "kills" "1" }
         "mac10"   { "kills" "1" }
         "mp7"   { "kills" "1" }
         "bizon"   { "kills" "1" }
         "ump45"   { "kills" "1" }
         "p90"   { "kills" "1" }
         "nova"   { "kills" "1" }
         "mag7"   { "kills" "1" }
         "xm1014"  { "kills" "1" }
         "sawedoff"  { "kills" "1" }
         "galilar"  { "kills" "1" }
         "famas"   { "kills" "1" }
         "ak47"   { "kills" "1" }
         "m4a1"   { "kills" "1" }
         "sg556"   { "kills" "1" }
         "aug"   { "kills" "1" }
         "awp"   { "kills" "1" }
         "m249"   { "kills" "1" }
         "negev"   { "kills" "1" }
         "glock"   { "kills" "1" }
         "hkp2000"  { "kills" "1" }
         "tec9"   { "kills" "1" }
         "p250"   { "kills" "1" }
         "deagle"  { "kills" "1" }
         "fiveseven"  { "kills" "1" }
         "elite"   { "kills" "1" }
         "knifegg"   { "kills" "1" }
        }
    
        "weaponprogression_t"
        {
         "mp9"   { "kills" "1" }
         "mac10"   { "kills" "1" }
         "mp7"   { "kills" "1" }
         "bizon"   { "kills" "1" }
         "ump45"   { "kills" "1" }
         "p90"   { "kills" "1" }
         "nova"   { "kills" "1" }
         "mag7"   { "kills" "1" }
         "xm1014"  { "kills" "1" }
         "sawedoff"  { "kills" "1" }
         "galilar"  { "kills" "1" }
         "famas"   { "kills" "1" }
         "ak47"   { "kills" "1" }
         "m4a1"   { "kills" "1" }
         "sg556"   { "kills" "1" }
         "aug"   { "kills" "1" }
         "awp"   { "kills" "1" }
         "m249"   { "kills" "1" }
         "negev"   { "kills" "1" }
         "glock"   { "kills" "1" }
         "hkp2000"  { "kills" "1" }
         "tec9"   { "kills" "1" }
         "p250"   { "kills" "1" }
         "deagle"  { "kills" "1" }
         "fiveseven"  { "kills" "1" }
         "elite"   { "kills" "1" }
         "knifegg"   { "kills" "1" }
        }
       }
       "gungametrbomb"
       {
        "value"    "1"
        "nameID"   "#SFUI_GameModeGGBomb"
        "descID"   "#SFUI_GameModeGGBombDesc"
        "matchmakingvalue" "competitive"
        "uid"    "12"
        "maxplayers"   "10"
        // These are the descriptive ui elements to display in the information box on.
        // These key/values should be pairs of strings.  The "key" will appear in the left
        // column, the "value" will appear in the right column.
        "ui"
        {
         "0"  { "label" "#SFUI_WinMatchColon"   "value" "10 #SFUI_Rounds" }
         "1"  { "label" "#SFUI_TimePerRoundColon"  "value" "90 #SFUI_Seconds" }
         "2"  { "label" "#SFUI_SpectateColon"   "value" "#SFUI_SpectateTeamOnly" }
         "3"  { "label" "#SFUI_BotsColon"    "value" "#SFUI_BotDifficulty3" }
        }
        // These are the configs that get executed when a game mode of this type is created
        "exec"
        {
         "exec" "gamemode_demolition.cfg"
         "exec" "gamemode_demolition_server.cfg"
        }
        // Map groups for offline modes
        "mapgroupsSP"
        {
         "random_demo"  "0"
         "mg_de_bank"  "1"
         "mg_de_lake"  "2"
         "mg_de_safehouse" "3"
         "mg_de_sugarcane" "4"
         "mg_de_stmarc"  "5"
         "mg_de_shorttrain" "6"
        }
        // Map groups for online modes
        "mapgroupsMP"
        {
         "mg_demolition"  "0"
         [color=#ff0000]"mg_rftag_gg"  "1"[/color]
        }
        "weaponprogression_ct"
        {
         "m4a1"   { "kills" "1" }
         "p90"   { "kills" "1" }
         "ump45"   { "kills" "1" }
         "deagle"  { "kills" "1" }
         "nova"   { "kills" "1" }
         "fiveseven"  { "kills" "1" }
         "hkp2000"  { "kills" "1" }
         "ssg08"   { "kills" "1" }
         "awp"   { "kills" "1" }
         "Scar20"  { "kills" "1" }
        }
    
        "weaponprogression_t"
        {
         "ak47"   { "kills" "1" }
         "p90"   { "kills" "1" }
         "bizon"   { "kills" "1" }
         "deagle"  { "kills" "1" }
         "nova"   { "kills" "1" }
         "p250"   { "kills" "1" }
         "glock"   { "kills" "1" }
         "ssg08"   { "kills" "1" }
         "awp"   { "kills" "1" }
         "g3sg1"   { "kills" "1" }
        }
       }
      }
     }
    }
    //////////////////////////////////////////////////////////////////////////////////////////////
    // Map groups
    //
    // To use a mapgroup, it needs to be defined in a keyvalues
    // block such as the example below, as well as listed in the 
    // 'mapgroupsMP' block within the game mode that will run it,
    // such as the example above.
    //
    // Then launch the server with '+mapgroup MAPGROUPNAME'
    //
    // Example:
    //
    // srcds -game csgo +game_mode 1 +mapgroup mg_bomb_se +map de_nuke_se
    //
    //
    // Check the developer wiki for updated community info
    // [url]https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers[/url]
    //////////////////////////////////////////////////////////////////////////////////////////////
    
    
    "mapgroups"
    {
    
     [color=#FF0000]"mg_rftag_gg"
     {
      "name"   "mg_rftag_gg"
      "maps"
      {
       "ar_churches"  ""
       "ar_jungle"  ""
       "ar_shoots"  ""
       "ar_baggage"  ""
       "gg_2tower_outajungle" ""
       "cs_camouflage"  ""
       "cs_storage"  ""
       "de_interrupt_b2" ""
       "de_keidas"  ""
       "nuketown"  ""
       "de_wetwoodb2  ""
       "de_dust2"  ""
       "de_bank"  ""    
       "cs_office"  ""
       "de_sugarcane"  ""
       "de_stmarc"  ""
       "de_dust"  ""
       "de_shorttrain"  ""
       "de_lake"  ""
       "de_safehouse"  ""
       "$2012$"  ""
       "de_vertigo"  ""
    
      }
     }
     "mg_rftag_compet"
     {
      "name"   "mg_rftag_compet"
      "maps"
      {
    
       "cs_assault"  ""
       "cs_camouflage"  ""
       "cs_estate"  ""
       "cs_kismayo"  ""
       "cs_storage"  ""
       "de_cambodia_b6" ""
       "de_camelot"  ""
       "de_interrupt_b2" ""
       "de_keidas"  ""
       "nuketown"  ""
       "de_sultan2"  ""
       "De_Vigil"  ""
       "de_wetwoodb2  ""
       "de_dust2"  ""
       "cs_italy"  ""
       "de_bank"  ""    
       "cs_office"  ""
       "de_aztec"  ""
       "de_sugarcane"  ""
       "de_stmarc"  ""
       "de_dust"  ""
       "de_inferno"  ""
       "de_nuke"  ""
       "de_shorttrain"  ""
       "de_lake"  ""
       "de_safehouse"  ""
       "de_train"  ""
       "$2012$"  ""
       "de_vertigo"  ""
      }
     }[/color]
    }
    }

    Modifié par Phobie
    Balises CODE
    Lien vers le commentaire
    Partager sur d’autres sites

    Yop Bicran prend le mien et change juste les maps, le mapsgroup, mais la syntax des maps doit être exactement pareil.

     

    // To use this file, rename it to GameModes_Server.txt

    //

    // Values here override the default gamemodes.txt

     

    "GameModes_Server.txt"

    {

    "gameTypes"

    {

    "classic"

    {

    "gameModes"

    {

    "competitive"

    {

    "maxplayers" "20"

     

     

    "convars"

    {

    "sv_alltalk" "1"

    "sv_deadtalk" "1"

    "mp_friendlyfire" "1"

    "mp_timelimit" "30"

    "mp_freezetime" "0"

    "bot_difficulty" "2"

    "bot_join_after_player" "0"

    "mp_do_warmup_period" "0"

     

    }

     

    "mapgroupsMP" // List of mapgroups valid for this game mode

    {

    "mg_nomdetonmapgroup" ""

    }

     

    }

    }

    }

    }

     

    "mapgroups"

    {

    "mg_nomdetonmapgroup" // mapgroup definition

    {

    "name" "mg_nomdetonmapgroup"

    "maps"

    {

    "de_dust2" ""

    "de_train" ""

    "de_nuke" ""

    "de_inferno" ""

    "random_ar" ""

    "" ""

    "" ""

    }

    }

    }

    }

     

    Ta juste a changer:

     

    Maxplayer: par le nombre de slots de ton server

    Mapgroup: (mg_nomdetonmapgroup) par exemple: competitive

    dust2,de_train,de_nuke ect (tu peut en rajouer mais fait attention a la syntax): par les maps que tu veut sur ton server (syntax exact ou bug)

     

    Cordialement Jte One

    Lien vers le commentaire
    Partager sur d’autres sites

    Rejoindre la conversation

    Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

    Invité
    Répondre à ce sujet…

    ×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

      Seulement 75 émoticônes maximum sont autorisées.

    ×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

    ×   Votre contenu précédent a été rétabli.   Vider l’éditeur

    ×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

    ×
    ×
    • Créer...