地球不屈 Terra Invicta

地球不屈 Terra Invicta

83 个评价
人口增长重做
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.718 MB
2023 年 5 月 29 日 下午 3:12
5 月 23 日 上午 11:28
7 项改动说明 ( 查看 )

订阅以下载
人口增长重做

描述
原版中,国家教育会对人口增长有负面影响,在11教育左右达到最大的-4.49%。
本模组将减益上限调整至8教育,最大-3.36%左右。
如果你发现后期世界国家的人口都在下降,这个模组能有效解决该问题。

需要Unity Mod Manager

!!! 本模组适配测试版游戏,目前在正式版游戏启用的话会导致闪退,等当前测试版更新至正式版时应该会解决。

切换测试版:右击游戏-属性-测试,从下拉菜单选取validation-release.
热门讨论 查看全部(1)
2
2024 年 2 月 11 日 下午 4:42
Crash on new game unpause
Brahkam
57 条留言
Eiliya 8 月 25 日 上午 6:26 
感谢更新🫡
Cardinal_Z  [作者] 5 月 23 日 下午 12:04 
Updated.
Cardinal_Z  [作者] 5 月 22 日 下午 6:04 
Ok I'm back, will update this soon.

The equation was moved to the getter a long time ago, I didn't know how to use harmony on getter back then :P
Taytoh 5 月 18 日 上午 10:54 
@Blue could you try uploading it again or could ya send that file my way? I'd really appreciate it as im trying to start a new game to see the update stuff without dealing with negative pop growth modifiers. If you're willing, just shoot me a friend request. Thanks!
Blue 4 月 12 日 上午 6:29 
I made a version running on 0.4.78, but I can't upload it, no idea why.
@Cardinal_Z if your want my code, I'd be happy to give it to you.
Blue 4 月 12 日 上午 3:58 
public double get_annualPopulationGrowth()
{
double num = 4.49788037409348;
return Mathd.Max(Mathd.Clamp(num + Mathd.Max(-num, -0.418190741 * (double)this.nation.education) + -0.0624798523403752 * (double)this.nation.cohesion + 9.80843732089162E-06 * (double)Mathf.Min(180000f, this.nation.perCapitaGDP) + -0.115739931206548 * (double)Mathf.Sqrt(Mathf.Abs(this.latitude)) + (double)((this.annualPopGrowthModifier + this.nation.template.popGrowthModifier) * Mathf.Max(0f, (25f - TITimeState.CampaignDuration_years_Exact()) / 25f)) - (double)(this.xenoforming.xenoformingLevel / 200f) - (double)(this.nuclearDetonations * 4), -10.0, 10.0) - (double)(Math.Max(0f, Mathf.Abs(GameStateManager.GlobalValues().temperatureAnomaly_C) - 8f) * ((this.template.environment == EnvironmentType.Beneficiary) ? 0.5f : ((this.template.environment == EnvironmentType.Vulnerable) ? 2f : 1f))), -100.0) * 0.01;
}
Blue 4 月 12 日 上午 3:58 
moved to getter function in TIRegionstate.annualPopulationGrowth variable
also some stuff was added to the equation
explodoboy 3 月 13 日 下午 5:33 
Some more info for whenever the experimental changes come into effect:

The equation where the pop growth modifier is calculated has been moved to a variable with a getter function. The part where the Education modifier is calculated is done in a Mathd.Max(). You should be able to set the desired maximum by reducing the first parameter's value from:

[0 - 4.49788037409348]

to something else.
Cardinal_Z  [作者] 3 月 13 日 下午 4:35 
Thanks for the log! will look into it.
explodoboy 3 月 13 日 下午 1:18 
This appears to cause a crash on the latest experimental version. Be aware if any of you intend on using this on the betas.

---

For the mod author. It appears that ModifyGDP() has been renamed, removed, or its parameters changed:

MissingMethodException: void PavonisInteractive.TerraInvicta.TINationState.ModifyGDP(double)
at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.PavonisInteractive.TerraInvicta.TIRegionState.GrowPopulationByMonth_Patch1(PavonisInteractive.TerraInvicta.TIRegionState)
at PavonisInteractive.TerraInvicta.TINationState.MonthlyNationUpdate (System.Single eyes) [0x00261] in <fc64ee07b6424672ad1bcb59c1f0c3e5>:0
at