Discussion:
bug in city/undercity handling for colonist growth?
(too old to reply)
clausimu
2008-04-07 19:56:10 UTC
Permalink
Hello all,

This may be a small thing compared to other bugs - but I would
appreciate it greatly if someone can reproduce my findings... (or
better yet, not reproduce them and tell me where I am wrong! *g*)

I have recently tested the colonist growth rate formulae that are
available on the wiki. I can definitely say that the one posted by KBJ
in the discussions is great, whereas the one on the main article does
not work really well.

HOWEVER, I think I may have seen something that I'm not sure was
intended. If I simulate growth and compare it to actual growth it
looks to me like undercities are not subtracted from cities when
determining the growth loss due to amount of cities. But according to
the wiki they should (a) be filled before cities do and (b) not have
any negative effect on growth.

Example:
=======

Base has:
- 100 cities
- 30 undercities
- 1,000,000 colonists on turn 1 (yes, I know many cities are empty
this way)
- 1,000,000 food (to take it out of the equation)
- happiness always > 95

turn = current turn
colonists = real amount of colonists at this turn
real% = real growth rate as measured (new colonists / colonists / 100)
theor% = theoretical growth rate as calculated according to KBJ

turn colonists real% theor%

2 1208363 11.92 12.19%
3 1352073 11.89 12.19%
4 1512401 11.86 12.19%
5 1691149 11.82 12.19%
6 1890287 11.78 12.19%
7 2111956 11.73 12.19%
8 2358479 11.67 12.19%
9 2632360 11.61 12.19%
10 2936289 11.55 12.19%


NOW - consider the same example but for the theoretical growth rate I
take
out the part where undercities are subtracted from cities first before
adjusting
colonist growth.


turn colonists real% theor%


2 1208363 11.92 11.92%
3 1352073 11.89 11.90%
4 1512401 11.86 11.85%
5 1691149 11.82 11.82%
6 1890287 11.78 11.77%
7 2111956 11.73 11.72%
8 2358479 11.67 11.68%
9 2632360 11.61 11.60%
10 2936289 11.55 11.55%

Please let me know if I am doing something wrong or misunderstood
something. I can also give you many more examples and more information
but I don't want to clutter this little posting too much...

BTW - great work on the host/planets update!!!

Claudius
Magik
2008-04-09 18:12:54 UTC
Permalink
Feel free to send me the TN1 and YG1 files from a sample game and I'll
look them over and we can compare notes.

Rick

Loading...