{"slug": "from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in", "title": "From Medieval Kingdoms to Industrial Powers: How AI Handles Two Technological Eras in Living Planet Ai simulation — TPECKA180 (ТРЕСКА180)", "summary": "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.", "body_md": "I'm TPECKA180 (ТРЕСКА180), an independent developer working on Living Planet AI Simulation, a project where autonomous civilizations are controlled by local language models.\n\nOne of the more complicated parts of this project is the transition between technological eras.\n\nI 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.\n\nManaging a small agricultural civilization is very different from managing an industrial economy with limited workers, energy shortages, production chains and financial obligations.\n\nCivilizations start with six basic resources:\n\nThe first era contains 25 technologies and seven basic building types.\n\nThe model has to expand its territory, feed its population, research technologies, construct buildings and maintain an army.\n\nThere 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.\n\nHowever, the economic dependencies are relatively straightforward compared to the industrial era.\n\nThere is no global technological transition in Living Planet.\n\nEach civilization has to research industrialization independently. The transition requires five prerequisite technologies and a substantial investment:\n\n| Resource | Required amount | \n|---|---|\n| Money | 50,000 | \n| Science | 15,000 | \n| Matter | 4,000 | \n\nThe prerequisite technologies are universities, engineering, steelworks, banking and aether forging.\n\nA neighboring civilization entering Era II doesn't automatically unlock anything for the others.\n\nThis allows technologically different societies to coexist in the same simulated world.\n\nEven civilizations using the same underlying language model can develop at different rates because they receive separate contexts and experience different economic and political situations.\n\nHere's how the two eras compare:\n\n| Mechanic | Era I | Era II | \n|---|---|---|\n| Resources | 6 | 31 in the complete catalog | \n| Technologies | 25 | 58 in total | \n| Buildings | 7 basic types | 45 additional modern types | \n| Military units | Basic formations | 8 modern types | \n| Nominal unit strength | 1–10 | 120–420 for modern units | \n| Labor allocation | Basic population requirements | Industrial workforce allocation | \n| Production | Mostly direct | Interdependent production chains | \n| Electricity | Not required | Industrial dependency | \n| Housing | Basic settlement | Specialized residential buildings | \n\nThe difficulty isn't just the larger number of available options.\n\nAn industrial economy introduces dependencies between those options.\n\nBuilding another factory may increase potential production, but only if enough workers, electricity and input materials are available.\n\nA factory that can't obtain its required inputs doesn't produce useful output just because it exists on the map.\n\nThat distinction matters a lot when the decision-maker is a language model.\n\nA simplified industrial production chain might look like this:\n\n```\nWater and fuel extraction\n          |\n          v\nEnergy production\n          |\n          v\nSteel and concrete\n          |\n          v\nChemicals and agricultural production\n          |\n          v\nMachinery, electronics and research\n          |\n          v\nAdvanced industry\n```\n\nThe actual system contains multiple dependencies rather than one simple linear chain.\n\nA shortage in one part of the economy can affect several other industries.\n\nThe model needs to understand the difference between nominal production and actual production.\n\nFor 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.\n\nLiving Planet allows the AI to change factory priorities and disable industrial buildings through the `factory_policy` action.\n\nSometimes shutting down a factory is a better decision than building another one.\n\nNormally, 55% of the population is available as workers. A mobilization policy can increase that proportion to 70%.\n\nWorkers cannot be assigned to multiple factories simultaneously.\n\nHousing introduces another constraint:\n\n| Housing type | Capacity | \n|---|---|\n| Regular safe land tile | 20 | \n| Residential block | 200 | \n| Skyscraper | 500 | \n\nThese capacities are part of the simulation's rules.\n\nIncreasing population without expanding infrastructure can create overcrowding, resource shortages and additional economic pressure.\n\nThe model also needs to account for the difference between population growth and sustainable population growth.\n\nHaving more citizens isn't particularly useful if the economy can't feed them or provide the resources they need.\n\nAfter entering Era II, civilizations have a five-day grace period to establish their water supply.\n\nIndustrialization doesn't automatically provide a complete stockpile of modern resources.\n\nA civilization that enters the industrial era without sufficient preparation may struggle to maintain its economy.\n\nWater shortages, insufficient electricity, food deficits, overcrowding and unpaid expenses can contribute to dissatisfaction, debt and population losses.\n\nThere 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.\n\nA model that treats credit as free money can create problems for itself later.\n\nI find this aspect particularly interesting because technological progress doesn't guarantee economic success.\n\nA civilization can become more advanced and less stable at the same time.\n\nModern military formations have nominal strength values ranging from 120 to 420, compared to 1–10 for basic units.\n\nBut modern units require considerably more infrastructure.\n\nRecruitment requires resources, equipment, money and personnel. Maintaining those formations introduces ongoing consumption of fuel, food, money and military supplies.\n\nMilitary personnel are removed from the civilian workforce, reducing the number of people available for industrial production.\n\nSupply shortages can reduce effective military strength to as little as 25% of its nominal value.\n\nA model cannot evaluate an army solely by looking at its total strength.\n\nIt also needs to consider whether the economy can keep that army operational.\n\nThe simulation currently uses local GGUF models through an integrated llama.cpp runtime.\n\nEach civilization receives its own context containing information such as:\n\nThe model returns a structured JSON response containing its plans, assessments and executable actions.\n\nThe simulation supports 55 action types across its mechanics, with a maximum of 12 prepared actions per civilization's daily decision.\n\nThe engine validates those actions before applying them.\n\nIf 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.\n\nThe engine is responsible for enforcing the rules. The model is responsible for choosing a strategy.\n\nMy development PC has an RTX 3060 with 12 GB of VRAM and 16 GB of RAM.\n\nRunning local models under these hardware constraints means that context management is a practical problem, not just an architectural preference.\n\nAs civilizations develop, their histories become longer. They accumulate diplomatic correspondence, strategic plans, economic records and previous decisions.\n\nSimply passing everything back to the model indefinitely isn't a sustainable solution.\n\nLiving Planet 8.5.4 keeps the most recent ten in-game days detailed while summarizing older thoughts, correspondence and events during context preparation.\n\nThe original history remains in the save files. Context compression doesn't rewrite the world's actual history.\n\nCurrent operational information, including construction options, resources, military units and economic requirements, needs to remain available to the decision-maker.\n\nRemoving old diplomatic correspondence is one thing. Removing the information needed to understand why a power plant isn't working is another.\n\nI don't want the simulation engine to solve every strategic problem for the AI.\n\nA 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.\n\nThose are two very different things.\n\nThe goal is to create an environment where different models, or different contexts using the same model, can produce different approaches to industrialization.\n\nSome civilizations may develop sustainable economies. Others may overinvest in military production, expand too quickly or accumulate debt.\n\nThese are possible outcomes of the simulation rather than guaranteed behaviors.\n\nAt the moment, feedback from previous decisions is stored in memory and provided through context. It doesn't modify model weights.\n\nActual learning from previous simulations remains one of my goals for Living Planet 9.0.\n\nFor now, the challenge is building a world complicated enough to make AI decisions meaningful while keeping it practical to run on consumer hardware.\n\nLiving Planet is free, and I intend to keep it that way.\n\nProject website:\n\n[https://tpecka180.github.io/living-planet/en/](https://tpecka180.github.io/living-planet/en/)\n\nSource code:\n\n[https://github.com/TPECKA180/living-planet](https://github.com/TPECKA180/living-planet)\n\nTechnical documentation:\n\n[https://github.com/TPECKA180/living-planet/blob/main/docs/GAME_GUIDE.md](https://github.com/TPECKA180/living-planet/blob/main/docs/GAME_GUIDE.md)\n\nOriginal project created by TPECKA180 (ТРЕСКА180).", "url": "https://wpnews.pro/news/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in", "canonical_source": "https://dev.to/tpecka180/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-eras-in-living-planet-2p9m", "published_at": "2026-12-01 17:01:12+00:00", "updated_at": "2026-12-01 17:13:46.076582+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "ai-research"], "entities": ["TPECKA180", "Living Planet AI Simulation"], "also_reported_by": [], "takeaway": "Gating each civilization's era transition behind its own five prerequisite technologies and a 50,000 money / 15,000 science / 4,000 matter cost lets differently developed AI-run societies coexist, and exposing a factory_policy action lets the model shut down or reprioritize factories when workers, e", "recommendation": {"advice": "Give each LLM-run agent its own context and explicit policy actions like factory_policy so it can manage interdependent production chains instead of assuming nominal output equals actual output.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in", "markdown": "https://wpnews.pro/news/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in.md", "text": "https://wpnews.pro/news/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in.txt", "jsonld": "https://wpnews.pro/news/from-medieval-kingdoms-to-industrial-powers-how-ai-handles-two-technological-in.jsonld"}}