Latest Posts

Topic: How many farms to feed one bakery?

hulagutten

Topic Opener
Joined: 2009-07-19, 20:34
Posts: 56
Ranking
Likes to be here
Posted at: 2014-06-15, 20:40

When playing I am always unsure of how many farms I need to feed one bakery. This means that I will always have to check up on how much wheat is on storage and then do some guessing.

To improve my playing, and also to ease development of a better AI, I have started creating a spreadsheet to show how many buildings of one type you need to keep a different building on 100% productivity and while keeping stocks table.

To create the statistics, I started a game without opponents and just built those buildings I needed (to rule out any transportation problems etc.), ensured that I had enough stocks of the goods to keep the buildings on 100% productivity and then recorded how many of each producer buildings were needed to keep stocks of a particular good stable while the a consuming building was also working on 100%.

You can find my initial document here: https://docs.google.com/spreadsheets/d/1OUk-TtpDkQCU52-Hior4LQx_ReB6w_YxejFKjJ5xUT4/edit#gid=0 You are free to correct it or add statistics to it. One example of how to interpret the statistics is that you need 4 farms to feed 1 bakery.


Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-06-15, 22:04

This is something that definitely needs improvement. Especially in later phases of game.

What you suggest would lead to complicated scheme. How many types of production building (in all tribes) exists? I dont like idea to have some table and recalculate everything.

I personally prefer "stock-level" approach, in fact my new AI partially implements this, if amount of particular good on stock are below limit, new building is needed. PROVIDING that current buildings are reasonably used (+60%), otherwise the problem is elsewhere.

But this is complicated by the fact that building can produce more types of output and one ware can be produced in multiple types of buildings.

Still I can imagine something simplified like:

number of farms = number of mines

but it is still bit complicated to implement...


Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2014-06-18, 17:35

I've read somewhere here that there was an idea to make a complete documentation about Widelands. I am thinking about creating it, but it isn't easy and small work.

I'd rather think about 2 numbers (with dependence y=1/x):

  • Time of production of 1 unit
  • Number of units produced in an hour

Then you can easily calucate any needs of your economy face-smile.png


einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-06-18, 20:12

Do you know this: https://wl.widelands.org/encyclopedia/barbarians/buildings/ (a lot of things are clickable)


Top Quote
hulagutten

Topic Opener
Joined: 2009-07-19, 20:34
Posts: 56
Ranking
Likes to be here
Posted at: 2014-06-18, 20:37

Einstein. I first attempted to measure the number of items produced by a building within 20 minutes (using x40 speed) and came to some conclusions, but when I tried to calculate the number of farms needed to feed a bakery, the numbers did not add up. Therefore, I instead created a tiny economy and tested how many farms were needed for the bakery to work at 100% but while also keeping a stable stock of wheat. I do not know why the numbers did not add up...


Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-06-18, 21:12

I think you should get these parameters from the code not by observation.....


Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2014-06-18, 21:13

hulagutten wrote:

Einstein. I first attempted to measure the number of items produced by a building within 20 minutes (using x40 speed) and came to some conclusions, but when I tried to calculate the number of farms needed to feed a bakery, the numbers did not add up. Therefore, I instead created a tiny economy and tested how many farms were needed for the bakery to work at 100% but while also keeping a stable stock of wheat. I do not know why the numbers did not add up...

Yes, there is number of problems connected to transport. But the major number of buildings is possible to calculate face-smile.png

My strategy is to build ExactNumber+1 face-smile.png Then you have more resources, but your production is 100%, even with small transport problems face-smile.png


einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote
king_of_nowhere
Avatar
Joined: 2014-09-15, 17:35
Posts: 1668
Ranking
One Elder of Players
Posted at: 2014-09-20, 14:00

but then you also have the prooblem that farms also feed breweries and maybe other buildings. it becomes more complicated than it's worth imo. i simply prefer to see what resource is missing, and make more of it, and if something is accumulating make more buildings that use it, until i run out of space.


Top Quote