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

Fixed Patrol Time on Island Without Patrols

lucho1392

Sailor Apprentice
Ok but looks like fixing the crash when trying to smuggle had a consequence... Now the guards dont show the time interval to no get cought and after finishing the deal with smugglers when you go to f2 and colonies, the info about contraband is not shown.
 
Ok but looks like fixing the crash when trying to smuggle had a consequence... Now the guards dont show the time interval to no get cought and after finishing the deal with smugglers when you go to f2 and colonies, the info about contraband is not shown.
You have a savegame and screenshot where I can see that?

The fix I did only makes the relevant text return "" (e.g. nothing) IF there aren't actually any patrols.
In which case it doesn't matter.

Also, this fix has absolutely no relation with with the F2>Colonies screen. :no
 
Save: MEGA
Image: MEGA

There you got mate.
 

Attachments

  • compile.log
    70.7 KB · Views: 177
  • error.log
    688 bytes · Views: 241
  • system.log
    17.6 KB · Views: 197
upload_2016-6-15_21-36-37.png


For some reason, in your game Nevis does not HAVE a "smuggling state". Not sure how that could happen. :shock
 
I tested starting a brand new game with Nathaniel Hawk and Nevis DOES get a "smuggling state".
There is no code in place to remove that once it is in place, so I do not know what you did to break it.
As far as I can tell, it shouldn't be possible.
 
If you want to fix it, open PROGRAM\smuggling.c and find:
Code:
void setIslandSmugglingPatrols(ref sisland)
{
   if(!CheckAttribute(sisland,"smuggling.state")) return; //performance enhancement
   //This functions makes the patrols on the island
Replace with:
Code:
void setIslandSmugglingPatrols(ref sisland)
{
   // if(!CheckAttribute(sisland,"smuggling.state")) return; //performance enhancement
   //This functions makes the patrols on the island
Then execute this through console:
Code:
setIslandSmugglingPatrols(GetIslandByID("QuebradasCostillas"));
That sets it back to some normal state.

But again, HOW did you do this???
 
My suggestion does restore proper contraband to the island.
But I don't have time to fully treat that.

As far as I can tell from the code, it is impossible to trigger this bug.
So either it was wrong from game start, which I cannot replicate, or something very strange happened during the game.
But I don't know what might have happened during your game, of course.

So the mystery remains.
Most important though is that the game doesn't crash.
I can also confirm beyond a doubt that whatever this is, it has nothing to do with the "Smuggling crash fix".
 
Well i guess i did it wrong... Gonna stop trying to fix it.
Actually, I think I made a mistake in my post above. Try this instead:
Code:
   UpdateIslandSmugglingState(GetIslandByID("QuebradasCostillas"));
   changeIslandSmugglingState(GetIslandByID("QuebradasCostillas"), 0);
That definitely puts contraband back.
 
Back
Top