Actions

Editing Kit (Lights)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 10: Line 10:
 
}}
 
}}
 
{{Structurebox
 
{{Structurebox
  | name             = Wall Lights
+
  | name = Wall Light
  | prefab_hash     = See table in description
+
  | image     = [[File:{{#setmainimage:ItemWallLight.png}}]]
| power_usage      = 50W
+
  | placement  = Small Grid, On Frames
| placed_with_item = [[Kit (Lights)]]
+
  | powerusage = 50W
  | placed_on_grid  = Small Grid, On Frames
 
  | decon_with_tool1 = [[Hand Drill]]
 
| item_rec1        = [[Kit (Lights)]]
 
 
}}
 
}}
 
{{Structurebox
 
{{Structurebox
  | name             = LED
+
  | name       = LED
  | image           = [[File:LED.png]]
+
  | image       = [[File:{{#setmainimage:ItemLED.png}}]]
  | prefab_hash      = 1944485013
+
  | placement = Small Grid, On Frames
  | power_usage      = 25W
+
  | powerusage = 25W
| placed_with_item = [[Kit (Lights)]]
 
| placed_on_grid  = Small Grid, On Frames
 
  | decon_with_tool1 = [[Hand Drill]]
 
| item_rec1        = [[Kit (Lights)]]
 
}}
 
{{Structurebox
 
| name            = Diode Slide
 
| prefab_hash      = 576516101
 
| power_usage      = 25W
 
| placed_with_item = [[Kit (Lights)]]
 
| placed_on_grid  = Small Grid, On Frames
 
| decon_with_tool1 = [[Hand Drill]]
 
| item_rec1        = [[Kit (Lights)]]
 
 
}}
 
}}
 
__TOC__
 
__TOC__
 +
== Description == <!--T:1-->
 +
Light kits are used for illuminating your base. The LED variant consumes half the power of the default larger wall light.
  
= <big>Description</big> = <!--T:1-->
+
== Modes/Colors ==
Light kits are used for illuminating your base. The LED variant consumes half the power of the default larger wall light though is not as bright. It's color can also be changed with logic, making for a great status indicator within logic circuits.
+
When installed as an LED, the light's color can be changed by writing to its 'mode'.  
 
 
= <big>Wall Light</big> (Regular, Long, Long Wide, Long Angled, Battery, Round, Round Angled, Small Round) =
 
= PrefabHash Values =
 
{| class="wikitable"
 
|-
 
! Light Type !! PrefabHash
 
|-
 
| Regular || -1860064656
 
|-
 
| Long || 797794350
 
|-
 
| Long Wide || 555215790
 
|-
 
| Long Angled || 1847265835
 
|-
 
| Battery Powered || -1306415132
 
|-
 
| Round || 1514476632
 
|-
 
| Round Angled || 1592905386
 
|-
 
| Small Round || 1436121888
 
|}
 
 
 
{{Data Network Header}}
 
{{Data Parameters}}
 
{| class="wikitable"
 
|-
 
! Parameter Name !! Data Type !! Description
 
|-
 
| On || Boolean || Turns the Light on, when set to 1. Turns it off, when set to 0.
 
|-
 
| Lock || Boolean || Locks the Light when set to 1. Unlocks it, when set to 0. When locked, Light cannot be turned on\off by player.
 
|}
 
 
 
{{Data Outputs}}
 
{| class="wikitable"
 
|-
 
! Output Name !! Data Type !! Description
 
|-
 
| On || Boolean || Returns whether the Light is turned on. (0 for no, 1 for yes)
 
|-
 
| Lock || Boolean || Returns whether the Light is locked. (0 for no, 1 for yes)
 
|-
 
| RequiredPower || Integer || Returns the current amount of power required by the Light, in watts.
 
|-
 
| PrefabHash || Integer || Returns the Hash value for the selected light type. (See info panels on the right)
 
|-
 
| Power || Boolean || Returns whether the Light is turned on and receives power. (0 for no, 1 for yes)
 
|}
 
  
= <big>LED</big> =
+
{| class="wikitable sortable"
{{Data Network Header}}
 
{{Data Parameters}}
 
{| class="wikitable"
 
 
|-
 
|-
! Parameter Name !! Data Type !! Description
+
! Mode !! Color
 
|-
 
|-
| On || Boolean || Turns the Light on, when set to 1. Turns it off, when set to 0.
+
| 0 || Blue
|-
 
| Lock || Boolean || Locks the Light when set to 1. Unlocks it, when set to 0. When locked, Light cannot be turned on\off by player.
 
|-
 
| Color || Integer || Sets the color of the LED Light. (See [[Data Network Colors]])
 
|}
 
 
 
{{Data Outputs}}
 
{| class="wikitable"
 
 
|-
 
|-
! Output Name !! Data Type !! Description
+
| 1 || White
 
|-
 
|-
| On || Boolean || Returns whether the Light is turned on. (0 for no, 1 for yes)
+
| 2 || Green
 
|-
 
|-
| Lock || Boolean || Returns whether the Light is locked. (0 for no, 1 for yes)
+
| 3 || Amber
 
|-
 
|-
| Color || Integer || Returns the color setting of the LED Light. (See [[Data Network Colors]])
+
| 4 || Red
 
|-
 
|-
| RequiredPower || Integer || Returns the current amount of power required by the Light, in watts.
+
| 5 || Yellow
 
|-
 
|-
| PrefabHash || Integer ||  
+
| 6 || Gray
 
|-
 
|-
| Power || Boolean || Returns whether the Light is turned on and receives power. (0 for no, 1 for yes)
+
| 7 || Black
|}
 
 
 
= <big>Diode Slide</big> =
 
{{Data Network Header}}
 
{{Data Parameters}}
 
{| class="wikitable"
 
 
|-
 
|-
! Parameter Name !! Data Type !! Description
+
| 8 || Orange
 
|-
 
|-
| On || Boolean || Turns the Diode Slide on, when set to 1. Turns it off, when set to 0.
+
| 9 || Lime
 
|-
 
|-
| Lock || Boolean || Locks the Diode Slide when set to 1. Unlocks it, when set to 0. When locked, Light cannot be turned on\off by player.
+
| 10 || Magenta
 
|-
 
|-
| Setting || Boolean || Sets the color of the Diode Slide. (0 - red, 1 - green)
+
| 11 || Purple
 
|}
 
|}
  
{{Data Outputs}}
+
The difference between amber and yellow is subtle. The difference between gray and white is subtler still.  
{| class="wikitable"
 
|-
 
! Output Name !! Data Type !! Description
 
|-
 
| On || Boolean || Returns whether the Diode Slide is turned on. (0 for no, 1 for yes)
 
|-
 
| Lock || Boolean || Returns whether the Diode Slide is locked. (0 for no, 1 for yes)
 
|-
 
| Setting || Boolean || Returns the "Setting" value of the Diode Slide.
 
|-
 
| RequiredPower || Integer || Returns the current amount of power required by the Diode Slide , in watts.
 
|-
 
| PrefabHash || Integer ||
 
|-
 
| Power || Boolean || Returns whether the Diode Slide is turned on and receives power. (0 for no, 1 for yes)
 
|}
 
  
= Builds =
+
== Known Bugs ==
 +
Prior to version 0.1.1082.5494, white LEDs may turn blue on server restart -- presumably related to blue being the first (0-indexed) color. One workaround is to set them to gray, which seems to prevent the issue while keeping the appearance of white lights. Alternatively, an always-on batch writer will override them from defaulting to blue.
  
* [[Auto Night Lights]]
 
  
 
</translate>
 
</translate>

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)