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

Building a new Sloop. I have a question.

kgsuarez

Powder Monkey
Hello everyone.

I tired looking at the Wiki tutorials for an answer to this, but I am lost.

All I want to do is:

Make a new Sloop. The same model and textures as the standard Sloop (actually, sloop2, not sloop1). The only thing different about it would be that a) it'd be faster, have more health, more cargo, etc.. and B) only I would have it (I would set it up so that I start the game with it instead of the Lugger. Nobody else would have it. It'd be one of a kind.)

I am running a clean install with Build v11, installed just yesterday with extra textures and online updates.

I have tried to do this on my own and I am unable to. (At this point at least). <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />

Please, help me!

Thanks in advance.
 
Copy the sloop entry in ships_init.c that has the model/skin you want, then past it down in the Addon ships go here section towards the bottom.

Change the ID entry from refship.name + blah blah to
refShip.id = "SomeUniqueID";
where someuniqueid is, err, some unique ID that you'll use to give it to yourself.
Delete the nation attribute so it will appear in all shipyards.
Change the other stats to whatever you like (note you can't change the number of cannons, that's in the model)

Next, at the bottom of the entry, add the line
refShip.canencounter = false;
So no one else gets it.

Lastly, in BuildSettings.h, change the return "Lugger1_" blah blah;
to
return "SomeUniqueID";

Enjoy!
 
How can I make it have a different name? Right now it's a "Sloop", I know it is the new one though because the stats are very good. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />

I messed up before because of this I think. Then it threw off the icon and stuff... It's a big mess right now.
 
Add a new entry to resourceinitextsenglishcommon.ini, by where it says sloop1,"sloop"
Like, say,
string = sloop_kgsuarez,"Super Sloop"

then, in ships_init, in the section for the ship you copied, under where you changed the ID, add
refShip.all = "Sloop1_0";
refShip.sname = "sloop_kgsuarez";

change sloop1_0 to whatever you copied it from, i.e. perhaps sloop2_0
 
Back
Top