Debug Window Explained

I have added back a pretty big feature that should make creating table a lot easier: the Visual Player Debugger. Here is a description:

Debug window -

To open the window, hit 'esc' while the game is playing and select the debug window option.
The window has 3 buttons. When the debug window is active, the game is paused. The status of the three buttons indicates how the game will play when the game window is active.
When the play button is on, the game will play normally.
When the pause button is on, the game will be paused.
When the step button in on, the game will play for the number of milliseconds specified in the step window, and then return to the paused state.

In the game window, while the debug window is showing, you can directly manipulate the table. You can right-click on any object and bring up a menu of all the events that object has. Then you can select an event and it will fire. This simulates the ball hitting that object so you can try things out in the table much faster. In some cases script might differentiate between which ball is doing the action. The 'active' ball has a red target drawn on it. You can right click a ball to make it the active ball. When script checks what ball preformed the action in question, it will be the active ball.

Note that this can be used to get the game into a state it was not expecting, like hitting the ball drain before the game is started.

You can disable the debugger when you 'save as protected' to keep other people from cheating. Table which were saved with 'disable everything' will already have the debugger locked out.

- Randy


New in this version:

There is a new option in Video Options to antialias the ball. Default is on.

There is a new option in Security Options to detect hanging script (it's not really a security thing; I will probably rename this dialog 'script options' or something.) Table authors will probably want to have this on to help debug script while table players can turn it off under the assumption that the script works. This will hopefully alleviate the problem of older tables bringing up dialogs and whatnot that make the detector fire.

The problem with random pixels appear at the edge of tables is fixed.

The problems with table/background stretching should be fixed.

I have enabled another debug feature that I had been working on. In the debug window there is now a button to expand the immediate window. The immediate window works much like the window of the same name in VB (except you can't use ? as shorthand for print.) There is a ton of stuff you can do with this window so I will attempt to point out the highlights.

If you have a global variable called 'score' you can display its value like this:

print score

You can set the value like this:

score = 10000000

If you have a subroutine in your script called DoSomeStuff, you can call it directly by just typing:

DoSomeStuff

If you have an element on the table, say a light named Light1, you can edit it directly:

Light1.State = LightStateBlinking

Or you can get the value of course:

Print Light1.State

If you want your script to notify you of things, like when a timer fires, you can do this in the table script:

Sub Thing_Timer()
Debug.Print "Timer Fired"
End Sub

Debug.Print will only do anything if the debug window is up, so if you are expecting messages then open it right away. The immediate window does not have to be expanded.

- Randy

Updated Jun 22, 2005 Written by Randy Davis
 
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?
  • JonPurpleHaze @ JonPurpleHaze:
    Found "Cheetah Piss"! check it out! :bong:

    • Haha
    • Wow
    Reactions: Free Bally! and xenonph
    Quote
  • xenonph @ xenonph:
    Guilty!
    • Like
    Reactions: JonPurpleHaze
    Quote
  • xenonph @ xenonph:
    lol
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Like the Sax!
    • Love
    • Like
    Reactions: xenonph and Free Bally!
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Image test from a post!
    chop-jpeg.42130
    • Wow
    Reactions: xenonph
    Quote
  • xenonph @ xenonph:
    special guest JonPurpleHaze next on Arsenio Hall!
    Quote
  • Free Bally! @ Free Bally!:
    1978, a great year for jazz/rock fusion tunes!
    Quote
  • xenonph @ xenonph:
    Can I temporarily up the limit on attachments to 200MB's? It is to help a member.
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) translate 1013760 KB to MB
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, 1013760 KB is equal to 990 MB.
    Quote
  • Free Bally! @ Free Bally!:
    through the perturbations of translation, think this song is about a contraband dog who's frustrated that he finds hash but never allowed to eat it
    • Haha
    Reactions: JonPurpleHaze and xenonph
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    * Eduard Der Haschischhund:Eduard was a hashish dogHis mouth was a snoutAnd Eduard was on top of itA huge olfactory organHad Eduard smelled something?He got a bone for itEven the smallest crumb of shitSo Eduard came alongEdward thought it was a gameAnd the bone was the targetThat turned Eduard onAnd so he quickly learned:Especially with guys who smell somethingYou really have to sniff itSoon he could see it in their eyesWithout any olfactory organEduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Edward (row-row!)Eduard was a good dogNever asked whyBecause he was in all these yearsAlways had a good ride with itHad Eduard smelled something?He got a bone for itSometimes he got twoThat was enough for EduardEduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Edward (row-row!)But then, one summer nightSomething woke up in EduardDidn’t smell anything todayHad no bone todayEduard, the animal, thought to himselfGood God, what am I doing here?I always do my dutyBut you won’t be thankedEduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Edward (row-row!)I didn’t just want to parry anymoreWant to try something differentHad beyond the boneSmelled something betterThat’s why the next time you find something biggerEdward the hashish dogDon’t just stick your nose inBut secretly licked itEduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Edward (row-row!)What came next was so beautifulThen Eduard saw itThat it’s of no use to anyoneIf a customs officer steals it.Put an end to the drug warAnd left with the next freakWho then named him AbraxasAnd bought him a purple collarHe came to a farmAnd lived there as a philosopherWell-liked, almost a starFor his great gift wasThat he, whether meadow, street, beachFound a crumb everywhereAnd so there was always something to snack onIn Hashischeduard’s cheek pocketsEduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Eduard (ssmh-ssmh, row-row!)Edward (row-row!)Edward (row-row!)
    • Wow
    Reactions: xenonph
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Hmm, don't format right...
    Quote
  • Free Bally! @ Free Bally!:
    formatting is amystery to me
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Terry Fell & The Fellers – Gilt-Edge 5084 – Smoking Cornsilks (1953)— so much for clean country livin’

    Ha!
    • Like
    Reactions: Free Bally!
    Quote
  • Free Bally! @ Free Bally!:
    All These Fingers is a flippy tune, glad I found it
    • Like
    Reactions: JonPurpleHaze
    Quote
  • Free Bally! @ Free Bally!:
    disorienting
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) describe the All These Fingers band
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, All These Fingers is a four-piece indie rock band known for their energetic live performances and catchy, melodic songs. The band consists of a lead vocalist/guitarist, a bassist, a drummer, and a keyboardist. Their music is characterized by intricate guitar riffs, driving rhythms, and heartfelt lyrics that often touch on themes of love, loss, and self-discovery. All These Fingers has a loyal fan base and has gained a reputation for their dynamic stage presence and ability to connect with audiences through their music.
    Quote
  • Free Bally! @ Free Bally!:
    what, no "empowering personal growth"??
    • Haha
    Reactions: JonPurpleHaze
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    Squirrel Nut Zippers!
    • Like
    Reactions: Free Bally!
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    (AI prompt) describe Squirrel Nut Zippers
    Quote
  • ChatGPT @ ChatGPT:
    @JonPurpleHaze, Squirrel Nut Zippers are a swing revival band that formed in North Carolina in the early 1990s. They are known for their unique blend of jazz, blues, and swing music, as well as their energetic and theatrical live performances. The band's music often features elements of vaudeville and cabaret, with a playful and whimsical approach to storytelling.

    Some of Squirrel Nut Zippers' most popular songs include "Hell," "Put a Lid on It," and "Ghost of Stephen Foster." The band's sound is characterized by lively horns, upbeat tempos, and frontman Jimbo Mathus' distinctive vocals.

    Overall, Squirrel Nut Zippers have carved out a niche for themselves in the music industry with their eclectic and vintage-inspired sound, earning a dedicated fan base and critical acclaim for their inventive and infectious music.
    Quote
  • Free Bally! @ Free Bally!:
    obviously, their top hit was "Zoot Suit Riot"
    • Like
    Reactions: JonPurpleHaze
    Quote
  • JonPurpleHaze @ JonPurpleHaze:
    John Valby.....:mrhappy:
    Quote
      JonPurpleHaze @ JonPurpleHaze: John Valby.....:mrhappy:
      Back
      Top