[TC] [XFF] Discussione sullo script per le battaglie

Il luogo dove parlare di tutti i plug-in e i mod disponibili per X², X³, X³TC e X³AP.

Moderator: Moderatori per il Forum Italiano

User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

[TC] [XFF] Discussione sullo script per le battaglie

Post by -Dna- »

Informazioni tecniche riguardanti l'utilizzo degli script

[ external image ] Indice tecnico inglese

[ external image ]

Introduzione

Sono in molti a creare flotte e a visionare i filmati di combattimento, ma sono in pochi quelli che effettivamente fanno o desiderano far girare sulle loro macchine le battaglie. Vediamo un po' cosa ci serve per eseguire i combattimenti.

[ external image ]

Requisiti

Avrete bisogno di tre pacchetti: [ external image ]

Installazione

Map Pack
All'interno della cartella di gioco (es.: C:\Program Files\Egosoft\X3 Terran Conflict\) create una nuova cartella e rinominatela maps. Prendete il contenuto del Map Pack e inseritelo in questa cartella.

Script
Semplicemente incollate il file dello script all'interno della cartella script

Cheat script package
Seguite le istruzioni del topic.

[ external image ]

Creazione battaglie

Avviate il gioco e selezionate una nuova partita. Scegliete l'opzione Custom Start e in seguito scegliete una delle arene a voi disponibili.

Una volta nel gioco attivate lo script editor.

(Se avete il Cheat script package, questo è il momento giusto per mettere tutti i potenziamenti alla vostra nave e abilitare invincibilità, Assicurazioni di Salvataggio infinite,...)

Accedete allo script editor. Cercate nella lista xff.spawnfleets, selezionatelo e premete R.

A questo punto si aprirà una nuova pagina. In questa pagina troverete due liste, una per flotta. In fondo ad ogni lista troverete il pulsante add ship.

La creazione delle flotte è abbastanza intuitiva ma piuttosto lunga. Per creare le vostre flotte dovrete scegliere prima in quale flotta e in seguito cliccare sul relativo pulsante add ship.
Si aprirà una schermata che chiede quante di queste navi inserire. Scrivete il numero e premete ENTER.
La prossima schermata è una lista di navi: scegliete la vostra. Doppio clic o anche qui ENTER.
Apparirà ora la pagina per inserire il carico della nave. Come nella schermata precedente scegliete dalla lista la merce da aggiungere. Una volta riempita la/le nave/i cliccate sul pulsante done.
Ripetete il procedimento per tutte le navi fin quando le flotte non saranno completate.

Una volta pronti cliccate su start!!!.

Buon divertimento 8)

[ external image ]

Versione semplificata/avanzata dello script

Director Fleet Spawner

Spiegazioni incluse nello zip (in inglese).

(Esempio di script - aggiornato al 13/8/2010)

[ external image ]

----------------------------------------------------------------------------------------
stormwings85 wrote:Ho fatto delle modifiche al codice base e ora vengono generate a 10 km di distanza, credo, ma cmq c'è dello spazio prima dell'ingaggio e oltretutto sono già girate per darsele di danta ragione :twisted:
Hai fatto modifiche al codice dello script di creazione (in questo caso occorrerebbe informare il creatore del programma e dello script) o al file xml?
:?
Last edited by -Dna- on Fri, 13. Aug 10, 00:02, edited 3 times in total.
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

GVNN wrote:ahhhhh ecco perchè i miei falcon non avevano gli scudi.
Buono a sapersi
:lol:
ho fatto qualcosa di utile allora :D
sono solo un paio di numeri per non far partire le 2 flotte una dentro l'altra ;)
le modifiche le ho passate a GVNN.
non so chi l'ha creato cmq lo posto qui con inserite 2 flotte dei nostri partecipanti cisto che riguardano le distanze tra queste e la loro direzione al momento della creazione (Le flotte sono state prese a caso ;)):

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
  <documentation>
    <author alias="Aro" contact="Forum" />
  </documentation>
  <cues>
    <cue name="xff.director.fightmaker">
      <action>
        <do_all>
          <ask_question name="doxff" author="XFF Battle Creator" text="Begin the match?\nIf you're not ready to start the match hit the clear menu button (default is 'Delete') then activate this script later by bringing up the message log (default 'Shift+m').\n\n[select value='yes']Fight![/select]\n[select value='no']Denied.[/select]" popup="1" silent="1"/>
          <play_sound soundid="1100"/>
        </do_all>
      </action>
      <cues>
        <cue name="doeet">
          <condition>
            <question_answered question="doxff" answer="yes"/>
          </condition>
          <action>
            <do_all>

<!-- iddqd -->
                <set_invincible object="{player.ship}" invincible="1"/>
<!-- Now Xenon are friendly. -->
                <reward_player>
                  <notoriety>
                    <relation race="xenon" operation="set" exact="1000000"/>
                  </notoriety>
                </reward_player>
<!-- Run extra code. -->
                <run_script script="xff.setup" object="{player.ship}"/>
<!-- Overtune player ship. -->

                <add_equipment object="{player.ship}">


                  <ware typename="SS_WARE_TECH213" exact="350"/>

                  <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{player.ship}}"/>

                  <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{player.ship}}"/>

                </add_equipment>


<!-- ==================== Do not edit above this line. ==================== -->




<!-- How far apart the fleets will spawn. 10km = 5. Do not add the 'km'. -->
                <set_value name="fleetDistance" exact="5"/>
<!-- Spacing withing the fleets. -->
                <set_value name="fleetSpacing" exact="3"/>

