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

Appearing encounters in !!sea view!!, and sailing

Capt. Daniel Wolf

Freebooter
Storm Modder
1.: I tried this in 1000 times back then when I used stock POTC
To set sail in oxbay for example, and without switching to the map scene,
just sail away, and sail in the direction of the next island.

I realized, if i dont change, just sail, and after a big time I see the map, the ship moved!!!!
A lot. But: once I used the map, and switch back into sea view, after that no matters how long i sail, the
ship remain in the exact spot of the map.

Its seems the same with the post build 12 mod, but I deactivated the onsea weather changing mod (yes, realistic, but VERY annoying, when the whole screen instantly change into some totally different.)
ANd maybe that weather changing mod used to relocate the ship??
I dont know.
So, Is there a way, to sail without switching to the map?
---------------------------------------------------------------------
2.:Its gonna be awesome too, if you can have some ships approaching you while onsea. Its maybe could done mutch easier.

I think its could be done with a timed mechanism, which generates ship encounters on a reasonable amount, and put the ships really far, (to not instantly appear) but reachable by speed. Im sure there is a mechanism that regurally check something while you onsea, and it can be modded by adding a random generator and an if then to it, to generate some ships, and an another, to choose the angle, nation, and type, etc. The distance is not a question, make it far as possible, (U need to spot them....) and if you have the skills, and the speed, you can catch up. Or... They catch up on you.... I think its not that hard, but i dont know, what timed mechanisms presents there.

Imagine, how good can it be, to saw a ship really far away... ANd its a merchant.... And you catch up....
Imagine, how fine it can be, to scan the horizont for ships..... what do you think?
 
Indeed. Excellent idea, but I don't think the engine allows it. Making something like this would be great though. <img src="style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />
 
This idea reminds me a little the system in sea used in "The Legend of Zelda the Wind Waker" i some of you played it, remember, you were able to go from an island to another with your ship, (there were 50 if i remind correctly) in about 3 minutes of sailing, the time to go through all the map was about 10 minutes.

a system like this one would be great, we would spent all our time in sea instead of using the map interface every time, i don't know if it is possible, even probably impossible, make the distances shorter or the travel speed higher without an high speed effect like with the time compression...
 
The first idea maybe dead though.

But the second... Its cant be that hard. So, if theres a timed mechanism somewhere while you onsea, we can put a random generator, whitch generates a number.
(this gonne be the 'Is there any ships?' question for the system) an If THEN looks it. and, ONLY go further, if the number means 'yes'!
So, if not, the system wont do anything.
If 'yes', theres gonna be a nation chooser random, then a type chooser random.
then, somehow made the system to exactly PUT a ship into the sea. the distance is given, (the farthest you can see) maybe just put another random to generate its in front of, or left/right side. So, there are only 2 problems left.
- the first: find a mechanism, thats regurarily checks something, (like if your ship sinking, it loose health one by one by time.. so its one mechanism)
- and the second problem, is how to force the system to put the generated ship ingame.
There is a weather changing mod onsea. It changes the waves, wind direction, rain-or-not, and the sky picture. I REALLY dont like it, because its changes with a flash, and you find yourself in a totally different situation. BUT !! If this thing actually reinitializes the sea theatre, we can use it, as call it to keep the weather but put on there the exact ship. Or, we can just order a reinitialization (eee... some word like this) to put a ship there!!! reinitialization, as it done while you change to sea from map. ANd if we order it to keep the weather, nothing mutch changes, just a ship appear very far. What do you think? I dont know the nature of the onsea weather change mod, and the reinitialization procedure, but until that point im sure it can be done almost only with random generators, and if thens.

The Wolf
 
I think that is a pretty good idea. I don't know how to code it myself, but if someone figures it out, it'll be a great mod! <img src="style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" />
 
yeah and when it generates a ship you could make the sea much larger so your not fighting like 1 minute your in oxbay and the next your in redmond. just a thought
 
Yes, Nice idea, ToddyDude <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Im just waiting for the code knowledge to do... Or some help <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
<!--quoteo(post=142839:date=Mar 22 2006, 12:55 AM:name=Captain 'Dan the Lunatic Wol)--><div class='quotetop'>QUOTE(Captain 'Dan the Lunatic Wol @ Mar 22 2006, 12:55 AM) [snapback]142839[/snapback]</div><div class='quotemain'><!--quotec-->
Yes, Nice idea, ToddyDude <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Im just waiting for the code knowledge to do... Or some help <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->


There is a function called "UpdateSituation" or something similar, in AIShips.c, or sea.c

That function is your target to code that.

Afaik, it's called each second by the engine.

But, be careful as it's a function very loaded with features, and also very modded, so touching there can develop some weird bugs

Hope it help.


P.D: If you don't find that function, send me a post and I'll try to give you the exact name checking my notes at home


Kblack
 
Back
Top