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

Amount of cannons

mcbierle

Landlubber
hi guys,

i tried to change the amount of cannons, but it diddn't work.
I changed the following numbers in the ships_init.c

refShip.CannonsQuantity
refShip.rcannons

They show correctly in f2 and the shipyard, but i only fire the original amount...

any ideas?

thy mcbierle
 
<!--quoteo(post=166805:date=Oct 10 2006, 02:12 PM:name=McBierle)--><div class='quotetop'>QUOTE(McBierle @ Oct 10 2006, 02:12 PM) [snapback]166805[/snapback]</div><div class='quotemain'><!--quotec-->
hi guys,

i tried to change the amount of cannons, but it diddn't work.
I changed the following numbers in the ships_init.c

refShip.CannonsQuantity
refShip.rcannons

They show correctly in f2 and the shipyard, but i only fire the original amount...

any ideas?

thy mcbierle
<!--QuoteEnd--></div><!--QuoteEEnd-->

Are you sure it didn't work?
I also changed the cannons. You have to edit the quantity and the amount of cannoneers (2 per cannon). The specs show correct for me but then I didn't count if the amount of shots increased. It could be because I also increased cannon size to 48 and so I do much more damage. Are you trying with a smaller ship?

Let me know.

Also don't forget you have to start a new profile & game to get init files to work right.
 
the only problem ive ran into modifying the amount of cannons i had was when i would go to repair my ship it wouldnt repair the added cannons so my bar would still have like 3 or for little squares that stayed red an wouldnt repair all the way like stay at 94% repaired
 
For set you cannon quantity you must shape also the capacity for examlpe.

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->refShip.Capacity = 1000000;<!--QuoteEnd--></div><!--QuoteEEnd-->

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->refShip.CannonsQuantity = 1000;
refShip.rcannon = 400;
refShip.lcannon = 400;
refShip.fcannon = 150;
refShip.bcannon = 50;<!--QuoteEnd--></div><!--QuoteEEnd-->

and crew

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->refShip.MaxCrew = 3000;
refShip.MinCrew = 500;
refShip.BoardingCrew = 500;
refShip.GunnerCrew = 500;
refShip.CannonerCrew = 1000;
refShip.SailorCrew = 500;<!--QuoteEnd--></div><!--QuoteEEnd-->

this is a seting exaggerated only for example

For your cannon go in cannon and open Cannons_init.c

take the type that it appeals to to you and you replace it here sempre in ship_init.c

Example:

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->refShip.Cannon = CANNON_TYPE_MORTAR;
refShip.MaxCaliber = 92;<!--QuoteEnd--></div><!--QuoteEEnd-->


Careful if it modifies one existing shipalso the IA will have that ship, therefore better make new ship and add this string

<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->refShip.CanEncounter = false;<!--QuoteEnd--></div><!--QuoteEEnd-->
 
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> All

Another thing someone might to test is increasing the number of cannon but leave the caliber the same.

Then test it to see how much damage is done to enemy ships.


I used this to learn in POTC that it wasn't enough to change values in ships_init.c.

In POTC, the game also uses cannon "locators" in the ship.gm models.
 
Well yep, you have to edit the .gm files.
Tried it and it worked, my lugger now fires 3 rounds backwards. One is mysteriously appearing between the two aftguns <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
<!--quoteo(post=167584:date=Oct 14 2006, 09:18 PM:name=McBierle)--><div class='quotetop'>QUOTE(McBierle @ Oct 14 2006, 09:18 PM) [snapback]167584[/snapback]</div><div class='quotemain'><!--quotec-->
Well yep, you have to edit the .gm files.
Tried it and it worked, my lugger now fires 3 rounds backwards. One is mysteriously appearing between the two aftguns <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->

What program did you use to edit the gm files? gmview?
 
I don't know about others, but I used GMView/TOOL combo - TOOL allowed me to edit position of the locators, while GMView allowed me to see those positions <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Kinda unwieldy, but it worked <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<!--quoteo(post=168090:date=Oct 18 2006, 05:32 PM:name=Kazeite)--><div class='quotetop'>QUOTE(Kazeite @ Oct 18 2006, 05:32 PM) [snapback]168090[/snapback]</div><div class='quotemain'><!--quotec-->
I don't know about others, but I used GMView/TOOL combo - TOOL allowed me to edit position of the locators, while GMView allowed me to see those positions <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

Kinda unwieldy, but it worked <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->

Same here. <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
Although I've only worked on POTC ships.
 
hello guys anyone here???? what files do i need to edit so that i can get new ship(based on old one) and new cannons(based on old one) so that i can see them in shipyard(with upgrades)/encounter and have no errors that would kick me to desctop...???
 
you need a new model (even if its the same, you need a new model folder) and then add a copy of the ship to the ships_init.c .. but you won't be able to change the amount of cannons without adding more locators
 
Here I meant cannons as f.e. culverine 32,36,42,48 how to add them so that you can buy them in shipyard upgrade for any of ship type that can equip them... Thx for the answer btw. And I added 3 ships with help of some guide, but in sea battle and in port they all have greyed hull how to fix it??? But everything else normal. npc uses them as if they meant to be...

But how hard now for player to be a pirate from the beginning where you encounter your custom ships almost every battle. And bcz they are more agile it is SOOO hard to even get them to board. And they are now almost immortal, but this is what I was hoping for.... You can now 1ship battle forts, but cannons are almost wiped out after each battle....
 
but in sea battle and in port they all have greyed hull how to fix it???
I may not know exactly how to fix it, but I am pretty sure what has caused it is that the texture is missing.
Storm engine just grays things out if there are no textures.
I could be wrong, as I've only seen that in Sea Dogs: To Each His Own, but I am pretty certain that the same applies to Caribbean Tales.
 
I may not know exactly how to fix it, but I am pretty sure what has caused it is that the texture is missing.
Storm engine just grays things out if there are no textures.
I could be wrong, as I've only seen that in Sea Dogs: To Each His Own, but I am pretty certain that the same applies to Caribbean Tales.
Oh found my error... I renamed files bortoutfrigate1.tga.tx in Resource/Textures/Ships/Frigate1(mynewshipname)/Hull1 - 3/* to bortoutnewshipname.tga.tx but this caused ships to be draw in grey. After I replaced with old bortoutfrigate1.tga.tx everything turned normal... great thanx for your timely answers... going to test my game for errors for next two weeks... but still cannons are needed... I've changed everything in Cannons folder but cannot get them to work so that I can install them in shipyard... needed great help here.... As i remember if directly put those cannons in ship like make them by default they work, but connot be upgraded like copper , iron, bronze if you try to upgrade them either game crashes or your interface crashes...
 
Back
Top