MD command list?

The place to discuss scripting and game modifications for X Rebirth.

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

User avatar
Juggernaut93
Posts: 2897
Joined: Sun, 17. Jul 11, 21:03
x4

MD command list?

Post by Juggernaut93 »

Hi, in the old X games there was a file which listed all the possible Mission Director commands (i.e. tags) with their parameters, etc.
Is there something similar for XR, or should I explore the existing MD files to find them on my own?
User avatar
wysiwyg
Posts: 585
Joined: Thu, 26. Feb 04, 00:08
x4

Post by wysiwyg »

If you extract the entire game you get a file called scriptproperties.xml that you can load and search in a browser (firefox seems the only one I can make work).

Also:

Look in /libraries at the *.xsd files - these list all the scripting commands for MD and AI as well as details of type defs etc. common.xsd contains commands iirc

If you use an XML editor you should make it point to these *.xsd files and you should get tool tip documentation and schema auto-complete and error/semantics checking.
User avatar
Juggernaut93
Posts: 2897
Joined: Sun, 17. Jul 11, 21:03
x4

Post by Juggernaut93 »

Excellent! Thank you!
w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans »

There's also a lot of documentation on commands available in:

libraries\common.xsd (for commands for both md and aiscripts),
libraries\md.xsd (commands for md)
and libraries\aiscripts.xsd (commands for aiscripts)

scriptproperties.html is occasionally useful too.

edit: should've read wysiwyg's post after I've had more coffee in me.
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

As a further help I'd recommend using visual studio 2013 community edition for your xml needs. It's free and will give you handy tooltips on commands and tell you if you've used incorrect parameters if you specify the path properly for your extracted XR files. In my case this looks like

Code: Select all

<aiscript name="YAT.mining.ship.collect" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:\temp\rebirth\libraries\aiscripts.xsd" version="5">
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
Juggernaut93
Posts: 2897
Joined: Sun, 17. Jul 11, 21:03
x4

Post by Juggernaut93 »

Thank you all!

@YorrickVander: yeah, I used VS for TC/AP too, very useful ;)
User avatar
Juggernaut93
Posts: 2897
Joined: Sun, 17. Jul 11, 21:03
x4

Post by Juggernaut93 »

Another question: to create a simple menu with a "text area", I have to use UI modding in Lua, right? Or am I missing something?
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

ui modding is in lua yes
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

Return to “X Rebirth - Scripts and Modding”