[Docn] Director Start.xml

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

Antion899
Posts: 1
Joined: Fri, 17. Oct 08, 19:53
x3tc

Post by Antion899 » Mon, 19. Jul 10, 18:51

When creating a new gamestart, do the id numbers need to be kept in order in the start.xml and gamestart.xml?

User avatar
Aro
Posts: 2766
Joined: Tue, 15. Jul 03, 00:35
x4

Post by Aro » Mon, 19. Jul 10, 21:58

Try it and see.. highly doubt it matters though. Will give it a try during the next test I run.

Snowship
Posts: 1350
Joined: Wed, 4. Jan 06, 03:28
x3tc

Post by Snowship » Tue, 20. Jul 10, 01:12

no, my VM gamestarts were mixed numbers and they were fine...

...although I've sinced sequenced them...

All that happens is they show in the new game screen as how they are sequenced in the XML files.... so you can put like with like and not worry about numbers
[ external image ]
Vanilla Malt Gamestarts
"The only time you have too much fuel is when you're on fire"

User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths » Mon, 21. Mar 11, 14:10

I am currently working on a tool that should make manual editing/creation of MD scripts for game starts a thing of the past as well as providing support for translated game start menu information.

In the meantime, I would like to share some of the knowledge I have attained through developing my AWRM Xtra Starts.

