Campaign progression: design and roadmap

オープン
#22,600 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 9 日以内に返信

@penev92 がすでに取り組んでいます。

2026年9月17日 から。

評価

この issue はまだ評価されていません。

説明

Feature Meta

This writes down the design @pchote and I converged on so campaign progression finally has a canonical plan and future work doesn't restart from scratch. The UI side remains specced by #17067. This issue covers the data/flow architecture and tracks the implementation milestones.
Related (and possibly superseded): #14238, #4492, #7213, #21698.

Agreed design

Two strictly separate data concerns:

  1. Campaign definitions — campaign metadata in YAML (initially just a list in mod.yaml?), a per-campaign Lua script that drives progression, and the missions themselves.
  2. Player playthrough progress — everything a playthrough produces: completion/unlock flags, difficulty, completion time, score, later statistics and achievements. Stored per campaign in the support dir. One playthrough per campaign — no multi-playthrough support; replaying arbitrary unlocked missions stays in the existing mission browser.

Progression is driven by Lua, not by the engine:

  • No progression rules in YAML, no C# campaign manager. The engine provides primitives; campaign scripts compose them.
  • Missions record their outcome to the store on victory/defeat (they may also store/load arbitrary data during gameplay). The campaign's shared Lua script computes the currently available missions from stored state — arbitrary conditions allowed. Linear campaigns can simply chain to the next map.
  • Cross-campaign reads are supported (C&C3-style: finish GDI + Nod → unlock Scrin).

UI flow (start simple, fancy later):

  • The main menu gets a Campaign button; the existing Missions browser stays untouched (later enhanced to show playthrough info).
  • Campaign → campaign browser (first implementation - just a list of names - works for ANY mod, including custom ones; later a fancier TD/D2k/RA2 faction picker can be added) → the selected campaign ID is handed to the shellmap's Lua → intro FMVs → mission-selection screen if there's a choice → the mission launches.
  • The mission-selection screen is a fullscreen panel over the current world (shellmap at campaign start, the just-finished mission mid-campaign) — no dummy maps. Its structure comes from mod widget YAML + logic; Lua supplies the content (available missions, images/animations, clickmap regions, callbacks).
  • Post-victory: the victory-conditions code triggers the score screen and runs a callback when it is dismissed. Requires keeping the script context callable after game end.

Milestones

Small PRs; each milestone lands separately and has its own issue:

  • #22601 — Persistent state store + Campaign Lua API
  • #22602 — Standard progress schema + shared campaign Lua boilerplate
  • #22603 — Mission browser integration
  • #22604 — Post-victory flow
  • #22605 — Campaign browser + Lua-driven mission selection

Backlog (designed for, not scheduled)

Fancy per-mod campaign screens and clickmaps (#17639 has ideas), campaign bundles, achievements/statistics UI, an archive screen, campaign-aware save games, an unlock-all option.

Cross-cutting open questions

  • Co-op/multiplayer campaigns (#20540) are explicitly out of scope for now; the store is local-player data.
主要言語
C#
スター
17.9k
フォーク
3.1k
平均マージ
9日 2時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenRA/OpenRA のほかの issue

OpenRA/OpenRA の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。