Français Solved Problème avec le script de la caméra et le son manquant

  • Auteur de la discussion Auteur de la discussion JeanMarmalo
  • Date de début Date de début
28/4/20
20
0
450
bonjour j'ai un soucis sur le scripts de la camera je n'est pas le son et j'ai une erreur

3:07:21 Warning Message: File mpmissions\__cur_mp.Altis\description.ext, line 32: .CfgMusic: Member already defined.
 
Solution
Hello !
C'est probablement que tu as déjà la class CfgMusic dans ton fichier description.ext, dans le fichier mission/The-Programmer/SpawnCamera/dialogs.cpp, tu peux supprimer ces lignes :
Code:
class CfgMusic {
    sounds[] = {};
    class IntroMusique {
        name = "IntroMusique";
        sound[] = {"The-Programmer\SpawnCamera\IntroMusique.ogg", 1, 1, 50};
        titles[] = {};
    };
};
et dans ton description.ext, dans la class CfgMusic, ajouter le son directement pour ne pas re-définir la class CfgMusic qui existe déjà :
Code:
class IntroMusique {
    name = "IntroMusique";
    sound[] = {"The-Programmer\SpawnCamera\IntroMusique.ogg", 1, 1, 50};
    titles[] = {};
};
Hello !
C'est probablement que tu as déjà la class CfgMusic dans ton fichier description.ext, dans le fichier mission/The-Programmer/SpawnCamera/dialogs.cpp, tu peux supprimer ces lignes :
Code:
class CfgMusic {
    sounds[] = {};
    class IntroMusique {
        name = "IntroMusique";
        sound[] = {"The-Programmer\SpawnCamera\IntroMusique.ogg", 1, 1, 50};
        titles[] = {};
    };
};
et dans ton description.ext, dans la class CfgMusic, ajouter le son directement pour ne pas re-définir la class CfgMusic qui existe déjà :
Code:
class IntroMusique {
    name = "IntroMusique";
    sound[] = {"The-Programmer\SpawnCamera\IntroMusique.ogg", 1, 1, 50};
    titles[] = {};
};
 
Solution
Code:
disableChannels[] = {{0,true,true},{1,true,true},{2,true,true}};    // Disabled text and voice for global, side, and command channels. Syntax: disableChannels[] = {{channelID<number>, disableChat<bool>, disableVoice<bool>}};
overviewText = "$STR_MISC_overviewText";    // Text to be displayed below the overviewPicture on the mission selection screen when the mission is available to play.

#include "infiSTAR_AdminMenu.hpp"
#include "config\Config_SpyGlass.hpp"
#include "CfgRemoteExec.hpp"
#include "dialog\MasterHandler.hpp"
#include "config\Config_Master.hpp"
#include "scripts\autosave\Master.hpp"
#include "The-Programmer\theprogrammer_dialog_master.cpp"

class CfgServer {
    DatabaseName = "altislife"; //Config name that'll be grep in the extdb-conf.ini. Default: [altislife]
    DebugMode = 0; //Enable many server/hc debugging logs. Default: 0 (1 = Enabled / 0 = Disabled)
    HeadlessSupport = 0; //Enable/Disable Headless client support. Default: 1 (1 = Enabled / 0 = Disabled)
    /*
    Enabled: When HeadlessSupport is set to 1 (enabled), the server will run without fault when no Headless Client is connected. However, it will support the Headless Client if you choose to connect one.
    Disabled: If HeadlessSupport is set to 0 (disabled), the connection of a Headless Client will make no difference. This option will increase server performance a TINY but negligible amount.
    */
};

class RscTitles {
    #include "dialog\progress.hpp"
    #include "dialog\hud_nameTags.hpp"
    #include "dialog\hud_stats.hpp"
    #include "The-Programmer\GPS\RscTitles.hpp"
    #include "The-Programmer\AdvancedIdentity\RscTitles.hpp"
};

class CfgFunctions {
    #include "Functions.hpp"
};
class CfgSounds {
#include "The-Programmer\Iphone_XI\Sounds.hpp"
    sounds[] = {};
    class sirenLong {
        name = "sirenLong";
        sound[] = {"\sounds\sirenLong.ogg", 1.0, 1};
        titles[] = {};
    };

    class medicSiren {
        name = "medicSiren";
        sound[] = {"\sounds\medicSiren.ogg", 1.0, 1};
        titles[] = {};
    };

