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

Solved Different colored sails for each nation

I tried the changes in your last post and it seems to work.

That's a pleasure to read that.

I have not seen a dialog to change my sails yet...

Well, in common_shipyard.c you should've thes lines :
Code:
dialog.Text = pcharrepphrase(DLG_TEXT_BASE[24],
                                        TimeGreeting() + DLG_TEXT_BASE[25] + GetAddress_Form(NPChar) + "?");
                Link.l1 = pcharrepphrase(DLG_TEXT_BASE[26],
                                        DLG_TEXT_BASE[27]);
                Link.l1.go = "Shipyard";
                link.l11 = DLG_TEXT_BASE[28];
                link.l11.go = "Cannons";
                            link.l111 = DLG_TEXT_BASE[131]; 
                    link.l111.go = "Couleurdesvoiles";
                Link.l2 = DLG_TEXT_BASE[29];
                Link.l2.go = "quests"; //(ïåðåññûëêà â ôàéë ãîðîäà)

............................................................................

case "Meeting":
                dialog.Text = DLG_TEXT_BASE[37];
                Link.l1 = DLG_TEXT_BASE[38] + GetFullName(NPChar) + DLG_TEXT_BASE[39];
                Link.l1.go = "Shipyard";
                link.l11 = DLG_TEXT_BASE[40];
                link.l11.go = "Cannons";
                                link.l111 = DLG_TEXT_BASE[131]; 
                    link.l111.go = "Couleurdesvoiles";
                                Link.l2 = DLG_TEXT_BASE[41];
                Link.l2.go = "quests";

...........................................................................

case "Couleurdesvoiles":
            {
                         ref _chr;
                         if (sti(pchar.money) > 3000)
                                    {
                NextDiag.CurrentNode = NextDiag.TempNode;
                DialogExit();
                    LaunchwndChangeSails(_chr);
                         }
                                   else
                                    {
                                   dialog.text = DLG_TEXT_BASE[132];
                                Link.l1.go = "exit";
                                    }
            }
                 break;

And in common_shipyard.h :

string DLG_TEXT_BASE [133]
............................................................

"Yes, all right. Thanks in the plenty. ",
"I'd like to change the color of my sails.",
"No enough money !!!",

That French blue is too blue IMHO.

That's why i gave this link :

http://www.code-couleur.com/

For exemple, to get the green you see you change argb in battle_interface.c for the nation you want :

argb(5, 64, 164, 151);<== already for spain. (5 is alpha value, emblems seems to be seen a little more better).
 
Hi,

I modified Battle_interface.c to get different sails and it's works. But the problem is I can't anymore change
the color of my own ship at shipyart, and when I buy a ship the sails are the same color the nation I am.

Code:
switch(sti(Characters[chrIdx].nation))  // Íå ðàáîòàåò ýòî :(
     {
  trace("voiles couleur")
       case ENGLAND:  
          BI_objRetValue.sailscolor = argb(255, 255, 255, 153);//Yellow
       break;
       case FRANCE:  
        BI_objRetValue.sailscolor = argb(255, 0, 0, 255);
       break;
       case SPAIN:    
         BI_objRetValue.sailscolor = argb(255, 3, 91, 80);
       break;
       case PIRATE:
         BI_objRetValue.sailscolor = argb(255, 60, 60, 60)//Black
       break;
       case HOLLAND:  
         BI_objRetValue.sailscolor = argb(255, 128, 128, 128);//Gray
       break;
       case MORVIS:  
         BI_objRetValue.sailscolor = argb(255, 255, 15, 15);//Red
       break;
  case PORTU:    
         BI_objRetValue.sailscolor = argb(255, 153, 255, 153);//Green
       break;
     }

It seems that the "BI_objRetValue" can't be removed. Has somebody an idea to change that?
Wait, so there is Portugal Nation Ships in the game?(not colony I meant Portugal privateers, pirates and traders) and how to meet up with them. Also the morvis(skeletons) are always in caves or in flying Dutchman so how to meet up with them at sea(random skeleton ships)?
 
Wait, so there is Portugal Nation Ships in the game?(not colony I meant Portugal privateers, pirates and traders) and how to meet up with them. Also the morvis(skeletons) are always in caves or in flying Dutchman so how to meet up with them at sea(random skeleton ships)?
As far as I'm aware, PotC is the only game that has Portugal as a fully realised nation.
 
As far as I'm aware, PotC is the only game that has Portugal as a fully realised nation.

Hi, back after some treatment I can answer you : I didn't create a Portuguese colony cause they were lower in América cost.

Wait, so there is Portugal Nation Ships in the game?(not colony I meant Portugal privateers, pirates and traders) and how to meet up with them. Also the morvis(skeletons) are always in caves or in flying Dutchman so how to meet up with them at sea(random skeleton ships)?

Well, you've first to create these nations (Morvis have Caiman as island) and then you add them in "Encounters" folder to see them at sea. It's a long and hard job and

if some of you are interested I can try to add it in G.O.F. mod.
 
Back
Top