XRWS           !–  m  )ext_01.cat ext_01.dat assets/props/StorageModules/macros/cargobay_ship_xl_universal_scaldis_macro.xml 359 1490007483 b60ab50f37d80e36f20eec4313754c82
assets/props/StorageModules/macros/storage_ship_xl_universal_scaldis_macro.xml 501 1490007507 54801fdc82d9e759c23813ef3ff5fd59
assets/units/size_xl/macros/units_size_xl_cargo_hauler_3_macro.xml 1255 1490007465 896298e4b4e17684c29af0fde5cddaa1
assets/units/size_xl/units_size_xl_cargo_hauler_3.xml 683 1490007474 e6a0361ebb974525779047773b435c7e
index/macros.xml 453 1490007530 ea3e948a5a40a26590f6e826abffec8f
md/Update_Exisiting_Scaldises.xml 4726 1490007495 95ed86994f0c08ba911671078e099afe
<?xml version="1.0" encoding="utf-8"?>
<macros>
  <macro name="cargobay_ship_xl_universal_scaldis_macro" class="cargobay">
    <component ref="generic_cargobay" />
    <properties>
      <identification unique="0" />
      <cargo max="57500" tags="bulk container energy liquid" />
      <hull integrated="1" />
    </properties>
  </macro>
</macros><?xml version="1.0" encoding="utf-8"?>
<macros>
  <macro name="storage_ship_xl_universal_scaldis_macro" class="storage">
    <component ref="generic_storage" />
    <properties>
      <identification name="{20109,801}" unique="0" />
      <hull integrated="1" />
    </properties>
    <connections>
      <connection ref="cargo">
        <macro ref="cargobay_ship_xl_universal_scaldis_macro" connection="StorageConnection" />
      </connection>
    </connections>
  </macro>
</macros>
<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="/macros/macro[@name='units_size_xl_cargo_hauler_3_macro']/connections/connection[@ref='connection_storage02']">
    <connection ref="connection_storage_u_02">
      <macro ref="storage_ship_xl_universal_scaldis_macro" connection="ShipConnection"/>
    </connection>
  </replace>
  <replace sel="/macros/macro[@name='units_size_xl_cargo_hauler_3_macro']/connections/connection[@ref='connection_storage03']">
    <connection ref="connection_storage_u_03">
      <macro ref="storage_ship_xl_universal_scaldis_macro" connection="ShipConnection"/>
    </connection>
  </replace>
  <replace sel="/macros/macro[@name='units_size_xl_cargo_hauler_3_macro']/connections/connection[@ref='connection_storage04']">
    <connection ref="connection_storage_u_04">
      <macro ref="storage_ship_xl_universal_scaldis_macro" connection="ShipConnection"/>
    </connection>
  </replace>
  <replace sel="/macros/macro[@name='units_size_xl_cargo_hauler_3_macro']/connections/connection[@ref='connection_storage05']">
    <connection ref="connection_storage_u_05">
      <macro ref="storage_ship_xl_universal_scaldis_macro" connection="ShipConnection"/>
    </connection>
  </replace>
</diff><?xml version="1.0" encoding="utf-8"?>
<diff>
	<add sel="/components/component/connections">
		<connection name="connection_storage_u_02" tags="storage ">
      <offset/>
    </connection>
  </add>
	<add sel="/components/component/connections">
		<connection name="connection_storage_u_03" tags="storage ">
      <offset/>
    </connection>
  </add>
	<add sel="/components/component/connections">
		<connection name="connection_storage_u_04" tags="storage ">
      <offset/>
    </connection>
  </add>
	<add sel="/components/component/connections">
		<connection name="connection_storage_u_05" tags="storage ">
      <offset/>
    </connection>
  </add>
</diff><?xml version="1.0" encoding="iso-8859-1"?>
<diff>
	<add sel="/index">
		<entry name="storage_ship_xl_universal_scaldis_macro" value="extensions\nidaren_scaldis_cargo_fix\assets\props\StorageModules\macros\storage_ship_xl_universal_scaldis_macro" />
		<entry name="cargobay_ship_xl_universal_scaldis_macro" value="extensions\nidaren_scaldis_cargo_fix\assets\props\StorageModules\macros\cargobay_ship_xl_universal_scaldis_macro" />
  </add>