<!-- Spawn Argon Ships, place code below. -->


                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_OTAS_M2" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_WARE_SW_SPECIAL_1" exact="1"/>
                      <ware typename="SS_SHIELD_F" exact="5"/>
                      <ware typename="SS_MISSILE_B" exact="3" />
                      <ware typename="SS_MISSILE_FF" exact="23" />
                      <ware typename="SS_LASER_IOND" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="12"/>
                      <ware typename="SS_LASER_IOND" exact="2"/>
                      <ware typename="SS_LASER_PPC" exact="20"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


<!-- End Argon Ships -->
<!-- Spawn Xenon Ships, place code below. -->

		
                <do_all exact="16">
                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_A_M3P" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_SHIELD_D" exact="1"/>
                      <ware typename="SS_MISSILE_HTSK" exact="30"/>
                      <ware typename="SS_LASER_MASS" exact="8"/>
                      <ware typename="SS_LASER_PAC" exact="2"/>
                      <ware typename="SS_WARE_AMMUNITION_ALPHA" exact="50"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


                 <create_ship group="xenonGroup" race="xenon" typename="SS_SH_P_M7" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_SHIELD_E" exact="6"/>
                      <ware typename="SS_LASER_PSG" exact="8"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="8"/>
                      <ware typename="SS_LASER_ESR" exact="2"/>
                      <ware typename="SS_MISSILE_HTSK" exact="100"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                

                  <create_ship group="xenonGroup" race="xenon" typename="SSS_SH_T_M7" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_MISSILE_HTSK" exact="100"/>
                      <ware typename="SS_MISSILE_FF" exact="40"/>
                      <ware typename="SS_SHIELD_E" exact="4"/>
                      <ware typename="SS_LASER_ESR" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="4"/>
                      <ware typename="SS_LASER_IBL" exact="8"/>
                      <ware typename="SS_LASER_GAUSS" exact="4"/>
                      <ware typename="SS_WARE_AMMUNITION_GAMMA" exact="20"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>


                <do_all exact="8">
                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M4P" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_SHIELD_C" exact="1"/>
                      <ware typename="SS_LASER_MASS" exact="6"/>
                      <ware typename="SS_MISSILE_B" exact="2"/>
                      <ware typename="SS_WARE_AMMUNITION_ALPHA" exact="20"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>



                <do_all exact="6">
                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M4P" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_SHIELD_C" exact="1"/>

                      <ware typename="SS_LASER_MASS" exact="6"/>
                      <ware typename="SS_MISSILE_HTSK" exact="7"/>
                      <ware typename="SS_WARE_AMMUNITION_ALPHA" exact="20"/>

                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_TL" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_SHIELD_D" exact="5"/>
                      <ware typename="SS_LASER_ESR" exact="4"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="4"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>


<!-- End Xenon Ships -->



<!-- ==================== Do not edit below this line. ==================== -->


<!-- This maxes out tunings/rudder/cargo for both groups -->

                <do_all exact="{group.object.count@xenonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@xenonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@xenonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@xenonGroup}}"/>
                    <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{counter@count}@xenonGroup}}"/>
                  </add_equipment>
                </do_all>
                <do_all exact="{group.object.count@argonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@argonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@argonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@argonGroup}}"/>
                    <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{counter@count}@argonGroup}}"/>
                  </add_equipment>  

                </do_all>

            </do_all>
          </action>
        </cue>
        <cue name="runaway">
          <condition>
            <question_answered question="doxff" answer="no"/>
          </condition>
          <action>
            <cancel_cue cue="xff.director.fightmaker"/>
          </action>
        </cue>
      </cues>
    </cue>
  </cues>
</director>
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

Voglio il filmato di quella battaglia "a caso"... sono troppo curioso di vedere come la flotta Xenon le prende :lol:
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

Cpt.Jericho wrote:Torrette non armata? Avevo paura di questo. Lo script utilizzato dalla Technojerk è quella originale. E 'piuttosto grezzo. Ma è possibile assegnare le armi dove sono supposti di essere. Ma è molto lavoro da creare flotte in questo modo.
Poiché non so in quale fase di script sono in uso, non so cosa c'è di sbagliato. Tutto quello che so è: L'intelligenza artificiale non passa armi come avviene nel gioco.
Un'altra cosa: Sarebbe fantastico se si potesse post salvataggi per il download. I video sono belle. Ma mi piace correre le battaglie sul mio computer. Sembra ingame meglio che su Youtube.

Scavando a Sourceforge ho trovato questo piccolo tool: Link. Funziona abbastanza freddo sul mio computer. Può usare VfW-Codec. Tuttavia, sono stato in grado di registrare dati audio. Forse qualcuno è mor fortunato di me.

-----------------------------------------------------------------------------------------------------

Turrets not armed? I was afraid of that. The script used by Technojerk is the original one. It's pretty crude. But it can assign weapons where they are supposed to be. But it is much work to set up fleets that way.
Since I don't know at what stage the script are you're using, I don't know what's wrong. All I know is: The AI doesn't switch weapons as it does ingame. :(
Another thing: It would be terrific if you could post savegames for download. Videos are fine. But I like to run the battles on my computer. Looks better ingame than on Youtube. :)

Digging at Sourceforge I found this little tool: Link. Runs pretty cool on my computer. It can use VfW-Codecs. However, I was unable to record audio data. Maybe someone is mor lucky than I am.
Ho trovato un enorme errore nello script :o
Le navi vengono generate inizialmente con la stiva minima, poi armate e quindi la stiva viene portata al massimo!!!
Visto che non capivo il perchè del basso lancio di missili da parte dei falcon di DannyD ho modificato lo script xff.setup è ho aggiunto la riga per lo scanner da carico e così ho notato il fattaccio!!!
Chi si offre di sistemarlo :P
forse basta spostarlo nella parte alta dello script :gruebel:

