More Economics

Simulating a Planet's Economy from Inception

The prototype economic simulation was seeded with a 'pre-rolled' population and wealth, and aimed to create some kind of stable consistency up or down in growth, given a decent start.   Each planet began with generous conditions - say 3 billion population and 60 billion credits of wealth.

The real aim for the game however is to simulate each planet's evolution from first inception, such as landing just 100 colonists and giving them a measly 1,000,000 credits to eventually (hopefully) build an entire civilisation from.

Under the prototype code, most planets died out very quickly.   Tiny destabilising factors that reduced population would quickly reduce the population to 0 when only starting with 100.   The large costs associated with building and maintaining production infrastructure such as mines and refineries were overwhelming to begin with and easily overpowered small populations.

To cope with this I've added population scaling factors, more stabilising behaviours and have simplified the simulation so that it can be more easily balanced.  To achieve this the simulation now focuses on two main elements - desirability and wealth.

Desirability

Population Growth is now primarily determined by a 'desirability' rating for the planet.  Desirability is made up from tax incentives, per-capita wealth and overcrowding.

As desirability of anything is somewhat ephemeral at best, I've tied the planet's stability rating to the determination of desirability, adding a randomising factor driving population.  As those who write Genetic Algorithms know, a little bit of randomness can help dislodge a population from being stuck in a local peak and help drive them towards finding the global maximum.

Wealth

Wealth is now an accumulating factor, calculated each year from GDP, Production capacity, Labour Force (population), Infrastructure Maintenance Costs and Tax revenue.

This is meant to be a complex system with feedback cycles.  So wealth drives desirability which in turn affects population which subsequently affects the labour force and thus production capacity and wealth.

Results

Here are the results of the next iteration in planetary economics.  Each of these planets start with 100 colonists and 1,000,000 credits.   They still begin with production infrastructure, the plan is for infrastructure to be built on-demand by government policies as the simulation evolves in a future iteration.  These planets are now simulated for 1000 years from inception.


Most of them take a long while before the population (blue line, top image) finally achieves real growth.  But each planet after 1000 years has achieved some manner of stable population and wealth.  Another point of note is the desirability factors in the bottom graphs.   The less stable the planet's government is, the more noise in the desirability rating.   And when a planet grows too much, the negative desirability due to overcrowding (yellow line) can be seen to really dampen down any new immigration.

What Next?

Planets in Pegwars can now be seeded from a small colonising party and grow to become sophisticated, sustainable economies in the space of 1000 years.   Now nobody wants to spend 1000 years playing a game, so how will the economies advance in real-time?

The answer to this is dear to my heart, Einstein's Relativity.  In a game setting of course :)

Relativity states that when an observer moves relative to an object at a speed comparable to that of light, time slows down for the observer relative to those they are moving relative to.   In Pegwars, the commander is the observer, and their ship (when a warp drive is fitted) can move at light-speed velocities.  The pilot moves very fast relative to planets their planets, and thus time ticks by a lot faster on the planets whenever the commander warps around the universe.  So land a colonising party on a planet, take a quick spin around the galaxy and in next to no time, your planet will have experienced 100s or 1000s of years of development!   Just don't worry about those loved-ones you left behind :)

Comments

Popular posts from this blog

Screenshot Progress Update!

Rendering Nebulae

What is PEGWARS?