diehardfc 41 Posted March 10, 2018 This is a new one for me. I added a custom music track as an introduction for a multiplayer mission. It plays fine during testing on my local machine, but when I upload and test it on the dedicated server, the music no longer plays. Here's the description.ext: Spoiler OnLoadName = "Operation Junction City I"; onLoadMission = "Part of the Flashback Vietnam Campaign"; author = "S3 Operations"; disabledAI = 1; enableDebugConsole = 1; showMap = 1; loadScreen = "load.jpg"; respawn = "BASE"; respawnButton = 1; respawnDelay = 10 respawnOnStart = 0; //Dont respawn on start. Don't run respawn script on start. respawnTemplates[] = {"MenuPosition"}; corpseManagerMode = 3; corpseLimit = 20; corpseRemovalMinTime = 30; corpseRemovalMaxTime = 180; wreckManagerMode = 2; wreckLimit = 8; wreckRemovalMinTime = 300; //seconds wreckRemovalMaxTime = 900; //seconds #include "R3F_LOG\desc_include.h" class Header { gameType = COOP; // Game type, see 'class' columns in the table below minPlayers = 1; //min # of players the mission supports maxPlayers = 80; //max # of players the mission supports }; class CfgMusic { tracks[]= { intro }; class intro { name = "intro_audio"; sound[] = {"\sound\namRadioIntro.ogg", 0.4, 1}; }; }; The music is called via script from the initServer.sqf: [] execVM "configAI_INDEP.sqf"; //Customizes AI skills [] execVM "configAI_OPFOR.sqf"; //Customizes AI skills [] execVM "introMusic.sqf"; //Customizes AI skills [] execVM "heloflyby.sqf"; //Intro music and radio report [] execVM "jetflyby.sqf"; //Intro music and radio report [] execVM "transportflyby.sqf"; //Intro music and radio report And the music file is a simple: sleep 12; playMusic "intro"; Does anyone have any insight on why this would work without a hitch locally in singleplayer but not work on the dedicated server in multiplayer? Share this post Link to post Share on other sites
blackpixxel 53 Posted March 10, 2018 If it is really just an intro music, why not add it to the initPlayerLocal.sqf? Then it will get executed for every player. The problem with playMusic is that it is only local. RemoteExec is another way which could solve this: https://community.bistudio.com/wiki/remoteExec Share this post Link to post Share on other sites
diehardfc 41 Posted March 10, 2018 I hadn't thought about doing it for as part of initPlayerLocal.sqf. That is a very elegant solution. EDIT: Tested and it works. Thank you very much for the suggestion, blackpixxel! (and for all your mod work) Share this post Link to post Share on other sites