Per le torrette:
bisogna seguire le sequenza che si trova sul solito sito: http://eng.x3tc.ru/
ad esempio gli Springblossom di The Capux avranno questo codice:

Code: Select all

                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_LOST_M6H" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_D" exact="3"/>
                      <ware typename="SS_LASER_EMP_1" exact="6"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="2"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="1"/>
                      <ware typename="SS_LASER_EMP_1" exact="4"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="1"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>
Così piazza le armi come vuole lui.
Si prega quindi i partecipanti di mettere le armi in ordine tenendo conto di questa cosa così da snellire il lavoro dopo. VI PREGO (mi inginocchio e supplico tutti voi)

Per i video FRAPS fa un ottimo lavoro e ridimensionare richiede solo 10 minuti al massimo ;)

Per i missili navigo in spazio aperto, freddo, vuoto e molto ma molto oscuro :lol:

EDIT MOLTO MA MOLTO IMPORTANTE:
Ho risolto quel maledetto errore della stiva!!!
E' un metodo molto stupido ma funziona (potevo anche mettere un valore + basso visto che Aran non si può usare e nessuna nave consentita ha una differenza di stiva (min-max) così elevata):
Eccovi il codice dell' xff.director.fightmaker modificato che permette di avere le stive al massimo prima di inserire il carico (ci sono le flotte con cui stavo lavorando e di cui poi posterò il video):

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
  <documentation>
    <author alias="Aro" contact="Forum" />
  </documentation>
  <cues>
    <cue name="xff.director.fightmaker">
      <action>
        <do_all>
          <ask_question name="doxff" author="XFF Battle Creator" text="Begin the match?\nIf you're not ready to start the match hit the clear menu button (default is 'Delete') then activate this script later by bringing up the message log (default 'Shift+m').\n\n[select value='yes']Fight![/select]\n[select value='no']Denied.[/select]" popup="1" silent="1"/>
          <play_sound soundid="1100"/>
        </do_all>
      </action>
      <cues>
        <cue name="doeet">
          <condition>
            <question_answered question="doxff" answer="yes"/>
          </condition>
          <action>
            <do_all>

<!-- iddqd -->
                <set_invincible object="{player.ship}" invincible="1"/>
<!-- Now Xenon are friendly. -->
                <reward_player>
                  <notoriety>
                    <relation race="xenon" operation="set" exact="1000000"/>
                  </notoriety>
                </reward_player>
<!-- Run extra code. -->
                <run_script script="xff.setup" object="{player.ship}"/>
<!-- Overtune player ship. -->

                <add_equipment object="{player.ship}">


                  <ware typename="SS_WARE_TECH213" exact="350"/>

                  <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{player.ship}}"/>

                  <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{player.ship}}"/>

                </add_equipment>


<!-- ==================== Do not edit above this line. ==================== -->


<!-- How far apart the fleets will spawn. 10km = 5. Do not add the 'km'. -->
                <set_value name="fleetDistance" exact="5"/>
<!-- Spacing withing the fleets. -->
                <set_value name="fleetSpacing" exact="3"/>

<!-- Spawn Argon Ships, place code below. -->


                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_S_M7" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_E" exact="4"/>
                      <ware typename="SS_LASER_CIG" exact="8"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="1"/>
                      <ware typename="SS_LASER_HEPT" exact="1"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="1"/>
                      <ware typename="SS_LASER_HEPT" exact="1"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="1"/>
                      <ware typename="SS_LASER_HEPT" exact="1"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="1"/>
                      <ware typename="SS_LASER_HEPT" exact="1"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="1"/>
                      <ware typename="SS_LASER_HEPT" exact="1"/>
                      <ware typename="SS_MISSILE_FF" exact="50"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_S_M7_SPECIAL" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_E" exact="4"/>
                      <ware typename="SS_LASER_CIG" exact="3"/>
                      <ware typename="SS_LASER_IBL" exact="3"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="2"/>
                      <ware typename="SS_LASER_HEPT" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="2"/>
                      <ware typename="SS_LASER_HEPT" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="2"/>
                      <ware typename="SS_LASER_HEPT" exact="2"/>
                      <ware typename="SS_MISSILE_FF" exact="50"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


                <do_all exact="5">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_LOST_M3H" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_C" exact="3"/>
                      <ware typename="SS_LASER_EMP_1" exact="10"/>
                      <ware typename="SS_MISSILE_POLTERGEIST" exact="20"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>



                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_LOST_M6H" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_D" exact="3"/>
                      <ware typename="SS_LASER_EMP_1" exact="6"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="2"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="1"/>
                      <ware typename="SS_LASER_EMP_1" exact="4"/>
                      <ware typename="SS_LASER_TERRANANTIFIGHTER_1" exact="1"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>


                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_OTAS_M4P" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_SHIELD_C" exact="3"/>
                      <ware typename="SS_LASER_PRG" exact="4"/>
                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>



