TNODevs / TNO-Bug-Tracker

Public bug submission tracker and forum for The New Order: Last Days of Europe
29 stars 36 forks source link

Economy system - Huge debts make GDP growth overflow and send state GDP to sky #2563

Open MrStraws114514 opened 1 year ago

MrStraws114514 commented 1 year ago

Operating System

Windows 11

HOI4 version

1.13.3

TNO version

1.5.0b

Do you have other mods in use?

None

Were you using Steam?

No

Which major expansions do you NOT have?

I have all

Files

No response

Describe the bug

If a country is in war and lose lands, its GDP will decrease, but debt will not, this will make Debt-to-GDP fly to a scary number and make state GDP nuked with further, when debt-to-gdp reaches a very high number(Thousands of GDP, impossible for playable countries and human players), GDP debuff from curreny debt level will stop counting, but Deficit is still boosting GDP growth, this will make the states it owns to be rich all of sudden this situation only happens on unplayable countries, playable countries won't have chance to make horror debt like this, they will get fiscal crisis event before that comes this situation is most common in west africa, Kemerovo and Colombia, but in theory, it could happen in all countries with war, including Eastern Europe and Russia

Steps to reproduce / Cause of the issue

here's way to fix(probably)

  1. in TNO_economy_backend_scripted_effects make a var limit for calculate_debt_effect_on_GDP_growth, the max of it is 10 That means, even if a country has a very very high debt ratio, its negative GDP growth multiplier can only be 10 This is to avoid stopping the calculation because it is too high

  2. remake the GDP counting system The current GDP calculation system is to add up the GDP of all controlled states So, it is possible to try change it to: all owned states GDP + all controlled but not owned states GDP Even if a country at war loses land, its GDP-to-growth does not take off because of this, but obviously, this would take some of the authenticity out of the economic system

Expected behaviour

unplayable countries and poor places won't be rich suddenly

Screenshots

No response

Additional information

No response

MrStraws114514 commented 1 year ago

also propose to add a minimum limit for real GDP growth, set it to be -1200% That said, in the worst case GDP can only fall by -100% of GDP per month, which also avoids some spillovers