I have this weekend time. My wife is not here. We'll see ... how far we get.Ok, so I changed the code as you said. Then I went on world map and entered a storm. No bugs.

I have Skype on .... janmarten2013
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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
I have this weekend time. My wife is not here. We'll see ... how far we get.Ok, so I changed the code as you said. Then I went on world map and entered a storm. No bugs.
I know. That is my point.That is not right.
Linking Boolean expressions
if (5<=a && a<=10) .... this is a " and" function
if (5>a || a>10) .... this is a "or" function
if (GetTime() >= 22.00000 && GetTime() <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (3.0 >= 22.00000 && 3.0 <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (false && true) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >= 22.00000 || GetTime() <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >= 6.00000 && GetTime() < 10.00000) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() < 18.00000) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() < 20.00000) Islands[iCurLocation].QuestlockWeather = "Storm03";
Islands[iCurLocation].QuestlockWeather = "Storm04"; // default for night time, e.g. between 22:00 and 06:00
if (GetTime() > 6.0) // Time is after 06:00
{
if (GetTime() < 10.0) // Time is between 06:00 and 10:00
{
Islands[iCurLocation].QuestlockWeather = "Storm01";
}
else // Time is after 10:00
{
if (GetTime() < 18.0) // Time is between 10:00 and 18:00
{
Islands[iCurLocation].QuestlockWeather = "Storm02";
}
else // Time is after 18:00
{
if (GetTime() < 22.0) // Time is between 18:00 and 22:00
{
Islands[iCurLocation].QuestlockWeather = "Storm03";
}
}
}
}
Weathers[n].Hour.Min = 11;
Weathers[n].Hour.Max = 11;
Weathers[n].Hour.Min = 11.00000;
Weathers[n].Hour.Max = 11.59999;
This is already done in the German version. Absolutely no errors.Have fun!![]()
Weathers[n].Hour.Min = 11;
Weathers[n].Hour.Max = 11;
Weathers[n].Hour.Min = 11.00000;
Weathers[n].Hour.Max = 11.59999;
Have fun!![]()
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(8): Weathers[n].Hour.Min = 11.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(199): Weathers[n].Hour.Min = 12.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(384): Weathers[n].Hour.Min = 13.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(570): Weathers[n].Hour.Min = 14.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(756): Weathers[n].Hour.Min = 15.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(940): Weathers[n].Hour.Min = 16.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(1124): Weathers[n].Hour.Min = 17.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(1307): Weathers[n].Hour.Min = 18.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(7): Weathers[n].Hour.Min = 6.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(195): Weathers[n].Hour.Min = 10.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(384): Weathers[n].Hour.Min = 18.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(579): Weathers[n].Hour.Min = 22.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(774): Weathers[n].Hour.Min = 6.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(969): Weathers[n].Hour.Min = 10.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(1165): Weathers[n].Hour.Min = 18.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(1361): Weathers[n].Hour.Min = 22.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(7): Weathers[n].Hour.Min = 19.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(193): Weathers[n].Hour.Min = 20.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(377): Weathers[n].Hour.Min = 21.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(562): Weathers[n].Hour.Min = 22.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(748): Weathers[n].Hour.Min = 23.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(8): Weathers[n].Hour.Min = 6.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(194): Weathers[n].Hour.Min = 7.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(380): Weathers[n].Hour.Min = 8.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(564): Weathers[n].Hour.Min = 9.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(748): Weathers[n].Hour.Min = 10.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(11): Weathers[n].Hour.Min = 0.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(191): Weathers[n].Hour.Min = 1.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(371): Weathers[n].Hour.Min = 2.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(551): Weathers[n].Hour.Min = 3.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(731): Weathers[n].Hour.Min = 4.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(911): Weathers[n].Hour.Min = 5.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Special.c(7): Weathers[n].Hour.Min = 0.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Special.c(157): Weathers[n].Hour.Min = 0.00000;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(9): Weathers[n].Hour.Max = 11.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(200): Weathers[n].Hour.Max = 12.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(385): Weathers[n].Hour.Max = 13.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(571): Weathers[n].Hour.Max = 14.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(757): Weathers[n].Hour.Max = 15.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(941): Weathers[n].Hour.Max = 16.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(1125): Weathers[n].Hour.Max = 17.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Day.c(1308): Weathers[n].Hour.Max = 18.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(8): Weathers[n].Hour.Max = 9.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(196): Weathers[n].Hour.Max = 17.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(385): Weathers[n].Hour.Max = 21.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(580): Weathers[n].Hour.Max = 5.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(775): Weathers[n].Hour.Max = 9.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(970): Weathers[n].Hour.Max = 17.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(1166): Weathers[n].Hour.Max = 21.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\DayStorm.c(1362): Weathers[n].Hour.Max = 5.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(8): Weathers[n].Hour.Max = 19.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(194): Weathers[n].Hour.Max = 20.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(378): Weathers[n].Hour.Max = 21.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(563): Weathers[n].Hour.Max = 22.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Evening.c(749): Weathers[n].Hour.Max = 23.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(9): Weathers[n].Hour.Max = 6.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(195): Weathers[n].Hour.Max = 7.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(381): Weathers[n].Hour.Max = 8.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(565): Weathers[n].Hour.Max = 9.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Morning.c(749): Weathers[n].Hour.Max = 10.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(12): Weathers[n].Hour.Max = 0.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(192): Weathers[n].Hour.Max = 1.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(372): Weathers[n].Hour.Max = 2.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(552): Weathers[n].Hour.Max = 3.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(732): Weathers[n].Hour.Max = 4.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Night.c(912): Weathers[n].Hour.Max = 5.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Special.c(8): Weathers[n].Hour.Max = 23.59999;
E:\Age of Pirates 2 - Test\Age of Pirates 2\program\weather\init\Special.c(158): Weathers[n].Hour.Max = 23.59999;
@Jan Marten: Are there any large differences in the PROGRAM and RESOURCE\INI code between the original German and English versions of CoAS?
The only differences should be related to language and translation, right?
Maybe you would consider making all corrections to your own game and uploading the files themselves?
That way people are certain to get the correct versions.
In the German version it is running. The weather changes going after to the eye almost not visible in front to himself.I also think that uploading the modified files as one patch would make things easier. I didn't do the changes for other files, sorry Jan, I thought that I was supposed to change Day.c. Now that you added more changes, I think it will work.
Jan, thank you very much for your contribution on improving original COAS! Danke schöne!I hope that I'm not the only one on this forum who has been able to use the benefits of your work.
Cheers!