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

not waiting for stores to open

1.create the control in
init_pc.c (program/controls)

with smth like:
CI_CreateAndSetControls( "General", "NEXT_HOURS_Control", CI_GetKeyCode("KEY_9"), 0, true ); //skip hours //game time


2.then in seadogs.c (program)

in
void ProcessControls()

process your control simple,



case "NEXT_HOURS_Control" :
AddTimeToCurrent(5,0); //5 h & 0 min. - tis does daily updates too so it should be ok
//log_code here to show time in upper left - i guess
Log_SetStringToLog(XI_ConvertString("Time") + " " + "+5h");
break;




3.add the control text

-first add the text to the string resource file
(resource/ini/texts/english/ControlsNames


NEXT_HOURS_Control
{
skip 5 hours game time

}


4.i think that's it


have to see if that works



LE: ok,it works.
would you please add that to one of the future updates
if people agree on that .vote please.
 
Another far simplier way is to build your own store, then you can access it anytime you want, day or night.
 
I wouldn't bet it would be simplier, the term itself - simplier - it's relative. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Why got to all the trouble of changing code that works simply cause you want stores open longer or whatever when all you have to do is get an officer to build your own store which you can access anytime plus you also receive rent from it as well.
Doesn't make any sense changing code,which may create problems, when there is an easier option.
 
You don't get it.Stores won't be opened more time.You can just skip some game time if the store is not opened(so you won't lose real time) if all you want to do is sell goods, or meet gouvernor or repair ship... .
 
I do get it & seeing as we already have an option where we can have our own stores I can't see the sense of changing the code because you want it changed. Changing the code when there are no bugs in it may create bugs & we have already got enough bugs to deal with.
 
<!--quoteo(post=157577:date=Aug 10 2006, 10:23 PM:name=SuoiveD)--><div class='quotetop'>QUOTE(SuoiveD @ Aug 10 2006, 10:23 PM) [snapback]157577[/snapback]</div><div class='quotemain'><!--quotec-->
I do get it & seeing as we already have an option where we can have our own stores I can't see the sense of changing the code because you want it changed. Changing the code when there are no bugs in it may create bugs & we have already got enough bugs to deal with.
<!--QuoteEnd--></div><!--QuoteEEnd-->


he's right, i dont get your point to want to edit the stores open time
 
<!--quoteo(post=157582:date=Aug 10 2006, 06:57 PM:name=Vengeance)--><div class='quotetop'>QUOTE(Vengeance @ Aug 10 2006, 06:57 PM) [snapback]157582[/snapback]</div><div class='quotemain'><!--quotec-->
<!--quoteo(post=157577:date=Aug 10 2006, 10:23 PM:name=SuoiveD)--><div class='quotetop'>QUOTE(SuoiveD @ Aug 10 2006, 10:23 PM) [snapback]157577[/snapback]</div><div class='quotemain'><!--quotec-->
I do get it & seeing as we already have an option where we can have our own stores I can't see the sense of changing the code because you want it changed. Changing the code when there are no bugs in it may create bugs & we have already got enough bugs to deal with.
<!--QuoteEnd--></div><!--QuoteEEnd-->


he's right, i dont get your point to want to edit the stores open time
<!--QuoteEnd--></div><!--QuoteEEnd-->

it's ok folks.don't jump on me.was just a proposition(an opinion) , after all I've already said "vote".
forget about it.
 
Is it too late to vote NO? <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

Hook
 
It's not a bad idea, really. It just adds a new button that will pass the time faster (skip 5 hours, actually). Judging by redCorsairs code, it shouldn't really introduce any new bugs either.

I personally find it pretty annoying sometimes when, after I sold all cargo, it is night and I have to go to the tavern before I can visit the shipyard to repair my ship. This button would help in that case.

I'm not sure if building your own store is easier. Some players might not know how to do it. And some players might not want to use the BuildingSet.

I personally vote for adding this. I doubt it can hurt.
 
<!--quoteo(post=157766:date=Aug 12 2006, 04:35 AM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Aug 12 2006, 04:35 AM) [snapback]157766[/snapback]</div><div class='quotemain'><!--quotec-->
It's not a bad idea, really. It just adds a new button that will pass the time faster (skip 5 hours, actually). Judging by redCorsairs code, it shouldn't really introduce any new bugs either.

I personally find it pretty annoying sometimes when, after I sold all cargo, it is night and I have to go to the tavern before I can visit the shipyard to repair my ship. This button would help in that case.

I'm not sure if building your own store is easier. Some players might not know how to do it. And some players might not want to use the BuildingSet.

I personally vote for adding this. I doubt it can hurt.
<!--QuoteEnd--></div><!--QuoteEEnd-->

Does'n work.I mean the 5 game hours are passing(so the code is corect) but the day/nigth cicle doesnt change.it's the same as for R(x3) & G (x10/30) time.And the stores are somehow related with the day/nigth cicle.
R,G & my code keys (and their effects) are corect hack but somewhere the link is broken between those hacks
& the day nigth cicle.I think this cicle in game is not affected by the AddTimeToCurrent function even if it should
be.There's need for a call to some function (updateNightDay) in the AddTimeToCurrent for all this to work.
I will look closer.Hopefully that won't be related to the engine the game use to generate & maintain the in game
world.
 
Back
Top