MrGrimm 10 Posted May 31, 2013 Ive seen posts on this for ARMA 2 but not 3. Being very new to scripts and running these types of servers would anyone be willing to help me add a small music intro file i have made to my servers mission file ? Share this post Link to post Share on other sites
BullyBoii 10 Posted May 31, 2013 in the description.ext mission file place this code class cfgMusic { class **put class name here** { name = "**put name here**"//this is what will be displayed in the editor (make it look nice) sound[] = {"**filename**", db+1,1};//filename with path, loudness, pitch }; }; replace the parts with in ** with your own names Hope this helps Share this post Link to post Share on other sites
MrGrimm 10 Posted May 31, 2013 Thx for the help...is that all i have to do? Will this work on intro ? Thx again! Share this post Link to post Share on other sites
lordprimate 159 Posted June 1, 2013 I am sorry i cannot be more help, however, I am pretty sure that you have to call for the sound to be played at missions start once this is done.. As far as exactly how, your best bet is to do what i do... De-PBO another mission that has intro music, and see how they did it.. Share this post Link to post Share on other sites
SavageCDN 231 Posted June 3, 2013 Yes it will work on intro... in your intro script all you need is a line playMusic [i]track1[/i] assuming of course your music file is called "track1" class cfgMusic { class track1 { name = "track1"; sound[] = {"sounds\tune.ogg", db+1,1}; }; }; http://community.bistudio.com/wiki/Description.ext#cfgMusic http://community.bistudio.com/wiki/playMusic Share this post Link to post Share on other sites
MrGrimm 10 Posted June 3, 2013 Thx for the help...But i dont have an intro script?? Share this post Link to post Share on other sites
SavageCDN 231 Posted June 3, 2013 ah sorry you said it wasn't working on intro... put that line at the end of the init.sqf file in your mission folder. Share this post Link to post Share on other sites
Andy24090 10 Posted August 6, 2014 ah sorry you said it wasn't working on intro... put that line at the end of the init.sqf file in your mission folder. Im Trying to do this today followed the forum and still cant get my one to work. Has it changed what you have to do? Pls help! Share this post Link to post Share on other sites
SavageCDN 231 Posted August 6, 2014 Not that I am aware of... please post up your description.ext and init.sqf files for us to look at Share this post Link to post Share on other sites
Andy24090 10 Posted August 7, 2014 description.ext respawn="BASE"; respawnDelay=15; disabledAI=1; disableChannels[] = {}; // {0} to disable global joinUnassigned = 0; enableItemsDropping = 0; weaponPool = 0; corpseRemovalMinTime = 15*60; corpseRemovalMaxTime = 15*60; wreckRemovalMinTime = 5*60; wreckRemovalMaxTime = 10*60; enableDebugConsole = 1; loadScreen = "Loading.jpg"; onPauseScript = "client\clientEvents\onPause.sqf"; class Header { gameType=Sandbox; minPlayers=1; maxPlayers=84; }; author="Team Wasteland - A3Wastelandcom"; onLoadName = "A3Wasteland Stratis"; onLoadMission = "Wasteland is a harsh survival sandbox where two teams and independent players fight for survival."; overviewText = "Wasteland is a harsh survival sandbox where two teams and independent players fight for survival."; overviewTextLocked = "Wasteland is a harsh survival sandbox where two teams and independent players fight for survival."; overviewPicture = "Loading.jpg"; //Dialog includes #include "client\gui_base.hpp" #include "addons\R3F_ARTY_AND_LOG\desc_include.h" #include "client\systems\common.hpp" #include "client\items\warchest\dialog.hpp" #include "client\actions\gui.hpp" #include "client\systems\playerMenu\dialog\player_settings.hpp" #include "client\systems\groups\dialog\groupManagement.hpp" #include "client\systems\gunStore\dialog\gunshop_settings.hpp" #include "client\systems\generalStore\dialog\genstore_settings.hpp" #include "client\systems\vehicleStore\dialog\vehiclestore_settings.hpp" #include "client\systems\adminPanel\dialog\adminMenu.hpp" #include "client\systems\adminPanel\dialog\modMenu.hpp" #include "client\systems\adminPanel\dialog\serverAdminMenu.hpp" #include "client\systems\adminPanel\dialog\debugMenu.hpp" #include "client\systems\adminPanel\dialog\playerMenu.hpp" #include "client\systems\adminPanel\dialog\VehicleManagement.hpp" #include "client\systems\adminPanel\dialog\objectSearch.hpp" #include "client\systems\playerMenu\dialog\respawn_dialog.hpp" #include "client\systems\playerMenu\dialog\teamkill_dialog.hpp" #include "addons\proving_ground\PG_config.hpp" class RscTitles { #include "addons\proving_ground\PG_rsctitles.hpp" #include "client\systems\hud\dialog\hud.hpp" #include "client\systems\playerMenu\dialog\welcome.hpp" }; class cfgMusic { class survival { name = "survival"//this is what will be displayed in the editor (make it look nice) sound[] = {"\music\survival.ogg", db+1,1};//filename with path, loudness, pitch }; }; init.sqf asaerw3rw3r4 = 1; Menu_Init_Lol = 1; // @file Version: 1.2 // @file Name: init.sqf // @file Author: [404] Deadbeat, [GoT] JoSchaap // @file Description: The main init. #define DEBUG false enableSaving [false, false]; currMissionDir = compileFinal str call { private "_arr"; _arr = toArray str missionConfigFile; _arr resize (count _arr - 15); toString _arr }; X_Server = false; X_Client = false; X_JIP = false; // versionName = ""; // Set in STR_WL_WelcomeToWasteland in stringtable.xml if (isServer) then { X_Server = true }; if (!isDedicated) then { X_Client = true }; if (isNull player) then { X_JIP = true }; [DEBUG] call compile preprocessFileLineNumbers "globalCompile.sqf"; //init Wasteland Core [] execVM "config.sqf"; [] execVM "storeConfig.sqf"; // Separated as its now v large [] execVM "briefing.sqf"; if (!isDedicated) then { [] spawn { 9999 cutText ["Welcome to A3Wasteland, please wait for your client to initialize", "BLACK", 0.01]; waitUntil {!isNull player}; removeAllWeapons player; client_initEH = player addEventHandler ["Respawn", { removeAllWeapons (_this select 0) }]; // Reset group & side [player] joinSilent createGroup playerSide; [] execVM "client\init.sqf"; }; }; if (isServer) then { diag_log format ["############################# %1 #############################", missionName]; diag_log "WASTELAND SERVER - Initializing Server"; [] execVM "server\init.sqf"; }; //init 3rd Party Scripts [] execVM "addons\R3F_ARTY_AND_LOG\init.sqf"; [] execVM "addons\proving_Ground\init.sqf"; [] execVM "addons\scripts\DynamicWeatherEffects.sqf"; [] execVM "addons\JumpMF\init.sqf"; playMusic survival Share this post Link to post Share on other sites
SavageCDN 231 Posted August 7, 2014 perhaps just a copy/paste issue but you are missing a ";" at the end of the playmusic survival line as well as name = "survival" line You also need quotes around the track name ie: playMusic "survival"; Share this post Link to post Share on other sites
Andy24090 10 Posted August 7, 2014 Thank you ever so much dont know how long ive been trying to do this Thank Share this post Link to post Share on other sites
SavageCDN 231 Posted August 7, 2014 If you aren't already I suggest using Notepad ++ with the Arma 3 syntax file installed.. .it's very useful for checking syntax errors like these Share this post Link to post Share on other sites