population growth bug fix

If you liked this item, please rate it up on Steam Workshop page.

Author: TripleHman

Last revision: 25 Jul, 2023 at 08:32 UTC

File size: 171.01 KB

On Steam Workshop

Description:

This mod only change one line in 00_defines.

With this change, no more unreasonable population growth in countries with low SoL. e.g. Qing.

Countries with high SoL will still have reasonable population growth.

People who expect Paradox to fix this bug but turn out they didn’t in yet another version update and hate to edit the file after every disappointing updates, can use this mod.

Taking from this thread.
https://steamcommunity.com/app/529340/discussions/0/3827539750707275619/

Originally posted by san_77227487:

The bug is here, about line 1604:
@improving_slope = @[(birthrate_at_delta_cap-min_birthrate-min_mortality-mortality_at_equilibrium)/(pop_growth_sol_delta_cap-pop_growth_sol_equilibrium)]

According to the comments in context of this location, here:
birthrate_at_delta_cap-min_birthrate-min_mortality-mortality_at_equilibrium

should be:
birthrate_at_delta_cap-min_birthrate + min_mortality-mortality_at_equilibrium
=
(birthrate_at_delta_cap-min_birthrate) – (-min_mortality+mortality_at_equilibrium)
(This expression is easy to understand)

I’m a programmer, trust me, this is a BUG.
This BUG will cause the result value and value adjustment of the birthrate to not meet expectations.

thanks to @san_77227487