<!-- End Argon Ships -->
<!-- Spawn Xenon Ships, place code below. -->

		

                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M2" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_F" exact="3"/>
                      <ware typename="SS_LASER_PPC" exact="12"/>
                      <ware typename="SS_LASER_CIG" exact="6"/>
                      <ware typename="SS_LASER_HEPT" exact="4"/>
                      <ware typename="SS_LASER_PBE" exact="6"/>
                      <ware typename="SS_MISSILE_FF" exact="30"/>
                      <ware typename="SS_MISSILE_A" exact="100"/>
                      <ware typename="SS_MISSILE_TR2" exact="10"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>



                 <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M1" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_F" exact="2"/>
                      <ware typename="SS_LASER_PPC" exact="6"/>
                      <ware typename="SS_LASER_CIG" exact="2"/>
                      <ware typename="SS_LASER_PSG" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="5"/>
                      <ware typename="SS_LASER_PBE" exact="4"/>
                      <ware typename="SS_LASER_FBL" exact="1"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                

                <do_all exact="10">
                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_T_M3" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_LASER_PRG" exact="6"/>
                      <ware typename="SS_SHIELD_C" exact="4"/>
                      <ware typename="SS_LASER_HEPT" exact="3"/>
                      <ware typename="SS_LASER_PD" exact="2"/>
                      <ware typename="SS_MISSILE_A" exact="159"/>
                      <ware typename="SS_MISSILE_B" exact="10"/>
                      <ware typename="SS_MISSILE_PROXTRAK" exact="20"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>



                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_LOST_M6H" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH213" exact="100000"/>
                      <ware typename="SS_WARE_TECH246" exact="100000"/>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_SHIELD_D" exact="3"/>
                      <ware typename="SS_LASER_MAM_1" exact="6"/>
                      <ware typename="SS_MISSILE_SPECTRE" exact="203"/>
                      <ware typename="SS_MISSILE_POLTERGEIST" exact="276"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>


<!-- End Xenon Ships -->



<!-- ==================== Do not edit below this line. ==================== -->



            </do_all>
          </action>
        </cue>
        <cue name="runaway">
          <condition>
            <question_answered question="doxff" answer="no"/>
          </condition>
          <action>
            <cancel_cue cue="xff.director.fightmaker"/>
          </action>
        </cue>
      </cues>
    </cue>
  </cues>
</director>
Praticamente ad ogni nave vanno aggiunte queste 3 righe:

Code: Select all

