• 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!

Sea battle sounds

<!--quoteo(post=267685:date=Jul 8 2008, 10:45 AM:name=Elsilhe)--><div class='quotetop'>QUOTE (Elsilhe @ Jul 8 2008, 10:45 AM) <a href="index.php?act=findpost&pid=267685"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=266731:date=Jul 5 2008, 11:53 PM:name=Andyintore Falcus)--><div class='quotetop'>QUOTE (Andyintore Falcus @ Jul 5 2008, 11:53 PM) <a href="index.php?act=findpost&pid=266731"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Now, im quite hopeless when i enter in different waters. I mean, i have no idea how to make the bell sound work every half hour as it is said. Can anyone guide me, please?<!--QuoteEnd--></div><!--QuoteEEnd-->

Well you shouldn't hear anything yet, unless you have made some coding and sounds by yourself <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> I mean to say that I haven't published anything yet, all things that are discussed here reside only on my computer at the moment. Patience! <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->Just so you know... I have added the bosun's whistle to the game in 14.8 WIP2. At the moment I use it when the Captain arrives. I also have put the bells sound in, and am working on working it with the clock, to see if I can get it to be automatic.

If you could PM your Battle Sound I will see if I can put that in as well.

This is all good stuff. Keep it coming. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" /> <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" /> <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
If I have done the upload correctly... <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> Here are two samples of combined music and sounds for the initial contact in a battle.
It is supposed to represent the crew running to quarters (stations) to prepare for the fight, with orders being shouted out.
Is this what you had in mind? or is it too noisy?

I know the Bosun's call is not the correct one!

[attachment=1930:SampleBattleSound3.wav]

[attachment=1929:SampleBattleSound.wav]
 
its not noisy at all....actually, i didnt manage to hear many shoutings...maybe its because the music is so cool you dont pay attention to the other sounds <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
Just to let you all know...

I have just tested Elsilhe's Bells Mod (for ship's time when sailing) in 14.8 WIP 2 - It WORKS
Elsilhe did the mod in 13 Full... sooooo..... that means it should work in any version in between.

Nice Job Elsilhe! <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" /> <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" /> <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
A great idea, and it works! It doesn't get better than that! <img src="style_emoticons/<#EMO_DIR#>/wavarr.gif" style="vertical-align:middle" emoid=":warr" border="0" alt="wavarr.gif" />

Drinks all around! <img src="style_emoticons/<#EMO_DIR#>/nerbz.gif" style="vertical-align:middle" emoid=":nerbz" border="0" alt="nerbz.gif" /> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> <img src="style_emoticons/<#EMO_DIR#>/cheers.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="cheers.gif" /> <img src="style_emoticons/<#EMO_DIR#>/beer2.gif" style="vertical-align:middle" emoid=":beer" border="0" alt="beer2.gif" />
 
This sounds great! So how do I get it included in the next Build 14 Alpha? <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />

Anyway: It's great to have some sound work being done. Would add some life to the game, especially for those people using the DirectSail mod. Some sounds every now and then might add some life to an otherwise boring stretch of sailing.
 
<!--quoteo(post=268643:date=Jul 13 2008, 04:40 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Jul 13 2008, 04:40 AM) <a href="index.php?act=findpost&pid=268643"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->This sounds great! So how do I get it included in the next Build 14 Alpha? <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->I have already put it in the 14.8 WIP2 game mods that I put on the ftp site.
 
Ah! Thank you very much! Didn't know you had uploaded that yet. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
I now added the bell sound code to the new display time code and at least it doesn't crash the game, but I haven't checked if it works yet either. I can imagine it now only works if you have a clock equipped. Would that be a problem?
 
well, it will make the people buy a clock <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
Right now I'm hearing the sound all the time. Probably I made a mistake somewhere. I'll need to have a look at this again tomorrow.
 
<!--quoteo(post=269019:date=Jul 13 2008, 05:35 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Jul 13 2008, 05:35 PM) <a href="index.php?act=findpost&pid=269019"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Right now I'm hearing the sound all the time. Probably I made a mistake somewhere. I'll need to have a look at this again tomorrow.<!--QuoteEnd--></div><!--QuoteEEnd-->Elsilhe's code and instructions are on the ftp site.
 
