Where are X4: Foundations save files?
X4: Foundations stores its saves in the folder below. The path comes from the game's own Steam Cloud settings, so it matches the Steam version.
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>
Files: inputmap*.xml, uidata.xml, userdata_signed.xml, ventureconfig.xml, colors.xml, inputfeedback.xml, constructionplans.xml, loadouts.xml, userdata.xml
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>\constructionplan
Files: *.xml
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>/constructionplan
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>\loadout
Files: *.xml
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>/loadout
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>\save
Files: *.xml, *.xml.gz
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>/save
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>\customgamestart
Files: *.xml
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>/customgamestart
%USERPROFILE%\Documents\Egosoft\X4\<Steam3 ID>\colorprofile
Files: *.xml
Steam Deck / Linux (Proton)
~/.local/share/Steam/steamapps/compatdata/392160/pfx/drive_c/users/steamuser/Documents/Egosoft/X4/<Steam3 ID>/colorprofile
Paste the Windows path into the File Explorer address bar or the Run box (Win + R): %LOCALAPPDATA% and the other variables open the right folder for your account.
<SteamID64> and <Steam3 ID> stand for a folder named after your Steam account; there is usually just one. <Steam library> is the drive folder where Steam installs games (by default C:\Program Files (x86)\Steam).
Back up your saves before using a trainer
- Close the game completely.
- Open the save folder above.
- Copy the whole folder to another place, for example a "Backups" folder on your desktop, and add the date to its name.
- Start the game, then the trainer. Keep the copy until you are sure your progress is fine.
Restore a backup
- Close the game and turn off Steam Cloud for it if it is on.
- Delete or rename the current save folder.
- Copy your backup back to the same place, with the same folder name.
- Start the game and load the save; turn Steam Cloud back on afterwards.
Source: the game's Steam Cloud configuration (Steam app info), checked 13 Nov 2026.