Jump to content
Sign in to follow this  
SGJackson

Trouble when using sounds/music in ArmA II!

Recommended Posts

I cannot play musics or sounds in ArmA II!!!

I don't know what's wrong!

I do it the same way i did it with ArmA I!!

Look:

showCompass = 0;

showGPS = 0;

showWatch = 0;

// NOTE: Your sound/radio files must be in the ...\mission\sound

// folder and your music files in the ...\mission\music folder.

class CfgMusic

{

// List of tracks (.ogg files without the .ogg extension)

tracks[] = {Civilwar};

// Definition for each sound

class Civilwar

{

name = "Civilwar"; // Name for mission editor

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

titles[] = {0, ""};

};

};

Then converting the music to .Ogg (done) and then placing the track into the ArmA II Other Profiles\Paul%20Jackson\missions\Music%20Example\M usic\Civilwar.ogg (i tried with/without the .ogg extencion... Non of 'em worked) Then i run the game and i put the syntax into a unit/trigger/waypoint: Playmusic Civilwar; (i also tried with/without the .ogg extencion... Non of 'em worked... again...)

This problem keeps happening since i did it in ArmA I!!!!

HEELLPPP :confused::confused::(:(:confused:

Share this post


Link to post
Share on other sites

Did you try the ""'s?

Also, noticed that there is a space in your target folder "m usic" -that would def. cause problems.

Share this post


Link to post
Share on other sites

Hehe, guess you didn't see it in other thread. I meant, did you try

Playmusic "Civilwar"

as opposed to

Playmusic Civilwar

...needs quotes methinks.

Share this post


Link to post
Share on other sites

Ok, well try creating a Class Sound as opposed to music such as this

class CfgSounds
     {
     tracks[] ={sound1};


     class Sound1
     {
           name = "sound1";
           sound[] = {\sounds\Civilwar.ogg, db+20, 0.98};
           titles[] = 
           {
           };

};
    }

...in your Description.ext

Make sure the Civilwar.ogg is in your Mission/Sounds folder.

Now create a trigger and in it's condition put

 True

in it's activation box put

Player playsound "sound1"

and that should work. If it doesn't, it's possible that there is something wrong with the actual OGG file and may need to be re-recorded at different settings.

Share this post


Link to post
Share on other sites

Dude: You're freacking awsome!!!!!!!!!!!!!!!

You did it!!!!!

You rock!!!!

Share this post


Link to post
Share on other sites

Actually now i fixed my sonds problem... but anotherone just pop-up!!!

You see, i now know how to make the camera move in ArmA II, but, when i place mora than 3 coordinates into the camera script... The camera will ONLY do the last coordinate... look at this:

_camera = "CAMERA" camCreate [3586.29,3521.55,21.17];

_camera cameraEffect ["INTERNAL", "BACK"];

_camera camPrepareTarget [-53999.71,-54233.82,57903.27];

_camera camPreparePos [3586.29,3521.55,21.17];

_camera camPrepareFOV 0.034;

_camera camCommitPrepared 0;

_camera camPrepareTarget [-64971.27,66001.25,-37325.42];

_camera camPreparePos [3586.29,3521.55,21.17];

_camera camPrepareFOV 0.677;

_camera camCommitPrepared 10;

BUT, if i add one more:

_camera = "CAMERA" camCreate [3586.29,3521.55,21.17];

_camera cameraEffect ["INTERNAL", "BACK"];

_camera camPrepareTarget [-53999.71,-54233.82,57903.27];

_camera camPreparePos [3586.29,3521.55,21.17];

_camera camPrepareFOV 0.034;

_camera camCommitPrepared 0;

_camera camPrepareTarget [-64971.27,66001.25,-37325.42];

_camera camPreparePos [3586.29,3521.55,21.17];

_camera camPrepareFOV 0.677;

_camera camCommitPrepared 10;

_camera camPrepareTarget [-64567.47,46601.25,-37325.52];

_camera camPreparePos [3582.59,3521.55,21.17];

_camera camPrepareFOV 0.670;

_camera camCommitPrepared 10;

then the camera will start rolling from the last coordinate that i've gave to it WITHOUT ROLLING THE FIRST 2...

And that's all that i can say about it....

Share this post


Link to post
Share on other sites

Haven't messed with Cams in a while but I believe you need to put some delays between adjustments.

Example:

 _camera = "CAMERA" camCreate [3586.29,3521.55,21.17];
_camera cameraEffect ["INTERNAL", "BACK"];

_camera camPrepareTarget [-53999.71,-54233.82,57903.27];
_camera camPreparePos [3586.29,3521.55,21.17];
_camera camPrepareFOV 0.034;
_camera camCommitPrepared 0;
[b]~5[/b]
_camera camPrepareTarget [-64971.27,66001.25,-37325.42];
_camera camPreparePos [3586.29,3521.55,21.17];
_camera camPrepareFOV 0.677;
_camera camCommitPrepared 10;
[b]~8[/b]
_camera camPrepareTarget [-64567.47,46601.25,-37325.52];
_camera camPreparePos [3582.59,3521.55,21.17];
_camera camPrepareFOV 0.670;
_camera camCommitPrepared 10;

Share this post


Link to post
Share on other sites

Mhmmm, i'll try!

---------- Post added at 10:20 PM ---------- Previous post was at 10:16 PM ----------

Dude.... you are my official "Problem Solver"!!!!!!!!!!!

i'll have no doubt, when i'm facing a problem, you'll be my solver!

---------- Post added at 11:00 PM ---------- Previous post was at 10:20 PM ----------

F********************************************CK GODD*******************************************************************************IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

WHEN I TEST THINGS, THEY WORK BUT NOW THEY DON'T!!!!!!!!!!!!!!!!!

THE CAMERA THING, THE FIRST TIME I TRIED YOUR EXAMPLE IT WORKED, BUT NOW THAT I DID ONE OF MY OWN IT DOESN'T!!!!!!!!!!

THE SAME WITH THE SOUNDS!!!!!!!!!!!!! THEY WORKED AND NOW THEY DON'T!!!!!!!!!!!!!!!!!!!!!!!!!!! WITH THE SAME SONG AND DESCRITION!!!!!!!!

buahhhhh!!!! i'm crying... this game is tryig to drive nuts!!!!!!! i am getting nuts!!!!!!!!!!!!!

hellppp meeeee!!!! i'ma put a bullet in my head!!!!!!!

Share this post


Link to post
Share on other sites

LOL!

Take it easy mate, those Description.ext are a tricky bunch and the slightest thing can spill your house O' cards.

Also remember, if you change anything in the Description, you MUST reload the mission before it will take effect.

Share this post


Link to post
Share on other sites

add this line to every block of the script as I pointed out in your other thread.

@camCommitted _camera

a complete block of camscripting commands must look like this

_camera camPrepareTarget us2
_camera camPreparePos [7784.02,6018.03,1.34]
_camera camPrepareFOV 0.328
_camera camCommitPrepared 0
@camCommitted _camera
~5

Regards

nettrucker

Share this post


Link to post
Share on other sites

Now create a trigger and in it's condition put

 True

in it's activation box put

Player playsound "sound1"

and that should work. If it doesn't, it's possible that there is something wrong with the actual OGG file and may need to be re-recorded at different settings.

Froggyluv,

I'm not sure what I'm doing wrong here but when I put:

Player playsound "sound1"

in the trigger's onAct line I get an error that says I'm missing a ";".

Hmmmm...... Any suggestions?

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  

×