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

Thanks and Small Contribution

i. am. going. to. LOVE THIS! <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> this is going to make direct sailing SO much better. now i can at least know what to expect. the utterly random weather has always bothered me to no end. i sure hope i can add this to build 13 final.
 
Hourly updates are fine; we don't want to overload the game. It's already getting performance troubles. <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />

This sounds ABSOLUTELY BRILIANT! People have been begging for this one FOREVER. Me included; the sudden weather changes are better than no weather changes, but gradual ones are MUCH preferrable.

Also I HATE running into fog very frequently, even when it's mid-day. You simply CAN'T SEE in the fog, but the OTHER ships seem to have no problem with that. In fact when I'm in fog, I MUST rely on my compass to see where the other ships are. Now I'm pretty sure they did NOT have RADAR back in those days. <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />

Indeed there is hardly any fog in the Caribbean, but next time I'm there, I'll check again just to be sure. That'll be half November until half December.

Making it possible to set different weather conditions in the quests in also absolutely great! I recall Bartolomeu o Portugues once wanted to have a tornado-on-command, but we never managed to achieve that satisfactoraly.

What exactly are you doing with the AoP skies? Right now in Build 14 Alpha 8 we have them added and you can switch between the regular skies and the AoP ones. Nothing too complicated though. Would be cool to use both types at the same time to give us more different skies to look at during the game. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
right now the fog occurs loosely from 06:00 until 10:00. you just have to avoid the dawn.
 
Yes, I only really wanted to update the sun/moon position by the minute so it would be smooth. But that's not here or there.

I didn't do anything with the AoP skies except merge the 4 sides into one big image like PotC uses and load them in my code, I just started playing 14a7 plus ( finally installing right lol) so I didn't know they were in already. Would've saved me some time in photoshop <img src="style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

The random weather drove me crazy, working to get the weather gauge then it suddenly switches.. argh

About visibility, the data I have for the moon position has it out of the sky by 1am so it's pretty dark and almost invisible. So I was wondering if it would be better to have a fake glow anyways since the AI can see in the dark?
 
Is it even possible to create a fake glow?
Perhaps it'd be better to limit enemy's sight in the dark and especially in fog as well. Would be fair, no? <img src="style_emoticons/<#EMO_DIR#>/razz.gif" style="vertical-align:middle" emoid=":razz" border="0" alt="razz.gif" />
The AoP and PotC sky textures are in the same format, so it's easy to just overwrite the PotC ones with the AoP ones.
In Build 14 Alpha 8 we put a toggle on it though. You can play either with the old ones or with the AoP ones.
 
maybe, but i'm never really having that much trouble with visibility. i go with the radar most of the time anyway, so i can keep blasting everything within range instead of what i can actually see on the screen. it's far more effective.
 
Well the data I'm using is from <a href="http://aa.usno.navy.mil/data/docs/AltAz.php" target="_blank">http://aa.usno.navy.mil/data/docs/AltAz.php</a> azimuth and angle calculator.

Using Puerto Rico for the year 1700 month august and day 21 I get


<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->CAYEY, PUERTO RICO
o , o ,
W 66 10, N18 07

Altitude and Azimuth of the Sun
Aug 21, 1700
Atlantic Standard Time

Altitude Azimuth
(E of N)

h m o o
06:00 -2.6 76.4
07:00 11.5 80.8
08:00 25.5 85.0
09:00 39.8 89.2
10:00 54.0 94.4
11:00 68.1 103.0
12:00 81.0 131.8
13:00 80.0 233.5
14:00 66.8 258.0
15:00 52.7 266.1
16:00 38.5 271.1
17:00 24.2 275.3
18:00 10.1 279.4
19:00 -3.9 283.9<!--QuoteEnd--></div><!--QuoteEEnd-->

for the sun

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->CAYEY, PUERTO RICO
o , o ,
W 66 10, N18 07

Altitude and Azimuth of the Moon
Aug 21, 1700
Atlantic Standard Time

Altitude Azimuth Fraction
(E of N) Illuminated

h m o o
00:00 -5.2 256.8 0.47

12:00 -11.2 102.8 0.52
13:00 2.3 107.2 0.53
14:00 15.1 112.6 0.53
15:00 27.4 119.7 0.54
16:00 38.8 129.6 0.54
17:00 48.4 144.1 0.54
18:00 54.4 164.6 0.55
19:00 55.1 189.2 0.55
20:00 50.1 211.1 0.56
21:00 41.2 226.8 0.56
22:00 30.1 237.5 0.57
23:00 17.9 245.0 0.57<!--QuoteEnd--></div><!--QuoteEEnd-->

for the moon.

It doesn't calculate where it is at midnight.. annoying so I just projected the path and by 1:00am it would be a negative angle.. that is over the horizon

@Pieter yes it is possible to have a false glow, I have it already for early morning before the sun crests the horizon and just after it sets, looks purty <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
It's odd, in my AoP folder the sky textures are in 5 images, 4 sides and a top.. sides are 256x512 and the top 512x512. In my PotC folder the skies are in two images, one 1024x512 which is all 4 sides in one and the top 512x512. So I took all the AoP sides and merged them into 1024x512 images like the PotC ones.
 
Interesting. I recommend having a look at the Build 14 Alpha 8 files. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />

I'm afraid I don't have a Nautical Almanac for 1700 aboard the cruiseship. Just for 2008. So that doesn't help. <img src="style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
 
Ok, comparing the weather folder from 14a8 to 13 final I see there are a few things

In WhrWeather.c there is a new function called SetInitialWeather() and FindWeather()
SetInitialWeather is just that I guess, an initialization routine and FindWeather is used to search the Weathers[] array for a specific weather for a specific purpose I gather.

There is this change in WhrTornado.c that I don't fully understand the purpose of:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// KK -->
    if (CheckAttribute(aCurWeather, "Tornado") == false || sti(aCurWeather.Tornado) != true) return;

    ref rTornado; makeref(rTornado, Tornado);
    float x = 10000.0;
    float z = 10000.0;
    if (CheckAttribute(rTornado, "init.x")) x = stf(rTornado.init.x);
    if (CheckAttribute(rTornado, "init.z")) z = stf(rTornado.init.z);<!--c2--></div><!--ec2-->

But from what I can see it won't be affected and will still serve it's purpose

The last difference is a special weather in Special.c that says its misty for the Isle de mueto.

Should work just fine with the weather setting function I'm putting in, in theory you'll be able to set the weather to anything you want at anytime without the need for special weather generation code. The only thing I'm not sure about is the change in WhrTornado.c, is the KK responsible for it still about?
 
The KK who added that is "Pirate_KK" and (THANKFULLY!) he's still around. <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
He added that code at my and Bartolomeu's request so that we could have a tornado-on-command for Bartolomeu's quest.
We have never actually managed to get that to work.
I think you can just remove that code altogether; I don't think it's used anywhere.
If you want to be certain, please send a PM to Pirate_KK.
Again thank you EVER so much for working on this! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />

Small question: is it possible to set tornado's-on-command with your new system? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
Back
Top