Amineri Posted May 20, 2013 Author Share Posted May 20, 2013 The CalcFunding function doesn't actually update the class variable m_iFunding. The function BeginPaying has: m_iFunding = CalcFunding(); while AddPanic only has: CalcFunding(); The call in AddPanic doesn't actually DO anything that has a permanent result. To get the funding to properly adjust after panic changed (AddPanic is called with a negative value to remove panic), it would have to be changed to: m_iFunding = CalcFunding(); just like in BeginPaying() -------------- Five more bytes would have to be freed up to add the assignment. I'd suggest some a Discarded Continent bonus that was supposed to reduce panic gains: if(iPanic > 0 && (HQ().HasBonus(3))){ if(Roll(50)) { iPanic = Max(1, iPanic / 2); }} Link to comment Share on other sites More sharing options...
FogGene Posted July 29, 2013 Share Posted July 29, 2013 (edited) Thank you very much for all this stuff, Amineri. Edited July 29, 2013 by FogGene Link to comment Share on other sites More sharing options...
HannibaleRex Posted July 29, 2013 Share Posted July 29, 2013 (edited) I just just wondering earlier today if a mod like this was possible, this is an awesome find. Here's what I envision: 1) An overall reduction in funding so that the total maximum of all 16 countries adds up to a nice even 1000 Xcoins. This should keep your income from growing out of hand in the late game.2) New Economy should stay in that ballpark, or even precisely at that level, if possible.3) Countries without satellites provide half funding.4) Probably a reduction of Africa's continental bonus to 20~25%5) Possibly an increase in cost for satellites.6) A sharp drop in funding as panic rises, i.e. 1 = 100%2 = 80%3 = 50%4 = 10%5 = 0% (They're going to drop out before paying anyways, usually) Does that look feasible (and/or reasonable)? The main intent is that you can avoid the almost mandatory satellite rush in the early game without shooting yourself in the foot too much. Satellites should be more of a tool for panic management rather than the entire cornerstone of your economy. Edited July 29, 2013 by Hannibal Rex Link to comment Share on other sites More sharing options...
Amineri Posted July 29, 2013 Author Share Posted July 29, 2013 1) An overall reduction in funding so that the total maximum of all 16 countries adds up to a nice even 1000 Xcoins. This should keep your income from growing out of hand in the late game. Should be easily configurable via the DGC.ini 2) New Economy should stay in that ballpark, or even precisely at that level, if possible. New Economy changes will require some hex changes to the XGWorld.RandomizeFunding function. I haven't looked at this function in much detail, but it looks like more work than value changes. 3) Countries without satellites provide half funding. Configurable via DGC.ini edit with this mod. 4) Probably a reduction of Africa's continental bonus to 20~25% Configurable via the DGC.ini. 5) Possibly an increase in cost for satellites. Configurable via the DGC.ini. 6) A sharp drop in funding as panic rises, i.e. 1 = 100%2 = 80%3 = 50%4 = 10%5 = 0% (They're going to drop out before paying anyways, usually) Currently almost exactly this is implemented via the Second Wave option "Results Driven". To add the changes for this mod I re-coded the formula for Results Driven into something compact (and I think mathematically identical). The (new) formula is : iFunding *= (0.250 * float(5 - iPanic)); iPanic actually ranges from 0 to 4 instead of 1 to 5, so:1 block = 125% of base2 blocks = 100% of base3 blocks = 75% of base4 blocks = 50% of base5 blocks = 25% of base If you hex edited the number 5 to 4, I think this second wave option would perform close to what you desire, although a bit more linearly, dropping from 100% to 0% funding. 2 blocks would be 75% instead of 80%, and 4 blocks would be 25% instead of 10%. Link to comment Share on other sites More sharing options...
wilting Posted December 5, 2013 Share Posted December 5, 2013 Hey Amineri, Any chance of an EW version of this? Thanks Wilt Link to comment Share on other sites More sharing options...
Amineri Posted December 5, 2013 Author Share Posted December 5, 2013 It's definitely on my list of mods to update (I have about 10 or so) after I get some better tools able to handle the game version updates :) Link to comment Share on other sites More sharing options...
wilting Posted December 6, 2013 Share Posted December 6, 2013 Sweet! Link to comment Share on other sites More sharing options...
Recommended Posts