Runtime modification of data

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

snacktime
Posts: 1
Joined: Thu, 17. Apr 25, 01:11

Runtime modification of data

Post by snacktime »

How much of what is defined in xml files. What is commonly modified with the xml replace api, can be modified once the game is running? And to what extent? Ie during a game. When loading a save. Or is it a one time thing when the game starts?
CBJ
EGOSOFT
EGOSOFT
Posts: 54262
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Runtime modification of data

Post by CBJ »

Most XML files contain static data such as ware and faction definitions, map and component definitions, and so on. They are each loaded only once per game session, either when you start the session or on demand when they are needed. The savegame contains all the dynamic data, and is similarly only loaded once. There's nothing you can really achieve by editing XML files mid-session.

Return to “X4: Foundations - Scripts and Modding”