France-FPS : backup partiel 2003 - 2006

Accueil du site > Dossiers Serveurs de jeux > Soldier Of Fortune 2 > Créer un serveur dédié Soldier Of Fortune 2 sous Windows en lignes de (...)

Créer un serveur dédié Soldier Of Fortune 2 sous Windows en lignes de commandes

jeudi 16 décembre 2004, par Olivier FOSSE


Configuration du serveur :

Configurez votre serveur en utilisant le SOF2 Runner (> Tutorial). qui me parait l’outil le plus évident, le plus simple et le plus fonctionnel. Les grandes fonctions sont passées en revue dans le tutorial

Tous vos fichiers de configurations pour un serveur Windows se trouvent dans le répertoire suivant : c :/Program Files/Soldier of Fortune II - Double Helix/base/mp/

Ici nous nous attachons à réaliser un serveur Soldier Of Fortune 2 "simple" sans ajout de modules ou modifications supplémentaires.
Bornez-vous à ne configurez via SOF2 Runner uniquement les cinq premiers onglets.
Utilisez l’assistant de configuration de maps pour créer votre mapcycle (indispensable !).
Une fois fait, enregistrez vos fichiers de configuration par SOF2 Runner par : Utilities/Export/Server Configuration/, et enregistrez-les fichiers un par un.

