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

Age of Pirates II ... only for the original version ... from de Zee Roovers « german Team »

a question
Would you at a development of the orginal CoAS version collaborate.
We need it for a new source code.
 
Yes, I would gladly help. Keep in mind that I don't know how to code :/
Anything related to testing and modyfing files with your instructions, I can help.

So you are building a new source code?
 
Yes, I would gladly help. Keep in mind that I don't know how to code :/
Anything related to testing and modyfing files with your instructions, I can help.

So you are building a new source code?

I will also discuss with Pieter. I would like to they have with it.
 
Cool :rofl

You are heroes ..:yes

I'm talking about the scripts ... in the folders program and ini

that is not right, something is missing ... .tx (Examples)

Code:
  Playlogic\Age of Pirates 2\RESOURCE\INI\dialog.ini(23):;texture        = dialog\interface.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\dialog.ini(24):texture        = dialog\dialog.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(4):Texture        = fonts\pc_keyboard.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(92):Texture        = fonts\xbox_buttons.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(140):Texture        = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(312):Texture                = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(484):Texture        = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(656):Texture        = fonts\interface bold numbers.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(687):Texture                = fonts\interface button.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(855):Texture        = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(1027):Texture                = fonts\interface button.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(1199):Texture                = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(1371):Texture        = fonts\interface normal font.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(1543):Texture                = fonts\interface button.tga
Playlogic\Age of Pirates 2\RESOURCE\INI\fonts.ini(1715):Texture                = fonts\interface button.tga

and so it is right

Code:
  E:\Age of Pirates 2\RESOURCE\INI\dialog.ini(23):;texture        = dialog\interface.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\dialog.ini(24):texture        = dialog\dialog.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(4):Texture        = fonts\pc_keyboard.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(92):Texture        = fonts\xbox_buttons.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(140):Texture        = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(312):Texture                = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(484):Texture        = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(656):Texture        = fonts\interface bold numbers.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(687):Texture                = fonts\interface button.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(855):Texture        = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(1027):Texture                = fonts\interface button.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(1199):Texture                = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(1371):Texture        = fonts\interface normal font.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(1543):Texture                = fonts\interface button.tga.tx
  E:\Age of Pirates 2\RESOURCE\INI\fonts.ini(1715):Texture                = fonts\interface button.tga.tx

How to find the game a .tga file, if it a .tga.tx file.
I am not surprised, when they have graphic problems.
Do I need to do it with EACH of the game files? Or the only files that are displayed in these boxes?
 
all done ..
once more ... the last topic

WhrWeather.c

the original Code ...
from line 328 to 332

here are 2 errors in it

Code:
if (GetTime() >= 6.0 && GetTime() < 10.0) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.0 && GetTime() < 18.0) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.0 && GetTime() < 22.0) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.0 && GetTime() <= 23.99) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >= 0 && GetTime() < 6.0) Islands[iCurLocation].QuestlockWeather = "Storm04";

error 1 ... the time is not right ... so it has to look

Code:
if (GetTime() >=   6.00000 && GetTime() <    9.59999) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() <  17.59999) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() <  21.59999) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.00000 && GetTime() <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >=   0.00000 && GetTime() <   5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";

error 2 ... double Defines

Code:
if (GetTime() >=   6.00000 && GetTime() <    9.59999) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() <  17.59999) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() <  21.59999) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.00000 && GetTime() <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >=   0.00000 && GetTime() <   5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";

Interesting is, what is happening, in the game ... as processed ... the game such what
... compare the time of day
So ,we are on the Caribbean Map. We come at 2 o'clock (A.M.) in a storm.
The game was simultaneously 2 Weather take on ... actually the two

Code:
if (GetTime() >= 22.00000 && GetTime() <= 5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
if (GetTime() >=   0.00000 && GetTime() <   5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";

These are the consequences ..
The result is a endless loop. The buffer is not emptied.
..that becomes in the system.log logged as ... Stack Overflow

That's why, must be the last line to be deleted.
... so it looks out
Code:
if (GetTime() >=  6.00000 && GetTime() <   9.59999) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() <  17.59999) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() <  21.59999) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.00000 && GetTime() <=  5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
 
Last edited:
@Jan Marten : I still think that last line should be || as a number cannot be greater than 22 and smaller than 6 at the same time.
 
@Jan Marten : I still think that last line should be || as a number cannot be greater than 22 and smaller than 6 at the same time.
And why a - And function ?

or I understand they wrong :shrug

1 hour = 60 minutes
60 minutes in time
GetTime() >= 0.00000 && GetTime() <= 0.59999)
or
GetTime() >= 4.00000 && GetTime() <= 4.59999)
 
Get Time returns the time in hours as a number between 0.0 and 24.0, right?
And you want it to use Storm 4 if it is earlier than 06:00 OR later than 22:00 , right?
So it must be || instead of && .

If it is earlier than 6.0 then it is not also later than 22.0 at the same time.

Anyway, just trying to help. Feel free to ignore. :cheeky
 
Last edited:
I have tried putting the || as Pieter suggests just to test it, but I get a terminal error message when starting the game...
 
Get Time returns the time in hours as a number between 0.0 and 24.0, right?
And you want it to use Storm 4 if it is earlier than 06:00 OR later than 22:00 , right?
So it must be || instead of && .

If it is earlier than 6.0 then it is not also later than 22.0 at the same time.

Anyway, just trying to help. Feel free to ignore. :cheeky

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

The numerical values of the time is incorrect.
Since I come later thereon back.
 
I just see we but an error.
the last code
Code:
if (GetTime() >=  6.00000 && GetTime() <   9.59999) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() <  17.59999) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() <  21.59999) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.00000 && GetTime() <=  5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";

