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

Speed Reports

KiwisDoFly

Landlubber
Storm Modder
Unfortunately my modding skills, as if I have any, are beyond this. However, it shouldn't be a problem for someone well versed in the ways of weird gibberish in .c files.

You see, since I want as much realism as possible, I would love it if someone made a small mod where by pressing a button, you would get a report of the current wind, and a report of the current speed.

You see, that would allow me to switch off my radar completely and rely purely by sight. Which is a lot more realistic than having an active radar by the binnacle box.

Pretty Please!
 
I'm sure that can be made.Lol potc gonna be a sailing simulator! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/buds.gif" style="vertical-align:middle" emoid=":drunk" border="0" alt="buds.gif" />
 
I like it.

"12 knots, 3 fathoms, sir" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sailr.gif" style="vertical-align:middle" emoid=":sail" border="0" alt="sailr.gif" />

Cheers <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Yep, sailing without "radar" could be more interesting.

You could call a speedreport with the F12 key. Open the file program\console.c . NK made this file to test mods. Any code you put in there will be executed if you press F12. Your console.c will probably contain only outcommented code that does nothing, so you could use this key "to cast the log".

Find the starting bracket { in the ninth line :

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{<!--c2--></div><!--ec2-->
Immediately below insert these three lines :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref mchar = GetMainCharacter();
    Logit("Windspeed: " + makeint( Whr_GetWindSpeed() ) );
    Logit("Shipspeed: " + makeint( mchar.Ship.Speed.z ) );<!--c2--></div><!--ec2-->

Now F12 will show wind and shipspeed on the screen. ( You can change the text between the quotation marks to your liking, and you could skip the line with the windspeed, would be even more realistic. FAIK there were logs(those lines with the knots) for shipspeed but no windmeters apart from crude weathervanes )

The most realistic indicator for wind direction is already in the game: the pendants at the masttops <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/yes.gif" style="vertical-align:middle" emoid=":yes" border="0" alt="yes.gif" />

BTW, dumb question: is it possible to switch the "radar" off?
 
Hey this sounds great. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />

If it is indeed possible to switch the radar off then I'm all for it and will try that code out. We'd still need the compass and cannon reload indicators of course, but the wind direction and radar itself could go. If this is possible it probably should be optional, togglable for those who don't want the added realism. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sailr.gif" style="vertical-align:middle" emoid=":sail" border="0" alt="sailr.gif" />

Cheers <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Back
Top