• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Help Needed: Custom Sounds

Elrapido

Scurvy Seadog
Storm Modder
Hello, mighty coders! <img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />

I have a very simple question:

Are the sound files for POTC precached? If yes, where?

If they are loaded dynamically, which requirements do they have? (PCM 16,000 kHz; 16 Bit; Mono, right?)

I ask, because I have a very disgusting problem with:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->PlaySound("OBJECTS\mycustomsoundhere.wav");<!--c2--></div><!--ec2-->

Once the program calls the function in a handler, the game crashes.

If I use a stock sound, everything works fine. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

And yes, I checked the spelling of the custom file name over and over again. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
 
Yes I have had it too. Check the parameters of an existing sound in game and convert your sound to something similar. I use a program called UFONY (free somwhere on internet) for this, but there are others. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
It works... thank you. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

I converted my custom sound files with a crappy program before (standard Windows Audio Recorder <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> ). This must have been the mistake!

I get more and more familiar with the code. Yesterday I did some kind of orientation. Today I have finished my Rapid_Raid Build-In for a little extra flavour on land.
I will implement some additional features and then release it here. It's a lot of fun! <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
I'm glad you got the sounds to work. It is indeed known that some sounds crash the game. I had that problem too some time ago. I still don't know how to properly get it to work. Luckily, somebody else converted my sound files to files that did work. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Aye, Tom!

Here is a better description of the Rapid_Raid Mod:

<a href="http://forum.piratesahoy.net/index.php?showtopic=6961" target="_blank">El Rapido's Rapid_Raid Mod</a>

YARGH! <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
Back
Top