Runtime modification of data
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 1
- Joined: Thu, 17. Apr 25, 01:11
Runtime modification of data
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?
-
- EGOSOFT
- Posts: 54262
- Joined: Tue, 29. Apr 03, 00:56
Re: Runtime modification of data
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.