Ok; thanks. I'll have a look at it. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
I rewrote the code as such:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->        //HKE -->
        bPlayBell = false; // PB
        // 00:30 - 04:30 - 08:30
        if (CurrentTime >= 0.5 && CurrentTime  <= 1.0) bPlayBell = true;
        if (CurrentTime >= 4.5 && CurrentTime  <= 5.0) bPlayBell = true;
        if (CurrentTime >= 8.5 && CurrentTime  <= 9.0) bPlayBell = true;
        if (CurrentTime >= 12.5 && CurrentTime <= 13.0) bPlayBell = true;
        if (CurrentTime >= 16.5 && CurrentTime <= 17.0) bPlayBell = true;
        if (CurrentTime >= 20.5 && CurrentTime <= 21.0) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHalfHourBellPlayed)
        {
            bHalfHourBellPlayed = true;
            bHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell1_0030_0430_0830.wav");
        }
        // 01:00 - 05:00 - 09:00
        if (CurrentTime >= 1.0 && CurrentTime  <= 1.5) bPlayBell = true;
        if (CurrentTime >= 5.0 && CurrentTime  <= 5.5) bPlayBell = true;
        if (CurrentTime >= 9.0 && CurrentTime  <= 9.5) bPlayBell = true;
        if (CurrentTime >= 13.0 && CurrentTime <= 13.5) bPlayBell = true;
        if (CurrentTime >= 17.0 && CurrentTime <= 17.5) bPlayBell = true;
        if (CurrentTime >= 21.0 && CurrentTime <= 21.5) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHourBellPlayed)
        {
            bHourBellPlayed = true;
            bHalfHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell2_0100_0500_0900.wav");
        }                
        // 01:30 - 05:30 - 09:30
        if (CurrentTime >= 1.5 && CurrentTime  <= 2.0) bPlayBell = true;
        if (CurrentTime >= 5.5 && CurrentTime  <= 6.0) bPlayBell = true;
        if (CurrentTime >= 9.5 && CurrentTime  <= 10.0) bPlayBell = true;
        if (CurrentTime >= 13.5 && CurrentTime <= 14.0) bPlayBell = true;
        if (CurrentTime >= 17.5 && CurrentTime <= 18.0) bPlayBell = true;
        if (CurrentTime >= 21.5 && CurrentTime <= 22.0) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHalfHourBellPlayed)
        {
            bHalfHourBellPlayed = true;
            bHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell3_0130_0530_0930.wav");
        }
        // 02:00 - 06:00 - 10:00
        if (CurrentTime >= 2.0 && CurrentTime  <= 2.5) bPlayBell = true;
        if (CurrentTime >= 6.0 && CurrentTime  <= 6.5) bPlayBell = true;
        if (CurrentTime >= 10.0 && CurrentTime <= 10.5) bPlayBell = true;
        if (CurrentTime >= 14.0 && CurrentTime <= 14.5) bPlayBell = true;
        if (CurrentTime >= 18.0 && CurrentTime <= 18.5) bPlayBell = true;
        if (CurrentTime >= 22.0 && CurrentTime <= 22.5) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHourBellPlayed)
        {
            bHourBellPlayed = true;
            bHalfHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell4_0200_0600_1000.wav");
        }
        // 02:30 - 06:30 - 10:30
        if (CurrentTime >= 2.5 && CurrentTime  <= 3.0) bPlayBell = true;
        if (CurrentTime >= 6.5 && CurrentTime  <= 7.0) bPlayBell = true;
        if (CurrentTime >= 10.5 && CurrentTime <= 11.0) bPlayBell = true;
        if (CurrentTime >= 14.5 && CurrentTime <= 15.0) bPlayBell = true;
        if (CurrentTime >= 18.5 && CurrentTime <= 19.0) bPlayBell = true;
        if (CurrentTime >= 22.5 && CurrentTime <= 23.0) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHalfHourBellPlayed)
        {
            bHalfHourBellPlayed = true;
            bHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell5_0230_0630_1030.wav");
        }
        // 03:00 - 07:00 - 11:00
        if (CurrentTime >= 3.0 && CurrentTime  <= 3.5) bPlayBell = true;
        if (CurrentTime >= 7.0 && CurrentTime  <= 7.5) bPlayBell = true;
        if (CurrentTime >= 11.0 && CurrentTime <= 11.5) bPlayBell = true;
        if (CurrentTime >= 15.0 && CurrentTime <= 15.5) bPlayBell = true;
        if (CurrentTime >= 19.0 && CurrentTime <= 19.5) bPlayBell = true;
        if (CurrentTime >= 23.0 && CurrentTime <= 23.5) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHourBellPlayed)
        {
            bHourBellPlayed = true;
            bHalfHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell6_0300_0700_1100.wav");
        }
        // 03:30 - 07:30 - 11:30
        if (CurrentTime >= 3.5 && CurrentTime  <= 4.0) bPlayBell = true;
        if (CurrentTime >= 7.5 && CurrentTime  <= 8.0) bPlayBell = true;
        if (CurrentTime >= 11.5 && CurrentTime <= 12.0) bPlayBell = true;
        if (CurrentTime >= 15.5 && CurrentTime <= 16.0) bPlayBell = true;
        if (CurrentTime >= 19.5 && CurrentTime <= 20.0) bPlayBell = true;
        if (CurrentTime >= 23.5 && CurrentTime <= 24.0) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHalfHourBellPlayed)
        {
            bHalfHourBellPlayed = true;
            bHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell7_0330_0730_1130.wav");
        }
        // 04:00 - 08:00 - 12:00
        if (CurrentTime >= 4.0 && CurrentTime  <= 4.5) bPlayBell = true;
        if (CurrentTime >= 8.0 && CurrentTime  <= 8.5) bPlayBell = true;
        if (CurrentTime >= 12.0 && CurrentTime <= 12.5) bPlayBell = true;
        if (CurrentTime >= 16.0 && CurrentTime <= 16.5) bPlayBell = true;
        if (CurrentTime >= 20.0 && CurrentTime <= 20.5) bPlayBell = true;
        if (CurrentTime >= 0.0  && CurrentTime <= 0.5) bPlayBell = true;
        if (bSeaActive && bPlayBell && !bHourBellPlayed)
        {
            bHourBellPlayed = true;
            bHalfHourBellPlayed = false;
            bPlayBell = false; // PB
            PlaySound("AMBIENT\SEA\bell8_0400_0800_1200.wav");
        }
        //<-- HKE<!--c2--></div><!--ec2-->
