X4:F color modes effect on windows

The place to discuss scripting and game modifications for X4: Foundations.

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

FantasyWarrior
Posts: 29
Joined: Sun, 24. Jul 16, 18:43

X4:F color modes effect on windows

Post by FantasyWarrior »

Hello

In first sorry for me english hehe.

I want replace the effect color (or turn off) on the cockpit windows durring scan (pink) , long range scan (blue), and travel mode (yellow), but i don't know how to put the correct langage code, i've tried for exemple :

Spoiler
Show

Code: Select all

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

<diff>
 
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_ScanLongRange_Ref']/param[@name='CockpitTintR']">
          <param name="CockpitTintR" value="0" />
    </replace>
 
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_ScanLongRange_Ref']/param[@name='CockpitTintG']">
	          <param name="CockpitTintG" value="0" />
    </replace>
	
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_ScanLongRange_Ref']/param[@name='CockpitTintB']">
          <param name="CockpitTintB" value="0" />
    </replace>	

   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Scan_Ref']/param[@name='CockpitTintR']">
          <param name="CockpitTintR" value="0" />
    </replace>
 
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Scan_Ref']/param[@name='CockpitTintG']">
	          <param name="CockpitTintG" value="0" />
    </replace>
	
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Scan_Ref']/param[@name='CockpitTintB']">
          <param name="CockpitTintB" value="0" />
    </replace>	

   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Travel_Ref']/param[@name='CockpitTintR']">
          <param name="CockpitTintR" value="0" />
    </replace>
 
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Travel_Ref']/param[@name='CockpitTintG']">
	          <param name="CockpitTintG" value="0" />
    </replace>
	
   <replace sel="/mdscript[@name='Modes']/cues/cue[@name='Mode_Travel_Ref']/param[@name='CockpitTintB']">
          <param name="CockpitTintB" value="0" />
    </replace>	


	
</diff>		

but it not work.
No problem for a texture replacing, library/ replace, etc....
Spoiler
Show

Code: Select all

           <replace sel="/materiallibrary/collection[@name='effects']/material[@name='fog_pattern_default_01']/properties/property[@name='diffuse_map']"> 
        <property type="BitMap" name="diffuse_map" value="extensions\Textures_suite\assets\textures\environments\fog_maskrnd_2_gui" />
   </replace> 


any help would be appreciated ! thank you !


Just for ex, there is the Modes.xml structure without modifications.
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<mdscript name="Modes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">


<cues>

    <cue name="Mode_ScanLongRange" instantiate="true">
      <conditions>
        <event_object_signalled object="player.entity" param="'startactivity'" param2="activity.scan_longrange" />
      </conditions>
      <actions>
        <set_value name="$debugchance" exact="0" />
        <debug_text text="'Mode_ScanLongRange signalled'" chance="$debugchance" />
        <!--TODO @Owen @Matthias Should this be using occupiedship? Currently using controlled to match code and cover case of LRS capable drones in future-->
        <set_value name="$Ship" exact="player.controlled"/>
        <do_if value="not $Ship">
          <cancel_cue cue="Mode_ScanLongRange"/>
        </do_if>
      </actions>
      <cues>
        <cue name="Mode_ScanLongRange_Ref" ref="md.Modes.Start">
          <param name="Error" value="not player.longrange" />
          <param name="Activity" value="activity.scan_longrange" />
          <param name="Object" value="$Ship"/>
          <param name="CockpitTintR" value="0" />
          <param name="CockpitTintG" value="0" />
          <param name="CockpitTintB" value="0" />
          <param name="StartSound" value="'ui_modes_scan_long_on'" />
          <param name="StopSound" value="'ui_modes_scan_long_off'" />
          <param name="debugchance" value="$debugchance" />
        </cue>
      </cues>
    </cue>


edit: resolved ! thx
<!-----etc .... ----->

</mdscript>

edit : resolved thx !

Return to “X4: Foundations - Scripts and Modding”