In summary, I have a technique that can help to ensure start.xml does not grow excessively.
  • excerpt from L\true\gamestarts.xml

    Code: Select all

      <!-- ATF Admiral : Xenon Core 023 -->
      <gamestart id="507" name="ATF Admiral" description="After waiting patiently for the go order from central command, it is finally time to strike at the heart of the Xenon menace." difficulty="{1900,2202}" image="start01" plot="1">
        <player name="{1900,2302}" species="{1900,2402}" gender="{1900,2502}" age="{1900,2601}"/>
        <sector x="21" y="6"/>
        <ship typename="SS_SH_TR_M0"/>
      </gamestart>
    
  • excerpts from director\start.xml

    Code: Select all

                  <do_when value="{player.gamestart}" exact="507" comment="ATF Admiral">
                    <set_value name="Terran Plot" exact="1"/>
                    <set_value name="HUB Plot" exact="1"/>
                    <set_value name="HQ Plot" exact="1"/>
                  </do_when>

    Code: Select all

                  <do_when value="{player.gamestart}" exact="507" comment="ATF Admiral">
                    <reward_player>
                      <money exact="100000"/>
                      <notoriety>
                        <relation race="argon" operation="set" exact="neutral"/>
                        <relation race="boron" operation="set" exact="neutral"/>
                        <relation race="paranid" operation="set" exact="enemy"/>
                        <relation race="split" operation="set" exact="shuned"/>
                        <relation race="teladi" operation="set" exact="neutral"/>
                        <relation race="goner" operation="set" exact="neutral"/>
                        <relation race="pirate" operation="set" exact="enemy" mutual="1"/>
                        <relation race="khaak" operation="set" exact="min" mutual="1"/>
                        <relation race="xenon" operation="set" exact="min" mutual="1"/>
                        <relation race="atf" operation="set" exact="{lookup.notoriety@notop7}"/>
                        <relation race="terran" operation="set" exact="friend" mutual="1"/>
                        <relation race="yaki" operation="set" exact="enemy" mutual="1"/>
                      </notoriety>
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="{player.ship.equipment.SS_WARE_TECH213.maxcount}" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="{player.ship.equipment.SS_WARE_TECH246.maxcount}" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="{player.ship.equipment.SS_WARE_TECH251.maxcount}" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_F" exact="7"/>
                        <ware typename="SS_LASER_AWRM_FUSIONBEAM_X" exact="48"/>
                        <ware typename="SS_LASER_AWRM_EMP_H" exact="18"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                      <map>
                        <sector x="8" y="0"/>
                        <sector x="10" y="0"/>
                        <sector x="11" y="0"/>
                        <sector x="7" y="1"/>
                        <sector x="8" y="1"/>
                        <sector x="9" y="1"/>
                        <sector x="10" y="1"/>
                        <sector x="11" y="1"/>
                        <sector x="12" y="1"/>
                        <sector x="15" y="1"/>
                        <sector x="16" y="1"/>
                        <sector x="10" y="2"/>
                        <sector x="11" y="2"/>
                        <sector x="12" y="2"/>
                        <sector x="13" y="2"/>
                        <sector x="15" y="2"/>
                        <sector x="16" y="2"/>
                        <sector x="11" y="3"/>
                        <sector x="12" y="3"/>
                        <sector x="13" y="3"/>
                        <sector x="13" y="4"/>
                      </map>
                    </reward_player>
    
                    <set_value name="ATF Notoriety" exact="{lookup.notoriety@notop7}"/>
                    <set_value name="Terran Plot" exact="1"/>
                    <set_value name="HUB Plot" exact="1"/>
                    <set_value name="HQ Plot" exact="1"/>
                  </do_when>
    
  • Sample director\<mystart>.xml

    Code: Select all

    <?xml version="1.0" encoding="iso-8859-1" ?>
    <?xml-stylesheet href="director.xsl" type="text/xsl" ?>
    <director name="rlsg_start" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
      <documentation>
        <author name="Roger L.S. Griffiths" alias="Roger L.S. Griffiths" contact="Roger L.S. Griffiths"/>
        <content reference="rlsg_start" name="rlsg_start" description="Supplemental actions for additonal AWRM/Xtra gamestarts"/>
        <version number="0.1" date="15-Mar-2011" status="release"/>
      </documentation>
      <cues>
        <cue name="md.rlsg.start" version="1" delay="1s">
          <condition>
            <check_age min="0" max="1m" />
          </condition>
          <action>
            <do_all>
              <load_text fileid="2505"/>
              
              <do_choose>
                <do_when value="{player.gamestart}" min="500" max="519" comment="AWRM/Xtra Starts">
                  <incoming_message text="{17,250596}"
                                    popup="1" temporary="1"/>
                  <run_script script="plugin.rlsg.start.news" task="1">
                    <scriptargs>
                      <scriptvalue datatype="integer" datavalue="{player.gamestart}"/>
                    </scriptargs>
                  </run_script>
                </do_when>
              </do_choose>
    
              <do_choose>
                <do_when value="{player.gamestart}" exact="507" comment="ATF Admiral">
                  <warp_player>
                    <position x="50km" y="50km" z="50km"/>
                  </warp_player>
    
                  <create_ship name="md.rlsg.start.S507_tp" typename="SS_SH_USC_TP_GAUNTLET" race="player" dockobject="{player.ship}" homebase="{player.ship}">
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                      <ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
                      <ware typename="SS_WARE_TECH251" exact="400" comment="Cargo Bay Extension"/>
                      <ware typename="SS_SHIELD_D" exact="2"/>
                      <ware typename="SS_LASER_AWRM_MAM_M" exact="2"/>
                      <ware typename="SS_LASER_AWRM_EPC_H" exact="2"/>
                      <ware typename="SS_LASER_AWRM_APE_H" exact="4"/>
                      <ware typename="SS_LASER_AWRM_CPC_H" exact="4"/>
                      <ware typename="SS_WARE_TR_TECH7" exact="40"/>
                      <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                      <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                      <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                      <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                      <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                      <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                    </equipment>
                  </create_ship>
    
                  <create_ship name="md.rlsg.start.S507_tp" typename="SS_SH_USC_TS_2" race="player" dockobject="{player.ship}" homebase="{player.ship}">
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                      <ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
                      <ware typename="SS_WARE_TECH251" exact="3250" comment="Cargo Bay Extension"/>
                      <ware typename="SS_SHIELD_C" exact="5"/>
                      <ware typename="SS_LASER_AWRM_APE_H" exact="2"/>
                      <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                      <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                      <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                      <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                      <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                      <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                    </equipment>
                  </create_ship>
    
                  <do_all exact="4">
                    <create_ship name="md.rlsg.start.S507_m6" typename="SS_SH_TR_M6" race="player" dockobject="{player.ship}" wing="gold" homebase="{player.ship}">
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="15" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="250" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_D" exact="5"/>
                        <ware typename="SS_LASER_AWRM_EMP_H" exact="10"/>
                        <ware typename="SS_LASER_AWRM_PNC_H" exact="4"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                    </create_ship>
                  </do_all>
    
                  <do_all exact="4">
                    <create_ship name="md.rlsg.start.S507_m6" typename="SS_SH_TR_M6M" race="player" dockobject="{player.ship}" wing="silver" homebase="{player.ship}">
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="15" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="150" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_D" exact="6"/>
                        <ware typename="SS_LASER_AWRM_EMP_H" exact="8"/>
                        <ware typename="SS_LASER_AWRM_PNC_H" exact="6"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                    </create_ship>
                  </do_all>
    
                  <do_all exact="30">
                    <create_ship name="md.rlsg.start.S507_m4" typename="SS_SH_TR_M4_HEL" race="player" dockobject="{player.ship}" wing="red" homebase="{player.ship}">
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="0" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_B" exact="4"/>
                        <ware typename="SS_LASER_AWRM_PNC" exact="4"/>
                        <ware typename="SS_LASER_AWRM_APE" exact="4"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                    </create_ship>
                  </do_all>
    
                  <do_all exact="15">
                    <create_ship name="md.rlsg.start.S507_m3" typename="SS_SH_TR_M3_VERDANDI" race="player" dockobject="{player.ship}" wing="blue" homebase="{player.ship}">
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="40" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_C" exact="4"/>
                        <ware typename="SS_LASER_AWRM_PNC_M" exact="8"/>
                        <ware typename="SS_LASER_AWRM_APE_M" exact="4"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                    </create_ship>
                  </do_all>
    
                  <do_all exact="5">
                    <create_ship name="md.rlsg.start.S507_m5" typename="SS_SH_TR_M5_MANI" race="player" dockobject="{player.ship}" wing="green" homebase="{player.ship}">
                      <equipment>
                        <ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
                        <ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
                        <ware typename="SS_WARE_TECH251" exact="80" comment="Cargo Bay Extension"/>
                        <ware typename="SS_SHIELD_B" exact="1"/>
                        <ware typename="SS_LASER_AWRM_PNC" exact="6"/>
                        <ware typename="SS_LASER_AWRM_APE" exact="2"/>
                        <ware typename="SS_WARE_TECH231" exact="1" comment="SETA"/>
                        <ware typename="SS_WARE_TECH241" exact="1" comment="Docking Computer"/>
                        <ware typename="SS_WARE_TECH242" exact="1" comment="Video Enhancement Goggles"/>
                        <ware typename="SS_WARE_TECH276" exact="1" comment="Freight Scanner"/>
                        <ware typename="SS_WARE_SCANNER3" exact="1" comment="Triplex Scanner"/>
                        <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                        <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                        <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                        <ware typename="SS_WARE_BIOSCANNER" exact="1"/>
                        <ware typename="SS_WARE_SW_EXPLORE_1" exact="1"/>
                      </equipment>
                    </create_ship>
                  </do_all>
    
                  <add_wing_to_group group="md.rlsg.start.S507_grp" wing="gold"/>
                  <add_wing_to_group group="md.rlsg.start.S507_grp" wing="silver"/>
                  <add_wing_to_group group="md.rlsg.start.S507_grp" wing="red"/>
                  <add_wing_to_group group="md.rlsg.start.S507_grp" wing="blue"/>
                  <add_wing_to_group group="md.rlsg.start.S507_grp" wing="green"/>
                  <set_group_homebase group="md.rlsg.start.S507_grp" homebase="{player.ship}"/>
                </do_when>
              </do_choose>
            </do_all>
          </action>
        </cue>
      </cues>
    </director>
