1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Need Help Sound format and add locators

Discussion in 'Sea Dogs: City of Abandoned Ships' started by Myth, Sep 30, 2017.

  1. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    Good afternoon.

    Now I really need help with resources. Well, at least a clue.

    1) I need help with the convection of music and sounds in the format of the game. New melodies about 50 pieces, voice files for dialogs for 1000.

    New music in mp3, and sounds in ogg.

    The question is: do you need to change the format at all?

    In addition, I need help with the addition of locators in 5 locations. All locations are in the original game.

    Actually, I need:

    1) In St. John's, add a couple locators for a street trader.
    2) On all 3 decks of the game add as many locators as possible for the transitions between the locations. I mean locators near the doors.
    3) In one of the large cabins add two locators near the table. Here it is necessary that two characters can be put on chairs near the table.
    4) You need to rotate a specific locator in a particular tavern.

    Can anyone get to add locators? I will be very grateful. Through them, adding locators in Tool to me is hell.

    I forget how to rotate a character inside a locator.

    Thank you.
     
  2. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,628
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    @Jack Rackham and @Grey Roger can probably share some information on the above questions.
    They do stuff like that in PotC often enough.
     
  3. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    I remembered another thing: if I want to add characters that drag boxes and other things, do I just need to add a flag to the location code? Do not need to edit the resources?
     
  4. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    It is necessary to wait for the answer of the masters? Or is it better to write them in private messages? Will they see that you mentioned them?
     
  5. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,628
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    They will see; just be patient.

    Grey Roger is usually around only outside the weekend.
    And Jack Rackham shows up once every few days or so.
     
  6. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    I just did not know if they would see the mention. Now I know that yes. I still have a lot of script work.
     
    Pieter Boelen likes this.
  7. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Yes I'm here again. My father suddenly got very ill so I had to leave everything.

    Here's the tutorial about writing locators with the TOOL:
    Locators with the TOOL
    and yes it's for everyone.

    To rotate a locator:
    First you need the coordinates for the wanted position:

    1) PROGRAM\console.c
    line18: change the switch(0) to switch(2). save

    2) start game and go to the position. Turn yourself to the wanted direction too.
    press F12: write down these values x, y, z, xx, xz, zx, zz. Round off to 1 decimal

    place yourself in the wanted direction and check xx, xz, zx, and zz.
    (xx = zz xz = -zx yy =1)
     
  8. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    No PROGRAM\console.c
     
  9. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,628
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Ouch, I'm sorry to hear that. :(

    That's a mod-added feature for PotC. As far as I'm aware, nobody ever added it to any other games in the series.
    Should not be too difficult to do though, using PotC as a template.
     
  10. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    @Jack Rackham: sorry to hear about your father! I hope he pulls through.

    Also, thanks for the hint about the xx, xz, zx, zz etc. I haven't been able to quite figure them out myself, and when I've created a new locator, I just copied the values from another, already existing locator which faces the same way as the one I want to create.
     
  11. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    case 2:
    if (!bSeaActive) {
    float x,y,z,ay,xx,zz,xz,zx;
    GetCharacterPos(GetMainCharacter(), &x, &y, &z);
    GetCharacterAy(pchar, &ay);
    xx = -sin(ay - PId2);
    zz = xx;
    xz = -cos(ay - PId2);
    zx = -xz;
    Logit("Location id: "+pchar.location);
    Logit("Your Coords x: " + x+" y: "+y+" z: "+z );
    Logit("Viewangle ay: "+ay+"; xx= "+xx+" xz= "+xz+" zx= "+zx+" zz= "+zz);
    Logit("Curlocator: "+chrWaitReloadLocator);
    // trace("rld,loc," +xx+",0,"+xz+",0,1,0,"+zx+",0,"+zz+","+x+","+y+","+z+",1,0,0,0,0,0,0,0,0,");
    // trace("rld,aloc,"+xx+",0,"+xz+",0,1,0,"+zx+",0,"+zz+","+x+","+y+","+z+",1,0,0,0,0,0,0,0,0,");
    } else {
    Logit("Ship position: x="+pchar.ship.pos.x+", z="+pchar.ship.pos.z);
    }
    //Logit("Ship position: x="+worldMap.playerShipX+", z="+worldMap.playerShipZ);
    break;

    This?
     
  12. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    That looks like the right part. You'll need functions 'GetCharacterPos' and 'GetCharacterAy'. In PoTC, those are defined in "PROGRAM\Characters\characters.c". If they aren't defined somewhere in CoAS, you will need to add them somewhere. They look like this:
    Code:
    bool GetCharacterPos(ref character, ref float_x, ref float_y, ref float_z)
    {
       float cx, cy, cz;
       if(SendMessage(character, "leee", MSG_CHARACTER_GETPOS, &cx, &cy, &cz) == 0) return false;
       float_x = cx; float_y = cy; float_z = cz;
       return true;
    }
    
    bool GetCharacterAy(ref character, ref float_ay)
    {
       float ay = 0.0;
       if(SendMessage(character, "le", MSG_CHARACTER_GETAY, &ay) == 0) return false;
       float_ay = ay;
       return true;
    }
    You'll also need to define "PId2" somewhere. In PoTC it's in "PROGRAM\globals.c". It's pi/2, i.e. 1.5707963267948966192313216916398
     
    Last edited: Oct 2, 2017
  13. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    And who can help me with converting music and sounds? There are a lot of files, I wanted someone to convince the files. I've never done this before, and batch processing is needed.
     
  14. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,628
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    fre:ac - free audio converter
     
  15. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    Just convert to the right format? Any subtleties? Sly settings?
     
  16. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    I've never found the correct settings to convert a file to the .wav format needed for sound effects.

    Music is .ogg format and indeed, it can be as simple as converting .mp3 to .ogg. The last time I converted a music file, though, it turned out to be too quiet in the game. But I use Audacity, which can do other things to sound files, including boost the volume. And so the music ended up at the same sort of volume as other game music files.
     
  17. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
  18. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,628
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    @Jack Rackham should know.

    MP3Gain

    Depends on your settings.
     
  19. Myth

    Myth Master Mariner

    Joined:
    Mar 25, 2014
    Messages:
    203
    Gender:
    Male
    Cant make wav from ogg - no support for program?
     
  20. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,288
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Here are 2 settings that work for .wav sound effects:

    22050Hz 16bit Mono 352kb/s
    22050Hz 16bit Stereo 705kb/s

    among others.

    for music it's .OGG:

    44100Hz 16 bit Stereo and almost anything for kb/s
     

Share This Page