I ran across something while checking out a ship that I'd captured. Have a look at the following numbers from ships_init.c
I noticed that it took a very long time to load the guns, especially with minimum crew. It's obvious when you look at the ship stats why this happens.
Here's how cannon reload time is calculated:
First, it requires 1% of your ship's HP in crew to sail the ship. In this case, 57 crewmen (rounded down).
Second, it requires 10 crewmen for each gun. This is calculated by dividing the cannon weight by 2, or by 6 for carronades, then the number is limited to no more than 10.
We figure half the guns are being loaded at one time. That's 30 guns times 10 crewmen... a reload requires 300 crew plus 57 more to sail the ship. If you have less then 357 crewmen on board your guns will reload slower. With only 30 crewmen it takes over 10 times as long to load.
A good rule of thumb for max crew is 10 crewmen for each gun the ship carries, or in this case a max crew of 600. Minimum crew would be 20% of that, or 120. There are a lot of places in the code that assume max crew is 5 times min crew, but it doesn't have to be exact. With 120 crewmen it would still take 3 times as long to load the guns. A 60 gun ship might carry more than 600 max crew, but certainly no fewer.
A ship that carries smaller guns needs fewer crew. A ship with 20*9 pounders would only need about 90 crew. That same ship with 12 pounders would need 120.
I hope this information helps.
Hook
Code:
// Wappen von Hamburg by Yo Ho Ho
refShip.Name = "ConvoiShip1";
refShip.SName = "TwoDecker1_47";
refShip.Cannon = CANNON_TYPE_CANNON_LBS24;
refShip.MaxCaliber = 32;
refShip.CannonsQuantity = 60;
refShip.MaxCrew = 300;
refShip.MinCrew = 30;
refShip.HP = 5750;
I noticed that it took a very long time to load the guns, especially with minimum crew. It's obvious when you look at the ship stats why this happens.
Here's how cannon reload time is calculated:
First, it requires 1% of your ship's HP in crew to sail the ship. In this case, 57 crewmen (rounded down).
Second, it requires 10 crewmen for each gun. This is calculated by dividing the cannon weight by 2, or by 6 for carronades, then the number is limited to no more than 10.
We figure half the guns are being loaded at one time. That's 30 guns times 10 crewmen... a reload requires 300 crew plus 57 more to sail the ship. If you have less then 357 crewmen on board your guns will reload slower. With only 30 crewmen it takes over 10 times as long to load.
A good rule of thumb for max crew is 10 crewmen for each gun the ship carries, or in this case a max crew of 600. Minimum crew would be 20% of that, or 120. There are a lot of places in the code that assume max crew is 5 times min crew, but it doesn't have to be exact. With 120 crewmen it would still take 3 times as long to load the guns. A 60 gun ship might carry more than 600 max crew, but certainly no fewer.
A ship that carries smaller guns needs fewer crew. A ship with 20*9 pounders would only need about 90 crew. That same ship with 12 pounders would need 120.
I hope this information helps.
Hook