</diff><?xml version="1.0" encoding="ISO-8859-1" ?>
<mdscript name="Update_Existing_Scaldises" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="d:\x\md\md.xsd">
  <cues>
    <cue name="Scaldis_Checker" version="3">
      <conditions>
        <event_game_loaded /> 
      </conditions>
      <actions>
        <find_ship name="$AllScaldises" macro="macro.units_size_xl_cargo_hauler_3_macro" space="player.galaxy" multiple="true" />
        <do_if value="$AllScaldises.count == 0">
          <debug_text text="'No Scaldises found. No need to update.'" filter="general" />
        </do_if>
        <do_else>
          <do_all exact="$AllScaldises.count" counter="$s">
            <find_object_component name="$vanillaBcheck" macro="macro.storage_ship_xl_bulk_01_macro" object="$AllScaldises.{$s}" multiple="true"/>
            <find_object_component name="$vanillaLcheck" macro="macro.storage_ship_xl_liquid_01_macro" object="$AllScaldises.{$s}" multiple="true"/>
            <find_object_component name="$vanillaEcheck" macro="macro.storage_ship_xl_energy_01_macro" object="$AllScaldises.{$s}" multiple="true"/>
            <find_object_component name="$vanillaCcheck" macro="macro.storage_ship_xl_container_01_macro" object="$AllScaldises.{$s}" multiple="true"/>
          </do_all>
          <do_if value="$vanillaBcheck.count == 0 and $vanillaLcheck.count == 0 and $vanillaEcheck.count == 0 and $vanillaCcheck.count == 0">
            <debug_text text="'No vanilla modules in existing Scaldises found. No need to update.'" filter="general" />
          </do_if>
          <do_else>
            <set_value name="$B_container_count" exact="0"/>
            <set_value name="$L_container_count" exact="0"/>
            <set_value name="$E_container_count" exact="0"/>  
            <set_value name="$C_container_count" exact="0"/>  		
            <find_ship name="$scaldises" macro="macro.units_size_xl_cargo_hauler_3_macro" space="player.galaxy" multiple="true"/> 
            <do_all exact="$scaldises.count" counter="$i"> 
              <find_object_component name="$components" macro="macro.storage_ship_xl_bulk_01_macro" object="$scaldises.{$i}" multiple="true"/> 
              <do_all exact="$components.count" counter="$j"> 
                <destroy_object object="$components.{$j}" explosion="false"/> 
                <set_value name="$B_container_count" operation="add"/> 
              </do_all> 
              <find_object_component name="$components" macro="macro.storage_ship_xl_liquid_01_macro" object="$scaldises.{$i}" multiple="true"/> 
              <do_all exact="$components.count" counter="$j"> 
                <destroy_object object="$components.{$j}" explosion="false"/> 
                <set_value name="$L_container_count" operation="add"/> 
              </do_all>
              <find_object_component name="$components" macro="macro.storage_ship_xl_energy_01_macro" object="$scaldises.{$i}" multiple="true"/> 
              <do_all exact="$components.count" counter="$j"> 
                <destroy_object object="$components.{$j}" explosion="false"/> 
                <set_value name="$E_container_count" operation="add"/> 
              </do_all>
              <find_object_component name="$components" macro="macro.storage_ship_xl_container_01_macro" object="$scaldises.{$i}" multiple="true"/> 
              <do_all exact="$components.count" counter="$j"> 
                <destroy_object object="$components.{$j}" explosion="false"/> 
                <set_value name="$C_container_count" operation="add"/> 
              </do_all>  		  
              <patch_macro object="$scaldises.{$i}"/> 
            </do_all> 
            <debug_text filter="general" text="'Replaced %2 Bulk, %3 Liquid, %4 Energy, %5 Container storages in %1 Scaldises found.'.[$scaldises.count,$B_container_count,$L_container_count,$E_container_count,$C_container_count]"/> 
          </do_else>
        </do_else>
        <remove_value name="$AllScaldises" />
        <remove_value name="$B_container_count" />
        <remove_value name="$L_container_count" />
        <remove_value name="$E_container_count" />
        <remove_value name="$C_container_count" />
        <remove_value name="$components" />
        <remove_value name="$scaldises" />
        <remove_value name="$vanillaBcheck" />
        <remove_value name="$vanillaLcheck" />
        <remove_value name="$vanillaEcheck" />  
        <remove_value name="$vanillaCcheck" />
      </actions>
      <patch sinceversion="1" state="complete" >
        <reset_cue cue="this"/>
        <force_cue cue="this"/>
      </patch>
    </cue>
  </cues>
</mdscript>
<?xml version="1.0" encoding="iso-8859-1"?>
<content id="" name="" version="108" description="" author="Nidaren" date="2017-03-20" save="false" lastupdate="">
  <dependency version="400"/>
  <text language="44" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="49" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="07" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="34" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="33" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="86" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
  <text language="48" name="Scaldis Cargo Fix" description="This mod fixes Scaldis' Cargo Bay into carrying any type of wares" author="Nidaren"/>
</content>
