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

New formula for ships... so how?

alan_smithee

Corsair
Storm Modder
After reinstalling the whole lot, I decided to try out that tempting Jolly Roger RobinB made a while back. But I've noticed Build11 has changed since he wrote his instructions, so following them gives me an error with no ships available at all.

Anyone know the formula, given the latest build and maybe even the new berthing mod, for plugging in a new ship?
 
look in ships_init.c. go near the bottom of the file, where there's a line saying "DO NOT ADD BELOW THIS LINE". as far as i know, once you've made your new texture and model (same as making a new location with texture and model) you just have to add a new definition in there, just after catalina's latest definition and just before that line. the easiest way to do it would be to copy the definition of whichever ship model you copied. if you want, you can add five new ships with the same model, one for each country, with slightly varied stats (see other ships in the ships_init.c for examples of that). hope this helps <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
oh, looking at the file it looks a bit confused... i think the latest version of the ships back end has the //PSX tags, not the //PS tags (can anyone confirm that?). so to set the name of the ship i think you use:

<b> refShip.Nation = HOLLAND;
refShip.id = "Warship2" + "_" + refShip.Nation; // PSX</b>

and not

<b> refShip.All = "Warship1_"+PIRATE; // PS</b>

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Back
Top