<ware typename="SS_WARE_TECH213" exact="100000"/>
<ware typename="SS_WARE_TECH246" exact="100000"/>
<ware typename="SS_WARE_TECH251" exact="100000"/>
il valore 100000 come detto rappresenta il valore massimo, arrotondato per eccesso, che può essere richieto (è l'Aran anche se poi non si può e non verrà mai utilizzata)
Ora manca solo il codice del lancio missili che io direi di usare solo per le M7M e le M8. Cmq prima bisogna trovarlo :lol:
Scusate il lunghissimo post ma era necessario... Credo :D
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

stormwings85 wrote:

Code: Select all

<ware typename="SS_WARE_TECH213" exact="100000"/>
<ware typename="SS_WARE_TECH246" exact="100000"/>
<ware typename="SS_WARE_TECH251" exact="100000"/>
il valore 100000 come detto rappresenta il valore massimo, arrotondato per eccesso, che può essere richieto (è l'Aran anche se poi non si può e non verrà mai utilizzata)
Sicuro che in questo modo tu non abbia aggiunto 100'000 di stiva e di potenziamenti alle navi? :doh:
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

-Dna- wrote:
stormwings85 wrote:

Code: Select all

<ware typename="SS_WARE_TECH213" exact="100000"/>
<ware typename="SS_WARE_TECH246" exact="100000"/>
<ware typename="SS_WARE_TECH251" exact="100000"/>
il valore 100000 come detto rappresenta il valore massimo, arrotondato per eccesso, che può essere richieto (è l'Aran anche se poi non si può e non verrà mai utilizzata)
Sicuro che in questo modo tu non abbia aggiunto 100'000 di stiva e di potenziamenti alle navi? :doh:
Mi hai preceduto...
pensavo inizialmete che avessero un limite e che raggiunto quello si fermava e invece no. Cicla...
Questo però non vale per la stiva :D
L'ho notato quando ho visto che un boreas girava su se stesso come una trottola impazzita...
Però non sfrecciavano e questo inizialmente mi aveva tratto in inganno
Quindi ecco il nuovo e sistemato (funziona adesso :D) :D

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
  <documentation>
    <author alias="Aro" contact="Forum" />
  </documentation>
  <cues>
    <cue name="xff.director.fightmaker">
      <action>
        <do_all>
          <ask_question name="doxff" author="XFF Battle Creator" text="Begin the match?\nIf you're not ready to start the match hit the clear menu button (default is 'Delete') then activate this script later by bringing up the message log (default 'Shift+m').\n\n[select value='yes']Fight![/select]\n[select value='no']Denied.[/select]" popup="1" silent="1"/>
          <play_sound soundid="1100"/>
        </do_all>
      </action>
      <cues>
        <cue name="doeet">
          <condition>
            <question_answered question="doxff" answer="yes"/>
          </condition>
          <action>
            <do_all>

<!-- iddqd -->
                <set_invincible object="{player.ship}" invincible="1"/>
<!-- Now Xenon are friendly. -->
                <reward_player>
                  <notoriety>
                    <relation race="xenon" operation="set" exact="1000000"/>
                  </notoriety>
                </reward_player>
<!-- Run extra code. -->
                <run_script script="xff.setup" object="{player.ship}"/>
<!-- Overtune player ship. -->

                <add_equipment object="{player.ship}">


                  <ware typename="SS_WARE_TECH213" exact="350"/>

                  <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{player.ship}}"/>

                  <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{player.ship}}"/>

                </add_equipment>


<!-- ==================== Do not edit above this line. ==================== -->


<!-- How far apart the fleets will spawn. 10km = 5. Do not add the 'km'. -->
                <set_value name="fleetDistance" exact="5"/>
<!-- Spacing withing the fleets. -->
                <set_value name="fleetSpacing" exact="3"/>

<!-- Spawn Argon Ships, place code below. -->

                <do_all exact="2">
                  <create_ship group="argonGroup" race="argon" typename="SS_SH_OTAS_M2" warp="1">
                    <position x="1.5*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>

                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>
                      <ware typename="SS_WARE_BOOST" exact="1"/>

                      <ware typename="SS_SHIELD_F" exact="5"/>


                      <ware typename="SS_LASER_PPC" exact="8"/>

                      <ware typename="SS_LASER_PPC" exact="5"/>
                      <ware typename="SS_LASER_GAUSS" exact="1"/>
                      <ware typename="SS_LASER_EBC" exact="2"/>

                      <ware typename="SS_LASER_PPC" exact="5"/>
                      <ware typename="SS_LASER_GAUSS" exact="1"/>
                      <ware typename="SS_LASER_EBC" exact="2"/>


                      <ware typename="SS_LASER_FLAK_ALPHA" exact="7"/>
                      <ware typename="SS_LASER_IONC" exact="1"/>

                      <ware typename="SS_LASER_FLAK_ALPHA" exact="3"/>
                      <ware typename="SS_LASER_IONC" exact="1"/>


                      <ware typename="SS_LASER_FLAK_ALPHA" exact="3"/>
                      <ware typename="SS_LASER_IONC" exact="1"/>

                      <ware typename="SS_MISSILE_FF" exact="11"/>
                      <ware typename="SS_WARE_AMMUNITION_GAMMA" exact="40"/>
                      <ware typename="SS_WARE_AMMUNITION_BETA" exact="55"/>

                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>

<!-- End Argon Ships -->
<!-- Spawn Xenon Ships, place code below. -->

		

                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M2" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>

                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>

                      <ware typename="SS_SHIELD_F" exact="3"/>

                      <ware typename="SS_LASER_PPC" exact="12"/>
                      <ware typename="SS_LASER_CIG" exact="6"/>
                      <ware typename="SS_LASER_HEPT" exact="4"/>
                      <ware typename="SS_LASER_PBE" exact="6"/>

                      <ware typename="SS_MISSILE_FF" exact="30"/>
                      <ware typename="SS_MISSILE_A" exact="100"/>
                      <ware typename="SS_MISSILE_TR2" exact="10"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>



                 <create_ship group="xenonGroup" race="xenon" typename="SS_SH_S_M1" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>

                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>

                      <ware typename="SS_SHIELD_F" exact="2"/>

                      <ware typename="SS_LASER_PPC" exact="6"/>
                      <ware typename="SS_LASER_CIG" exact="2"/>
                      <ware typename="SS_LASER_PSG" exact="2"/>
                      <ware typename="SS_LASER_FLAK_ALPHA" exact="5"/>
                      <ware typename="SS_LASER_PBE" exact="4"/>
                      <ware typename="SS_LASER_FBL" exact="1"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                

                <do_all exact="10">
                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_T_M3" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>

                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>

                      <ware typename="SS_SHIELD_C" exact="4"/>

                      <ware typename="SS_LASER_PRG" exact="3"/>
                      <ware typename="SS_LASER_HEPT" exact="3"/>
                      <ware typename="SS_LASER_PD" exact="2"/>

                      <ware typename="SS_MISSILE_A" exact="159"/>
                      <ware typename="SS_MISSILE_B" exact="10"/>
                      <ware typename="SS_MISSILE_PROXTRAK" exact="20"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>
                </do_all>



                  <create_ship group="xenonGroup" race="xenon" typename="SS_SH_LOST_M6H" warp="1">
                    <position x="-1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>

                      <ware typename="SS_WARE_SW_FIGHT_1" exact="1"/>
                      <ware typename="SS_WARE_SW_FIGHT_2" exact="1"/>
                      <ware typename="SS_WARE_SCANNER3" exact="1"/>
                      <ware typename="SS_WARE_SW_NAV_1" exact="1"/>

                      <ware typename="SS_SHIELD_D" exact="3"/>

                      <ware typename="SS_LASER_MAM_1" exact="6"/>

                      <ware typename="SS_MISSILE_SPECTRE" exact="203"/>
                      <ware typename="SS_MISSILE_POLTERGEIST" exact="276"/>
                    </equipment>
                    <rotation alpha="270deg"/>
                    <command command="killenemies"/>
                  </create_ship>



<!-- End Xenon Ships -->



<!-- ==================== Do not edit below this line. ==================== -->


<!-- This maxes out tunings/rudder/cargo for both groups -->

                <do_all exact="{group.object.count@xenonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@xenonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@xenonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@xenonGroup}}"/>
                  </add_equipment>
                </do_all>
                <do_all exact="{group.object.count@argonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@argonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@argonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@argonGroup}}"/>
                  </add_equipment>  

                </do_all>


            </do_all>
          </action>
        </cue>
        <cue name="runaway">
          <condition>
            <question_answered question="doxff" answer="no"/>
          </condition>
          <action>
            <cancel_cue cue="xff.director.fightmaker"/>
          </action>
        </cue>
      </cues>
    </cue>
  </cues>
</director>
Ringrazio le flotte di jtk e di DannyD che si sono prestate :P
Ho anche leggermente allargato la distanza tra le 2 flotte (solo di 2,5km) così le capital si possono sistemare per bene.

Quindi l'unica riga che va aggiunta per ogni nave è questa:

Code: Select all

<ware typename="SS_WARE_TECH251" exact="100000"/>
Se volete le cose perfette con l'inserimento del numero giusto di upgrade di stiva postatele assieme alle flotte se no ci tocca guardare sempre fare i conti :P

@GVNN:
copia tutto il codice. Se noti c'è una differenza sotto la linea "Do not edit below this line"
Praticamente mancano queste 2 linee:

Code: Select all

<ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{counter@count}@xenonGroup}}"/>

<ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{counter@count}@argonGroup}}"/>
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

Ma con questo metodo prima dai 100'000 di stiva a tutte le navi, poi ne dai ancora :S

Sei sicuro del tuo calcolo, o sono io che ho capito male? Non sarebbe più giusto fare una cosa del tipo: aggiungo 100'000 e poi tolgo (100'000-massimo della nave) in modo da avere la quota giusta?

:gruebel:
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

-Dna- wrote:Ma con questo metodo prima dai 100'000 di stiva a tutte le navi, poi ne dai ancora :S

Sei sicuro del tuo calcolo, o sono io che ho capito male? Non sarebbe più giusto fare una cosa del tipo: aggiungo 100'000 e poi tolgo (100'000-massimo della nave) in modo da avere la quota giusta?

:gruebel:
no... aggiungo 100000 al momento della creazione delle singole navi così hanno la stiva massima (la stiva quando raggiunge il massimo valore consentito dalla nave non aumenta +. Non si presenta il problema della velocità o manegevolezza e questo è un bene :D) e poi non c'è + nessuna riga di comando che indica un aumento della stiva. Quelle 2 sono state eliminate ;)
Ho fatto diverse prove e tutto ORA e lo sottolineo visto la cavolata che avevo fatto :P funziona bene.
Posterò un video di uno scontro e in quello faccio anche qualche scansione così potete vedere che tutto è OK!
Se fai anche la sezione video come hai detto la posterò li se no dimmi te dove metterla provvisoriamente (cmq lo posterò domani... credo :D)
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

stormwings85 wrote:la stiva quando raggiunge il massimo valore consentito dalla nave non aumenta +.
Eccola la frasetta essenziale che mancava al tuo discorso! :lol:

Ok ora ho capito e quelle due righe le ho eliminate pure io :D

Bene posso fare test ^^


Certo che sarebbe utile che il programma butti già fuori almeno la parte centrale da sostituire tutto da solo :(
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

-Dna- wrote:
stormwings85 wrote:la stiva quando raggiunge il massimo valore consentito dalla nave non aumenta +.
Eccola la frasetta essenziale che mancava al tuo discorso! :lol:

Ok ora ho capito e quelle due righe le ho eliminate pure io :D

Bene posso fare test ^^


Certo che sarebbe utile che il programma butti già fuori almeno la parte centrale da sostituire tutto da solo :(
pensa che credevo di averla scritta :P creare flotte e scrivere qui tutto assieme mi ha mandato a male :lol:
Lo so che sarebbe meglio ma in fin dei conti è una sola riga che va messa prima degli scudi
non è poi male in fin dei conti...
se qualcuno trova il modo di fissare le armi sulle torrette e il lancio missili lo faccia sapere!!! altrimenti niente M7M o M8

EDIT:
Dimenticavo una cosa:
Visto che si parla di Wings (andate a vedere nel post delle regole ;) per ora è solo una mia proposta ma non si sa mai) anche la creazione di Wings di capital (parlo dei Boreas ovviamente :D) può essere scelta come opportunità o scartata. Vale a dire che si possono far generare le 2 capital in formazione o meno.
Ovviamente lo dovete specificare o meglio ne create 2 con il Fleet Calculator :D

@Dna: ho un video chicca dove 2 Boreas vengono annientati da una certa flotta :roll:
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

E per ottimizzarlo ulteriormente? Io ho messo alla nave del giocatore anche lo scanner da carico, così si può vedere che armi montano e dove le navi.

Per le M7M? Hai scoperto qualcosa? :?
stormwings85 wrote:@Dna: ho un video chicca dove 2 Boreas vengono annientati da una certa flotta :roll:
Tanto è GOFfa la mia flotta, quindi non ci credo :lol:
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

Io ho messo alla nave del giocatore anche lo scanner da carico, così si può vedere che armi montano e dove le navi.
è quello che ho fatto pure io ;) è grazie a quello che ho scoperto il problema che aveva lo script originale a riguardo della stiva...
Purtroppo non me ne intendo molto di script ed è già tanto che abbia sistemato (in maniera schifosa ma funziona) il problema delle stive e che abbia allontanato un po' le flotte così da non avere un ingaggio già in corso.
Tanto è GOFfa la mia flotta, quindi non ci credo :lol:
Allora lo riduco di dimensioni e lo uplodo ;) Per una volta che hanno fatto una strage di Boreas...

Per le M7M non so che fare e mi dispiace... come già detto non me ne intendo molto (niente è la parola + adatta).
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

In effetti questo non è uno script da script editor, ma è uno script da Mission Direcor. Magari seguendo questa piccola guida riusciamo a cavarci qualcosa. Intanto pulisco e carico da qualche parte lo script, magari traducendo anche la frase iniziale ;)

EDIT:
Volevate i wings e le tattiche? Eccovi la lista dei possibili comandi da dare alle navi :D

Code: Select all

command - Command
none            No action  
default         Default action for class  
follow          Follow command object  
home            Return home  
protect         Protect command object  
attack          Attack command object  
attacknearest   Attack nearest enemy to formation leader  
killenemies     Kill all enemies  
attacktarget    Attack player ship target  
dock            Dock at command object  
stay            Stay still  
idle            Follow idle flight pattern  
movesector      Move to sector  
moveposition    Move to position  
movecontinue    Move to position and continue  
collectware     Collect ware crate  
jumpsector      Jump to sector  
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