    class tazerSound {
        name = "tazerSound";
        sound[] = {"\sounds\tazer.ogg", 0.5, 1};
        titles[] = {};
    };

    class flashbang {
        name = "flashbang";
        sound[] = {"\sounds\flashbang.ogg", 1.0, 1};
        titles[] = {};
    };

    class mining {
        name = "mining";
        sound[] = {"\sounds\mining.ogg", 1.0, 1};
        titles[] = {};
    };

    class harvest {
        name = "harvest";
        sound[] = {"\sounds\harvest.ogg", 1.0, 1};
        titles[] = {};
    };

    class akbar {
        name = "akbar";
        sound[] = {"\sounds\akbar.ogg",1.0, 1};
        titles[] = {};
    };

    class lockCarSound {
        name = "lockCarSound";
        sound[] = {"\sounds\carLock.ogg", 1.0, 1};
        titles[] = {};
    };

    class unlockCarSound {
        name = "unlockCarSound";
        sound[] = {"\sounds\carUnlock.ogg", 0.75, 1};
        titles[] = {};
    };
};
class CfgDebriefing {
#include "The-Programmer\RuleProtection\debriefing.cpp"
#include "The-Programmer\AdvancedIdentity\debriefing.sqf"
    class NotWhitelisted {
        title = "$STR_NotWhitelisted_Title";
        subtitle = "$STR_NotWhitelisted_SubTitle";
        description = "$STR_NotWhitelisted_Descript";
        pictureBackground = "";
        picture = "";
        pictureColor[] = {0,0.3,0.6,1};
    };

    class Blacklisted {
        title = "$STR_Blacklisted_Title";
        subtitle = "$STR_Blacklisted_SubTitle";
        description = "$STR_Blacklisted_Descript";
        pictureBackground = "";
        picture = "";
        pictureColor[] = {0,0.3,0.6,1};
    };

    class SpyGlass {
        title = "$STR_SpyDetect_Title";
        subTitle = "$STR_SpyDetect_SubTitle";
        description = "$STR_SpyDetect_Descript";
        pictureBackground = "";
        picture = "";
        pictureColor[] = {0,0.3,0.6,1};
    };
};

class CfgNotifications {
#include "The-Programmer\Duty_System\notifications.cpp"
    class MedicalRequestEmerg {
        title = "$STR_MedicalRequestEmerg_Title";
        iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
        description = "%1";
        duration = 5;
        priority = 7;
    };

    class DeliveryAssigned {
        title = "$STR_DeliveryAssigned_Title";
        iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcon_ca.paa";
        description = "%1";
        duration = 10;
        priority = 7;
    };

    class DeliveryFailed {
        title = "$STR_DeliveryFailed_Title";
        iconPicture = "\A3\ui_f\data\map\mapcontrol\taskiconfailed_ca.paa";
        description = "%1";
        duration = 7;
        priority = 7;
    };

    class DeliverySucceeded {
        title = "$STR_DeliverySucceeded_Title";
        iconPicture = "\A3\ui_f\data\map\mapcontrol\taskIcondone_ca.paa";
        description = "%1";
        duration = 6;
        priority = 6;
    };

    class TextMessage {
        title = "$STR_TextMessage_Title";
        iconPicture = "icons\ico_messageNew.paa";
        description = "%1";
        duration = 10;
        priority = 6;
    };

    class PoliceDispatch {
        title = "$STR_PoliceDispatch_Title";
        iconPicture = "icons\ico_messagePolice.paa";
        description = "%1";
        duration = 10;
        priority = 6;
    };

    class AdminDispatch {
        title = "$STR_AdminDispatch_Title";
        iconPicture = "icons\ico_messageAdmin.paa";
        description = "%1";
        duration = 10;
        priority = 6;
    };

    class AdminMessage {
        title = "$STR_AdminMessage_Title";
        iconPicture = "icons\ico_messageAdmin.paa";
        description = "%1";
        duration = 10;
        priority = 5;
    };
};
 
Dernière édition par un modérateur:
Il n'y a effectivement pas la class. C'est étrange 🤔
Est-ce que tu peux rechercher dans toute la mission (avec ton logiciel pour modifier les fichiers, notepad++ ou sublime text par exemple) avec CTRL + SHIFT + F tu peux chercher dans tout ton dossier mission, ceci :
Code:
class CfgMusic

Tu dois probablement avoir un autre fichier où il y a cette class, sinon tu peux m'envoyer ton dossier mission en message privé pour que je regarde :)