Population-drven Economy |
I want to create a mod which gives a great importance to the population of the Empire. One of the thing I have to modify is the facilities output, which I want to be based on the population on the planet instead of a fixed amount, but how can I do that?
The standard formula for an Organics Farm Facility, for example, is the following:
Ability 1 Amount 1 Formula := 3000 + (([%Level%] - 1) * 100)
Which produces 3000 + 100 per level of the facility after the first.
I'd like to modify it with something like 300 per 1000 units of population, up to 3000 per facility. With a bonus for higher facility level. (The actual numbers have to be defined...)
Is something like this even possible or I'm just wasting time?
Something simplier would be to just multiply the standard output with the percentage of the population on the planet ( [Current_Population] / [Total_population] )...
Re: Population-drven Economy
where, to what and how did you manish this?
Re: Population-drven Economy
Open up settings.txt - It's the last block of text in that file. Think of how to want population to work and also plot the important data points along the production and SY rate curves you have chosen. Unfortunately, it does not take formulas, so you'll have to input data points. This process is slow and annoying, unfortunately.
It set it up so that SY Rate goes linerally to 100% at 1 billion, and the square root of the population (in billions) thereafter. Production runs at the cubic root the whole way, again, using 1 billion as a the "base". Colonies with small populations will produce more minerals than they manufacture. Conversely, colonies with big populations manufacture more than they produce. Getting a good size population for your empire is important.
Re: Population-drven Economy
Try
http://imagemodserver.mine.nu/other/MM/SE5/Tools/SE4+5PopModifier.zip
By Suicide Junkie creates the entries from a formula then just copy it into the settings.txt
Re: Population-drven Economy
Damn. That could have saved me like, an hour or two. I should really learn to use this pyhton thing I have to create this stuff by script. 
Re: Population-drven Economy
Unfortunatly, this software will only perform the most basic functions. I need it to accept exp entries, or at least accept the long hand version.
The math I'm trying (unsuccessfully) to get it to use is: 500-400*(EXP(-0.000075*[%Pop%])).
The software sees EXP as a variable.
This long hand version: 500-400*((5+(1/[%Pop%]))^(-0.000046*[%Pop%])) causes the software to choke on an exception (probably divide by zero, even though it gives you no zero pop entry on the chart).
So, this software is basically unusable for me.
Edit for typoes.
Re: Population-drven Economy
Then write your own script? Learn a little python and you can do it in 5 minutes...
Re: Population-drven Economy
Is there any way to change Research and Intel output to not use the production value?
Re: Population-drven Economy
Sys_Get_Planet_Population: long
planet_id: long
This function returns the total population on a planet. The planet_id is the ID
of the space object.
This combined with use of the Max population value per planet size would give you the percentage. I am pretty sure it would need to be scripted.
Re: Population-drven Economy
so since it doesn't take formulas then having efficiency as
%planet pop used/%facility space used
with max at 100%, maybe 120% would be impossible then it'd probably want to be linear until 100 then exponentially declining to 120% or an S curve, I can't remeber the maths that makes one, ^3?




Re: Population-drven Economy
You can do this, however you need to edit the last bits in the setting.txt file. You won't be able to edit this in the facilities file. And, unfortunately, there's no formula function available. It took me a good long while to create a custom curve so mineral production ramps up pretty quickly at low pops but is overtaken by production at later pops. This makes heavy pop planets the industry, and new planets the mining colonies.