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

Fixing the SailTo function [Forget it: It's no bug]

Pieter Boelen

Navigation Officer
Administrator
Storm Modder
Hearts of Oak Donator
I've got a few questions concerning the SailTo function as it doesn't work properly with me. When in a certain radius of your target, you shouldn't be able to use the function, yet I can. I understood I am not the only person with this problem either, so I was hoping someone could give me a hand in fixing it.
BTW: Who doesn't have this problem/bug?
 
I thought it was switchable through BuildSettings.h ? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

This is what my settings read:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#define SAILTO_MIN_SPEEDRATIO    0.75 // if your speed is less than this compared to your target's, can't `sail-to`. Note, also checks wind angle for you and the target running away, and rigtype for both.

#define SAILTO_MIN_DISTANCE    500 // if you are closer than this many units to the enemy ship, you can't sailto.<!--c2--></div><!--ec2-->I think that's the default.

You may be right about it not working, tho. Seems to me I've not noticed it working just recently. (haven't been playing a lot right now)
 
It is switchable in BuildSettings.h; it just doesn't work. Anyone might at least direct me to the file I could find the code in? Not that I would understand it, but I could at least try. Unless someone else is wanting to seriously try and fix this (something I am unable to do due to me lack of knowledge).
 
"Pieter:
May it be that you are sailing in arcade mode?

That thing is in AISea.c -> void SeaAI_SailToCharacter(int iCharacterIndex).
 
Hey! Very good point there Emrep! I didn't know you had to be in realistic sailing mode for it to work. So it's no bug after all. Saves me some fixing! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
Thanks a lot!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
 
Back
Top