DominicTrix Posted July 13, 2005 Share Posted July 13, 2005 (edited) New to the GR Scripting lark but looks nice and simple (lol), the documentation is somewhat sparse tho. For PlaySound & PlaySound3d, it does not say what you need to put in for the sound string. I gather you need to put in a filename from what Ive seen in my search for answers, but what path does it take this file from? I presume mods\mp2\sounds\. Wrong? Also, if I want to play some of the music files in the music folder would I need to put in "Music\filename.wav"? I have tried these things but I get no sound (volume set to 1). I am trying to play the sounds using the startup trigger. It seems such a simple task but lack of documentation from red storm makes things such a freakin mission!! I guess they like missions huh. Thnx in advance PT_Frank Oh, incidentally, I can't get any of the sounds to Play in the Sound volume editor in Igor - seems odd indeed. Edited July 13, 2005 by DominicTrix Quote Link to comment Share on other sites More sharing options...
el nino foxhound Posted July 13, 2005 Share Posted July 13, 2005 You do not need to include the path to the sound. All you have to do is type the sound name and make sure you do not forget the .wav extension. Wether you use a music file, or a sound file or a briefing sound file, all you have to do is just put in the correct name (with the .wav extension) and the game will pick it from the correct place. So if you made a mod with new sounds/music/whatever, and you have activated it in the mod selection screen (in game) your sounds will be played. But make sure your mod has highest priority, so it should be the lowest on the list. Quote Link to comment Share on other sites More sharing options...
DominicTrix Posted July 13, 2005 Author Share Posted July 13, 2005 Cool tyvm, was doing all those things and its a server sided mod anyways and using existing sounds. Managed to get Playsound working, phaps I just put in wrong filenames or its case sensitive or something. Playsound3d not quite so successful (I have 3dsound alive and well on my PC), have volume at 1, the same filenames and duration set at like 600 secs (duration of 10 min game). Yet I get no sound. :'( Thanks again PT_Frank Quote Link to comment Share on other sites More sharing options...
el nino foxhound Posted July 13, 2005 Share Posted July 13, 2005 (edited) Maybe some more info? What sound are you using? Do you have your script so we can check it for errors? [EDIT]If you open the script you can select "summary" now you can copy the text and paste it here, so there is no need to sent us the whole file [/EDIT] Are you trying to play a music file? If so make sure you have music enabled cause if you have set ingame music to 0 you will never hear it. Edited July 13, 2005 by el nino foxhound Quote Link to comment Share on other sites More sharing options...
ATO_Architect Posted July 13, 2005 Share Posted July 13, 2005 I also have been having playsound problems recently. I placed two music files (.wav) into my sound folder and when I try to play them using the Playsound function, I get nothing. Every other sound file from the original GR seems to work just fine, just my wavs. I can't get them to play in the Sound Volume Editor either. I know its not the wav encoding...they play fine in windows media player and several other wav music programs and they were encoded with different programs. Is there something I am overlooking? Do I need to create an effects.xml or something like that to get GR to recognize them? Quote Link to comment Share on other sites More sharing options...
cobaka Posted July 14, 2005 Share Posted July 14, 2005 Are they new sounds? If so, then you need to create or modify your effects.xml file. In Igor, select your mod if the sound is in a separate folder then go to tools>sound volume editor (or you can open the sound volume editor then click on Select Sound Folder). You will get a list of sound files. Check that your sounds are okay (color of the dot next to the file name). If not, select the sound file and click Reconcile, then Apply. If your sounds don't show up, then they may be in the wrong format, even if you think they are. The easiest way I found to fix that is to make a copy of a stock sound, then open it in a sound editor. Also open up your sound file. Copy your sound and paste it into the stock file, then delete the stock sound part. When you save the file (now it should only be your sound) it will be in the proper format. Quote Link to comment Share on other sites More sharing options...
*NexuS* Posted July 14, 2005 Share Posted July 14, 2005 Don't forget, playsound3d will play at the set volume at the specified location. If you are some distance from the location, then you won't hear it. Quote Link to comment Share on other sites More sharing options...
ATO_Architect Posted July 14, 2005 Share Posted July 14, 2005 Don't forget, playsound3d will play at the set volume at the specified location. If you are some distance from the location, then you won't hear it. ← I created an effects.xml by using the sound volume editor, but now the sound plays but for only a few seconds. I checked the time length in the effects.xml and it looks fine. Uggghh! Quote Link to comment Share on other sites More sharing options...
cobaka Posted July 14, 2005 Share Posted July 14, 2005 Did you set the sound to loop? In the script editor when you add your sound I believe there is a tab for looping. Quote Link to comment Share on other sites More sharing options...
ATO_Architect Posted July 14, 2005 Share Posted July 14, 2005 Did you set the sound to loop? In the script editor when you add your sound I believe there is a tab for looping. ← I wasn't too clear in what I wrote. The wav file is about 2 minutes in length and it is supposed to play just once. I set it up to play when cued by a timer and a playsound response. It just plays for about two seconds and then cuts out. The same thing happens when I use musicstart. I really wish RSE would have made their Igor guides better when it comes to explaining sound in GR. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.