If necessary, some/all of the reward_player stuff from the start.xml file could be moved to the additional <mystart>.xml file.

Please feel free to review the content of my start mod in order to see other examples (such as spawning additional ships with other ships already docked with them).
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams

Scoob
Posts: 10016
Joined: Thu, 27. Feb 03, 22:28
x4

Post by Scoob » Tue, 26. Jul 11, 18:00

Hi Roger,

Interesting stuff! I'm just looking into Game Starts myself (totally new to this) and wanting to create something a little different.

I understand now the basics of setting my start race, sector, ship etc. as well as creating additional ships, possibly with some docked at an owned ship. This is all good. However, as part of the background to a game start I'm looking at creating I need the starting ships to be less than perfect.

For example, I'd be creating a TL with some ships docked but the TL would be in bad shape so only partiially tuned & equiped, which is easy. However I'd also like it to come with fairly extensive hull damage also...the challange being to protect this ship early-game using a miss-matched batch of equally damaged and poorly equipped fighters. Ulitmately the player could restore this ship & equip it fully as funds allow, though it'd start as a glorified warehouse. I'm still pondering a few ideas...one more being that I'd like to create a couple of bailed and damaged ships nearby at game start - as if the remains of a battle.

So, in your experience, can I spawn a damaged as well as bailed damged ships or would I have to script certain things in after initial creation?

Any advice welcome.

Cheers,

Scoob.

Vayde
Posts: 849
Joined: Fri, 6. Feb 04, 21:02
x3tc

Post by Vayde » Tue, 26. Jul 11, 23:50

I can add 10 rnd marines to a TP with this code.

Code: Select all