io mi sto guardando un po' il file PDF e sto vedendo se riesco a trovare qualcosa di meglio per le stive. Lo proverò dopo aplodata la battaglia di rivincita tra te e jtk ;)
tra i comandi postati quai potranno essere utili?
killenemies ovviamente (è lo scopo ed è già nel codice)
protect potrebbe servire ma non vedo quello per i wings... tanto potrebbe solo essere una cosa solo teorica giusto per le regole...
se ci fai caso quando viene creato un gruppo di caccia non li crea in formazione ma un po' sparsi qua e la...
ora faccio un paio di cosette e poi torno a leggere il PDF
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

stormwings85 wrote:io mi sto guardando un po' il file PDF e sto vedendo se riesco a trovare qualcosa di meglio per le stive. Lo proverò dopo aplodata la battaglia di rivincita tra te e jtk ;)
tra i comandi postati quai potranno essere utili?
killenemies ovviamente (è lo scopo ed è già nel codice)
protect potrebbe servire ma non vedo quello per i wings... tanto potrebbe solo essere una cosa solo teorica giusto per le regole...
se ci fai caso quando viene creato un gruppo di caccia non li crea in formazione ma un po' sparsi qua e la...
ora faccio un paio di cosette e poi torno a leggere il PDF
Oltre al pdf, guardati il file .htm: lì ci sono tutto (o quasi) i tag per il MD e c'è pure quello per le flotte in modo da gestirle come tali.
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
DannyDSC
Posts: 7070
Joined: Sun, 5. Dec 04, 20:32
x4

Post by DannyDSC »

Domanda : non c'è modo di aggiungere il nostro script xml in modo da facilitarvi il lavoro?

Question : we can't add our xml file to make easier the work?
The Indie Seeker - The Twitter Channel for your indiegames!

Ex Egosoft Translator/Currently writer for www.ilvideogioco.com

@IlVideogiococom is the ONLY italian website that offers full coverage to ALL #indiegames! Are you an #indiedev?
Feel free to follow and contact us on Twitter/Facebook/Instagram!
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

Qui parla pure solo in italiano che tanto è un topic di sviluppo "interno" 8)

Per noi è molto più facile ricevere le flotte già formattate in XML e adattarla nel nostro piccolo script casalingo. Insegnare a tutti a creare lo script e poi a spedirlo e ricontrollarlo è decisamente più lungo e difficile.

:idea: Sarebbe interessante che il programma generi già automaticamente lo script completo. Ora chiedo a Capux.
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
DannyDSC
Posts: 7070
Joined: Sun, 5. Dec 04, 20:32
x4

Post by DannyDSC »

ecco si intendevo quello, cioè quando noi salviamo in XML se automaticamente aggiungesse lo script voi non dovreste far altro che premere run.

il file script dell'utente che salva basterebbe che ogni utente lo chiami con il nome della flotta o anche il nome utente in modo da facilitarne il riconoscimento.

Altrimenti impareremo tutti ad aggiungere lo script da soli. Non è facile ma alla fine è anche solo per le prime volte
The Indie Seeker - The Twitter Channel for your indiegames!

Ex Egosoft Translator/Currently writer for www.ilvideogioco.com

@IlVideogiococom is the ONLY italian website that offers full coverage to ALL #indiegames! Are you an #indiedev?
Feel free to follow and contact us on Twitter/Facebook/Instagram!
User avatar
-Dna-
Posts: 16661
Joined: Mon, 3. Jan 05, 13:11
x4

Post by -Dna- »

DannyD wrote:Altrimenti impareremo tutti ad aggiungere lo script da soli. Non è facile ma alla fine è anche solo per le prime volte
Tu non conosci gli insulti che girano tra di noi via MSN o altro ogni volta che per una " fuori posto o un tag non chiuso non parte la battaglia :lol:

EDIT:
Stormwings, controlla se questo script è corretto. Dovrebbe essere un facile template da cui iniziare.

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
  <documentation>
    <author alias="Aro" contact="Forum" />
  </documentation>
  <cues>
    <cue name="xff.director.fightmaker">
      <action>
        <do_all>
          <ask_question name="doxff" author="XFF Battle Creator" text="Begin the match?\nIf you're not ready to start the match hit the clear menu button (default is 'Delete') then activate this script later by bringing up the message log (default 'Shift+m').\n\n[select value='yes']Fight![/select]\n[select value='no']Denied.[/select]" popup="1" silent="1"/>
          <play_sound soundid="1100"/>
        </do_all>
      </action>
      <cues>
        <cue name="doeet">
          <condition>
            <question_answered question="doxff" answer="yes"/>
          </condition>
          <action>
            <do_all>

<!-- iddqd -->
                <set_invincible object="{player.ship}" invincible="1"/>
<!-- Now Xenon are friendly. -->
                <reward_player>
                  <notoriety>
                    <relation race="xenon" operation="set" exact="1000000"/>
                  </notoriety>
                </reward_player>
<!-- Run extra code. -->
                <run_script script="xff.setup" object="{player.ship}"/>
<!-- Overtune player ship. -->

                <add_equipment object="{player.ship}">


                  <ware typename="SS_WARE_TECH213" exact="350"/>
				  <ware typename="SS_WARE_TECH276" exact="1" />

                  <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{player.ship}}"/>

                  <ware typename="SS_WARE_TECH251" exact="{object.equipment.SS_WARE_TECH251.maxcount@{player.ship}}-{object.equipment.SS_WARE_TECH251.count@{group.object.{player.ship}}"/>

                </add_equipment>


<!-- ==================== Do not edit above this line. ==================== -->

