Jump to content
Sign in to follow this  
strider67

Getting extremely discouraged

Recommended Posts

confused.gif I have looked at the majority of tutorials out there, and ATTEMPTED to follow them, but they are all too confusing. I have converted my .mp3 to .ogg format, but now I have no idea how to get it into the mission. I know I have to edit the description.ext and possibly make a .sqs file; but I am so green at that type of editing that I have absolutely no idea on how to do that. If someone could provide me with a DETAILED walkthrough or tutorial, it would be much appreciated. I mean, I have all the necessary add-ons for a great Vietnam-era mission, but no idea how to get it all to mesh together well.

Share this post


Link to post
Share on other sites

After converting your mp3 file to ogg, open Notepad. Then paste there:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMusic

{

tracks[]=

{

track1

};

class track1

{

name = "track1";

sound[] = {\music\track1.ogg, db+0, 1.0};

};

} <span id='postcolor'>

Track1 is the name of the ogg file you gave.

Choose "save as...", select at the bottom "all files" and give it the filename:</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">"Description.ext"<span id='postcolor'>

NOTE: This is WITH the "  "

Save it in your mission folder.

(Default is: C:\Program Files\Codemasters\Operation Flashpoint\Users\Username\Missions\Missionname)

In this same folder, make a folder called: Music

Place the ogg file in here.

If everything is correct you can select your track from the Effects-Tab of a trigger.

If you have problems or have more than music track, then just post them. smile.gif

Share this post


Link to post
Share on other sites

Thanks for the info. I will try it out and post the results and any error messages I get (if any).

Share this post


Link to post
Share on other sites

Ok, I did just as above and I get nothing. I checked under all the different audio sub menus and my track is nowhere to be found. I saved it as holdon.ogg and this is what my code looks like:

class CfgMusic

{

tracks[]=

{

holdon.ogg

};

class track1

{

name = "holdon.ogg";

sound[] = {\music\holdon.ogg, db+30, 1.0};

};

}

I put the .ogg file in my Music folder that I created in my missions folder as per DestroyerX's instructions. I am officially stumped.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (strider67 @ Nov. 11 2002,16:38)</td></tr><tr><td id="QUOTE">Thanks for the info. I will try it out and post the results and any error messages I get (if any).<span id='postcolor'>

If you still can't hear your songs: remember you also need a stringtable.csv in your mission folder.

Example: First the description.ext - this is for two files, one called 'chord' the other called 'disgrace'.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">class CfgMusic

{

tracks[]={chord,disgrace};

class chord

{

name = "";

sound[] = {\music\chord.ogg, db+30, 1.0};

};

class disgrace

{

name = "";

sound[] = {\music\disgrace.ogg, db+30, 1.0};

};

};<span id='postcolor'>

Now, for OFP to actually play this sound you also need the following lines in a text file called 'stringtable.csv':

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">LANGUAGE,English,Comment

STRM_chord,,

STRM_disgrace,,<span id='postcolor'>

Note that the lines start always with 'STRM_' followed by the classname we assigned in the description.ext!

Share this post


Link to post
Share on other sites

I don't use any stringtable and it works fine for me.

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">class CfgMusic

{

tracks[]=

{

holdon.ogg

};

class track1

{

name = "holdon.ogg";

sound[] = {\music\holdon.ogg, db+30, 1.0};

};

}

<span id='postcolor'>

Where it says 'track1' that should be holdon also. smile.gif

So try this:

class CfgMusic

{

tracks[]=

{

holdon.ogg

};

class holdon

{

name = "holdon.ogg";

sound[] = {\music\holdon.ogg, db+30, 1.0};

};

}

There was a space at the beginning that I couldn't remove. That might also be the problem, the above is fixed.

Share this post


Link to post
Share on other sites

I got it to work using the stringtable.csv, but the music track name doesn't appear in the drop down menu. Any way to fix this? confused.gif Other that that, the music works with the trigger. Thanks for you help guys.

Share this post


Link to post
Share on other sites

Config.cpp:

class CfgMusic

{

class chord

{

name = "$STRM_chord";

sound[] = {\music\chord.ogg, db+30, 1.0};

};

class disgrace

{

name = "$STRM_disgrace";

sound[] = {\music\disgrace.ogg, db+30, 1.0};

};

};

Stringtable.csv:

LANGUAGE,English,Comment

STRM_chord,chord,User readable name

STRM_disgrace,disgrace,User readable name

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×