Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
eurobusker

Registered:
Posts: 108
Reply with quote  #1 
DMX programming is not my forte,
I seem to have problems getting the docking light on my console to flash on and off until it stays on permanently when the ship is docked.
I fully understand how the RED ALERT works, but the docking time is different each time and so this is not a times event.
Can anyone give me a few clues (cues) as to how I can get a flashing led until the ship is fully docked after which the same led stays lit?

TRACTORED_FOR_DOCKED     flashing light
COMPLETELY_DOCKED            fixed light
MarkBell

Avatar / Picture

Administrator
Registered:
Posts: 1,959
Reply with quote  #2 

Do you have the TRACTORED_FOR_DOCKED set as a continuous="yes" ?  If you've set up a flashing/fading light, it'll repeat as long as you're tractored.  If COMPLETELY_DOCKED is set below it in the file, and also continuous="yes", then it will override the TRACTORED.  In my setup, I have it fade down for half a second, then up for half a second, and repeat while tractored.  It's overridden by the COMPLETELY_DOCKED event just below it.

 


    <!-- ********************************************************************************************* -->
  <event type="TRACTORED_FOR_DOCKED" continuous="yes">

    <!-- shifting yellow light -->
    <timeblock mseconds="500">
      <setvalue index="5" value="200" change="-100"/>    <!-- red   value of first light box -->
      <setvalue index="6" value="200" change="-100"/>    <!-- green value of first light box -->
      <setvalue index="7" value="13" change="0"/>    <!-- blue  value of first light box -->
    </timeblock>
      <timeblock mseconds="500">
      <setvalue index="5" value="150" change="100"/>    <!-- red   value of second light box -->
      <setvalue index="6" value="150" change="100"/>    <!-- green value of second light box -->
      <setvalue index="7" value="13" change="0"/>    <!-- blue  value of second light box -->
    </timeblock>
     
  </event>

  <!-- ********************************************************************************************* -->
  <event type="COMPLETELY_DOCKED" continuous="yes">

    <!-- steady green light -->
    <timeblock mseconds="1000">
      <setvalue index="5" value="51" change="0"/>    <!-- red   value of first light box -->
      <setvalue index="6" value="200" change="0"/>    <!-- green value of first light box -->
      <setvalue index="7" value="5" change="0"/>    <!-- blue  value of first light box -->
      <setvalue index="8" value="0" change="0"/>    <!-- red   value of first light box -->
      <setvalue index="9" value="255" change="0"/>    <!-- green value of first light box -->
      <setvalue index="10" value="0" change="0"/>    <!-- blue  value of first light box -->
    </timeblock>
 
  </event>

    <!-- ********************************************************************************************* -->


__________________
Note - this is in no way intended to be an official position of Thom or Artemis, as I am not an official representative of the creator or game.
eurobusker

Registered:
Posts: 108
Reply with quote  #3 
Thank you very much, 
in fact this is where I got it wrong, If the 2 states are continuous this will give a loop until the next state change?
I'll try this later after work [smile]
eurobusker

Registered:
Posts: 108
Reply with quote  #4 
so this should work for me?
 <!-- ********************************************************************************************* -->
  <event type="TRACTORED_FOR_DOCKED" continuous="yes">
 
    <!-- steady yellow light -->
    <timeblock mseconds="1000">
      <setvalue index="0" value="200" change="0"/>
      <!-- red   value of first light box -->
      <setvalue index="1" value="200" change="0"/>
      <!-- green value of first light box -->
      <setvalue index="2" value="0" change="0"/>
      <!-- blue  value of first light box -->
    </timeblock>
<timeblock mseconds="500">
      <setvalue index="23" value="200" change="-100"/>
      <!-- light value of helm light -->
    </timeblock>
<timeblock mseconds="500">
      <setvalue index="23" value="150" change="100"/>
      <!-- light value of helm light -->
    </timeblock>
  </event>

<!-- ********************************************************************************************* -->
  <event type="COMPLETELY_DOCKED" continuous="yes">
 
    <!-- steady green light -->
    <timeblock mseconds="1000">
      <setvalue index="0" value="0" change="0"/>
      <!-- red   value of first light box -->
      <setvalue index="1" value="200" change="0"/>
      <!-- green value of first light box -->
      <setvalue index="2" value="0" change="0"/>
      <!-- blue  value of first light box -->
      <setvalue index="23" value="200" change="0"/>
      <!-- light value of helm light -->
    </timeblock>
  </event>
 
MarkBell

Avatar / Picture

Administrator
Registered:
Posts: 1,959
Reply with quote  #5 
It will work, but I'd split it into 2 separate TRACTORED events.  The way you have it, the pulsing lights will only pulse every other second.  Splitting the event means both are called when tractored so you don't have any timing gaps, like so:


 <!-- ********************************************************************************************* -->
  <event type="TRACTORED_FOR_DOCKED" continuous="yes">
 
    <!-- steady yellow light -->
    <timeblock mseconds="1000">
      <setvalue index="0" value="200" change="0"/>
      <!-- red   value of first light box -->
      <setvalue index="1" value="200" change="0"/>
      <!-- green value of first light box -->
      <setvalue index="2" value="0" change="0"/>
      <!-- blue  value of first light box -->
    </timeblock>
</event>

<event type="TRACTORED_FOR_DOCKED" continuous="yes">
<timeblock mseconds="500">
      <setvalue index="23" value="200" change="-100"/>
      <!-- light value of helm light -->
    </timeblock>
<timeblock mseconds="500">
      <setvalue index="23" value="150" change="100"/>
      <!-- light value of helm light -->
    </timeblock>
  </event>

<!-- ********************************************************************************************* -->
  <event type="COMPLETELY_DOCKED" continuous="yes">
 
    <!-- steady green light -->
    <timeblock mseconds="1000">
      <setvalue index="0" value="0" change="0"/>
      <!-- red   value of first light box -->
      <setvalue index="1" value="200" change="0"/>
      <!-- green value of first light box -->
      <setvalue index="2" value="0" change="0"/>
      <!-- blue  value of first light box -->
      <setvalue index="23" value="200" change="0"/>
      <!-- light value of helm light -->
    </timeblock>
  </event>
 

__________________
Note - this is in no way intended to be an official position of Thom or Artemis, as I am not an official representative of the creator or game.
eurobusker

Registered:
Posts: 108
Reply with quote  #6 
Thanks again,
It's a pity there isnt a "LIKE" button on the forum [smile]
eurobusker

Registered:
Posts: 108
Reply with quote  #7 
It works a treat!
Splitting the events is very important. I tried both ways and found that one event is done and when finished the next one starts.
....and now, it's the fuel gauge!!!
Having looked at the wiki, if I've got this right, I must do the LOW fuel first and then the 200 etc after?
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.