<!-- How far apart the fleets will spawn. 10km = 5. Do not add the 'km'. -->
                <set_value name="fleetDistance" exact="5"/>
<!-- Spacing withing the fleets. -->
                <set_value name="fleetSpacing" exact="3"/>

<!-- /!\ Never forget to put this first line in the ships' equipment!!! /!\ 

		<ware typename="SS_WARE_TECH251" exact="100000"/>

This is a brute-force solution to avoid the little cargo bay problem-->

<!-- Ship example:

		<do_all exact="{NUMBER OF SHIPS}">
            <reate ship {PLACE CREATE STATEMENT HERE} >
                <position x="{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                <sector sector="{player.sector}"/>
                <equipment>
					<ware typename="SS_WARE_TECH251" exact="100000"/>
                    
					{PLACE WARE HERE}
					
                </equipment>
                <rotation alpha="{"90deg" for ARGON || "270deg" for XENON}"/>
                <command command="killenemies"/>
            </create_ship>
        </do_all>

-->
				
<!-- Spawn Argon Ships, place code below. -->



<!-- End Argon Ships -->

<!-- Spawn Xenon Ships, place code below. -->



<!-- End Xenon Ships -->

<!-- ==================== Do not edit below this line. ==================== -->


<!-- This maxes out tunings/rudder/cargo for both groups -->

                <do_all exact="{group.object.count@xenonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@xenonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@xenonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@xenonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@xenonGroup}}"/>
                  </add_equipment>
                </do_all>
                <do_all exact="{group.object.count@argonGroup}" counter="count">


                  <add_equipment object="{group.object.{counter@count}@argonGroup}">

                    <ware typename="SS_WARE_TECH213" exact="{object.equipment.SS_WARE_TECH213.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH213.count@{group.object.{counter@count}@argonGroup}}"/>
                    <ware typename="SS_WARE_TECH246" exact="{object.equipment.SS_WARE_TECH246.maxcount@{group.object.{counter@count}@argonGroup}}-{object.equipment.SS_WARE_TECH246.count@{group.object.{counter@count}@argonGroup}}"/>
                  </add_equipment>  

                </do_all>

            </do_all>
          </action>
        </cue>
        <cue name="runaway">
          <condition>
            <question_answered question="doxff" answer="no"/>
          </condition>
          <action>
            <cancel_cue cue="xff.director.fightmaker"/>
          </action>
        </cue>
      </cues>
    </cue>
  </cues>
</director>
Last edited by -Dna- on Fri, 13. Aug 10, 00:01, edited 1 time in total.
Remember: Good things don't come to an end: good things just stop. ~ [cit. Sean "Day[9]" Plott]

:xenon: Xenon Love! \#/ :xenon:
:split: Grill the Borons! :split:
:pirat: Real pirates (ab)use Jumpdrive (and Rum) :pirat:
stormwings85
Posts: 893
Joined: Mon, 1. Mar 10, 13:49
x4

Post by stormwings85 »

è perfetto ;)
poi in ogni caso se qualcosa non è chiaro in prima pagina è postato il codice comprensivo di 2 flotte.

Ora sto tentando la creazione di Wings ma la vedo dura :(

EDIT:
trovata una piccola imperfezione a questa riga:

Code: Select all

            <create_ship group="argonGroup" race="argon" typename="SS_SH_Y_M3P" warp="1">
typename="SS_SH_Y_M3P"
SS_SH_Y_M3P è il codice della nave che volete inserire (li potete trovare qui: http://forum.egosoft.com/viewtopic.php? ... 14#3327214)

Per gli xenon va modificata così:

Code: Select all

                 <create_ship group="xenonGroup" race="xenon" typename="SS_SH_Y_M3P" warp="1">
Penso sia tutto ;)


EDIT 2:

Grazie a Dna che mi ha dato una bella dritta con quel link ho creato...
GLI WINGS!!!
Il codice diventa + complesso nella parte esterna alle flotte ma è stato estremamente semplice
Posterò un filmato così potrete vederli in azione.
Lasciatemi solo un po' di tempo per sistemare ancora alcune cosette e poi registro :D
Spero che vi renda felici :D

Ecco il filmato:
http://www.youtube.com/watch?v=oCotuSFr8SI
E' corto e solo dimostrativo ;) Come vedete gli M4 si mettono in formazione con il loro leader anche se purtroppo vendono generati distanti.
I membri del Wings hanno questo ordine:

Code: Select all

                    <command command="attacknearest"/>
Questo permette di non disperdere la formazione prima dell'ingaggio delle flotte ;) Cmq attaccano e anche bene!
Il Leader del Wings invece ha il comando:

Code: Select all

                    <command command="killenemies"/>
che è il solito comando
Se passerà l'idea di costruire wings per dare + l'idea della flotta dovrete tenerne conto ;)

EDIT 3:
Mi ero dimenticato il codice:

Code: Select all

                <do_all exact="1">
                 <create_ship leader="1" group="argonGroup" race="argon" typename="{CODICE NAVE}" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware>

                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="killenemies"/>
                  </create_ship>

                <do_all exact="5">
                  <create_ship group="argonGroup" race="argon" typename="{CODICE NAVE}" warp="1">
                    <position x="1*{value@fleetDistance}km" y="0" z="0" max="{value@fleetSpacing}km"/>
                    <sector sector="{player.sector}"/>
                    <equipment>
                      <ware typename="SS_WARE_TECH251" exact="100000"/>
                      <ware>

                    </equipment>
                    <rotation alpha="90deg"/>
                    <command command="attacknearest"/>
                  </create_ship>
                </do_all>
               </do_all>

Return to “Script e Modding per la Trilogia di X”