OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: strike277 on 08 May 2007, 01:59:00
-
I played OFP and was able to get Custom music to work in it. I tried the same steps for ARMA but was unable to see my tracks in the trigger I laid down. I've searched the forums for an answer, but I have found very little information on it. Would some one please do a Setp by Setp on how to add custom music to player generated missions in ARMA. Thanks
-
Post what you have done so far. The same meathod for OFP works for me in ArmA.
-
Thanks for the Fast Replay Jason. Here is what I have so far. All music coverted to ogg, music folder in the mission folder and this is the format I have in the " description.ext"
class CfgMusic
{
tracks[]=
{
jade, blink
};
class jade
{
name = "jade";
sound[] = {\music\jade.ogg, db+0, 1.0};
};
class blink
{
name = "blink";
sound[] = {\music\blink.ogg, db+0, 1.0};
};
};
-
I've gotten custom music to work. I take it you've used the
playmusic "mysong"
as the code in the script?
Below worked for me in my mission:
class CfgMusic
{
// List of music tracks (.ogg files without the .ogg extension)
tracks[] = {kashmir, adagio};
// Class definition needed for each music track
class kashmir
{
// Name to display in mission editor
name = "kashmir";
// Music path, volume, pitch
sound[] = {\music\kashmir.ogg, db + 0, 1.0};
};
class adagio
{
// Name to display in mission editor
name = "adagio";
// Music path, volume, pitch
sound[] = {\music\adagio.ogg, db + 100, 1.0};
};
};
-
No have'nt used that one. All I'm trying to do is get the tracks to show up on the Track list in the trigger. I'll give the code you posted a try though and let you know how it goes. Thanks.
-
Well that did'nt work. What folder am I supposed to be putting all of this into? I'm assuming it's Mydocs\name\Arma Other Profiles\name\Missons\Mission Name
Tried this
class CfgMusic
{
// List of music tracks (.ogg files without the .ogg extension)
tracks[] = {Mercy,Redrain};
// Class definition needed for each music track
class Mercy
{
// Name to display in mission editor
name = "Mercy";
// Music path, volume, pitch
sound[] = {\music\Mercy.ogg, db + 0, 1.0};
};
class Redrain
{
// Name to display in mission editor
name = "Mercy";
// Music path, volume, pitch
sound[] = {\music\Redrain.ogg, db + 100, 1.0};
};
};
-
works for me. are you using someone elses description.ext?
edit
Mydocs\name\Arma Other Profiles\name\Missons\Mission Name
yes and make sure the music in is another folder called music
Mydocs\name\Arma Other Profiles\name\Missons\Mission Name\music\jade.ogg
etc
-
I've got to be doing something minor then. I have the music in The music folder in the mission folder and in the root mission folder I have the Decription.ext file, in the file I have the above listed code. I just don't get it.
-
strike277, do not double post (replies 4 and 5).
If you have something to add and your post is the last (or the only) one in a thread edit your post instead of replying to yourself..
-
OK try attaching the mission, unless the sound file is to big.
-
Okay !! I got it. I loaed up OFP and started fiddling around in there. First I just used the Description.ext to the the tracks to show up. What I did was DL an old tut from ofpec for Music and used the code from that. I think where my problem lied was here, []. Instead of inserting the tracks in the brackets the the whole thing should have looked like this.
class CfgMusic
{
tracks[I though the Tracks went in here, but no]=
{
HERE>> Mercy, Redrain (<<This was my mistake)
};
class Mercy
{
name = "Mercy";
sound[] = {\music\Mercy.ogg, db+0, 1.0};
};
class Redrain
{
name = "Redrain";
sound[] = {\music\Redrain.ogg, db+0, 1.0};
};
};
Thanks to every one that tried to help !!