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

Manowar in shopw or encounter

Darkz00r

Landlubber
Hello. Can someone tell me what i need to do in order to encounter the MANOWAR or buy it from shipyards ? I know something about modify ship.init…

Vanilla game, not new horizons…
 
There's a line in each ship definition in "New Horizons":
Code:
refShip.CanBuy        = true;
That allows a ship to be sold in shipyards, subject to other factors - or blocks them from being sold if it is set to false. But there do not seem to be any 'refShip.CanBuy' lines in the vanilla version of "Ships_init.c".

However, there is this, in all of the ManoWar types:
Code:
refShip.CanEncounter    = false;
All ship types have 'refShip.CanEncounter' set to true at the top of the file. So any ship which has no 'refShip.CanEncounter' line can be encountered by default.

Therefore, to make the ManoWar types able to be found at sea, either delete that line from each of them, or change it to:
Code:
refShip.CanEncounter    = true;

And then make sure you are very good at boarding!
 
Since this is the stock game, I'm pretty sure you need to Start New Game for the changes to take effect.
 
Hello everyone, I'm brand new to this forum but I have searched for several solutions on here previously which have been very helpfull to me. Thanks to some changed in DIALOGS for shipyard NPCs I have been able to unlock Manowars to be purchasable, but to make things more interesting I did try to edit the prices of destroyer ship to 350k and Manowar to 750k(file ships.init.c), but for some reason this doesn't seem to do the trick. Would you have any suggestions to what should I do?

Also, another question that I have is this: Is it possible to make special ships like satanist frigate, black pearl, fearless etc purchasable aswell? and if so, what lines of code should I Add/replace for this to take place? If needed, i'm happy to provide ships.init.c and all dialogue files.

This postis related to stock POTC/Seadogs 2 game(I want toi try to understand stock game modding much better before I start to dabble with New Horizons :D )
 
Hello everyone, I'm brand new to this forum but I have searched for several solutions on here previously which have been very helpfull to me. Thanks to some changed in DIALOGS for shipyard NPCs I have been able to unlock Manowars to be purchasable, but to make things more interesting I did try to edit the prices of destroyer ship to 350k and Manowar to 750k(file ships.init.c), but for some reason this doesn't seem to do the trick. Would you have any suggestions to what should I do?
Have you tried starting a new game? Changes to "Ships_init.c" might not take effect until you do.

Also, another question that I have is this: Is it possible to make special ships like satanist frigate, black pearl, fearless etc purchasable aswell? and if so, what lines of code should I Add/replace for this to take place? If needed, i'm happy to provide ships.init.c and all dialogue files.
You should be able to find those ships in "Ships_init.c". After that, whatever you did to unlock the manowar, do the same to them. For the Satanist frigate, for example, look for "Frigate_sat".

And, again, you'll probably need to start a new game after doing whatever you want to "Ships_init.c".
 
Ok i will try that, but interesting fact is that after i changed the dialog file to make manowars purchasable i was able to load saved game and have access to them, i will try to load new game in next few minutes and will double check if this worked. Thanks very much =)

Another question that came to my mind, is there a way to bring the NPC to shipyard in quebradas costillas? or is this too much work to be done in terms of code, writing dialogs etc?




OOkay, so.... please see the code from oweyn McDorey dialog file:

iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship16 = SHIP_BATTLESHIP_ENGLAND;
if (iTest_ship == 2) npchar.shipyard.ship16 = SHIP_BATTLESHIP2_ENGLAND;

iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship17 = SHIP_MANOWAR_ENGLAND;
if (iTest_ship == 2) npchar.shipyard.ship17 = SHIP_MANOWAR2_ENGLAND;
if (iTest_ship == 3) npchar.shipyard.ship17 = SHIP_MANOWAR_GUB;

iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship18 = SHIP_BLACK_PEARL
if (iTest_ship == 2) npchar.shipyard.ship18 = SHIP_BLACK_PEARL

iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship19 = SHIP_FEARLESS
if (iTest_ship == 2) npchar.shipyard.ship19 = SHIP_FEARLESS
iTest_ship = rand(8);

if (iTest_ship == 1) npchar.shipyard.ship20 = SHIP_SHIP_FRIGATE_SAT
if (iTest_ship == 2) npchar.shipyard.ship20 = SHIP_SHIP_FRIGATE_SAT
iTest_ship = rand(8);

if (iTest_ship == 1) npchar.shipyard.ship21 = SHIP_PROPHECY
if (iTest_ship == 2) npchar.shipyard.ship21 = SHIP_PROPHECY
iTest_ship = rand(8);

if (iTest_ship == 1) npchar.shipyard.ship22 = SHIP_BARRAKUDA
if (iTest_ship == 2) npchar.shipyard.ship22 = SHIP_BARRAKUDA

npchar.quest.Meeting = lastspeak_date;



From what I have seen before this seemed to work right up to Manowar, since these I was able to purchase, but after I added lines for Black Pearl, fearless, satanist frigate prophecy and barrakuda file got corrupted and when i go to speak with Oweyn in oxbay shipyard the message says "I was unable to load the file(OweynMcDorey.dialog.c)" and it only allows me to exit the dialog. Please give me some suggestion of what I did wrong, because I'm not a coder in any means.
 
Last edited:
You have not put a semi-colon at the ends of your new lines. Spot the difference:
iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship17 = SHIP_MANOWAR_ENGLAND;
if (iTest_ship == 2) npchar.shipyard.ship17 = SHIP_MANOWAR2_ENGLAND;
if (iTest_ship == 3) npchar.shipyard.ship17 = SHIP_MANOWAR_GUB;

iTest_ship = rand(8);
if (iTest_ship == 1) npchar.shipyard.ship18 = SHIP_BLACK_PEARL
if (iTest_ship == 2) npchar.shipyard.ship18 = SHIP_BLACK_PEARL
 
Don't worry about it, I've done the same thing before. Any modder who claims never to have written code which failed due to missing brackets, missing semi-colons or simple typing errors is almost certainly lying. :D
 
Back
Top