From Medieval Kingdoms to Industrial Powers: How AI Handles Two Technological Eras in Living Planet Ai simulation — TPECKA180 (ТРЕСКА180) Independent developer TPECKA180 built Living Planet AI Simulation, a project in which local language models autonomously manage civilizations that must independently research and pay for an Era I to Era II transition (50,000 money, 15,000 science, 4,000 matter plus five prerequisite technologies). The industrial era expands the resource catalog from 6 to 31, technologies from 25 to 58, and adds interdependent production chains, electricity and workforce allocation, forcing the model to distinguish nominal from actual production; a factory_policy action lets the AI reprioritize or shut down industrial buildings. I'm TPECKA180 ТРЕСКА180 , an independent developer working on Living Planet AI Simulation, a project where autonomous civilizations are controlled by local language models. One of the more complicated parts of this project is the transition between technological eras. I didn't want industrialization to simply unlock better buildings and stronger military units. I wanted it to change the actual problem the AI has to solve. Managing a small agricultural civilization is very different from managing an industrial economy with limited workers, energy shortages, production chains and financial obligations. Civilizations start with six basic resources: The first era contains 25 technologies and seven basic building types. The model has to expand its territory, feed its population, research technologies, construct buildings and maintain an army. There are already plenty of opportunities to make mistakes. A civilization can spend too much money on construction, neglect food production or recruit an army it can't afford to maintain. However, the economic dependencies are relatively straightforward compared to the industrial era. There is no global technological transition in Living Planet. Each civilization has to research industrialization independently. The transition requires five prerequisite technologies and a substantial investment: | Resource | Required amount | |---|---| | Money | 50,000 | | Science | 15,000 | | Matter | 4,000 | The prerequisite technologies are universities, engineering, steelworks, banking and aether forging. A neighboring civilization entering Era II doesn't automatically unlock anything for the others. This allows technologically different societies to coexist in the same simulated world. Even civilizations using the same underlying language model can develop at different rates because they receive separate contexts and experience different economic and political situations. Here's how the two eras compare: | Mechanic | Era I | Era II | |---|---|---| | Resources | 6 | 31 in the complete catalog | | Technologies | 25 | 58 in total | | Buildings | 7 basic types | 45 additional modern types | | Military units | Basic formations | 8 modern types | | Nominal unit strength | 1–10 | 120–420 for modern units | | Labor allocation | Basic population requirements | Industrial workforce allocation | | Production | Mostly direct | Interdependent production chains | | Electricity | Not required | Industrial dependency | | Housing | Basic settlement | Specialized residential buildings | The difficulty isn't just the larger number of available options. An industrial economy introduces dependencies between those options. Building another factory may increase potential production, but only if enough workers, electricity and input materials are available. A factory that can't obtain its required inputs doesn't produce useful output just because it exists on the map. That distinction matters a lot when the decision-maker is a language model. A simplified industrial production chain might look like this: Water and fuel extraction | v Energy production | v Steel and concrete | v Chemicals and agricultural production | v Machinery, electronics and research | v Advanced industry The actual system contains multiple dependencies rather than one simple linear chain. A shortage in one part of the economy can affect several other industries. The model needs to understand the difference between nominal production and actual production. For example, building three factories doesn't mean that all three will operate at full capacity. They might compete for the same workers or consume materials needed by another industry. Living Planet allows the AI to change factory priorities and disable industrial buildings through the factory policy action. Sometimes shutting down a factory is a better decision than building another one. Normally, 55% of the population is available as workers. A mobilization policy can increase that proportion to 70%. Workers cannot be assigned to multiple factories simultaneously. Housing introduces another constraint: | Housing type | Capacity | |---|---| | Regular safe land tile | 20 | | Residential block | 200 | | Skyscraper | 500 | These capacities are part of the simulation's rules. Increasing population without expanding infrastructure can create overcrowding, resource shortages and additional economic pressure. The model also needs to account for the difference between population growth and sustainable population growth. Having more citizens isn't particularly useful if the economy can't feed them or provide the resources they need. After entering Era II, civilizations have a five-day grace period to establish their water supply. Industrialization doesn't automatically provide a complete stockpile of modern resources. A civilization that enters the industrial era without sufficient preparation may struggle to maintain its economy. Water shortages, insufficient electricity, food deficits, overcrowding and unpaid expenses can contribute to dissatisfaction, debt and population losses. There is also a borrowing mechanic. Government loans carry a daily interest rate of 2%, and borrowing doesn't remove the obligation to repay the debt. A model that treats credit as free money can create problems for itself later. I find this aspect particularly interesting because technological progress doesn't guarantee economic success. A civilization can become more advanced and less stable at the same time. Modern military formations have nominal strength values ranging from 120 to 420, compared to 1–10 for basic units. But modern units require considerably more infrastructure. Recruitment requires resources, equipment, money and personnel. Maintaining those formations introduces ongoing consumption of fuel, food, money and military supplies. Military personnel are removed from the civilian workforce, reducing the number of people available for industrial production. Supply shortages can reduce effective military strength to as little as 25% of its nominal value. A model cannot evaluate an army solely by looking at its total strength. It also needs to consider whether the economy can keep that army operational. The simulation currently uses local GGUF models through an integrated llama.cpp runtime. Each civilization receives its own context containing information such as: The model returns a structured JSON response containing its plans, assessments and executable actions. The simulation supports 55 action types across its mechanics, with a maximum of 12 prepared actions per civilization's daily decision. The engine validates those actions before applying them. If the model says that it wants to construct a factory, that statement alone doesn't create one. It has to select a valid action and satisfy the actual requirements. The engine is responsible for enforcing the rules. The model is responsible for choosing a strategy. My development PC has an RTX 3060 with 12 GB of VRAM and 16 GB of RAM. Running local models under these hardware constraints means that context management is a practical problem, not just an architectural preference. As civilizations develop, their histories become longer. They accumulate diplomatic correspondence, strategic plans, economic records and previous decisions. Simply passing everything back to the model indefinitely isn't a sustainable solution. Living Planet 8.5.4 keeps the most recent ten in-game days detailed while summarizing older thoughts, correspondence and events during context preparation. The original history remains in the save files. Context compression doesn't rewrite the world's actual history. Current operational information, including construction options, resources, military units and economic requirements, needs to remain available to the decision-maker. Removing old diplomatic correspondence is one thing. Removing the information needed to understand why a power plant isn't working is another. I don't want the simulation engine to solve every strategic problem for the AI. A civilization making a bad economic decision is a potentially interesting event. A civilization receiving free resources because the model generated an invalid command is a software bug. Those are two very different things. The goal is to create an environment where different models, or different contexts using the same model, can produce different approaches to industrialization. Some civilizations may develop sustainable economies. Others may overinvest in military production, expand too quickly or accumulate debt. These are possible outcomes of the simulation rather than guaranteed behaviors. At the moment, feedback from previous decisions is stored in memory and provided through context. It doesn't modify model weights. Actual learning from previous simulations remains one of my goals for Living Planet 9.0. For now, the challenge is building a world complicated enough to make AI decisions meaningful while keeping it practical to run on consumer hardware. Living Planet is free, and I intend to keep it that way. Project website: https://tpecka180.github.io/living-planet/en/ https://tpecka180.github.io/living-planet/en/ Source code: https://github.com/TPECKA180/living-planet https://github.com/TPECKA180/living-planet Technical documentation: https://github.com/TPECKA180/living-planet/blob/main/docs/GAME GUIDE.md https://github.com/TPECKA180/living-planet/blob/main/docs/GAME GUIDE.md Original project created by TPECKA180 ТРЕСКА180 .