Skip to content

Commit

Permalink
[v1.2] Breaker Switch Improvements (#2)
Browse files Browse the repository at this point in the history
- Update Electrical Tower Box model to have on and off symbols.
- Add inverse light group functionality to Breaker Switches to allow "emergency light" options.
- Refactor `BreakerSwitch` class to be its own base class.
- Refactor various classes to remove dependency on `getScoFromParentEntity()` and `getElementOnScoForName()` functions.
- Updated LICENSEs.
- Updated READMEs.
- Updated Steam Description.
  • Loading branch information
redthirten authored Feb 21, 2023
1 parent 946ffc3 commit 935710f
Show file tree
Hide file tree
Showing 17 changed files with 505 additions and 185 deletions.
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Red's Light Switches is a scripted No Limits 2 Roller Coaster Simulator (NL2)
custom scenery object (SCO) package of various switches/controllers to control lights in the NL2 software.
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)


GNU GENERAL PUBLIC LICENSE
Expand Down Expand Up @@ -638,7 +638,7 @@ the "copyright" line and a pointer to where the full notice is found.

Red's Light Switches is a scripted No Limits 2 Roller Coaster Simulator (NL2)
custom scenery object (SCO) package of various switches/controllers to control lights in the NL2 software.
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -659,7 +659,7 @@ Also add information on how to contact you by electronic and paper mail.
notice like this when it starts in an interactive mode:

Red's Light Switches
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ ___

#### Notes:

- This repository is mainly to help with versioning. Easier places to download this pack are either the [Steam Workshop page](https://steamcommunity.com/sharedfiles/filedetails/?id=2325974526) or the [NoLimits Central page](https://nolimitscentral.com/exchange/park/1476).
- This repository is mainly to help with versioning. Easier places to download this pack are either the [Steam Workshop page](https://steamcommunity.com/sharedfiles/filedetails/?id=2905888419) or the [NoLimits Central page](https://nolimitscentral.com/exchange/park/2323).
- A more complete README with instructions on how to use the pack can be found here:
- `\scenery\reds_light_switches\README.html`
Binary file modified Reds-Light-Switches.nl2park
Binary file not shown.
Binary file modified Reds-Light-Switches.nl2park_backup
Binary file not shown.
1 change: 1 addition & 0 deletions Steam Description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Comment below if there is a specific switch style you would like to see added to
[*]Choose a sound effect for the switch to play when it is turned on or off, or use the default sounds included with the pack.
[*]For the breaker switches, choose an optional coaster to E-Stop when the switch is turned off.
[*]Choose an optional override interval that will force the light(s) to match the switch's state, even if the light's own script told it to do otherwise (ex. vanilla lights turn on at night even though the switch is set to off).
[*][NEW] Breaker-style switches have an extra "inverse" light group setting that can allow for certain lights to turn on when the switch is off (like "emergency lights").
[/list]

A README.html (that you can open in your browser) with details on how to use the pack is also included with the pack.
Expand Down
9 changes: 8 additions & 1 deletion scenery/reds_light_switches/Breaker Switch.nl2sco
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
<type>string</type>
<defaultvalue></defaultvalue>
<id>lights_name1</id>
<description>The shared name of light SCOs for this switch to control. All lights should have the same name (ie. &quot;station_switch&quot;, &quot;maitnence_switch&quot;, etc), Leave empty for passive mode.</description>
<description>The shared name of light SCOs for this switch to control. All lights should have the same name (ie. &quot;station_switch&quot;, &quot;maitnence_switch&quot;, etc). Leave empty for passive mode.</description>
<label>Name of Lights to Control:</label>
</scriptparameter>
<scriptparameter>
<type>string</type>
<defaultvalue></defaultvalue>
<id>lights_name_inv1</id>
<description>Similar to the list above, but this group of lights will be OPPOSITE of the switch state. Good for &quot;emergency lights&quot; that turn on when the power goes out. Leave empty for passive mode.</description>
<label>Name of Lights to Control (Inverse):</label>
</scriptparameter>
<scriptparameter>
<type>bool</type>
<defaultvalue>false</defaultvalue>
Expand Down
9 changes: 8 additions & 1 deletion scenery/reds_light_switches/Electrical Tower Box.nl2sco
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@
<type>string</type>
<defaultvalue></defaultvalue>
<id>lights_name1</id>
<description>The shared name of light SCOs for this switch to control. All lights should have the same name (ie. &quot;station_switch&quot;, &quot;maitnence_switch&quot;, etc), Leave empty for passive mode.</description>
<description>The shared name of light SCOs for this switch to control. All lights should have the same name (ie. &quot;station_switch&quot;, &quot;maitnence_switch&quot;, etc). Leave empty for passive mode.</description>
<label>Name of Lights to Control:</label>
</scriptparameter>
<scriptparameter>
<type>string</type>
<defaultvalue></defaultvalue>
<id>lights_name_inv1</id>
<description>Similar to the list above, but this group of lights will be OPPOSITE of the switch state. Good for &quot;emergency lights&quot; that turn on when the power goes out. Leave empty for passive mode.</description>
<label>Name of Lights to Control (Inverse):</label>
</scriptparameter>
<scriptparameter>
<type>bool</type>
<defaultvalue>false</defaultvalue>
Expand Down
6 changes: 3 additions & 3 deletions scenery/reds_light_switches/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Red's Light Switches is a No Limits 2 Roller Coaster Simulator (NL2)
custom scenery object (SCO) package of various scripted light switches for use in the NL2 software.
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)


GNU GENERAL PUBLIC LICENSE
Expand Down Expand Up @@ -638,7 +638,7 @@ the "copyright" line and a pointer to where the full notice is found.

Red's Light Switches is a No Limits 2 Roller Coaster Simulator (NL2)
custom scenery object (SCO) package of various scripted light switches for use in the NL2 software.
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -659,7 +659,7 @@ Also add information on how to contact you by electronic and paper mail.
notice like this when it starts in an interactive mode:

Red's Light Switches
Copyright (c) 2022 David Wolfe (Red-Thirten)
Copyright (c) 2023 David Wolfe (Red-Thirten)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
12 changes: 10 additions & 2 deletions scenery/reds_light_switches/README.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<img src="textures\previews\overview.jpg" alt="Header Image" width="30%" height="35%">
<h4><i>
Red's Light Switches<br>
©2022 David W. (Red-Thirten)<br>
©2023 David W. (Red-Thirten)<br>
<a href="mailto:rehlmgaming@gmail.com">rehlmgaming@gmail.com</a><br>
Version 1.0, 23 December 2022<br>
Version 1.2, 20 February 2023<br>
NL2 Scenery Custom Object (SCO) Package<br>
</h4></i>
<p>
Expand Down Expand Up @@ -67,6 +67,14 @@ <h3>
<u>Change Log:</u>
</h3>
<ul>
<li>[v1.2]
<ul>
<li>Update Electrical Tower Box model to have on and off symbols.</li>
<li>Add inverse light group functionality to Breaker Switches to allow "emergency light" options.</li>
<li>Refactor <code>BreakerSwitch</code> class to be its own base class.</li>
<li>Refactor various classes to remove dependency on <code>getScoFromParentEntity()</code> and <code>getElementOnScoForName()</code> functions.</li>
</ul>
</li>
<li>[v1.1]
<ul>
<li>Improved compatibility with scripted 3rd party lights that change color over time by preventing local changes to color when it is not needed (ie. when flicker is disabled).</li>
Expand Down
Loading

0 comments on commit 935710f

Please sign in to comment.