Jump to content
Sign in to follow this  
andyx

A n00b question about where to place some files

Recommended Posts

Hey guys !

I have a little ... problem.I'm sure it's really easy but I just can't seem to figure out what's wrong .

So I want to make a mission for me and a friend of mine to play , and I want a soldier to get out of a jeep and do some talking .

I saved the mission with waypoints/triggers/people and all those things in it .Then , I made a sqs file with this code in it :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_gigi1 say "abcx" among other things so the guy will talk ( gigi1 is the soldier and abcx is supposed to be my sound file ) .

But when my soldier executes the script , I get a " sound file " not found message .The file is placed in the mission folder (same place where I placed the sqs file and that works) and is called abcx .

So,where exactly do I have to place the sound file ? And what format does it have to be in ? I saved it OGG like in OPF - do I have to save it in some other format ? Thanks a lot !

Later edit :

Oook ... I managed to move the files to the right place ( minor error on my part) but now when the script is executed I get an " error missing ; " error message after my code .What exactly have I done wrong - the code is the one I have already posted .

Could somebody please tell me what I have to do to get that damn soldier to speak using my audio file ?

Share this post


Link to post
Share on other sites

You need to define all sound files in the description.ext for them to be available ingame...

Share this post


Link to post
Share on other sites

Well I did that ( I didn't originally think I wrote it correctly but I checked out a tutorial) and here's what I've got in it relative to that sound file :

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

{

sounds[] =

{

abcx

};

class abcx

{

name = "abcx";

sound[] = {"\sound\abcx.ogg", 1, 1.0};

titles[] = { };

};

};

Now I don't have that file missing error , but when the script should get executed , the code appears in my upper-left corner of the screen and after it a message saying " error missing ; " .What exactly does it mean ? I don't remember this thing happening in OFP.

Share this post


Link to post
Share on other sites

change {"\sound\abcx.ogg", 1, 1.0} to {"abcx.ogg", 1, 1.0} it already looks in \sound for the file your telling it to look in \sound\sound.

some code may require ; at the end of it to tell the script its an end of line try that where the script is coughing and choking.

Share this post


Link to post
Share on other sites

Thanks for the suggestion ... but that didn't work.

The problem seems to be with the "play" command itself .For some reason ArmA will not accept the this play "soundfile" code (examble) where this can be anything and it still keeps giving that error .

However,I've noticed that I can succesfully play the sound using

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">playsound "soundfile" in the ingame editor in gigi's init code .

This code also seems to work in the script , but for some reason it does not accept an "agent" that does the command

Share this post


Link to post
Share on other sites

hmmm, well if thats the case hopefully it'll be fixed in 0.5, sorry i couldnt help you there, theres quite a few things dodgey in arma at the moment - 0.5 should fix alot of it.

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  

×