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

Tutorial MODDING TIP - Testing Out a NEW Ship in Game the EASY WAY

TheBlackKnight

Corsaire Flibustier
Storm Modder
Pirate Legend
All,

Old game modders and players will know this but new players may not.
If you want to "test drive" a new ship without BREAKING your existing game here is how to do it.

Keep in mind the ship MUST already already be in the ship listings (Ships_init.c and ships.h) and be added to the game including all models and textures.

If you are adding a new ship a new game must be restarted.

This function that I am describing is useful when ships were excluded from a MOD or source game for various purposes such as bug testing and balance, getting the best base random version of the same ship you already own or to be able to tweak statistical performance when developing a ship model.

All you need to do is change ONE LINE in ShipsUtilites.c located at ....C:\Ages of Pirates\program\scripts.

Located the ShipUtilities.c and change the name of the ship in this line using a text editor:

FillShipParamShipyard(NPChar, GenerateStoreShip(SHIP_TARTANE), "ship1");

This is the FIRST annotation for this function in the file.

Modify the named ship to the one you want to see in game such as SHIP_SOPHIE (located in the ship.h file) instead of SHIP_TARTANE.

Now every shipyard will have this ship available as the FIRST SHIP FOR SALE regardless of your navigation skill level.

To change the ship back just replace the named ship with SHIP_TARTANE again after exiting the game.

However, keep in mind if you have visited the shipyard, you will need to visit another shipyard to reset the effect, as the game will remember the last setting until you leave port.

Enjoy!
 
One final note regarding this tip, a new game must restarted if you change statistics of ship not just view the ship in the shipyard for purchase, as the game will remember the last settings as a "real ship" in your game.
Do not change statistics on a ship, as although it will not break your game, they will not take effect until you start a NEW game.
 
Back
Top