Strange Behavior of Subroutine

GeorgeH

Flippered Out
Site Supporters
Joined
May 3, 2016
Messages
2,734
Solutions
6
Reaction score
2,181
Points
145
Favorite Pinball Machine
Attack From Mars
I have a subroutine "CheckLightSettings()" that turns on the lighting on my table. I can set up a keycode and press it to run this subroutine after the game starts and the lighting turns on. So I figure I can add a call to run the sub when you press the start game key and make it run instead of having to press the keycode. For some reason, the sub won't run. So I decided to add a timer to make the sub run a little after the game start key is pressed. That didn't work either. The only thing that makes the sub run is to use a keycode that contains "CheckLightSettings()".

Have any of you guys ever experienced a problem like this? I admit that my lighting is pretty complex but it seems like any time you add a call to run a sub it should run. The lighting includes a flasher that is set up to be a spotlight which is one of the lights that won't turn on.
 
Last edited:
Send me the table and I'll have a look to it (if you want).
 
Send me the table and I'll have a look to it (if you want).

I finally figured it out. I added the flashers for GI to a sub where they get turned off. I have another sub for turning the lights on but I had the GI flashers turning on in a different sub. Everything started working when I moved the GI flashers to the sub where the lights are turned on.

Over the years, I have added to the lighting I use in a piece mean fashion. It has progressed to a point where it has become very complex. I need to rethink the structure I use for the lighting but I think I can do that on my own. I will ask for help if I can't figure the best structure for it.

Thanks for offering JP!
 
General chit-chat
Help Users
You can interact with the ChatGPT Bot in any Chat Room and there is a dedicated room. The command is /ai followed by a space and then your ? or inquiry.
ie: /ai What is a EM Pinball Machine?
  • No one is chatting at the moment.
  • ChatGPT @ ChatGPT:
    @Free Bally!, A pirate, known for his seafaring adventures and notorious escapades, found himself in a rather peculiar situation. After a particularly rough storm that had battered his ship and crew, he realized that they were running low on provisions and, quite embarrassingly, that he was in need of adult diapers due to an unfortunate bout of seasickness that had left him with a weakened constitution.

    With a grumble and a scowl, the pirate docked his ship at the nearest port town, a bustling marketplace known for its variety of goods and fresh seafood. He tied his ship securely at the harbor, adjusted his tricorn hat, and made his way to the market with a swagger in his step, trying to maintain his fearsome reputation despite his current mission.

    As he walked through the crowded streets, the pirate attracted curious glances from the townsfolk. His appearance was striking, with a weathered coat, a hook for a hand, and a parrot perched on his shoulder squawking,
    • Haha
    Reactions: JonPurpleHaze
    Quote
  • Free Bally! @ Free Bally!:
    (AI prompt) Why did the pirate have an eye patch?
    Quote
  • ChatGPT @ ChatGPT:
    @Free Bally!, Pirates are often depicted with eye patches in popular culture, but the reasons for this vary. Here are a few possible explanations:

    1. **Injury**: The most straightforward reason a pirate might wear an eye patch is that they lost an eye due to injury. Pirate battles, sword fights, and the general hazards of seafaring life could easily lead to eye injuries, necessitating an eye patch.

    2. **Myth and Stereotype**: The image of a pirate with an eye patch has become a stereotype perpetuated by movies, books, and other forms of media. It's part of the romanticized pirate image that includes peg legs, hooks for hands, and parrots on shoulders.

    3. **Preserving Night Vision**: A more interesting and practical theory suggests that pirates wore eye patches to keep one eye adapted to the dark. When moving between the bright deck and the dark below decks, a pirate could switch the patch from one eye to the other. The eye that was covered
    Quote
  • Free Bally! @ Free Bally!:
    nope... it was because a seagul shit in his eye the day after he got the new hook fitted
    • Haha
    Reactions: JonPurpleHaze
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    He couldn't scratch his eye, or tried and had to get the patch because of the hook...:pirat:🏴‍☠️🪝
    • Like
    Reactions: Free Bally!
    Quote
  • Free Bally! @ Free Bally!:
    ahh well, back to work tomorrow
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Free Bally! @ Free Bally!:
    Looking at Tuesday for a real day off, ahhh
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Hope you find your keys!
    Quote
  • Free Bally! @ Free Bally!:
    But working long every darned day has (Finally!) cleared up pain in my hip that has plagued me since April
    Quote
  • Free Bally! @ Free Bally!:
    haha, naw the keys are long gone. HAVE to get a new pair of pants... Without A Hole In The Pocket!
    • Haha
    Reactions: JonPurpleHaze
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Get AC 4! you :pirat:
    • Like
    Reactions: Free Bally!
    Quote
  • Free Bally! @ Free Bally!:
    Got AC, weather-liars say i'll need an umbrella all weekend
    • Haha
    Reactions: JonPurpleHaze
    Quote
  • Free Bally! @ Free Bally!:
    ohh oops
    Quote
  • Free Bally! @ Free Bally!:
    you mean the pirate game!
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Quote
  • JonPurpleHaze @ JonPurpleHaze:
    AC = Assasin's Creed...4...Black Flag.
    Quote
  • Free Bally! @ Free Bally!:
    heh, they all look like pirate queens, instead of a gig on the beach, the Law Of The Sea says they have to fight until there's only one
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Quote
  • Free Bally! @ Free Bally!:
    ahoy, have to go make some salad of fish chunks flavored to taste like crab, have a salty Friday ya scallawag!
    Quote
  • Chat Bot Mibs Chat Bot Mibs:
    Free Bally! has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    yirmiahu has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    Guenther has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    alain.rev has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    eduguitar72 has left the room.
  • Chat Bot Mibs Chat Bot Mibs:
    mickcarmone has left the room.
      Chat Bot Mibs Chat Bot Mibs: mickcarmone has left the room.
      Back
      Top