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

dismastment and repair bug

morgan terror

Magnificent bastard
Storm Modder
Public Relations
i'm unsure of why it happens, but here it is:

losing a mast seems to interfere with the way repairing works with directsail, possibly becuase the game is trying to produce a visual result from your sails being patched. the next hour, all visual sail damage is fixed, including downed masts, regardless of sailcloth used in the repairs or total sail damage. the hour after that, the actual sail health catches up, rising to 100%. the hull does not have this problem. instead, the visible hull damage does not dissapear when statistically repaired.

additionally, when repairing your sails at sea like normal, the health percentage caps out at 99 instead of 100. because the ship's not statistically fixed, the game will continue to repair it indefinately. rather curiously, it doesn't use sailcloth from that point on. until you recieve more damage, of course. i suspect this last one is a purely numerical bug.
 
Yeah, you could only have 20% sails left but it looks like they are 100%. I can't remember it not being like that.
 
One thing I know on this subject is that we deliberately repaired all masts upon any reload to prevent issues with the Different Flags mod.
The reason is that if there's masts missing, the game gets completely confused on which flag goes where. :facepalm
 
well, i don't have anything against repairing all masts. it's a very good thing, in fact. the problem lies with the sails being repaired as well, as well as all sails not even attached to that mast.
 
It's being done in PROGRAM\SEA_AI\sea.c with some DeleteAttribute lines.
Possibly we could do away with these two:
Code:
DeleteAttribute(rPlayer,"ship.sails");
DeleteAttribute(&Characters[iCompanionIndex],"ship.sails");
That way, supposedly, the sail damage remains, but the masts are repaired.
No idea if that'll introduce any other unwanted side-effects though; I suppose Screwface did it for a reason...
 
Back
Top