Concerning this failed test, I am thinking about trying it again, but this time removing the AI troops XP cheat (just to check if this is the main reason because long peace is bad). Does someone know an easy way to remove it?
Here is code block giving passive xp :
Possible side effect :
If you close passive xp gaining during peace time then factions can stuck at some strength limit and maybe they continue paying tribute to stronger factions for long years or even they have no tribute payment they do not feel they are strong enough and they do not declare war to other kingdoms. Currently in peace time they continue upgrading troops and being stronger so at some point they do not want to continue paying tribute (because they are strong enough) and they declare war to kingdom collecting tribute from them.
Everything is connected.
One possible development area related :
I can stop AI to upgrade their troops beyond tier-x if they are having financial problems.
Actually @Bannerman Man post an idea to clan member micromamangement post. He wanted to limit parties at certain wages. For example he wanted to limit a party in his clan at X daily wage payment with a slider controlling X value. If we have that kind of UI for player we can make AI clans to use this system also. So if a clan is having problems in payments they can limit its clan's expenses at a certain limit. This will save clans to going bankrupt. However I think best way of doing this can be having an option like this : "do not upgrade your troops beyond tier-X" this can suit better than limiting wages. Because 20 x tier-5 payment is equal to 200 x tier-1 payment. And if we limit a party at X payment it can stay with less number of high tier troops.