Logo Platform
logo amplifiers simplified

Question about Inflation

Reply
Copied to clipboard!
5 years ago
Sep 16, 2019, 2:13:25 AM

I was trying to learn how exactly inflation works in the XML files so I could modify it to a rate closer to my tastes. However, the first thing I tried in order to see if I had the right variable (DustInflationFactor) was to set it to 0 to see if that stopped inflation all together. Even with it set at 0 and starting a new game inflation seemed to continue as per usual. So now I'm confused to whether or not there's another variable or global somewhere overriding that value. For reference the value I modifyied was in the "SimulatorDescriptors[Marketplace].xml" file.


Changed this line:


<Property Name="DustInflationFactor"            BaseValue="0.000175"   MinValue="0"/>  


to 


<Property Name="DustInflationFactor"            BaseValue="0.0"   MinValue="0"/>  


Thoughts?

0Send private message
5 years ago
Sep 16, 2019, 2:57:55 AM

Actually inflation is being calculated separately at two xml files. One is ClassMarketplace and the other is ClassEmpire.


The formula of inflation is slightly different.


ClassEmpire: Inflation = 1 + (Global Dust Production) × (0.002/(Number of Empires))

ClassMarketplace: Inflation = 1 + (Global Dust Production) × 0.000175


Global Dust Production is total sum of net Dust income of every major empire.



So if you change that 0.000175 factor to zero, inflation at marketplace will become 1.

0Send private message
5 years ago
Sep 16, 2019, 3:06:06 AM

Interesting. So does that mean that the Inflation from ClassEmpire is governing things like buyout seperately from the ClassMarketplace inflation which in turn deals only with marketplace variables?


EDIT - (DISREGARD) Also, in which XML file is ClassEmpire located (or the associated variables)? I can't seem to find it.

EDIT2 - I found it.

Updated 5 years ago.
0Send private message
5 years ago
Sep 16, 2019, 3:14:13 AM
CommanderPike wrote:

Interesting. So does that mean that the Inflation from ClassEmpire is governing things like buyout seperately from the ClassMarketplace inflation which in turn deals only with marketplace variables?


EDIT - Also, in which XML file is ClassEmpire located (or the associated variables)? I can't seem to find it.

Correct. As they can't interfere each other, they just calculate the inflation separately and thus use slightly different value.


ClassEmpire can be found at SimulationDescriptors[Empire].xml on Simulation folder.

Updated 5 years ago.
0Send private message
4 years ago
Sep 6, 2020, 3:03:11 PM

Hello,


In the base game files we can, indeed, see that there are : 


* two different properties, named the same `DustInflation`, that are in two different paths

* two different formulas to calculate them in `SimulationDescriptors[MarketPlace].xml` and `SimulatorsDecriptors[Empire].xml`


However, modifying the Empire class one also directly affects the marketplace one.


In the below example i applied, two mutiply modifiers to Empire DustInflation (0.7 then 0.5) and it affects directly, for the same proportion, the marketplace inflation.


To show that i switched empire between mine (with modifiers) and another (without)






Updated 4 years ago.
0Send private message
4 years ago
Sep 6, 2020, 3:17:49 PM

That value on the marketplace would also be empire inflation and won't have any impact on market price calculation.

0Send private message
0Send private message
4 years ago
Sep 9, 2020, 10:26:02 PM

Strange Marketplace class can not be found 

and simulator descriptors on it have no effect.


<Modifier TargetProperty="DustInflation" Operation="Percent" Value="-0.20" Path="../ClassMarketPlace"/>


In addition, once game launched, the F1 menu shows only the Empire class DustInflation property as i does not exist for MarketPlace class




I guess i'am missing something


0Send private message
0Send private message
4 years ago
Sep 10, 2020, 6:30:19 AM

Thanks for the link, i indeed understood a bit more how it works.


However, it also confirms that what i'am trying to achieve is possible (although i'am unsuccessfull now). 


As empire and marketplace classes are at the same level (root or the class hierarchy), they use, each, a specific set of properties.

They each have one named "DustInflation", which is not sealed (so can be modified) and calculated separatly.


Then we should be able to modify them as the following (simple example)


<Modifier TargetProperty="DustInflation" Operation="Percent" Value="-0.20" Path="../ClassEmpire"/>
<Modifier TargetProperty="DustInflation" Operation="Percent" Value="-0.20" Path="../ClassMarketPlace"/>

Only the first line does the expected effect.


The question coming after that is : as there is only one marketplace for all empires, if i achive to modify DustInflation ot ClassMarketPlace, will it modify only for me or for all the empires ?


Thanks

0Send private message
?

Click here to login

Reply
Comment