Page 1 of 1

Table of Production

PostPosted: 17 Oct 2012, 15:10
by Bo_
Hi all,

I did some tests about all buildings to see how to make a perfectly balanced town, for this I made a table that shows the production speed of each building. :)
How did I calculate it?
I made each building running for 3 hours. (Except coal mine, gets depleted after 1 hour.)
Then I simply divided the the amount of wares they produced/ consumed by the time they were prudcing/consuming. (So mostly 180.)
It's pretty accurate, the only problem is the time they've spended at the inn, since you don't have an inn next to each building.
For woodcutters it may also not be too accurate since for them it depends mostly on how much you have of them, and on how much space, but I'll look for the optimus later.
For wine I used 9 tiles and for farms 15.

So here you have it:
Image

This can help you calculate how much farms you need for leather, horses and to have the same production for the amount of wooden weapons.
Or how heavy you can have your iron production with x amount of iron mines, how much food you need etc.

So that's pretty much it, good luck with it. :)

Re: Table of Production

PostPosted: 17 Oct 2012, 17:36
by Krom
Here's the table I have measured in KaM Remake for AI balancing:
  Code:
TResourceType = ( rt_Trunk, rt_Stone, rt_Wood, rt_IronOre, rt_GoldOre, rt_Coal, rt_Steel, rt_Gold, rt_Wine, rt_Corn, rt_Bread, rt_Flour, rt_Leather, rt_Sausages, rt_Pig, rt_Skin, rt_Shield, rt_MetalShield, rt_Armor, rt_MetalArmor, rt_Axe, rt_Sword, rt_Pike, rt_Hallebard, rt_Bow, rt_Arbalet, rt_Horse, rt_Fish); //How many of resource gets produced per minute on AVERAGE //Measured on a test map RES_COUNT / TIME ProductionRate: array [WARE_MIN..WARE_MAX] of Single = ( 88/120, 414/120, 390/120, 160/120, 160/120, 155/120, 218/120, 330/120, 120/120, 138/120, 336/120, 162/120, 324/120, 510/120, 84/180, 84/180, 190/120, 155/120, 170/120, 155/120, 200/120, 195/120, 195/120, 195/120, 200/120, 190/120, 69/120, 122/120);
Apart from few small deviations it looks like our test results are very alike :)

P.S. Sorry I didn't had time to present the values better, just copy=pasted the sections from code.

Re: Table of Production

PostPosted: 17 Oct 2012, 17:45
by Bo_
Good, they should be. ;)
Still your table is quite complicated IMO. :D

Re: Table of Production

PostPosted: 17 Oct 2012, 17:49
by The Dark Lord
Interesting. Useful to know that you need 2 armory workshops per tannery for optimal weapon production (and one or two more if you want shields as well). Iron values are a bit of a surprise as well, I thought iron mine and iron smelter would be equally fast or perhaps the iron mine would be faster, but it seems the smelter is spending his time quite efficiently. :)

Re: Table of Production

PostPosted: 17 Oct 2012, 17:50
by Krom
Most of the runs were 2 hours, but Swine required 3hours for better precision.

P.S. AI uses these values to compute how many of something he has producing, then it computes demand and resulting balance, according to which selects what to build :)

Re: Table of Production

PostPosted: 17 Oct 2012, 17:59
by Bo_
I was most surprised by wine, look at how poor the production, butcher is 5 times faster.
I think it's most useful when you want to manage you amount of farms.
So for 2 mills, 5 pigfarms and 1 stable you need:
(2. 1,38 + 5.1,80 + 2,39)1,12 = 12,5 so 13 farms.

Re: Table of Production

PostPosted: 17 Oct 2012, 18:01
by Bo_
Most of the runs were 2 hours, but Swine required 3hours for better precision.

P.S. AI uses these values to compute how many of something he has producing, then it computes demand and resulting balance, according to which selects what to build :)
Yes after 1 hour swine farm and stables had an average consumption of 5/unit.
The question now is, do they need 4 or 5 corn?
You rarely get a game where your swine farms will be running for 3 hours.

Re: Table of Production

PostPosted: 17 Oct 2012, 20:59
by sado1
Interesting. Useful to know that you need 2 armory workshops per tannery for optimal weapon production (and one or two more if you want shields as well). Iron values are a bit of a surprise as well, I thought iron mine and iron smelter would be equally fast or perhaps the iron mine would be faster, but it seems the smelter is spending his time quite efficiently. :)
That's something I (and I think everyone else? or not?) have realised or at least felt subconsciously. I always make 2 armory workshops per tannery (unless too few swines) and have 3 iron mines per 2 iron smelters, or 4 per 3 if enough mines available.

Re: Table of Production

PostPosted: 17 Oct 2012, 21:17
by The Dark Lord
Well same here, but I didn't know it would be exactly x2. And I often build 3 armory workshops because I want shields too. Later I build more swine farms and another tannery, then I have 4-5 armory workshops but by the looks of this I might need 6.

Re: Table of Production

PostPosted: 18 Oct 2012, 05:08
by Krom
These tests were made without taking road network into account. Delivery delays and uneven wares flow will slightly reduce overall output.

Re: Table of Production

PostPosted: 18 Oct 2012, 10:16
by tekK
It's bad that you need so many farms in the Remake. In most Missions you do not have enough space to build 10 farms. I've played TSK Mission 8 with my brother (he was playing KAM first time) and he has thame oppinion that corns runs out too fast. And because of the space required for more farms we couldnt do anything

Re: Table of Production

PostPosted: 18 Oct 2012, 10:30
by Krom
Usually there's enough space for Farms, you just need to plan ahead where to build what, and maybe sometimes wait a little longer before being able to hire "leather" army.

Re: Table of Production

PostPosted: 18 Oct 2012, 15:16
by Bo_
When we're talking about optimal production distance won't make a difference, you just have to be sure you have enough serfs. Unless the distance is so big that it takes longer to transport 1 ware to the building than to produce 5/6 wares.
A factor that slightly matters is distance to the inn and kind of food:
When only surviving on bread they will have to travel to the inn twice as much as when having bread and saussiges. A mill that goes to an inn 75 tiles away with saussiges and bread will produce 10% faster than a mill going to a 75 tiles away inn having only wine. I'll try to find the exact formule since I see it makes a little difference. :D
When only having bread, fish and wine they will also spend 50% longer at the inn because they will eat 3 kinds of food, while they would have as much health when not drinking the wine.