Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"on" is not a valid RGB setting anymore? #31

Closed
GabeKnuth opened this issue Mar 27, 2017 · 5 comments
Closed

"on" is not a valid RGB setting anymore? #31

GabeKnuth opened this issue Mar 27, 2017 · 5 comments
Assignees

Comments

@GabeKnuth
Copy link
Owner

I swear this show worked before. Logs attached. Here's the show that's crashing it:
Archive 11.zip

#show_version=4
# Everything Off
- time: 0
  leds:
    (right): off
    (center): off
    (left): off
    (gi): off

# First strobe in video
- time: 3.933
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 4.2
  leds:
    l_lower_right_flasher: on%50
    l_lower_left_flasher: on%50
    l_right_ramp_flasher: on%50
    l_left_ramp_flasher: on%50
- time: 4.35
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 4.733
  leds:
    l_lower_right_flasher: off
    l_lower_left_flasher: off
    l_right_ramp_flasher: off
    l_left_ramp_flasher: off

# Second strobe in video
- time: 6.133
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 6.5
  leds:
    l_lower_right_flasher: on%50
    l_lower_left_flasher: on%50
    l_right_ramp_flasher: on%50
    l_left_ramp_flasher: on%50
- time: 6.85
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 7.1
  leds:
    l_lower_right_flasher: off
    l_lower_left_flasher: off
    l_right_ramp_flasher: off
    l_left_ramp_flasher: off

# Third strobe
- time: 8.3
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 8.6
  leds:
    l_lower_right_flasher: on%50
    l_lower_left_flasher: on%50
    l_right_ramp_flasher: on%50
    l_left_ramp_flasher: on%50
- time: 8.75
  leds:
    l_lower_right_flasher: on
    l_lower_left_flasher: on
    l_right_ramp_flasher: on
    l_left_ramp_flasher: on
- time: 9.1
  leds:
    l_lower_right_flasher: off
    l_lower_left_flasher: off
    l_right_ramp_flasher: off
    l_left_ramp_flasher: off

# Light up playfield again
- time: 9.233
  leds:
    (right): on-f2433ms
    (center): on-f2433ms
    (left): on-f2433ms
    (gi): on-f2433ms
- time: 11.666
  leds:
    (right): off-f200ms
    (center): off-f200ms
    (left): off-f200ms
    (gi): off-f200ms
  events:
    mr_launch_balls
- time: 12.000
@toomanybrians
Copy link
Collaborator

It's due to the on%50 entries. Since those are known LEDs, can you just use the real colors?

Fixing this is more than a 5min thing due to the fact that resolving "on" to a color and the brightness % are done differently in different places, and combining them breaks each others' functionality. I can make a quick hack, but it would be ugly, so we should just fix this properly.

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Mar 27, 2017

Yeah. white%50 should work. on%50 is also semantically weird.

@GabeKnuth
Copy link
Owner Author

GabeKnuth commented Mar 27, 2017

I can do this for now, but the purpose of "on" was because I have different default colors specified for LEDs, and I wanted something that worked without having to go find the colors.

Also, I'm 90% sure this worked a week ago. Did something change?

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Mar 27, 2017

I doubt that this worked. On and off are a bit special. We would have to replace on to a color first and then evaluate the color again with brightness which would be a bit odd

@GabeKnuth
Copy link
Owner Author

GabeKnuth commented Mar 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants