MD help request: TextIDs

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
Antimagic
Posts: 2
Joined: Tue, 27. Dec 11, 17:19

MD help request: TextIDs

Post by Antimagic » Wed, 28. Dec 11, 03:58

Apologies if this has been asked elsewhere - I've been hunting around for a while and haven't found an answer.

So I've been trying to figure out how to make missions for X3:TC, but I've gotten stumped on something: I've made a script file called 7758-L044.xml for my mission, I've plopped it in the 't' folder, and I think I've set it up right and referenced it correctly. Relevant bits below.

director\test.xml

Code: Select all

<create_station name="Stationtest1" typename="SS_DOCK_CORP_3" known="1" textid="{7758,10}">
            <position x="-10km" z="-10km"/>
            <sector sector="{player.sector}"/>
            <equipment loadout="default"/>
</create_station>

<create_actor name="Puddles" character="Puddles" face="102" race="terran" object="Stationtest1"/>

<create_offer actor="Puddles" cue="test" discipline="XXXXP" conversation="test.bleepbloop"/>
(All this stuff above appears to work. Side question: what on Earth is the 'discipline' argument for?)

t\conversations.xml

Code: Select all

<conversation name="test.bleepbloop" description="Test conversation">
    <player text="{7758,200}">
      <npc text="{7758,300}">
         <player text="{7758,210}">
           <npc text="{7758,310}">
             <player text="{7758,220}" outcome="accept"/>
           </npc>
         </player>
      </npc>
    </player>
</conversation>
t\7758-L044.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">

  <page id="7758" title="Test" descr="Test text for testing" voice="no">
    <t id="10">Test</t>

    <t id="200">bip</t>
    <t id="210">bop</t>
    <t id="220">bap</t>

    <t id="300">wibble</t>
    <t id="310">wobble</t>
  </page>
</language>
It's a thrilling exchange, as you can see.

Obviously I haven't set it up right. I'm trying to use that first entry as a station name and the rest as lines in a conversation. No worky. The conversation is just TextIDNotFound over and over and the Station name comes up as ReadText17-0 or something like that. What am I doing wrong?

Any help would be very much appreciated.

dillpickle
Posts: 1159
Joined: Mon, 3. Nov 08, 14:25
x3tc

Post by dillpickle » Wed, 28. Dec 11, 06:36

You need to load the text file for it to be able to read it.

Code: Select all

<load_text fileid="7758"/>
Put it in the first <action>, so directly above your <create_station> line should get it working.

Discipline dictates which mission icon appears on the station etc...
XXXXP is for plot missions, so will give the Blue Book icon.
TXXX - Trade.
XFXX - Fight.
XXBX - Build.
XXXT - Think.

Station names have to come from pageid 17, and in this case you'd only need textid="10" - you'd need to check all the pageid 17's (17, 30017, 35017) in 0001-L044.xml to ensure that textid 10 isn't overwriting anything important...

Even then you can sometimes end up with readtext errors!!
I generally use:
<set_override_name object="Stationtest1" textid="10"/>
Which seems to get the job done.

Antimagic
Posts: 2
Joined: Tue, 27. Dec 11, 17:19

Post by Antimagic » Wed, 28. Dec 11, 07:18

Aha! That makes sense. Thanks a bunch, you're a wizard.

User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 » Thu, 29. Dec 11, 04:46

And in case you are having issues getting the <conversation_completed> condition to work, it has to be a subcue of the <create_offer> node. I banged my head into that a few times before I figured it out. Hopefully you are already past that.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”