Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>X4 Forge StudioNew to Visual Studio Code? Get it now.
X4 Forge Studio

X4 Forge Studio

X4 Forge Studio

| (0) | Free
X4: Foundations modding studio for visual Mission Director graphs, native X4-aware XML editing, deterministic validation, safe patches, and guarded package and deploy workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

X4 Forge Studio

Build serious X4: Foundations mods in one local, X4-aware workspace.

X4 Forge is a visual modding studio and VS Code-compatible extension for the full path from authoring to evidence. It connects a navigable Mission Director graph with native XML editing, X4 corpus and XSD intelligence, deterministic whole-project diagnostics, safe patching, and guarded package and deploy workflows.

The result is fewer silent reference and selector failures, faster iteration, and a clear record of what Forge checked before changes reach the game.

Start here: install X4 Forge Studio from Open VSX, then run X4 Forge: Open Studio from your editor's Command Palette.

One workflow, from idea to in-game evidence

  1. Configure your X4 installation, reference/schema data, mod workspace, and deployment path.
  2. Author visually in the Mission Director graph, edit the native XML directly, or combine both. Existing files stay visible and editable; the graph remains tied to its source.
  3. Validate the complete project while you work. Inspect findings, their Why/provenance, and the proposed next action instead of debugging only the file currently open.
  4. Prepare a package, inspect the generated artifacts, and preview deployment effects.
  5. Deploy through guarded writes with verified backups and recovery protection.
  6. Run X4 and bring runtime evidence back to the source. X4 remains the final authority.

Shipped capability pillars

Author visually or source-first

  • Turn Mission Director cues, events, conditions, actions, branches, loops, signals, and sub-cues into a navigable graph.
  • Inspect and edit the real XML at any point. Forge supports both graph-first and native, source-first workflows; it does not hide or remove the generated source.
  • Import existing extensions as complete graph lanes, while preserving unsupported or extension-defined elements as localized raw XML at their original position.
  • Keep related X4 domains together, including AI scripts, wares and jobs, translations, patches, HUD and Lua UI work, package metadata, and data-only extensions.

Edit against X4's real reference data

Point Forge at the game installation or configured unpacked reference corpus and it can provide:

  • XSD-aware completion for legal elements, attributes, enums, and typed script-expression chains.
  • Canonical faction, ware, sector, macro, job, and AI-script suggestions.
  • Hover documentation, types, provenance, near-match suggestions, and native IDE diagnostics.
  • Cross-file references grounded in effective base-game, DLC, and extension layers.

Validate the whole project deterministically

Forge checks more than whether one XML file parses. Its deterministic checks cover XML and XSD validity, X4 identifiers and references, script properties and expressions, cue lineage, MD-to-Lua events and payloads, package completeness, patch simulation, and installed-extension dependencies and overrides.

Open Why on a finding to see the rule, evidence, likely impact, and bounded next action. Validation can also compare the current result with the last accepted green baseline, so new warnings are distinguishable from existing debt.

Make patches and bulk changes inspectable

The XML Patching workbench targets real base-game, DLC, and extension files. Preview the effective document before and after a change, validate selectors, simulate every emitted operation, and keep the base file, candidate, revision, and generated patch aligned.

Bounded numeric bulk transforms can preview several changes together and apply the complete, validated set atomically. Stale plans, traversal, ambiguous matches, invalid selectors, conflicts, and partial bundles are refused instead of being turned into silent edits.

Find conflicts and prepare safer releases

Extension Doctor scans installed extensions for duplicate IDs, missing dependencies, override claims, selector and file conflicts, and load-order winners. It distinguishes softer curated or heuristic third-party findings from schema-backed validation.

For releases, Forge can validate a disk-backed project, reopen generated artifacts, preserve independent hashes, and prepare:

  • An install-root ZIP for Nexus Mods.
  • Steam Workshop staging with CAT/DAT output, metadata and preview checks, a rollback archive, and the exact WorkshopTool handoff.

Forge does not upload releases, accept legal prompts, or press Enter for you. The irreversible step stays visible and under your control.

The trust boundary

Forge is strong at making static structure, references, package contents, patch effects, and deployment state inspectable. That is not the same as proving gameplay intent. Schema-valid code can still behave incorrectly in X4; a cue may not fire, a menu may not open, or a mechanic may not produce the result you intended.

Run the mod in X4 and inspect its runtime evidence. The game is the final authority, while Forge helps connect that evidence back to the source, validation baseline, and deployment that produced it.

Who it is for

  • New modders: use the visual graph and Studio workflow while keeping the generated source available for learning and review.
  • Existing mod authors: open a real extension, work directly in native XML or combine source edits with graph navigation, then validate the whole project before deployment.
  • Power users and release maintainers: use patch simulation, bulk transforms, Extension Doctor, package preparation, deployment previews, recovery, and proof artifacts as one repeatable loop.

Optional integrations

Multiple workspaces have server-owned identities, so validation, history, packaging, recovery, and agent keys stay attached to the correct project. The extension can open a mod folder in the IDE, create scoped agent keys, copy MCP configuration, refresh an agent brief, and generate a proof artifact. These integrations are secondary to the Studio's own deterministic checks.

The optional AI Guide is off by default. If enabled, it uses providers and keys you configure to propose project work; proposals remain visible, require explicit confirmation before apply, and are still judged by deterministic Forge validation. Provider use can send requests over the network and consume the budget configured for that provider.

Start in three steps

  1. Install X4 Forge Studio from Open VSX in VS Code, Antigravity, or another compatible editor.
  2. Open a trusted workspace, run X4 Forge: Open Studio, and configure the X4 installation, workspace, and reference/schema paths.
  3. Create or load a mod, author in the graph or native editor, validate before the first package or deploy, then test the result in X4.

Requirements, privacy, and limits

  • Windows is the primary supported environment because X4 and the current deployment workflow are Windows-focused.
  • Install Node.js. The extension runs the Forge engine locally and uses a real Node installation for its sidecar.
  • Have X4: Foundations installed when you need game-backed reference data or deployment. Forge is a development tool; it does not supply X4.
  • Use a trusted workspace. Forge compiles projects, writes local files, and can deploy into the game installation, so it stays disabled in untrusted workspaces.

The Forge backend runs on your machine over a protected local connection. Projects, game files, validation data, credentials, and generated artifacts remain local during local workflows. The optional AI path is different: requests go to the provider you configure and use your keys.

Forge is not an in-game replacement, an automatic release uploader, or an asset-modelling suite. Static validation reduces avoidable failures; it does not replace running X4 and checking the behaviour you intended.

Support

For installation problems, reproducible validation failures, or feature requests, open an issue on GitHub with your editor, operating system, and the smallest project or diagnostic that reproduces the problem.

Licensed under MIT.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft