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

Need Help Interface bugs after adding a ship

Hi everbody ! :ahoy
I'm new on this forum and this is my first thread ! I hope I created it in the right section.

Well, I currently play AoP 2 CoAS with GoF 2.0. I was playing with the 1.2 version but this one makes my game crash every 15 minutes.

I was looking for adding the Endeavour from the 1.2 to the 2.0. After adding models, textures and modifying files, my game runs perfectly, when I start a game, it doesn't crash and I can see clearly the ship when I'm in cities (I put it as the starting ship of Norrington).

The problem is that the camera and interface bug when I go on waters. I have some other bugs like the max crew being zero preventing me recruiting although in my ship_init.c file the max is 840.

I took some screenshots, they explains better than me those problems :D

Thank you in advance for your help !

Aop2Endeavour4.jpg
Aop2Endeavour2.jpg
Aop2Endeavour1.jpg
 

Attachments

  • Aop2Endeavour3.jpg
    Aop2Endeavour3.jpg
    45.1 KB · Views: 90
Thread moved to the proper forum.

I have no idea how to add a ship to COAS, but hopefully someone who does will wander by.
 
Hi Larry,
One question?
You edited file:
ships_H?
(Program/Ships/ships_H)
Yep, I put #define SHIP_Endeavour 86 in it. I based my modifications on the "POTC ships to AOP" COAS" thread. I didn't change any .gm and I didn't change any deck texture. Currently I tried to replace the Battle Manowar by the Endeavour and it work well :dance
But the best would be adding the Endeavour without any sacrifice !
 
Check the detailed list of their vessels in the file:
ships_H.
Most likely you forgot to add your desired ship !!!
 
Check the detailed list of their vessels in the file:
ships_H.
Most likely you forgot to add your desired ship !!!

Or add two times in differents class ( I did do that for a test, forgot to delete a line :oops: .)

So I just right now added a new ship from an another game :

Code:
In ships.h :
#define SHIP_ARABELLA       85
#define SHIP_FLYINGDUTCHMAN     86
#define SHIP_SANTISIMA  87 //<== new ship

Then :

#define SHIP_TYPES_QUANTITY           89 // 88 + your new ship
#define SHIP_TYPES_QUANTITY_WITH_FORT     90   // must be (SHIP_TYPES_QUANTITY + 1)

In battleInterface.c :

case "BattleManowar": // <== I took this ship values, I think Endeavour is also a manowar
     BI_intNRetValue[0] = 6+2*8;
     BI_intNRetValue[1] = 6+2*8 + 1;
     BI_intNRetValue[2] = BI_ICONS_TEXTURE_SHIP1;
     break;

  case "Santisima": // <== new ship
     BI_intNRetValue[0] = 6+2*8;
     BI_intNRetValue[1] = 6+2*8 + 1;
     BI_intNRetValue[2] = BI_ICONS_TEXTURE_SHIP1;
     break; 

In Ships_init.c :

  ///////////////////////////////////////////////////////////////////////////
   // Battle Manowar santisima
   ///////////////////////////////////////////////////////////////////////////
   makeref(refShip,ShipsTypes[SHIP_SANTISIMA]); // new ship
   refShip.Name         = "santisima";
   refship.Soundtype       = "manowar";

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

// fantasy ships

   ///////////////////////////////////////////////////////////////////////////
   /// BlackPearl
   ///////////////////////////////////////////////////////////////////////////
   makeref(refShip,ShipsTypes[SHIP_BLACKPEARL]);
   refShip.Name         = "BlackPearl";
   refship.Soundtype       = "frigate";
 
Back
Top