Of course it STILL doesn't work right and I just don't understand why. The bell just keeps ringing and never stops. ARGH! <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
 
<!--quoteo(post=269087:date=Jul 14 2008, 10:15 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Jul 14 2008, 10:15 AM) <a href="index.php?act=findpost&pid=269087"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Of course it STILL doesn't work right and I just don't understand why. The bell just keeps ringing and never stops. ARGH! <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->All I can say is is works fine for me, in the original code. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
The only issues I have found is if I go to sea at (say) 11.28 when I first "board" I get the 11.00 bells. Then two minutes later I get the 11.30 bells.
Also if a loud theme music is playing, at the "bell due time" I can't hear the bell sounds.
(I have Jack Sparrow music loaded)
For me these are minor issues.
 
Indeed that's a minor issue. But I'm having serious ones here. I suppose I'll try again. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
The code actually looks pretty weird to me. I always thought you couldn't have ANDs (&&) and ORs (||) in one if-statement. <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
 
<!--quoteo(post=269093:date=Jul 14 2008, 10:53 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Jul 14 2008, 10:53 AM) <a href="index.php?act=findpost&pid=269093"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Indeed that's a minor issue. But I'm having serious ones here. I suppose I'll try again. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
The code actually looks pretty weird to me. I always thought you couldn't have ANDs (&&) and ORs (||) in one if-statement. <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->You can in C, but I know this is a variant, so can't be sure.
 
It's fixed now. I had put the } at the wrong place, so that the whole piece of code was not in the correct if-statement. STUPID! Also I think I added the other sounds that Elsilhe made into my Alpha 8 WIP game version now, though I haven't tested them yet.
 
<!--quoteo(post=269105:date=Jul 14 2008, 01:59 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Jul 14 2008, 01:59 PM) <a href="index.php?act=findpost&pid=269105"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->It's fixed now. I had put the } at the wrong place, so that the whole piece of code was not in the correct if-statement. STUPID! Also I think I added the other sounds that Elsilhe made into my Alpha 8 WIP game version now, though I haven't tested them yet.<!--QuoteEnd--></div><!--QuoteEEnd-->Great <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
I am having a problem with the prepare for battle program (Elsilhe wrote it for Build 13 so that may be the issue - on the other hand it could be me! <img src="style_emoticons/<#EMO_DIR#>/blush.gif" style="vertical-align:middle" emoid=":eek:ops" border="0" alt="blush.gif" />2 ).
I had a different way of doing it.. I had it in the music file. The disadvantage to that is that it replays half way through the battle. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
I think I added it in the same way Elsilhe did in my latest files. You'll encounter it when you have a look at it. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
Back
Top