Command Line
The Command Line allows you to enter certain commands to trigger debug functionality. This can be particularly helpful for scripters.
Accessing the Command Line
[ external image ]
The Debug Bar is not accessible by default. Just like the DebugLog, you have to assign a hotkey to it first. You can do that in the options menu:
Settings -> Controls -> Space -> Command Line
When a key is mapped, press it while no menu is open. A transparent bar and a blinking cursor will show up. You can enter a command and confirm it with Enter, or cancel the input with Esc.
Command: refreshmd
This reloads all MD files and applies the changes to the currently running game. This is similar to what happens when you save and reload the game, it's just much quicker. However, <patch> elements are ignored, they are only valid when loading a saved game.
For more information on the refresh mechanism, see the MD documentation.
Command: refreshai
(New in v3.0 Beta)
This reloads all AI scripts and applies the changes to the currently running game. For this to work, the AI scripts on disk must be fully compatible with the currently loaded AI scripts. In case of incompatibility issues in any AI script file, the operation is aborted with an error in the debug log. (This also means that decreasing a previously increased version number is not allowed until the end of your game session, even if your script might be compatible with all your savegames.)
<patch> actions for newer script versions will be performed.
For more information on AI script compatibility rules, see X Rebirth Tools.
Command: aicompat check
This checks all currently loaded AI scripts for whether they are compatible with the previously released game version. If there are compatibility issues, error messages will be created. They can be viewed in the DebugLog.
The basic rule for adjusting AI scripts is that newly added blocking actions have to be marked with a sinceversion attribute. Existing blocking actions cannot be removed, and the order of existing blocking actions within a file cannot be changed (otherwise you can run into problems when loading an older savegame).
The compatibility check is done by comparing the AI scripts to libraries/aicompat.xml. If there are no errors then all is well and the scripts are compatible.
Command: aicompat save
This command creates a new aicompat.xml file based on the currently loaded AI scripts. This can be used when releasing new AI script versions, and you intend to make further script changes in future updates. You should check your AI scripts against the latest version of aicompat.xml. The new file is saved in your personal folder.
Command: aicompat pcheck
This performs the same AI script compatibility check, but loads the compatibility file from your personal folder instead of the game folder (for example the one that was saved with "aicompat save").
Command: reloadui
This command reloads the userinterface (including loading UI addons from disk).
Command: lua [luascript]
This executes the given lua command in the detail monitor Lua environment.
[XR Tools] Command Line - Updated 2014-11-10
The place to discuss scripting and game modifications for X Rebirth.
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
Return to “X Rebirth - Scripts and Modding”
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- ↳ X4: Foundations - Public Beta Feedback
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting