Project Lifecycle
This section follows a game repository from the first workstation to routine maintenance: prepare a machine, create the repository, work in an editor, keep quality gates green, run continuous integration, change saved data safely, move to a newer Engine revision, and release. Each page owns one task and links to the Engine contract it depends on instead of repeating it.
Source paths inspected
BuildTools/Init.cmakeBuildTools/cmake/ProjectInterface.jsonBuildTools/fonline-tools/package.jsonDocs/en/how-to/build/embedding-project.mdDocs/en/how-to/migration/engine-upgrade.mdExamples/MinimalProject/README.md
Choose where to start
| Situation | Start with |
|---|---|
| A new machine, or a build fails before the first target | Prepare a Workstation for an FOnline Project, then Troubleshoot Project Setup |
| No repository yet | Create an FOnline Game Repository, after the first project tutorial has succeeded once |
| Choosing between AngelScript and Managed C# | Choose a Script Backend |
| Setting up the editor | Set Up a VS Code Workspace for an FOnline Project |
| Deciding where a piece of game data lives | Choose How to Represent Game Data |
| Formatting, analyzers, warnings and baselines | Keep a Game Project Healthy |
| Auditing native code for allocation, pointer and local-variable rules | Audit Native Source Rules in a Game Project |
| Auditing native entity cover and exception-safety levels | Audit Entity Cover and Exception Safety in a Game Project |
| Checking script bindings, handler nullability and AngelScript module hygiene | Check Script Bindings and AngelScript Hygiene |
| Enforcing Managed C# entry-point, invariant and script-static rules | Engine-Contract Analyzers for Managed C# Projects |
| Checking Markdown links and anchors | Check Documentation Links in a Game Project |
| Adding automated checks | Add and Run Tests in a Game Project |
| Writing script-level gameplay tests | Script Test Harness Pattern for AngelScript and Managed C# |
| Running checks on every change | Set Up Continuous Integration for a Game Project |
| A property, prototype, enum value or text key must change | Migrate Saved Data and Content in a Game Project |
| Proving that every renamed or removed identity has a rule | Guard Identity Migrations |
Formatting .fomain, prototype and .fos files |
Format Game Content Files |
| Linting text packs, analyzing movement traces, locating the generated C# project | Text Pack, Move Sync and Managed Project Tools |
| Reading configuration, prototypes and text packs from a project tool | Read Engine Content Formats from Project Tools |
| Moving to a newer Engine revision | Upgrade an Embedding Project |
| Numbering and shipping builds | Version and Release a Game Project |
Generating VERSION, preflighting a release, writing package checksums, recording an Engine update |
Release Tooling for a Game Project |
| Building a gameplay mechanic with Engine primitives | Build Game Mechanics |
| Working with AI coding agents | Maintain a Project with AI Coding Agents |
| Letting an AI agent observe and play a development build | Drive a Game with the AiControl MCP Adapter, and Embed the AiControl Listener in a Game Client for the client side |
The lifecycle at a glance
- Prepare. Install the toolchain and verify it with the Engine-owned host check (workstation setup).
- Create. Add Engine as a pinned submodule, write the root CMake file, presets and main configuration, and reach one green configure, bake and smoke run (create a repository).
- Work. Use the editor integration and a task graph that always configures first (VS Code workspace). An AI agent can observe and play a development build through the Engine’s AiControl MCP adapter.
- Guard. Keep formatting, analysis, tests and generated-file checks in one local aggregate route and mirror it in CI (quality gates, project tests, continuous integration). The Engine ships the checks; the project passes its own scopes, configuration and baselines:
- quality tools: native source audits, entity cover and exception-safety audits, script binding and AngelScript hygiene checks, documentation link checks and the script test harness;
- analyzers: the engine-contract analyzers for Managed C#;
- content tools: content formatting, the text-pack lint, movement-trace analyzer and managed project locator, and the format reader for project tools.
- Change data deliberately. Every persisted identity change carries an explicit migration rule (data migrations), and the migration guard fails a change that drops an identity without one.
- Update the Engine. Record both repositories’ revisions, audit the whole incoming range, apply migration notes oldest first, regenerate, and validate (upgrade guide;
engine_upgrade_report.pydrafts the record, see release tooling). - Release. Produce a unique, machine-written project version and package from one commit (versioning and releases, release tooling, packaging, operations).
Routine maintenance checklist
Run these on a schedule that matches the project’s pace; each item links to the page that explains it.
- Confirm the pinned Engine revision is intentional and note how far behind
masterit is; read the changelog migration sections for the skipped range before moving (upgrade guide). - Run the complete local aggregate route and compare it with what CI runs (quality gates).
- Review baselines and exemption files: every row has a written reason, and stale rows are removed (quality gates).
- Run the native source audits, the entity cover and exception-safety audits, and the script binding and AngelScript hygiene checks on the project scopes; each fails on a stale baseline row, so delete rows whose findings were fixed (native source audits, native safety audits, script checks).
- Run
format-content --checkand the text-pack lint so formatting drift and translation gaps do not accumulate (content formatting, text packs). - Run the migration guard with
--checkagainst the committed identity manifest (migration guard). - Run the documentation link check over the project’s Markdown, including links into the Engine after an update (documentation checks).
- Exercise the data migration tests against an isolated copy of production-shaped data before releasing a change that touches persisted names (data migrations).
- Re-run a clean-clone setup from the documented commands on one Windows and one Linux machine, and fix the documentation when it drifts (workstation setup, create a repository).
- Rotate and verify backups and the recovery procedure (backup and recovery).
- Check that logs and generated output trees are ignored and not committed (runtime log files).
What stays in the game project
The Engine documents mechanisms and patterns. A game repository owns its concrete task names, tool choices, hosting, secrets, release channel policy, balance and content. Name those decisions in project documentation and link to the Engine page for the underlying mechanism, following Embedding FOnline.