Arthur 0 Posted January 5, 2005 hello im trying to get a song in my ofp mission but i keep getting the error Music Soad can not be found class CfgMusic { tracks[] = {"Soad.ogg"}; class MyMusic { name = "Soad"; sound[] = {"\Soad.ogg", db-5, 1.0}; }; }; this is how my .ext looks like Share this post Link to post Share on other sites
RED 0 Posted January 5, 2005 Try this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgMusic { tracks[] = {"Soad.ogg"}; class MyMusic { name = "Soad"; sound[] = {"Soad.ogg", db-5, 1.0}; }; }; You didn't need the backslash before the Soad.ogg. RED Share this post Link to post Share on other sites
Arthur 0 Posted January 5, 2005 nope still got the problem Share this post Link to post Share on other sites
Artak 0 Posted January 5, 2005 Maybe you have the file in a Sound or Music folder as they commonly are. If so then you obviously need: sound[] = {"\Music\Soad.ogg", db-5, 1.0}; or sound[] = {"\Sound\Soad.ogg", db-5, 1.0}; Share this post Link to post Share on other sites
Arthur 0 Posted January 6, 2005 nope that isnt it either Share this post Link to post Share on other sites
ACF 0 Posted January 6, 2005 <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Â Â tracks[] = {"Soad"}; Any better? Share this post Link to post Share on other sites
xezon 0 Posted January 6, 2005 class CfgMusic { tracks[]= { }; class Sample { name = "Sample"; sound[] = {"Sample.ogg", db, 1.0}; titles[] = { }; }; }; you forgot titles[]={} Share this post Link to post Share on other sites
Sniperwolf572 758 Posted January 7, 2005 class CfgMusic { tracks[] = {"Soad"}; class Soad { name = "Soad"; sound[] = {"Soad.ogg", db-5, 1.0}; }; }; Share this post Link to post Share on other sites
RED 0 Posted January 7, 2005 Are you sure the music file has been encoded correctly? If not OFP will not be able to read it, take a look on the OFPEC for some good tutorials. RED Share this post Link to post Share on other sites
Arthur 0 Posted January 7, 2005 well red i guess thats it because i got it to work but no sound i think its now that but still thanks for all youre help everybody Share this post Link to post Share on other sites