<ware typename="SS_WARE_SOLDIER_2" exact="10" comment="Marine"/>
How would I go about creating 10 trained marines with a few stars each?
Still life in the old dog yet...

User avatar
Ketraar
EGOSOFT
EGOSOFT
Posts: 11813
Joined: Fri, 21. May 04, 17:15
x4

Post by Ketraar » Thu, 28. Jul 11, 00:21

you would need to use <set_marine_data but for that the marines need to be actors iirc.

MFG

Ketraar
Image

spacek1ght
Posts: 12
Joined: Fri, 27. Jan 12, 21:13
x3tc

Custom Starts

Post by spacek1ght » Fri, 27. Jan 12, 21:36

Hi all. I've just got into playing X3TC and I'd like to create my own custom player start.

I realise I could just use the cheat scripts to get what I want but I'd like a start that provides the option without cheating.

Basically I want a Teladi start in Terran space with good Terran relations, about 30.000 credits and a Terran freighter.
The idea is that by blind luck a Teladi saved a Terran officers life, losing his cargo ship in the event and was rewarded with access to the Terran sectors and a shiny new Terran freighter.
This Teladi wants to corner the market and build an Empire stretching all the way home. :)

Of course the only problem being I have no idea to how to do this. I've read a lot of the comments in this section and its very confusing. Plus it needs to work with Version 3.2. My skills lie in 3d and texturing, not coding. So any help would be appreciated. :wink:

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Thu, 1. Mar 12, 02:54

Updates for AP :

There are several significant changes to starts in AP.

Within start.xml, the section I call Part 1 in the OP, has been removed. The plots information is now embedded at the top of each start, in the Part 2 area.

gamestarts.xml has moved location. It is now in the types folder.

User avatar
XDrake
Posts: 133
Joined: Wed, 29. Oct 08, 18:48
x3tc

Post by XDrake » Fri, 8. Jun 12, 22:55

I have seen some of the other start files.

Code: Select all

<equipment loadout="maxium"/>
This load the max weapons and shields on a ship?

What would be the results for some of the other flags for this command?


edit:

So the naming thing is for the MD to have a reference object, and not to change the name in the game itself?
XDrake
-------------------------------------------------------
NECORE Inc.

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Sat, 9. Jun 12, 01:00

loadout = max would be the same as the script command to default outfit ship I expect.

No idea what the others do. Try it and report back.

"naming thing" ? To what are you referring ?

User avatar
XDrake
Posts: 133
Joined: Wed, 29. Oct 08, 18:48
x3tc

Post by XDrake » Sat, 9. Jun 12, 02:25

I am sorry didn't state it very well.

Code: Select all

<create_ship name="myCarrier" typename="SS_SH_A_M1"... 

<create_ship name="subShip" typename="SS_SH_A_M3" dockobject="myCarrier"...
Is the Name flag only use for as reference object in MD, or can you actually effect the name of the ship in the game, like "Your Buster" and have MD change it to "This is MY RIDE"
XDrake
-------------------------------------------------------
NECORE Inc.

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

Post by dillpickle » Sat, 9. Jun 12, 03:43

The name flag is what the MD uses to track that particular object.

If you want to 'name' your ship there are a couple of ways...

Code: Select all

<create_ship name="TempShip" typename="SS_SH_B_M4P" race="player" textid="13471">
  <position object="{player.ship}" min="5km" max="10km"/>
  <sector sector="{player.sector}"/>
  <equipment loadout="default"/>
</create_ship>
The textid has to be from pageid="17" (in this case 'Exterminator') - when you target the ship Betty will identify it as 'Exterminator'.

You can also use:

Code: Select all

<create_ship name="Exterminator2" typename="SS_SH_B_M4P" race="player">
  <position object="{player.ship}" min="5km" max="10km"/>
  <sector sector="{player.sector}"/>
  <equipment loadout="default"/>
  <pilot shipname="{17,13471}"/>
</create_ship>
Which will name the ship 'Exterminator', but when targeted the Ship type (Pike in this case) will be said.
This can use any text id for the name..

Code: Select all

<pilot shipname="{1000,20041}"/>
...Engineering Specialist.

Or simply enter the text...

Code: Select all

<pilot shipname="This is MY RIDE"/>
If there is spoken text on pageid's other than 17, you can create an entry for it:

Code: Select all

<page id="350017">
    <t id="9999500">{1000,20041}</t>
  </page>
Then using...

Code: Select all

<create_ship name="TempShip" typename="SS_SH_B_M4P" race="player" textid="9999500">
Woul have Betty calling it 'Engineering Specialist' when targeted.

Post Reply

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