[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

Post Reply
User avatar
Aro
Posts: 1977
Joined: Tue, 15. Jul 03, 00:35

Re: So?

Post by Aro » Thu, 15. Jul 10, 00:09

LarryBurstyn wrote:Is there a way to start a ship already docked with another ship?

Code: Select all

<create_ship ... dockobject="(ship to be docked at)">
LarryBurstyn wrote:Is there a list somewhere that lists all the allowed commands in Mission Director (such as do_all).
Check the game .cat's for the following files:
director.xsd
director.xsl
dirschema.xsl
director.css
director.htm

Save these all to a folder then open director.htm in a browser able to view the active content (such as ie). It will list commands, attributes, and more plus it has a handy search feature.

LarryBurstyn
Posts: 268
Joined: Sat, 19. Nov 05, 20:26

Re: So?

Post by LarryBurstyn » Thu, 15. Jul 10, 18:11

Aro wrote:

Code: Select all

<create_ship ... dockobject="(ship to be docked at)">
Ok, something I'm doing wrong this command does not work for me. Tried it both with and without the () marks. Do I "nest" this with the create_ship command that creates the Avenger?

<create_ship typename="SS_SH_TR_M3_VERDANDI" race="player" dockobject="(SS_SH_AT_LEV_AVENGER)">
<position x="0" y="0" z="0" min="20km" max="30km" height="10km"/>
<sector x="8" y="8"/>
<equipment>
<ware typename="SS_WARE_TECH251" exact="400" comment="Cargo Bay Extension"/>
<ware typename="SS_WARE_TECH246" exact="10" comment="Rudder Optomisation"/>
<ware typename="SS_WARE_TECH213" exact="10" comment="Engine Tunings"/>
<ware typename="SS_LASER_EMP" exact="12"/>
<ware typename="SS_WARE_LIFESUPPORT" exact="1"/>
<ware typename="SS_MISSILE_POLTERGEIST" exact="55"/>
<ware typename="SS_WARE_SW_NAV_1" exact="1"/>
<ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
<ware typename="SS_WARE_SCANNER3" exact="1"/>
<ware typename="SS_WARE_TECH241" exact="1" comment="Docking System"/>
<ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
<ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
<ware typename="SS_SHIELD_C" exact="4"/>
</equipment>
</create_ship>

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46

Post by Serial Kicked » Thu, 15. Jul 10, 18:39

I don't know nothing about MD, but apparently you're trying to dock your ship at a "ship type" instead to a real ship. And that's not good.

apparently the correct way is something like that, at least to dock something at the player's ship:

dockobject="{player.ship}"


not "(ship type)" but "{object}"
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

LarryBurstyn
Posts: 268
Joined: Sat, 19. Nov 05, 20:26

tanks (Thanks)

Post by LarryBurstyn » Thu, 15. Jul 10, 19:56

I figured out that you have to NAME the carrier FIRST and then use the name in the command...


example
<create_ship name="Avenger" typename="SS_SH_AT_LEV_AVENGER" race="player">
Creates and Names the carrier "Avenger" (The name is NOT used in the game only in it's creation so it cannot be used to name ships in the game.).


then later you can use
<do_all exact="120" comment="Number of times to do it">
<create_ship typename="SS_SH_TR_M3_VERDANDI" race="player" dockobject="Avenger">
creates and places 120 Verdandi fighters in the carrier "Avenger".

CAUTION:: SOMETIMES UNUSUAL things happen if you try to put too many ships into the carrier (if it holds 120 ships don't try to dock 121+ fighters).

EDIT: you do not need the position and sector info on ships that are going to be docked. end EDIT.

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

Post by Aro » Fri, 16. Jul 10, 01:18

Yeah, you need to create (or find a ship and assign it to a variable) a ship first to dock the other ship(s) to.
The reference name of the target ship takes care of the sector/position info.

Code: Select all

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

<create_ship name="subShip" typename="SS_SH_A_M3" dockobject="myCarrier"...

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

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: 1977
Joined: Tue, 15. Jul 03, 00:35

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: 1091
Joined: Wed, 4. Jan 06, 04:28

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
Image
Vanilla Malt Gamestarts
"The only time you have too much fuel is when you're on fire"

User avatar
Roger L.S. Griffiths
Posts: 9152
Joined: Fri, 12. Mar 04, 20:47

Post by Roger L.S. Griffiths » Mon, 21. Mar 11, 15: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).
Roger (aka [SRK] Mr^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: 5587
Joined: Thu, 27. Feb 03, 23:28

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.

User avatar
Vayde
Posts: 843
Joined: Fri, 6. Feb 04, 22:02

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
Moderator (DevNet)
Moderator (DevNet)
Posts: 8709
Joined: Fri, 21. May 04, 17:15

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

spacek1ght
Posts: 12
Joined: Fri, 27. Jan 12, 22:13

Custom Starts

Post by spacek1ght » Fri, 27. Jan 12, 22: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: 13630
Joined: Sun, 16. May 04, 13:01

Post by apricotslice » Thu, 1. Mar 12, 03: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, 19:48

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.

Post Reply

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