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

Waves

KiwisDoFly

Landlubber
Storm Modder
<span style='color:red'>NEWER THAN NEW!</span> Version 1.1 released. Now with extra gerbils!

<a href="http://rapidshare.de/files/5696427/Realistic_Waves_Mod_1.1_by_KiwisDoFly.rar.html" target="_blank">DOWNLOAD THE LATEST VERSION HERE!</a>

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Hello Everyone.

Since you have downloaded this, you must agree with me that the waves in this game are unrealistic. This is now almost the final version of my little tiny tweak.

I'm no modder, and neither am I a programmer. It's beyond me to make extreme changes, I just tweak values. Hopefully you will like this.

Installation is easy. Just un-rar this package to a temporary folder, then copy the "PROGRAM" folder to the folder where you installed the game. IMPORTANT!!! PLEASE RE-INITIALIZE YOUR GAME (by pressing the "I" key while in-game) AFTER INSTALLING A NEW VERSION OF THIS MOD.

Note to people who can barely run the game as it is: You may experience a performance hit. I'm not sure though, since I don't have a low-spec machine, but in theory the game now has to process about twice the amount of waves then in the original game.

FEATURES
--------

- Waves are realistic (or as close as I can make them). They are flat when there is little wind, and tall in storms or during high winds.

- Big changes in waves, their behaviour and frequncies. Realism ahoy!

Changes in 1.1
--------------

- Further tweaks to the frequency, height and speed of waves. See the .c files in the Init folder in PROGRAM\Weather\

Changes in 1.0 BETA
--------------------

- Further tweaks to the height of waves

- The frequency of waves has been increased to reflect real waves, instead of "swells" in the original game. THIS IS STILL UNDER TESTING. IF YOU FIND BUGS OR HAVE IDEAS ON IMPROVEMENT, PLEASE SEND ME A MESSAGE!!!    


Changes in 0.5
--------------

- Storms-at-day removed. It looked weird.

This may be the last version of this tweak.



Known Issues
------------

- Sometimes you can see big waves during 15 knot winds, and smaller waves during 25 knot winds. Nothing I can do about that.

- Some graphical glitches MAY or may not occur, depending on the situation. They are not major and are easily ignored. I would get rid of them if I could, but hey, everything comes at a price.

- It's still in testing. I'm only one guy with one system and limited time. I can't test all possible situations. If you experience problems or are a single female, please drop me a line at Georg.B@gmail.com.

Thank you for downloading my little tweak. More versions coming soon.<!--c2--></div><!--ec2-->


Hope you will enjoy it!
 
I know nothing of POTC waves, but from general physics I'd say if you want the frequency higher make the wavelength smaller.
 
Yeah, you are right. Unfortunately I haven't seen any wavelength floaters in whrsea.c, but I'll try replacing the "waveLength#" with a number, in the code I posted above.

The reason why I need to decrease wavelength is to make the waves look "jaggier" - as they are in real life - rather than "bumps" which is what we have now.
 
I'm interested in everything that makes the environment more realistic. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" /> Good luck on your waves mod! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
Thanks, I'll post a link for the first version tomorrow. For now I have one more question. I'd like to have a global limit on the wind as 25 knots.

I know the floaters (or whatever you fancy people call them) are minwind and maxwind, and they seem to be located here:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->minwind = 1 + Rand(3);
    if(winds >= 1)
    {
  minwind = 6 + Rand(4);
    }
    if(winds >= 3)
    {
  minwind = 8 + Rand(6);
    }
    if(winds >= 6)
    {
  minwind = 14 + Rand(6);
    }
    if(winds >= 9)
    {
  minwind = 20 + Rand(8);
    }
    if(winds >= 11)
    {
  minwind = 26 + Rand(10);
    }
    maxwind = minwind + 4;<!--c2--></div><!--ec2-->

But I can't make sense of this. Maybe I need some sleep (it's 11.00pm here).

Well, I mean I can understand that it generates a random numbers if minwind is a certain value, but I need some kind of a set number, I need to make it say "The maximum possible wind is no more than 25 knots. Thats it. Period."
 
I'd say set the last minwind to 22 or something and then play around with the "Rand"-s. But I'm no modder... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huhh.gif" style="vertical-align:middle" emoid=":eek:k" border="0" alt="huhh.gif" />
 
I think the waves are quite realistic here. I think when the calm and stormy sea exchange it is just amuzing and it isn´t borig at least (although the aiming is more difficult). In the course of strong storm you can have even 10 meters waves. Have you seen the films "Perfect storm" or "Master and Commander: Far side of the world" ? If no I would recommend to look down them <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
I'll try that, Rico. Thanks.