I build yet a few "equal" functions to.
... the please accept
Code:
if (GetTime() >=  6.00000 && GetTime() <=  9.59999) Islands[iCurLocation].QuestlockWeather = "Storm01";
if (GetTime() >= 10.00000 && GetTime() <= 17.59999) Islands[iCurLocation].QuestlockWeather = "Storm02";
if (GetTime() >= 18.00000 && GetTime() <= 21.59999) Islands[iCurLocation].QuestlockWeather = "Storm03";
if (GetTime() >= 22.00000 && GetTime() <=  5.59999) Islands[iCurLocation].QuestlockWeather = "Storm04";
 
Last edited:
WhrWeather.c

We are not finished yet

... seek this code

Code:
    if(CheckAttribute(pchar, "location"))
    {
        iCurLocation = reload_location_index;
        if(iCurLocation != -1)
        {
            if(CheckAttribute(&locations[iCurLocation], "storm"))
            {
                bWhrStorm = 1;
            }
            if(CheckAttribute(&locations[iCurLocation], "tornado"))
            {
                bWhrTornado = 1;
            }
            //ìàëûé øòîðì â ëîêàöèÿõ
            if(CheckAttribute(&locations[iCurLocation], "alwaysStorm"))
            {
                if (GetTime() >= 6.0 && GetTime() < 10.0) locations[iCurLocation].QuestlockWeather = "Storm01_add";
                if (GetTime() >= 10.0 && GetTime() < 18.0) locations[iCurLocation].QuestlockWeather = "Storm02_add";
                if (GetTime() >= 18.0 && GetTime() < 22.0) locations[iCurLocation].QuestlockWeather = "Storm03_add";
                if (GetTime() >= 22.0 && GetTime() <= 23.99) locations[iCurLocation].QuestlockWeather = "Storm04_add";
                if (GetTime() >= 0 && GetTime() < 6.0) locations[iCurLocation].QuestlockWeather = "Storm04_add";
                if (CheckAttribute(&locations[iCurLocation], "alwaysStorm.WaveHeigh")) locations[iCurLocation].MaxWaveHeigh = 2.5; //óñòàíîâèì óðîâåíü âîäû
            }
            //áîëüøîé øòîðì â ëîêàöèÿõ
            if(CheckAttribute(&locations[iCurLocation], "alwaysStorm_2"))
            {
                if (GetTime() >= 6.0 && GetTime() < 10.0) locations[iCurLocation].QuestlockWeather = "Storm01";
                if (GetTime() >= 10.0 && GetTime() < 18.0) locations[iCurLocation].QuestlockWeather = "Storm02";
                if (GetTime() >= 18.0 && GetTime() < 22.0) locations[iCurLocation].QuestlockWeather = "Storm03";
                if (GetTime() >= 22.0 && GetTime() <= 23.99) locations[iCurLocation].QuestlockWeather = "Storm04";
                if (GetTime() >= 0 && GetTime() < 6.0) locations[iCurLocation].QuestlockWeather = "Storm04";
                if (CheckAttribute(&locations[iCurLocation], "alwaysStorm_2.WaveHeigh")) locations[iCurLocation].MaxWaveHeigh = 40.0; //óñòàíîâèì óðîâåíü âîäû
            }

... so it looks ... watch out for the time ... they must together ... continuously 24 hours yield

Code:
    if(CheckAttribute(pchar, "location"))
    {
        iCurLocation = reload_location_index;
        if(iCurLocation != -1)
        {
            if(CheckAttribute(&locations[iCurLocation], "storm"))
            {
                bWhrStorm = 1;
            }
            if(CheckAttribute(&locations[iCurLocation], "tornado"))
            {
                bWhrTornado = 1;
            }
            //ein kleiner Sturm in den Standorten
            if(CheckAttribute(&locations[iCurLocation], "alwaysStorm"))
            {
                if (GetTime() >=  6.00000 && GetTime() <=  9.59999) locations[iCurLocation].QuestlockWeather = "Storm01_add";
                if (GetTime() >= 10.00000 && GetTime() <= 17.59999) locations[iCurLocation].QuestlockWeather = "Storm02_add";
                if (GetTime() >= 18.00000 && GetTime() <= 21.59999) locations[iCurLocation].QuestlockWeather = "Storm03_add";
                if (GetTime() >= 22.00000 && GetTime() <=  5.59999) locations[iCurLocation].QuestlockWeather = "Storm04_add";
                if (CheckAttribute(&locations[iCurLocation], "alwaysStorm.WaveHeigh")) locations[iCurLocation].MaxWaveHeigh = 2.5; //setzt den Wasserstand
            }
            //ein großer Sturm in den Standorten
            if(CheckAttribute(&locations[iCurLocation], "alwaysStorm_2"))
            {
                if (GetTime() >=  6.0000 && GetTime() <=  9.59999) locations[iCurLocation].QuestlockWeather = "Storm01";
                if (GetTime() >= 10.0000 && GetTime() <= 17.59999) locations[iCurLocation].QuestlockWeather = "Storm02";
                if (GetTime() >= 18.0000 && GetTime() <= 21.59999) locations[iCurLocation].QuestlockWeather = "Storm03";
                if (GetTime() >= 22.0000 && GetTime() <=  5.59999) locations[iCurLocation].QuestlockWeather = "Storm04";
                if (CheckAttribute(&locations[iCurLocation], "alwaysStorm_2.WaveHeigh")) locations[iCurLocation].MaxWaveHeigh = 40.0; //setzt den Wasserstand
            }
 
Last edited:
Back
Top