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

small question

morgan terror

Magnificent bastard
Storm Modder
Public Relations
what's spokplavanie and what's enplavanie? i can't seem to be able to play a certain song, and i think i've just put it in the wrong place.
 
They're two music tracks in PotC. That's all I know. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
Some music files are never used in the game by default. Perhaps these tracks are some of the unused ones.
 
<!--quoteo(post=178613:date=Jan 9 2007, 03:45 PM:name=morgan terror)--><div class='quotetop'>QUOTE(morgan terror @ Jan 9 2007, 03:45 PM) [snapback]178613[/snapback]</div><div class='quotemain'><!--quotec-->
what's spokplavanie and what's enplavanie? i can't seem to be able to play a certain song, and i think i've just put it in the wrong place.
<!--QuoteEnd--></div><!--QuoteEEnd-->

I just listened to them in WinAmp.

Spokplavanie is what is played at sea when all is calm gentile sailing

Enplavanie is faster but is the music you get while walking around the town or jungle when there is no fighting or danger.

edit.
Just loooked at music_alias.ini
For peaceful walking on land you have:
[music_gorod]
name = MUSIC\Gorod-1.ogg
name = MUSIC\Jungle.ogg
name = MUSIC\Enplavanie.ogg
 
you don't have anything like gorod in the PotC music pack. i think that maximus would be able to help the best with this.
 
As far than I know, musics are coded in the sound.c file and defined in the music_alias.ini file. In the sound.c file for exemple differents type of music are assign to each locations, depending on the location type, the weather, etc. For exemple, here is the location type :

