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

Limiting ships to certain nations

Fix them then, if you don't other people doesn't do so. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
still, it would be good if the new rigging types i proposed would be put onto a few ships. some of them already excist, but a lot of them don't.
 
I think that too, yes, but maybe you should try and make some yourself, we lack people who have the time and skills, and there are tutorials so you can learn it.
 
i might, some time. but i've got other things going on for the moment which all take up quite some time.
 
For now I'd be happy if that list of values for all ships could be done. I don't care WHO does it, but somebody needs to do it or the mod will NEVER be finished. Which would be unfortunate because it'd add a lot to the game and isn't actually very complicated to finish. Just a lot of hard work. And the worst thing, making the shipslist, I already did for you. <img src="style_emoticons/<#EMO_DIR#>/user_comment.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="user_comment.gif" />

<!--quoteo(post=242251:date=Mar 1 2008, 07:46 PM:name=Cylon13)--><div class='quotetop'>QUOTE (Cylon13 @ Mar 1 2008, 07:46 PM) <a href="index.php?act=findpost&pid=242251"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Rigging is not the only thing what needs fixing on some ships in our game ..alot of ships in our game have missing or just screwed up ropes/rope locators. <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> Which bugs me. <img src="style_emoticons/<#EMO_DIR#>/boom.gif" style="vertical-align:middle" emoid=":boom" border="0" alt="boom.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->See <a href="http://www.piratesahoy.net/forum/index.php?showtopic=11039" target="_blank">here</a>. <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
 
i will do part of it, i just don't know when. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" />
 
We need values for the ships otherwise this mod will never see the light of day. Don't you agree that would be most unfortunate?
 
Agreed. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
agreed too <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Well, back to work then <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
i know, i know. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" /> life is just being really hectic right now. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" />
 
goody. <img src="style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" /> i trust you looked at my details, excepting the 1st rates?
 
Find attached Thomas the Terror's list. I think I'll try today to write the code to make this work. However, adding this all to the ships_init.c file is very easy, but takes a lot of time. Time I don't really have. So I might leave that up to someone else to do. Or I'll have to wait with it until a later day. But it IS easy, so ANYONE could do it! Anyone interested??? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
Maybe there will more people interested if they have said code <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Here's the code. I think this should work:
Code:
		// PB: Periods --]
switch(iNation)
{
case ENGLAND:	if(CheckAttribute(rShip,"england") && sti(rShip.england) ] rand(100))	continue; break;
case HOLLAND:	if(CheckAttribute(rShip,"holland") && sti(rShip.holland) ] rand(100))	continue; break;
case FRANCE:	if(CheckAttribute(rShip,"france") && sti(rShip.france) ] rand(100))		continue; break;
case SPAIN:		if(CheckAttribute(rShip,"spain") && sti(rShip.spain) ] rand(100))		continue; break;
case PORTUGAL:	if(CheckAttribute(rShip,"portugal") && sti(rShip.portugal) ] rand(100))	continue; break;
case PIRATE:	if(CheckAttribute(rShip,"pirate") && sti(rShip.pirate) ] rand(100))		continue; break;
}
switch(GetCurrentPeriod())
{
case PERIOD_EARLY_EXPLORERS:		if(CheckAttribute(rShip,"period0") && sti(rShip.period0) ] rand(100)) continue; break;
case PERIOD_THE_SPANISH_MAIN:		if(CheckAttribute(rShip,"period1") && sti(rShip.period1) ] rand(100)) continue; break;
case PERIOD_GOLDEN_AGE_OF_PIRACY:	if(CheckAttribute(rShip,"period2") && sti(rShip.period2) ] rand(100)) continue; break;
case PERIOD_COLONIAL_POWERS:		if(CheckAttribute(rShip,"period3") && sti(rShip.period3) ] rand(100)) continue; break;
case PERIOD_REVOLUTIONS:			if(CheckAttribute(rShip,"period4") && sti(rShip.period4) ] rand(100)) continue; break;
case PERIOD_THE_CORSICAN:			if(CheckAttribute(rShip,"period5") && sti(rShip.period5) ] rand(100)) continue; break;
}
// PB: Periods
This is for Pirate_KK's game version and is to be added into the function Fantom_GetShipType() in PROGRAM\SEA_AI\AIFantom.c and the function FillShipsList() in PROGRAM\Ships\ships.c.
 
So is anybody going to help us with putting the code Thomas the Terror wrote into the ships_init.c file yet? It is simple to the point of being ridiculous; all you need to do is invest some time. Or are all of you so lazy you don't even want to help us with something simple? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
<!--quoteo(post=246747:date=Mar 24 2008, 07:38 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Mar 24 2008, 07:38 AM) <a href="index.php?act=findpost&pid=246747"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->So is anybody going to help us with putting the code Thomas the Terror wrote into the ships_init.c file yet? It is simple to the point of being ridiculous; all you need to do is invest some time. Or are all of you so lazy you don't even want to help us with something simple? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

Well im not part of your mod team but if you link the ships_init.c file and post the instructions I will be happy to do this for you guys. ( I only have build 13 so I may not have the correct ships_init.c file)
 
Thanks very much for wanting to work on this. Find attached the files you need. All you need to do is to put the code from the DOC file into the ships_init.c file to go with the proper ship. Should be pretty easy.

We don't really have a modding team. Anyone and everyone who contributes to the work is a part of the team. <img src="style_emoticons/<#EMO_DIR#>/doff.gif" style="vertical-align:middle" emoid=":doff" border="0" alt="doff.gif" />
 
one note on them! you need to add // before the ships name, and before the word Period. I forgot this, and if you don't do so, it will see those things as code, but it isn't which can crash the game.

Example, not Amsterdam, but //Amsterdam....//Periods
 
Back
Top