Mission Director Basics and Installation
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
CBJ, there is the name of the pilot i believe (might have been name of ship)
its one of the things symtec did to get that unloged incomeing question thing of his to do its thing...and it works wonders...with that i can finally consider makeing a menu system for the unreleased advanced features of IFTSOS...before it would have been too anoying what with the log book getting filled....or too command/hotkey intensive - no release date yet...im not even done with the menu let alone the functionality of all the options
its one of the things symtec did to get that unloged incomeing question thing of his to do its thing...and it works wonders...with that i can finally consider makeing a menu system for the unreleased advanced features of IFTSOS...before it would have been too anoying what with the log book getting filled....or too command/hotkey intensive - no release date yet...im not even done with the menu let alone the functionality of all the options
- Tenlar Scarflame
- Posts: 3359
- Joined: Mon, 30. May 05, 04:51
Alright, I'm most likely just thick...
but I've created a "director" folder in my X3 directory, moved the "Helloworld" example out of "samples" and into "director," started a new game and changed my name to "Thereshallbewings." But I have not yet received any sort of "Hello world" message. I also tried the question templates, they won't show either, and neither will the mission I'm writing.
Flog me for being a noob, but what am I missing?
EDIT
And I'm running X3 v 2.5, that's probably relevant.
but I've created a "director" folder in my X3 directory, moved the "Helloworld" example out of "samples" and into "director," started a new game and changed my name to "Thereshallbewings." But I have not yet received any sort of "Hello world" message. I also tried the question templates, they won't show either, and neither will the mission I'm writing.
Flog me for being a noob, but what am I missing?
EDIT
And I'm running X3 v 2.5, that's probably relevant.
My music - Von Neumann's Children - Lasers and Tactics
I'm on Twitch! 21:15 EST Sundays. Come watch me die a lot.
I'm on Twitch! 21:15 EST Sundays. Come watch me die a lot.
Hi Tenlar Scarflame,
Have you reset the Mission Director? - I had the same problem until I did so.
You must be in space, not docked.
Press the Enter key on the Numeric Key Pad, this will display a panel called Main - at the bottom is Mission Director.
Click on this - if it shows something under Cues, then all is well.
If it does not show something under Cues, then click on Reset Mission Director.
Boron - Ol Fh'art
Have you reset the Mission Director? - I had the same problem until I did so.
You must be in space, not docked.
Press the Enter key on the Numeric Key Pad, this will display a panel called Main - at the bottom is Mission Director.
Click on this - if it shows something under Cues, then all is well.
If it does not show something under Cues, then click on Reset Mission Director.
Boron - Ol Fh'art
- Tenlar Scarflame
- Posts: 3359
- Joined: Mon, 30. May 05, 04:51
Now working. Knew it would be something silly. Thanks much B-O'F.
My music - Von Neumann's Children - Lasers and Tactics
I'm on Twitch! 21:15 EST Sundays. Come watch me die a lot.
I'm on Twitch! 21:15 EST Sundays. Come watch me die a lot.
Question about the text files;
in the sample text files folder you give an example text file with a file name of "3247"
the contents of which doesn't have the usual "<?xml version="1.0" encoding="UTF-8" ?>"
- i always assumed this line was necessary?
seeing as the page id inside the file is "247" i assume the 3247 is a prefix of some kind
- is it especially for the mission director? as it doesnt seem (atleast for me anyway) that the mission director can read the format of text files we've all used for MSCI scripting
i.e. 441234
i always get a =TextIDNotFound= no matter how i do it
[edit - just tried using some general game text like {17,2011} (solar power plant) and that displays text fine it just seems to be new text files]
Cheers
Stevio
in the sample text files folder you give an example text file with a file name of "3247"
the contents of which doesn't have the usual "<?xml version="1.0" encoding="UTF-8" ?>"
- i always assumed this line was necessary?
seeing as the page id inside the file is "247" i assume the 3247 is a prefix of some kind
- is it especially for the mission director? as it doesnt seem (atleast for me anyway) that the mission director can read the format of text files we've all used for MSCI scripting
i.e. 441234
i always get a =TextIDNotFound= no matter how i do it
[edit - just tried using some general game text like {17,2011} (solar power plant) and that displays text fine it just seems to be new text files]
Cheers
Stevio
Stevio, some of the samples still contained text file references from some temporary text files used while those particular missions were being developed. You'll notice earlier in the thread that I reposted the Lottery misson with the text included, because the sample provided contained those temporary textfile references.
Suffice it to say that if you wish to use text files, all you need to do is create the text file in the normal manner, place it in the normal place using the normal naming convention for textfiles and as long as all of your references are correct, you should have displayed text in your missions.
Edit: Your best bet to get the provided textfile working is to change its name to 443247 and change all of the references in the mission file to 3247,xx as well. It wouldn't do any harm to include the UTF-8 encoding line at the top also. Hope that works.
HTH
Suffice it to say that if you wish to use text files, all you need to do is create the text file in the normal manner, place it in the normal place using the normal naming convention for textfiles and as long as all of your references are correct, you should have displayed text in your missions.
Edit: Your best bet to get the provided textfile working is to change its name to 443247 and change all of the references in the mission file to 3247,xx as well. It wouldn't do any harm to include the UTF-8 encoding line at the top also. Hope that works.
HTH
thanks for the reply Toastie,Toastie wrote:Suffice it to say that if you wish to use text files, all you need to do is create the text file in the normal manner, place it in the normal place using the normal naming convention for textfiles and as long as all of your references are correct, you should have displayed text in your missions.
i've definately got all the references right
Code: Select all
Text file: x3 reunion\t\448560.xml
<?xml version="1.0" encoding="utf-8" ?>
<language id="44">
<page id="8560" title="BSG: CotG" descr="Mission Text">
<t id="1">Hello Nugget</t>
<t id="2">Colonial Flight Instructor</t>
</page>
</language>
Code: Select all
Mission director file: x3 reunion\director\cotgbf.xml
snippet
<cue name="cotgbfready">
<condition>
<check_all>
<check_value value="{player.age}" min="5s"/>
</check_all>
</condition>
<action>
<incoming_message author="{8560,2}" text="{8560,1}"/>
</action>
</cue>
Your a genius i never even saw that command
required in the <action> tags
good thinking jlehtone
Code: Select all
<load_text fileid="8560"/>
good thinking jlehtone
Another question:
I'm trying the PDF Guide, that comes with the MD.
First example "Hello world" - works fine (after added <load_text> and removed max from checkin {player.age}
- i'm running XTM and it's blocking first minute or two after new start).
Second example - still working on it, but ... there is {reward.money@veryeasy.XXXT} - and here is the big question:
Does anybody know what the XXXT is for? - In the command listing it states that it is "discipline" - What it is? and How i use it?
Any ideas?
I'm trying the PDF Guide, that comes with the MD.
First example "Hello world" - works fine (after added <load_text> and removed max from checkin {player.age}
- i'm running XTM and it's blocking first minute or two after new start).
Second example - still working on it, but ... there is {reward.money@veryeasy.XXXT} - and here is the big question:
Does anybody know what the XXXT is for? - In the command listing it states that it is "discipline" - What it is? and How i use it?
Any ideas?
The discipline string is TFBT (Trade, Fight, Build, Think). Anything other than the appropriate letter in the appropriate position is ignored. The convention is to use Xs for disciplines that are not included in the mission. So XFXX is a Fight mission and XXXT is a Think mission (used for anything that doesn't fit into the other three disciplines). The reward calculations are slightly different for the different disciplines, so for example the Trade discipline will put more weight on things like your trade ranking.
Ok, thanks CBJ. One question: What happens to game UI if I make Movie type=fullscreen (while movie is playing)? Is game action temporarily suspended?CBJ wrote:Bad news I'm afraid. The <play_cinematic> action isn't implemented in this version. I'm not sure how it sneaked into the schema as I thought I'd removed anything that wasn't going to be available. The <play_movie> action should work though.
i was interested in that too i havent used them yet
from the description in "director.htm" i believe <play_cinematic> is just a command to make the camera follow the "object"/"position in space" for a specified time (in ms)
(like the begining of a new game you see your buster shoot off then the camera spins slowly around the argon one)
i.e. (not sure if its an one line command or whether it requires a close tag - could be both?)
whereas the <play_movie> i assume plays an external movie file but what directory they go in i dont know yet
edit: @CBJ damn was looking forward to using this, any idea on where the movie files go tho in the \MOV folder??
from the description in "director.htm" i believe <play_cinematic> is just a command to make the camera follow the "object"/"position in space" for a specified time (in ms)
(like the begining of a new game you see your buster shoot off then the camera spins slowly around the argon one)
i.e. (not sure if its an one line command or whether it requires a close tag - could be both?)
Code: Select all
<action>
<play_cinematic object="{player.ship}" distance="1km" duration="100ms"/>
</action>
edit: @CBJ damn was looking forward to using this, any idea on where the movie files go tho in the \MOV folder??
The finer details of things like movie playback are something you'll have to experiment with I'm afraid. As far as I can see both briefing and fullscreen modes freeze the gameplay, but I could easily be wrong about that.Observe wrote:What happens to game UI if I make Movie type=fullscreen (while movie is playing)? Is game action temporarily suspended?