◈ SETTLEMENT DESIGN JOURNAL

05 / Technical architecture

Godot first. The world outlives the engine.

Begin in Godot 4 on Fedora Linux and macOS. Prioritize functional simulation and simple 3D assets over photorealism. Unreal Engine is a potential later rendering platform, not a prerequisite.

ComponentInitial approach
EngineGodot 4.7, Compatibility renderer In use
LanguageGDScript initially; possible C++, Rust or Python later
CoordinatesMetric region coordinates; every record carries its zone In use
PersistenceVersioned JSON initially (in use; older saves upgrade automatically); SQLite as complexity grows
GraphicsModular low-poly 3D models
Version controlGit / GitHub In use
TestingAutomated headless tests of the simulation (378 checks as of step 19; see the field notes), and rendered screenshots to check what the game looks like
Development hostsMacBook Air (current play machine), Fedora laptop, M1 Mac Mini
Development agentsClaude, Codex and other tools
Persistent world dataTerrain · structures · people · history
↓
Simulation coreClock · rules · events · state changes
↓
Environment
Resources / weather
Economy
Production / exchange
Society
Population / institutions
↓
Godot
Initial 3D gameplay
Web interface
Possible future UI
Unreal
Possible future rendering

Keep world state separate from graphical objects. A building is a data record with a unique ID, construction date, position, condition, materials, occupants, utilities and history. Godot presents that record; a future Unreal implementation could import it. Godot scenes and rendering code do not directly convert into Unreal, so a transition would require substantial adaptation.

Example building record
{
  "id": "building_000001",
  "name": "Original Homestead",
  "type": "residential",
  "construction_year": 1824,
  "position": {"x": 125, "y": 2, "z": 87},
  "materials": ["timber", "stone"],
  "occupancy_capacity": 4,
  "condition": 100,
  "utilities": {"water": "creek", "electricity": false, "sewage": false},
  "history": [{"year": 1824, "event": "constructed"}]
}
Proposed repository structure
settlement-simulator/
├── project.godot
├── scenes/        # world, buildings, characters, environment, UI
├── scripts/       # simulation, construction, resources, population,
│                 # economy, infrastructure, persistence
├── assets/        # models, textures, materials, audio, UI
├── data/          # building types, resources, technologies,
│                 # occupations and simulation rules
├── saves/
├── tests/
├── tools/
└── docs/

Hardware & future rendering

Start on existing hardware. The Fedora laptop supports portable prototyping; the M1 Mac Mini handles Godot and asset creation. Spadra and RackNerd may support source control, backend services or testing; DeliciousPi may provide monitoring. A future Mac Studio with 36 GB or more unified memory could support advanced graphics, Unreal development and local AI inference. Buy only when the project warrants it.

Unreal could introduce realistic terrain, water, vegetation, lighting, architectural assets, world streaming, vehicle and pedestrian rendering and immersive exploration. Retain the option to stay in Godot if it meets the project's needs.

Artificial intelligence

Early behavior should be rule-based, deterministic where practical, inexpensive and testable. Future local models may enrich citizen stories, business decisions, dialogue, historical summaries and policy debates. They should supplement simulation rules, not require thousands of concurrent LLM calls to run a city.