Contribute
SINGLE PLAYER MODDING

X4: Foundations
Modding Wiki

Ships, UI, scripts and game data.
Practical guides for your mods.

40 guides and walkthroughs796 API entries For regular X4 mods

Create your first XML mod

ONE CHANGE · A CLEAR RESULT
01

Change ship properties

Patch the Elite Vanguard hull value.
From extension structure to verifying the result.

Step by step example

What would you like to change?

API reference

Your first XML patch

Explore the example

Patch one hull attribute without replacing the complete original file.

XML
<diff>
  <replace sel="/macros/macro[@name='ship_arg_s_fighter_02_a_macro']/properties/hull/@max">3600</replace>
</diff>

Learning example The original field was checked against X4 9.00 files; this example was not separately run in game.

Useful foundations

HOW MOD FILES FIT TOGETHER

New to modding? Read how X4 code works and the operators and functions cheat sheet.

Practical guides

FROM SIMPLE TO ADVANCED
A SEPARATE SECTION

Getting started with X4Online code

A guided route through X4FO: the project map, ship rename flow, Python basics and your first task. Network architecture and walkthroughs have their own section.

Start exploring the code

All multiplayer and X4FO articles

↑ ↓ select ↵ open