I understand what you are saying, Rad, but if during your average 10 knot winds the waves are as big as if you are in a storm, then thats unrealistic.

Don't worry, I reached a good balance, and now, while you still get huge waves during storms, in 5-8 knot winds the sea is almost totally calm. Ofcourse, not so calm that you can see the sea "tile", but calm enough so the ship "glides".

Now I need to make the sea "jaggier". From what I've seen of the Day.c file, I think I can make it depend on the weather, so it's jaggy when it's relatively calm, and sort of bumpy when it's stormy.
 
Oh yes, you are right I forgot it. I noticed it many times in the past and I allways told to myself "how this waves can be so high in such a weak wind. But I always have overlooked this imperfection. But I never considered it important because for me PoTC is only game and not simulator. There are many much worse problems in the game. Anyway you are right in that. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />
 
Hi all

That type of wawes is the "swell" which is the remaining "deep wave" after a big storm and is not a typical surface wave originated by the wind.
Then swell is moving in the original wind direction that caused the big storm.
It can remain 4 one, two or three days or longer


__________________________________________________
 
I've downloaded it, KiwisDoFly, but I've been battling PC problems all day, sorry. I'll have a test tomorrow. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
It works fine for me, and i like this mod too, good job. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" /> But sometimes in a wind like 25 no waves can be seen, but the 'height' of the sea surface goes up and down, like all the surface were one big wave. It looks weird, because it gives that feeling that not the ship, but the islands and cliffs are floating on the sea. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />
 
Ah one more thing.[attachment=210:attachment]
I don't think a storm should look like this. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> But this is a storm (the sails just started to get damaged). Maybe this is because of the day-storm, but i think a storm without clouds and waves and lightnings not a strom. So let's stay at the good old storm. I think that's good for a day-storm too.
 
I'll fix it right away.

This is what you get for not testing those bloody storms! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />


In regards to that "Big wave" thing, thats very strange. This is the one thing that I've tested very extensively. Are you using the latest modpack? Because my mod is based on the latest version (18th September). Drats, I should have put a notice on it.
 
I think this shall be the last version, unless there are further problems.

I thought about it long and hard, but even if I can somehow increase the frequency of the harmonica, the resulting jaggy waves (as they are in real life), though would look great in calm weather, in reality would mean that during storms the waves would be huge steep mountains.

I will look into the matter further today and will tell you the results.

EDIT: A little explanation on why it won't work.
Even though that yes, I can technically make the jagginess of waves depend on types of weather (see the code I posted above. The one with "WaveLength 1", "Wavelength 2" and so on), the actual limit on the height of waves is one floater. You might notice that sometimes there are smaller waves at 20 knot winds than there are during 10. And this randomness will cause some waves to be quite high and very unnatural.

Even with natural jaggy waves, the ship will roll unnaturally or not at all. It might even cause crashes.

By the way, that randomness is, to me, hardcoded. Short of learning Perl and C++ (and I'm terrible at maths and things like that) I cannot do anything about it.

And of-course the whole bloody thing might not even be possible!


EDIT2: Oh, Mad-H, you are right, the land does seem to bob up and down. Unfortunately there is nothing I can do about it. You see, when the sea is flat, it is still a wave - a large one that covers all the world. The reason why you notice it so much is because the camera - both on-deck and external - is glued to the ship. It's is free for pitch and yaw, but locked on up-down movement. It might pass as tide...or something. Thanks for pointing this out to me.

Any more bugs? Problems? Praise?
 
Okay, I have just discovered a problem. My little tweak seems to conflict with the latest new islands mod. I don't know why though. It seems, after starting a new game, the sea is flat, no matter how strong the wind. I've tried all possible situations, all possible adjustments, but the sea is still flat.

However, I have an old savegame that doesn't have the new islands working properly (all my main islands dissapeared off the map, just their names and towns remain. I can still sail up to them and land, though) and all is well and I get quite big waves during storms. Very Strange.

Please, please please! If you have the same problem, drop me a line!
 
I use the new islands mod, and there are other problems, just the ones i already told about. Anyways the flat sea, without any waves look weird in a wind of 30. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Yes, and it's not supposed to happen :\

This is very strange. Yesterday I replaced all the files I've changed with original Post Build 12 versions, but the same problem still occurs.

Note, however, that you still get waves during evening and nights.
 
Back
Top