@Levis While testing the new trade winds system I'm getting a lot of errors when I check my error log. Several different ones, not sure if they are relavant to the changes or need to be fixed. Uploading file.
Most seem to be missed qty errors with several different lines.
EDIT: checking another error log from more tests, seems to be lines 1492, 1496, 1500, 1504 in Sea_AI/AIship are giving the following errors: missed attribute qty, and also sometimes no rap data
EDIT2: Looks like something wrong with the code for not having enough crew for the cannons. EDIT I have 667 crew, test ship (royal man of war) is min 203 max 1112. Maybe it is harmless error reports, not sure.
Line 1496-1504 are the last 3 parts below
if( crewratio < minCrewRatio)
{
float canqty = clampf(Bring2Range(0.01, 1.0, 0.01, minCrewRatio, crewratio));
//if(ismch) logit("can qty ratio " + canqty);
curqty = sti(rCharacter.ship.Cannons.Borts.cannonf.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonf.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonb.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonb.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonl.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonl.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonr.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonr.curqty = curqty;
}
Most seem to be missed qty errors with several different lines.
EDIT: checking another error log from more tests, seems to be lines 1492, 1496, 1500, 1504 in Sea_AI/AIship are giving the following errors: missed attribute qty, and also sometimes no rap data
EDIT2: Looks like something wrong with the code for not having enough crew for the cannons. EDIT I have 667 crew, test ship (royal man of war) is min 203 max 1112. Maybe it is harmless error reports, not sure.
Line 1496-1504 are the last 3 parts below
if( crewratio < minCrewRatio)
{
float canqty = clampf(Bring2Range(0.01, 1.0, 0.01, minCrewRatio, crewratio));
//if(ismch) logit("can qty ratio " + canqty);
curqty = sti(rCharacter.ship.Cannons.Borts.cannonf.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonf.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonb.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonb.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonl.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonl.curqty = curqty;
curqty = sti(rCharacter.ship.Cannons.Borts.cannonr.qty);
if(curqty > 0) curqty = iclamp(1, curqty, makeint(canqty * curqty));
rCharacter.ship.Cannons.Borts.cannonr.curqty = curqty;
}