Pour exemple, je fournis ci-dessous :

  • le mapcycle de notre serveur - = [ TPB SOF2 ] = - :

    mapcycle

    map1

    Command "map uss_carrier"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1"
    g_gravity "800"
    g_availableWeapons "2222222222211"


    map2

    Command "map station4"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1" g_gravity "800"
    g_availableWeapons "2222222222211"


    map3

    Command "map mp_waste"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1"
    g_gravity "800"
    g_pickupsdisabled "0"
    g_availableWeapons "2222222222211"


    map4

    Command "map minimoke"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1"
    g_gravity "800"
    g_pickupsdisabled "0"
    g_availableWeapons "2222222222211""


    map5

    Command "map mp_raven"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1"
    g_gravity "800"
    g_pickupsdisabled "0"
    g_availableWeapons "2222222222211"


    map6

    Command "map mp_shop"
    cvars

    g_gametype "dm"
    timelimit "0"
    scorelimit "20"
    dmflags "0"
    fraglimit "25"
    g_motd "^4- = [ ^7TPB SOF 2 ^1] = -"
    g_speed "280"
    g_pickupsdisabled "1"
    g_gravity "800"
    g_pickupsdisabled "0"
    g_availableWeapons "2222222222211"



  • le fichier de configuration général de notre serveur - = [ TPB SOF2 ] = - :

    // SOF2 Server Configuration File
    ///////////////////////////////////////////////////////////////
    // File Created by : SOF2 Runner ver : December 06 2003 beta 1.0.6
    // File Created On : lundi 2 février 2004 at 02:04:39
    // Aphextwin@gamerunners.com
    ///////////////////////////////////////////////////////////////

    // This file is automatically executed by SoF2MP.exe

    sets ".Configured By" "SOF2 Runner : December 06 2003 beta 1.0.6"
    sets ".Online Since" "02/02/2004 02:04:39"

    set gamename "sof2mp"
    seta g_motd "^4- = [ T^7PB SO^1F 2 ] = -"
    sets "Config File" "SOF2"
    seta sv_hostname "^4- = [ T^7PB SO^1F 2 ] = -"
    sets "Admin" "- = [ ThE puNiSheR ] = -"
    //seta net_port "20110"
    seta sv_privatePassword "*********"
    seta rconPassword "********"
    seta g_needpass "1"
    seta g_password "***********"
    //seta net_ip "tpb.no-ip.info"

    seta sv_maxclients "6"
    seta sv_privateClients "0"
    seta sv_maxPing "400"
    seta g_respawnInvulnerability "3"
    seta sv_minclients "1"
    seta sv_maxRate "5000"
    seta sv_minPing "0"
    seta g_respawnInterval "3"
    seta g_inactivity "59"
    seta sv_fps "20"
    seta g_maxGameClients "10"
    seta g_warmup "20"
    seta com_SoundMegs "16"
    seta com_HunkMegs "32"
    seta g_minGameClients "1"
    seta sv_zombietime "30"
    seta sv_reconnectlimit "10"
    seta com_zoneMegs "16"
    seta g_allowvote "1"
    seta sv_allowDownload "1"
    seta sv_allowAnonymous "0"
    seta g_doWarmup "1"
    seta sv_floodProtect "1"
    seta g_friendlyfire "1"
    seta g_teamForceBalance "1"
    seta g_teamAutoJoin "1"
    seta g_synchronousclients "0"
    seta g_noTeamSwitching "1"
    seta g_adaptrespawn "1"
    seta g_smoothClients "0"
    seta sv_padPackets "0"
    seta g_pickupsdisabled "1"
    seta g_followEnemy "1"
    seta g_forceFollow "1"
    seta g_suddenDeath "1"
    seta g_gore "1"
    seta sv_timeout "300"
    seta g_voteDuration "60"
    seta g_timeouttospec "15"
    seta g_suicidePenalty "-1"
    seta g_teamkillPenalty "-1"
    seta g_teamkillDamageMax "300"
    seta g_teamkillDamageForgive "50"
    seta g_voiceFloodCount "6"
    seta g_voiceFloodPenalty "60"
    seta g_failedVoteDelay "1"
    seta g_voteKickBanTime "999"
    seta g_teamkillBanTime "5"
    seta g_teamkillNoExcuseMultiplier "3"
    seta g_teamkillNoExcuseTime "8"
    seta g_weaponrespawn "10"
    seta g_forcerespawn "3"
    // Master Servers
    seta sv_master5 ""
    seta sv_master4 ""
    seta sv_master3 ""
    seta sv_master2 ""
    seta sv_master1 "master.sof2.ravensoft.com"

    //Logging
    seta logfile "0"
    seta g_log "sof2games.log"
    seta g_logSync "0"
    seta g_logHits "0"

    //----------------
    //#### THE FOLLOWING KICKS THE SERVER INTO GEAR ####
    //----------------

    seta sv_mapcycle "tpbospmapcycle.mapcycle"
    //
    // ZoneMegs = 16
    // HunkMegs = 32
    // SoundMegs = 16
    // IP = tpb.no-ip.info
    // Port = 20110

    mapcycle
    //Begin CFG List
    exec grenade.cfg
    exec ammo.cfg
    exec armor.cfg
    exec NoVote.cfg
    // Punkbuster enabled
    PB_SV_ENABLE
    writeconfig sof2mp.cfg
    wait
    //EOF


    Assurez-vous que la variable seta sv_mapcycle xxx.mapcyle contiennent bien le nom de votre mapcycle.
    Vous utilisez SOF2 Runner dont l’auteur est Aphextwin ; merci de lui laisser son copyright visible par respect pour son travail.

    Mise à jour importante : la dernière version de SOF2 Runner est capable de passer outre la variable  ; vous pouvez inclure un fichier disabled.cfg et modifiez et donc supprimer les armes non souhaitées. Exemple :

    // SOF2 Pickup Configuration File
    ///////////////////////////////////////////////////////////////
    // File Created by : SOF2 Runner ver : May 30 2002 beta 0.7.4
    // File Created On : Thursday, May 30, 2002 at 6:12:39 PM
    // Aphextwin@gameadmins.com
    ///////////////////////////////////////////////////////////////

    // This file is automatically executed by SoF2MP.exe

    //////////////
    // WEAPONS //
    //////////////
    seta disable_weapon_knife "0"
    seta disable_pickup_weapon_US_SOCOM "0"
    seta disable_pickup_weapon_M19 "0"
    seta disable_pickup_weapon_microuzi "0"
    seta disable_pickup_weapon_M3A1 "0"
    seta disable_pickup_weapon_M590 "0"
    seta disable_pickup_weapon_MSG90A1 "0"
    seta disable_pickup_weapon_M4 "0"
    seta disable_pickup_weapon_M60 "0"
    seta disable_pickup_weapon_RPG_7 "1"
    seta disable_pickup_weapon_MM_1 "1"
    ///////////////
    // GRENADES //
    ///////////////
    seta disable_pickup_weapon_M67 "0"
    seta disable_pickup_weapon_M84 "0"
    seta disable_pickup_weapon_F1 "0"
    seta disable_pickup_weapon_L2A2 "0"
    seta disable_pickup_weapon_MDN11 "0"
    seta disable_pickup_weapon_SMOHG92 "0"
    seta disable_pickup_weapon_AN_M14 "0"
    seta disable_pickup_weapon_M15 "0"
    ///////////
    // AMMO //
    ///////////
    seta disable_pickup_backpack "0"
    seta disable_pickup_ammo_45 "0"
    seta disable_pickup_ammo_9mm "0"
    seta disable_pickup_ammo_12gauge "0"
    seta disable_pickup_ammo_762 "0"
    seta disable_pickup_ammo_556 "0"
    seta disable_pickup_ammo_40mm "0"
    seta disable_pickup_ammo_rpg7 "0"
    //////////////////
    // ARMOR+HEALTH //
    //////////////////
    seta disable_pickup_armor_big "0"
    seta disable_pickup_armor_medium "0"
    seta disable_pickup_armor_small "0"
    seta disable_pickup_health_big "0"
    seta disable_pickup_health_small "0"
    // EOF

    Lancement du serveur :

    Créez un raccourci sur votre bureau de sof2mp.exe et ajoutez dans la ligne de commande ceci : +set net_noipx 1 +set dedicated 2 +exec sof2.cfg , de telle sorte à obtenir : "C :\Program Files\Soldier of Fortune II - Double Helix\SoF2MP.exe" +set net_noipx 1 +set dedicated 2 +exec sof2.cfg à l’instar de la capture d’écran ci-contre.

    Votre serveur est alors lancé et attends les connexions des clients.

    Nota : pour un jeu en LAN, la commande +set net_noipx 1 n’est pas indispensable.

Suivre la vie du site RSS 2.0 | Plan du site | Espace privé | SPIP | squelette
revendeur apple - revendeur bose - revendeur ordissimo - depannage informatique - depannage informatique 78 - busby seo challenge