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

Hendrick Vanderdecken

Countrylivin

Landlubber
In B14, he had the Black Pearl, Flying Dutchman, as well as many many other ships for sale, when I visit him now in freeplay in BNH all I see for sale there are steam frigates.
Is this something that requires an unlock? Something to change in ships ini? Thanks for the help :D
 
In "PROGRAM\Ships\ships.c", function "FillShipsList", ships suitable for Vanderdecken are checked thus:
Code:
            bool VanderdeckenShip = false;
            if(sti(rShip.CanBuy) == true && sti(rShip.CanEncounter) == false)    VanderdeckenShip = true;
            if(HasSubStr(rShip.id, "Steam"))                                    VanderdeckenShip = true;
            if(HasSubStr(rShip.id, "obj_"))                                        VanderdeckenShip = false;
In B14:
Code:
            bool VanderdeckenShip = false;
            if(sti(rShip.CanBuy) == false && sti(rShip.CanEncounter) == false)    VanderdeckenShip = true;
            if(HasSubStr(rShip.id, "Steam"))                                    VanderdeckenShip = true;
            if(HasSubStr(rShip.id, "obj_"))                                        VanderdeckenShip = false;
Special ships such as "BlackPearl" have 'rShip.CanBuy' set to false so that you can never see them for sale in regular shipyards. BNH is checking for 'rShip.CanBuy' being true, so it won't pick up those ships. Change that line to match the B14 version and then see what Vanderdecken has for sale.
 
That was it! Just needed that one line: if(sti(rShip.CanBuy) == true && sti(rShip.CanEncounter) == false) to be changed to: if(sti(rShip.CanBuy) == false && sti(rShip.CanEncounter) == false)

Does require a new game which is fine. Thank you!!
 
Does require a new game which is fine.
I wouldn't have thought so. It's the function which has changed, not the ship definition. It should take effect the next time Vanderdecken updates his list of ships, which won't be at once. So you'll need to sail away, do something else for a while, then return to Isla de Muerte at a later date and see Vanderdecken again.
 
I wouldn't have thought so. It's the function which has changed, not the ship definition. It should take effect the next time Vanderdecken updates his list of ships, which won't be at once. So you'll need to sail away, do something else for a while, then return to Isla de Muerte at a later date and see Vanderdecken again.
I just jumped to the ship - saved the game - closed the game and started it again - this reinitialized the interface and Vanderdecken then sold all of the ships. Pressing F11 did not update the ship list nor did jumping to the ship and back.
 
Back
Top