<i>if(CheckAttribute(loc,"type"))
{
ResetSoundScheme();
switch (loc.type)</i>

Then if the location type (defined in the files in PROGRAM\Locations\init) is 'town' for exemple :

<i>case "town":
SetSoundScheme("town");
SetTimeScheme("land");
SetWeatherScheme("land");
SetMusicAlarm("music_gorod");
break;</i>

The music part is "SetMusicAlarm("music_gorod");". Now if you open as Petros perfectly told you the music_alias.ini in \RESOURCE\INI\ALIASES, you would see this :
<i>[music_gorod]
name = MUSIC\Gorod-1.ogg
name = MUSIC\Jungle.ogg
name = MUSIC\Enplavanie.ogg</i>

and if you have the POC music, this :
<i>[music_gorod]
name = MUSIC\POC_Gorod-1.ogg
name = MUSIC\POC_Jungle.ogg
name = MUSIC\POC_Enplavanie.ogg</i>

So here is Enplavanie. I've been working a little for myself on the music, 'cause I wanted to have different musics for some place. For exemple, I wanted to have gorod-2.ogg used in Spanish and Portuguese towns, and I've rewrited a little the sound.c :
<i>case "town":
SetSoundScheme("town");
SetTimeScheme("land");
SetWeatherScheme("land");
if(CheckAttribute(loc,"townsack"))
{location_or_nation=GettownNation(loc.townsack);}
else{location_or_nation=GetLocationNation(loc);}
switch(location_or_nation)
{
case 0 : SetMusicAlarm("music_gorod"); break;
case 1 : SetMusicAlarm("music_gorod"); break;
case 2 : SetMusicAlarm("music_gorod_2"); break;
case 3 : SetMusicAlarm("music_gorod"); break;
case 4 : SetMusicAlarm("music_gorod"); break;
case 5 : SetMusicAlarm("music_gorod_2"); break;
}
break;</i>

Then I've added this to the music_alias.ini file :
<i>[music_gorod_2]
name = MUSIC\Gorod-2.ogg</i>

For now, it seems to work well. By the way, I think 'gorod' means 'town' in Russian. Novgorod, for exemple.




<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->
i can't seem to be able to play a certain song, and i think i've just put it in the wrong place.
<!--QuoteEnd--></div><!--QuoteEEnd-->

Could you be more precised please?
 
<!--quoteo(post=178830:date=Jan 12 2007, 12:05 PM:name=a simple virtual sailor)--><div class='quotetop'>QUOTE(a simple virtual sailor @ Jan 12 2007, 12:05 PM) [snapback]178830[/snapback]</div><div class='quotemain'><!--quotec-->
... I've been working a little for myself on the music, 'cause I wanted to have different musics for some place. ...<!--QuoteEnd--></div><!--QuoteEEnd-->

<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> a simple virtual sailor

Neat, now we can have different music for each nation! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
eh, no. it simply doesn't play in the location it should play. at sea. in fact, it doesn't play anywhere at all. i do know that the string of code and the name of the file are exactly right.
 
<!--quoteo(post=178831:date=Jan 12 2007, 01:36 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Jan 12 2007, 01:36 PM) [snapback]178831[/snapback]</div><div class='quotemain'><!--quotec-->
Neat, now we can have different music for each nation! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->

Nice to see that you like the idea! So far it works correctly on my game. I've find this piece of code when looking into the PROGRAM/CCCFunctions.c I think. In this file the locations were given a nationality depending on the fortcommander or something like this. Which means this method should not be used on stock PotC - but you can use a different way : in the location file you define a the location type as 'town_iberic' for exemple, in the sound.c you clon the case 'town' and rename it 'town_iberic', and change the 'SetMusicAlarm("music_gorod");' and the music_alias.ini as told before. In stock PotC I believe the location type was only used by sound.c, whereas in build 13 it's necessary for randoms patrol, enconters, etc.

I've made so other nation checks to add a special music for the french townhall, and in the tavern to have the pirates songs only if you are yourself a pirate and if you are in a pirate town.
I had done some similar changes before, to the street merchants. I wanted that they address you differently depending on the town nation - not when you launch the dialog, just when you walk near them. In the PROGRAM\Loc_ai\types\LAi_merchant.c, I had changed this line<i>LAi_CharacterPlaySound(chr, "merchant");</i>
by this :
<i>switch(chr.sex)
{
case "man":
switch(makeint(chr.nation))
{
case 0 : LAi_CharacterPlaySound(chr, "merchant_eng");break;
case 1 : LAi_CharacterPlaySound(chr, "merchant_fra");break;
case 2 : LAi_CharacterPlaySound(chr, "merchant_spa");break;
case 3 : LAi_CharacterPlaySound(chr, "merchant");break;
case 4 : LAi_CharacterPlaySound(chr, "merchant_holl");break;
case 5 : LAi_CharacterPlaySound(chr, "merchant_por");break;
};
break;
case "woman":
break; </i>

and I had changed the RESOURCE\INI\ALIASES\sound_alias.ini to add the different options : don't know as they sound in English though...
<i>[merchant_fra]
minDistance = 5.0
maxDistance = 40.0
name = VOICE\ENGLISH\Fre_m_c_020.wav
name = VOICE\ENGLISH\Fre_m_a_021.wav
name = VOICE\ENGLISH\Fre_m_a_020.wav

[merchant_spa]
minDistance = 5.0
maxDistance = 40.0
name = VOICE\ENGLISH\Spa_m_a_066.wav
name = VOICE\ENGLISH\Spa_m_b_066.wav
name = VOICE\ENGLISH\Spa_m_b_063.wav

[merchant_holl]
minDistance = 5.0
maxDistance = 40.0
name = VOICE\ENGLISH\Dut_m_a_068.wav
name = VOICE\ENGLISH\Dut_m_a_026.wav
name = VOICE\ENGLISH\Dut_m_a_021.wav
name = VOICE\ENGLISH\Dut_m_a_004.wav
name = VOICE\ENGLISH\Dut_m_a_013.wav

[merchant_por]
minDistance = 5.0
maxDistance = 40.0
name = VOICE\ENGLISH\Por_m_a_018.wav
name = VOICE\ENGLISH\Por_m_a_020.wav
name = VOICE\ENGLISH\Por_m_a_062.wav
name = VOICE\ENGLISH\Por_m_b_018.wav
name = VOICE\ENGLISH\Por_m_b_020.wav
name = VOICE\ENGLISH\Por_m_b_062.wav

[merchant_eng]
minDistance = 5.0
maxDistance = 40.0
name = VOICE\ENGLISH\Eng_m_a_080.wav
name = VOICE\ENGLISH\Eng_m_a_027.wav
name = VOICE\ENGLISH\Eng_m_a_019.wav
name = VOICE\ENGLISH\Eng_m_a_018.wav
name = VOICE\ENGLISH\Eng_m_b_080.wav
name = VOICE\ENGLISH\Eng_m_b_027.wav
name = VOICE\ENGLISH\Eng_m_b_026.wav
name = VOICE\ENGLISH\Eng_m_b_020.wav
name = VOICE\ENGLISH\Eng_m_b_019.wav
name = VOICE\ENGLISH\Eng_m_b_018.wav
name = VOICE\ENGLISH\Eng_m_c_080.wav
name = VOICE\ENGLISH\Eng_m_c_027.wav
name = VOICE\ENGLISH\Eng_m_c_026.wav
name = VOICE\ENGLISH\Eng_m_c_023.wav
name = VOICE\ENGLISH\Eng_m_c_019.wav
name = VOICE\ENGLISH\Eng_m_c_018.wav</i>



<!--quoteo(post=178834:date=Jan 12 2007, 01:53 PM:name=morgan terror)--><div class='quotetop'>QUOTE(morgan terror @ Jan 12 2007, 01:53 PM) [snapback]178834[/snapback]</div><div class='quotemain'><!--quotec-->
eh, no. it simply doesn't play in the location it should play. at sea. in fact, it doesn't play anywhere at all. i do know that the string of code and the name of the file are exactly right.
<!--QuoteEnd--></div><!--QuoteEEnd-->

So, you've added a new .ogg music file in RESOURCE\Sounds\MUSIC, then opened the \RESOURCE\INI\ALIASES\music_alias.ini, went in [music_spokplavanie], and added this line 'name = MUSIC\(whatever your music is called).ogg' ? Then it should work, I can't tell you more... Just make shure their aren't other music_alias.ini files in the same folder, even called differently, it seems like the game keep launching them. And talking of the [music_enplavanie], I'm quite shure it's never used by the game.
 
Hm, are you sure? I've change music by myself a little and I think [music_enplavanie] is used in the tavern sleeping room after you get a rest. But I'm not sure about this cause I never stay very long in this room. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />

Btw I like your changes on the sound.c to have different music for different nations in towns. I have some really good music tracks from the "The Mask of Zorro" Soundtrack which I like to hear in spanish towns.


[edit] You're right. [music_enplavanie] isn't used in the game. I've tested it. Only [music_spokplavanie] is used during sailing and in the cargo hold.[/edit]
 
This is great! We should try to make a new music pack that combines music from all sorts of films and other sources so that we can use these in different locations. So we can use The Mask of Zorro in Spanish towns and music from other films in other towns. And perhaps some other added music tracks as well. New music for the battle scenes, perhaps? <b>The Battle</b> from Cutthroat Island comes to mind. <img src="style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" />

To a simple virtual sailor: Could you please release your changed code files for the music? I'd like to add it into the Build. Would be great to have the music depending on more than just the location type. And your street merchants idea is excellent as well! <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
maybe the problem is simply another music_aliases file. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> or maybe there are simply to many music files in my music folder for the program to load. i'll try redirecting a few more music files into a secondary music folder and remove any excess music_aliases files.

pieter: adding battle music is actually really easy. it's just a point of adding the muisc file into the muisc folder and adding the line of code, both by the method that a simple virtual sailor mentioned.

my problem with the new music for the different locations is that i will probably have to program all my changes in again.
 
<!--quoteo(post=178890:date=Jan 13 2007, 02:01 PM:name=morgan terror)--><div class='quotetop'>QUOTE(morgan terror @ Jan 13 2007, 02:01 PM) [snapback]178890[/snapback]</div><div class='quotemain'><!--quotec-->
maybe the problem is simply another music_aliases file. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> or maybe there are simply to many music files pieter: adding battle music is actually really easy. it's just a point of adding the muisc file into the muisc folder and adding the line of code, both by the method that a simple virtual sailor mentioned.
<!--QuoteEnd--></div><!--QuoteEEnd-->
I know that. I meant that we should make a new music pack with all sorts of new music tracks for different occasions, including new battle music. I know it's not that hard to do. <img src="style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />
 
@morgan terror
Yes, [music_spokplavanie] is played during sailing (not world map) and in the cargo hold of your ship.


@Thomas the Terror
Hehe, two minds, one thought. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
I've put them a few days before into my AoP game.
But there are only two tracks from the soundtrack which fit with spanish towns.
First "Plaza of Execution" only the first 3 or 4 Minutes so maybe it had to be cut. The whole song is 8:52 Minutes long but the last minutes where not really spanish. But the first 4 Minutes are pretty cool.

And second "The fencing lesson" which fit very well, I think.

If you wanted to have the two tracks I can put them on PotC FTP in my folder (Jack Black). If you want the whole soundtrack, please write a PM. I don't want to put the whole soundtrack on the FTP cause it is about 70 MB big (in mp3 format).
 
<!--quoteo(post=178895:date=Jan 13 2007, 08:09 AM:name=morgan terror)--><div class='quotetop'>QUOTE(morgan terror @ Jan 13 2007, 08:09 AM) [snapback]178895[/snapback]</div><div class='quotemain'><!--quotec-->
back to my question: is spokplavanie for the sea or what?
<!--QuoteEnd--></div><!--QuoteEEnd-->

looking at this:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
[music_spokplavanie]
name = MUSIC\Spokplavanie.ogg
name = MUSIC\Sailing01.ogg<!--c2--></div><!--ec2-->

and seeing that both Spokplavanie and Sailing01 tracts are played at sea, I'd say .....
.... <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />

About ENPLAVANIE

The confusion is between enplavanie the music scheme, and enplavanie.ogg the music file.

Enplavanie the music file is played in game as part of "[music_gorod]" music scheme.
Enplavanie the music scheme AKA
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[music_enplavanie]
name = MUSIC\Enplavanie.ogg
name = MUSIC\Sailing02.ogg<!--c2--></div><!--ec2-->
is not used.

BTW, notice that parts of Sailing02 were used in the Intro video.
 
Gentlemen.

I think I speak for many when I ask you to please, make all this wonderful stuff going on in this thread, into a full blown mod available to the build.

Excellent work Gentlemen!!!

I really hope you succeed!!!

All the best
Frans
 
Back
Top