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

The Ketch

Doober

Buccaneer
Storm Modder
I have recently been sailing the Ketch that was recently put in the game on the realistic settings. It seems that it follows the rigging settings for a full rigged ship instead of a sloop. Has anyone else experienced this? My sails begin luffing soon after I turn halfway toward the wind. In a sloop, I am able to almost run right into the wind. In the shipinit.c, some ships have a code that says something similar to this:

refShip.RigType = "1Br"; // KK

I did not see any such code on the Ketch. What should I be looking at to ID the rigging type?
 
<!--quoteo(post=177221:date=Dec 28 2006, 10:50 PM:name=Doober)--><div class='quotetop'>QUOTE(Doober @ Dec 28 2006, 10:50 PM) [snapback]177221[/snapback]</div><div class='quotemain'><!--quotec-->
I have recently been sailing the Ketch that was recently put in the game on the realistic settings. It seems that it follows the rigging settings for a full rigged ship instead of a sloop. Has anyone else experienced this? My sails begin luffing soon after I turn halfway toward the wind. In a sloop, I am able to almost run right into the wind. In the shipinit.c, some ships have a code that says something similar to this:

refShip.RigType = "1Br"; // KK

I did not see any such code on the Ketch. What should I be looking at to ID the rigging type?
<!--QuoteEnd--></div><!--QuoteEEnd-->
In ships_init.c this code:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> case "Slo":
     refShip.ClosestPoint = 0.15;
     refShip.BestPoint = 0.625;
     refShip.RigType = sDet;<!--c2--></div><!--ec2-->
sets the sailing characteristics for all sloops.
This line<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
refShip.all    = "Sloop1";<!--c2--></div><!--ec2-->
in the Ketch section sets all aspects of the Ketch to that of sloop unless otherwise listed elsewhere.

There really should be no difference between the two except the Ketch is set a little faster.

What build are you using?
Try adding this to the ketch section and see if it makes a difference.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->refShip.ClosestPoint = 0.15;
refShip.BestPoint = 0.625;
refShip.RigType = sDet;<!--c2--></div><!--ec2-->

edit:
I just noticed you are using Build14.
If the change I suggest above works, then it would seem that B14 Alpha is not setting the default sailing characteristics from the "ships_init.c" file correctly, or are being over ridden somewhere else.
 
I suppose this will need to be checked. I hope somebody can figure out what the problem is... <img src="style_emoticons/<#EMO_DIR#>/wacko.gif" style="vertical-align:middle" emoid=":wacko:" border="0" alt="wacko.gif" />
 
I haven't had time to put in the code that Petros suggested and test it yet, but I did notice that realistic sailing also seems to be calculated in the aiship.c starting at around line 4409, although this code looks like it has been around awhile. Anyone have any ideas on which code is the one actually used to calculate sailing? <img src="style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> Doober and Pieter!

About "aiship.c" I notice that the sloop (slo) isn't even included while all other types are!

Build 12 is the same.
So does this mean that the Sloop has never been set right? <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
Hmmm, that would be odd, Hook always said he used the sloop because of it's great manueverability so it would seem that it worked for him. I can't remember off the top of my head; I usually use the schooner. I will try adding in the code for sloop into the aiship.c and see if it solves the problem <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
<!--quoteo(post=177262:date=Dec 29 2006, 10:32 AM:name=Doober)--><div class='quotetop'>QUOTE(Doober @ Dec 29 2006, 10:32 AM) [snapback]177262[/snapback]</div><div class='quotemain'><!--quotec-->
Hmmm, that would be odd, Hook always said he used the sloop because of it's great manueverability so it would seem that it worked for him. I can't remember off the top of my head; I usually use the schooner. I will try adding in the code for sloop into the aiship.c and see if it solves the problem <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
Funny thing is that in the three years I've been playing this game I've never used the sloop either.
I didn't like how it looked.
Just got into it in creating the Ketch, and that was because I remembered that Kell always wanted to add a Ketch to the game.

That code I posted would go into the Ketch section of ships_init.c.

I'm not sure it would be right for "aiship.c" because the code there looks more like formulas.
 
Sorry for the double post, but here are my findings. By putting in an entry into the aiship.c for sloops, it does not accomplish anything; I saw no change. I then put in the the code that Petros suggested under the Ketch in the shipinit.c, and it worked properly. It is very strange though that it is not pulling the correct code from the sloop as it should. However, with that addition, the Ketch works properly. I have attached the shipinit.c file that is from the Alpha update 4. It's not that big of a fix, but the Ketch is such a nice ship, I would hate for anyone to be deterred from using it.

EDIT: I guess I didn't double post after all. When I changed the aiship.c, I copied the formula from the schooner and changed the label to "Slo", but it didn't have any affect. I also checked the sloop and it does work correctly, so no changes are needed with that ship.
 
Thanks for fixing that, Doober! I don't understand why it didn't work properly, but I'm quite happy it does now. I'll add that fix into the next Build updates. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
<!--quoteo(post=177339:date=Dec 30 2006, 07:56 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Dec 30 2006, 07:56 AM) [snapback]177339[/snapback]</div><div class='quotemain'><!--quotec-->
Thanks for fixing that, Doober! I don't understand why it didn't work properly, but I'm quite happy it does now. I'll add that fix into the next Build updates. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
BTW, it is not an error in the original Ketch files, but in the way Build 14 alpha is handling sailing characteristics.
I suggest the sailing characteristics of other ships, and especially the sloops, be looked into.
 
<!--quoteo(post=177374:date=Dec 30 2006, 12:36 PM:name=Petros)--><div class='quotetop'>QUOTE(Petros @ Dec 30 2006, 12:36 PM) [snapback]177374[/snapback]</div><div class='quotemain'><!--quotec-->
<!--quoteo(post=177339:date=Dec 30 2006, 07:56 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Dec 30 2006, 07:56 AM) [snapback]177339[/snapback]</div><div class='quotemain'><!--quotec-->
Thanks for fixing that, Doober! I don't understand why it didn't work properly, but I'm quite happy it does now. I'll add that fix into the next Build updates. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
BTW, it is not an error in the original Ketch files, but in the way Build 14 alpha is handling sailing characteristics.
I suggest the sailing characteristics of other ships, and especially the sloops, be looked into.
<!--QuoteEnd--></div><!--QuoteEEnd-->
Petros is correct, the Ketch files were fine, it is just some weird bug that the game had that caused it to not pull the info. I did look into the sloops and they were sailing fine, which was one of the reasons it was so puzzling to me. <img src="style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />
 
If I only I had a clue why this problem occurs at all. But I don't. <img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />
 
Back
Top