long range scan - mod help - simplified

The place to discuss scripting and game modifications for X Rebirth.

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

Post Reply
AR_Starfighter
Posts: 64
Joined: Thu, 6. Jun 19, 06:02

long range scan - mod help - simplified

Post by AR_Starfighter » Fri, 14. Jun 19, 07:21

Hello all. I'm doing a mod to fix the annoying and repetitive 'long range scan'.

I'm made progress in understanding how it works. These parts I can't find they are they located.

Modes.xml
-------------------

Code: Select all

    <cue name="Mode_ScanLongRange" instantiate="true">
      <conditions>
        <event_cue_signalled />
      </conditions>
      <actions>
        <debug_text text="'Mode_ScanLongRange signalled'" />
      </actions>
      <cues>
        <cue name="Mode_ScanLongRange_Ref" ref="md.Modes.Start">
          <param name="OnActivatedCue" value="Mode_ScanLongRange_Activated" />
          <param name="OnDeactivatedCue" value="Mode_ScanLongRange_Deactivated" />
          <param name="Error" value="not @player.primaryship.scanner.longrange" />
          <param name="Activity" value="activity.scan_longrange" />
          <param name="CockpitTintR" value="68" />
          <param name="CockpitTintG" value="128" />
          <param name="CockpitTintB" value="108" />
        </cue>
        <cue name="Mode_ScanLongRange_Activated">
          <conditions>
            <event_cue_signalled />
          </conditions>
          <actions>
            <debug_text text="'Mode_ScanLongRange_Activated signalled'" />
            <start_long_range_scan object="player.primaryship" />
          </actions>
        </cue>
        <cue name="Mode_ScanLongRange_Deactivated">
          <conditions>
            <event_cue_signalled />
          </conditions>
          <actions>
            <debug_text text="'Mode_ScanLongRange_Deactivated signalled'" />
            <stop_long_range_scan object="player.primaryship" />
          </actions>
        </cue>
      </cues>
    </cue>
MainMenu.xml
------------------------

Code: Select all

<signal_cue cue="md.Modes.Mode_ScanLongRange"/>

I can't find the other signal cues line. I need find those lines. So, I can understand the code. I've been reading about java and xml coding.


My goal is start the pings right after selecting long range scan. When you select any other option, it stops. Thanks...

Post Reply

Return to “X Rebirth - Scripts and Modding”