# Troubleshooting Tips

This section is a collection of tips for troubleshooting any problems you run into with PinballY.

## General troubleshooting advice

In case your specific issue isn't listed elsewhere in this section, here are a few general tips that might help diagnose or solve the problem.

### Resetting to factory settings

If you feel like you've screwed up your settings beyond repair and you just want to reset everything to the standard defaults, it's usually not necessary to go to the trouble of reinstalling the whole program.

In most cases, all you have to do is delete the file Settings.txt, found in your main PinballY install folder.

That file contains all of your option settings. I've been careful to avoid the unfortunately common practice in other Windows software of scattering settings all over the registry and hidden files and so on. PinballY keeps all user settings in that file. Deleting it is usually enough to restore factory settings. By the way, that file is a simple text file in human-readable format - it even has lots of comments explaining what's going on. Don't be afraid of opening it in Notepad if you want to see what's there.

### Check the log file

Many problems can be solved by checking PinballY's log file. Every time you run PinballY, it creates a log file called PinballY.log in its main program folder. As the program runs, it writes a bunch of miscellaneous status reports to the log file about what it's trying to do. It also record technical details about many sorts of system errors here. The point is to save extra details that might be important in case of problems, without barraging you with technical status messages in the graphical UI.

You've probably experienced situations where too much information is as bad as no information at all. Too much can create a haystack that makes it hard to find the needle. PinballY therefore lets you control the amount of information reported in the log file, via the Log File page in the settings. That page lets you filter the type of actions that PinballY reports in the log. So before you consult the log file, you should go to the Log File options page and make sure that reporting is enabled for the subsystem that you're trying to troubleshoot. You might also want to turn off logging for unrelated areas, to minimize the amount of other reports that you have to sift through.

### Asking for help/reporting bugs

If you can't find what you're looking for in this Troubleshooting section or elsewhere in the help files, try asking on the vpforums pin cab forum. I regularly monitor that group, so I should be able to help if someone else doesn't get to your question first.

For any problem that's pretty clearly a program bug, you can raise it on the forum, or you can file a bug report using the PinballY issue tracker on GitHub. Before filing a report, please read How to write a good bug report. Following that advice will improve the chances that I can find and fix the problem.

## Some common problems (and suggested solutions)

The topics below list some of the more common problems that I've heard about, with suggestions for fixes or ways to gather more information. Scan through the list to see if you can find anything that sounds similar to any problems you're having.

### PinballY doesn't have keyboard focus at system startup

Symptom: You've set up PinballY to start up automatically with Windows, but each time you start up the system, PinballY ignores key presses. You have to click on the PinballY window to give it keyboard focus.

Causes: If you're using Windows 10, this is probably due to a change that Microsoft made in Task Scheduler (which PinballY uses for startup launching). Microsoft changed Task Scheduler in Win 10 so that it doesn't give keyboard focus to the programs it launches. This might sound like a bug, and it kind of is for our purposes, but they did this intentionally because they consider auto-launch programs to be "background" tasks that shouldn't interrupt the user. It would have been nice if they'd provided an option setting one way or the other on that, but they didn't.

The only solution I've found to this issue is to make PinballY force keyboard focus into its own window at some time after it starts up. In the Startup options dialog, try checking the box for "Force keyboard focus to PinballY at startup". If that doesn't help, try increasing the delay time on the focus change.

If all else fails, you can try pressing and holding the Exit Game button for about five seconds. That's something you can do at any time to bring PinballY to the foreground and give it keyboard focus.

If you're using a pre-Windows 10 system, Task Scheduler normally does give focus to newly launched tasks. The most common thing that can prevent PinballY from having keyboard is another program "stealing" focus by starting up shortly after PinballY does. In most cases, the most recently launched program gets focus, so if something launches after PinballY during your system startup process, it usually gets focus by taking it away from PinballY. To deal with this, try increasing the startup delay parameter in the Startup options dialog ("After logon, pause before starting PinballY").

### PinballY loses keyboard focus after finishing a game

Symptom: PinballY stops responding to button or key presses until you click the mouse in one of its windows.

As I'm sure you know, Windows has concept called "keyboard focus" where it only sends keyboard input to one application at a time - usually the application with the active window. This is usually seamless on a desktop PC, since you just use the mouse to choose the window you want to work with. On a pin cab PC, though, you probably don't want to keep the mouse handy all the time. So PinballY tries to manage focus as automatically as it can, by switching focus between itself and the running game as games start and exit. But focus is always a point of contention on Windows, and it's possible for other applications (or Windows itself) to steal focus away, making PinballY stop responding to keyboard input.

Starting with the Beta 18 release, there's a "mouseless" workaround if PinballY ever loses keyboard focus. Simply press and hold the EXIT GAME button for about five seconds. (The EXIT GAME button is usually the Escape key, but you can change this in the settings under Buttons.) This should force PinballY back into the foreground and give it keyboard focus again.

### I'm running PinballY in Admin mode, and something's not working

Simple answer: Don't run PinballY in Admin mode. If you're running PinballY by right-clicking the program file and selecting "Run as Administrator", or you check the box for "Run as Administrator" in the .EXE file's property page, it's going to cause a bunch of problems, because the program isn't designed to run that way. There is a way to run in Admin mode if necessary, but not by using "Run as Administrator". See the help section on Administrator Mode for the right approach.

But more importantly, you ideally shouldn't need to use Admin Mode at all with PinballY. There are two main reasons that most people think they need to use Admin Mode:

- Because you read some advice on the forums or in a tutorial saying you should just run everything in Admin mode all the time. People mean well when they say that, but it's generally bad advice. See Should I use "Run as Administrator" for everything? in the Pinscape Build Guide for an explanation.

  If this kind of blanket advice is the only reason you're using Admin Mode with PinballY (rather than an attempt to solve a specific problem), you should try undoing it and running everything without Admin Mode instead.

- Because some program you're launching from PinballY can only run in Admin Mode. In the first place, I'd consider such a requirement in the other program to be a bug; see the Build Guide section linked above for why. But if you really can't live without the other program, and it really can't run any other way, go read the help section on Administrator Mode. PinballY has the capability to launch Admin mode programs without running in Admin Mode itself. Take advantage of that to give the other program its Admin Mode launch, without forcing everything else to run in Admin Mode too.

### Errors about missing DirectX components immediately at start-up

If PinballY shows an error message about missing DirectX components as soon as you launch the program, you probably need to upgrade to the latest version of Microsoft's DirectX. This should only be necessary on Windows 7, because Windows 8 and later come with the necessary components pre-installed. But you might need to update DirectX if you're running Windows 7, even if you already have DirectX 11, because Windows 7 originally came with an earlier version of DirectX 11 that's not compatible with PinballY. Update instructions can be found on the Microsoft website:

https://support.microsoft.com/en-gb/help/179113/how-to-install-the-latest-version-of-directx

### PinballY isn't finding my tables

The easiest way to figure out what's wrong when PinballY can't find some or all of your tables is to look at the log file. PinballY creates this file each time it runs, writing lots of extra technical details on what it's doing during the session. This can usually pinpoint what's going wrong during table searches.

To get detailed information on table searches:

- Open the Settings dialog
- Go to the Log File page
- Make sure that the checkbox Player system setup and table searches is ticked
- Save settings and exit the program
- Run PinballY again, let it finish starting up, then exit
- Use Notepad to view the file PinballY.log (in your main PinballY install folder)

Now read through the file for an account of where the program is looking for table files and what it's finding.

For a detailed explanation of exactly where PinballY looks for tables, see Files & Folders.

### PinballY isn't showing media for my tables

As with table search problems, the log file is the first place to look when PinballY isn't finding your media files. If you're having trouble getting most or all of your media files displayed, try this:

- Open the Settings dialog
- Go to the Log File page
- Make sure that the checkbox Media file searches is ticked
- Save settings
- Navigate to a game that isn't showing the right media files
- Exit the program
- Use Notepad to view the file PinballY.log (in your main PinballY install folder)

Now read through the file for an account of where the program is looking for media files and what it's finding.

If you're having trouble with media for just a few specific games, try the built-in media list viewer:

- Navigate to the game in question
- Bring up the Operator Menu (press the digit zero "0" key, or whichever other key you've assigned)
- Select Show Media Files

That will display details on where the system is looking for the game's media, the filename(s) it's looking for, and the full names and locations for all of the matching files. You can check the file names that PinballY expects to find against the actual files on your disk, and likewise check the directory paths to make sure that you're placing the files where the program is looking for them.

For a detailed explanation of exactly where PinballY looks for media, see Files & Folders.

### I have a VP X game, but I can only select VP 9 in the Edit Game Details box (not VP X!)

Here's the situation:

- You have some Visual Pinball X (.vpx) game
- When you try to launch the game, PinballY keeps launching VP 9 instead of VP X
- When you go the Edit Game Details box to try to fix this, the "System" drop list only lets you choose from Visual Pinball 9 or Visual Pinball 9.2, not VP X as it should be

The most likely problem (and solution) is described in the topic PinballY thinks my Visual Pinball X tables are Visual Pinball 9 tables below.

### PinballY thinks my Visual Pinball X tables are Visual Pinball 9 tables

Did you just migrate to PinballY from PinballX? And did you tell PinballY to use the table databases and media files you already had set up for PinballX? If so, here's what's probably wrong:

Your PinballX table database folder for Visual PinballX was probably called Visual Pinball

That might seem perfectly natural, especially if you only started playing around with VP games recently and mostly use VP X rather than the older VP 9 games. But PinballY doesn't know that! PinballY is set up by default to work with both VP 9 and VP X. In fact, it's set up to work with multiple versions of VP 9, since there are several sub-versions of VP 9 whose games require those specific versions (like VP 9.2 and "PhysMod 5"). To deal with this, the default settings in PinballY (the ones you get when you first install the program) use the following database folder names:

- Visual Pinball 9's database folder is Visual Pinball
- Visual Pinball 9.2's database folder is Visual Pinball 9.2
- Visual Pinball X's database folder is Visual Pinball X

See the problem? When PinballY loads the system databases, it looks at the settings, and it sees that the database folder for Visual Pinball 9 is called Visual Pinball, so it looks at the tables listed there. But you put all of your VP X games there when you were using PinballX. So PinballY thinks that your VP X games are actually VP 9 games.

Here's the solution:

- Open the Settings dialog
- Open the system page for Visual Pinball 9
- Change the database folder to Visual Pinball 9
- Open the system page for Visual Pinball X
- Change the database folder to Visual Pinball

PinballY should now be in sync with your old PinballX settings. There's no need to move or rename any of the PinballX files. It's just a matter of changing the PinballY settings to match the folder names you're using.

### The capture screen location is wrong for the playfield/backglass/other window

Symptom: When you use the "Capture" command to capture screenshots or videos of the running game, the captured videos grab the wrong screen area for one or more windows. They're not aligned with the actual Visual Pinball screen area, so they're clipped or just the wrong areas entirely.

Cause: PinballY doesn't actually know where Visual Pinball's windows are. It doesn't want to make assumptions about which windows go where, because that would require too much hard-coded knowledge of particular pinball programs, which would make the Capture feature less likely to work for new pinball programs (and would also make it likely to stop working every time the other programs are updated).

Instead, PinballY simply captures the screen area of the PinballY windows. The assumption is that you have a particular monitor area that you always use for your playfield, in every player program. And another area that you always use for your backglass, etc. And since you're using those areas in every pinball program, PinballY assumes you're going to use those exact same areas for the corresponding PinballY windows. That makes the Capture feature's choice of screen locations super easy:

- The playfield video/image is captured from the screen area of the PinballY playfield window
- The backglass video/image is captured from the screen area of the PinballY backglass window
- And so on

So if PinballY is capturing the wrong area for a particular player program, simply move the corresponding PinballY window into the right area before you run the capture.

We chose this scheme because the fixed screen locations are practically a given on a pin cab. A pin cab usually has a whole monitor devoted to each function, so naturally you're going to set up both PinballY and every pinball program the same way, to use those exact monitors. This is less of a given for desktop users, though, so you might have to juggle windows around a little bit during capture if you don't always run every pinball program with the exact same window layout.

### When I run capture, the backglass/topper/other window isn't offered as an option

Symptom: When you run the capture command, the list of available media types doesn't include the backglass window, or doesn't include some other window you want to include.

Cause: The window you want to capture must be open in PinballY when you run the capture command. As described in the topic above about screen locations for capture, PinballY figures the screen location for each window type according to the corresponding PinballY window's location. In order to have a location at all, the window has to be open! So the list of available media types only includes the windows that you currently have open.

To bring up any of the windows that you've hidden, simply right-click in the main PinballY playfield window, and select Show Backglass or Show Topper, etc., for whichever window you want to bring back from the invisible. Once you make the window visible, it should show up in the list of available media types the next time you run a capture.

### PinballY won't save/restore my backglass window position

Symptom: Each time you start a new PinballY session, the backglass window (or one of the other windows) opens at the wrong position. It won't stay where you left it at the end of the last session.

The usual cause of this problem is that you're running some other program that's changing the screen resolution or monitor layout between sessions. For example, you might be using a program that rotates your monitors or changes the desktop resolution each time you run certain programs, or you might be using a remote access program that changes the screen resolution during remote sessions.

The reason PinballY moves the windows around in these situations is that it normally checks all of the restored window positions to make sure they're in the visible desktop area at program startup. If any windows are outside of the visible area, PinballY moves them into the visible area. This is intended to help with rare cases where you permanently change the desktop layout at the hardware level, such as when you add a new monitor or replace an old one with a new one of a different size. But it can be a nuisance if you routinely change your desktop layout at the software level, such as if you need to change the layout every time you run a certain application.

The easy fix that usually works is to tell PinballY to stop forcing windows into the visible desktop area at the start of every session:

- Open the Settings dialog in PinballY
- Go to the Startup section
- Un-check the box Make sure all windows are positioned within the visible desktop area

If that still doesn't help, and the window that's not "sticking" to its proper position is in full-screen mode, there's a second option setting that might help:

- Open the Settings dialog in PinballY
- Go to the Startup section
- Under Restore full-screen windows based on:, select Exact saved pixel coordinates

If none of that helps, try turning on logging for Window layout setup (in the Log File section of the settings dialog). The next time you encounter the problem with a saved window position, exit PinballY and check the log file for details about window layout setup. That should explain why PinballY is making the decisions it's making about window placement, which hopefully will suggest an appropriate solution.

### The Windows taskbar pops up every time a VP X game finishes

Try this:

- Open the VP X editor (without a game running)
- Select Video/Graphics Options from the Preferences menu
- Un-check the box for Disable Desktop Composition (in the Fullscreen section)

What's going on: this checkbox makes VP ask Windows to turn off the feature inside Windows that lets it draw partially transparent transparent window frames and elements. VP lets you disable this because it can slow down your video card slightly; if you have a low-end video card, enabling composition might slow down your video card enough to cause hiccups in VP, so disabling it might make VP run more smoothly. The snag is that Windows automatically turns composition back on when VP exits, which has the annoying side effect of redrawing everything on the screen, which has the even more annoying side effect of bringing the taskbar to the foreground even if it was hidden.

PinballY can't do much about that, since Windows has ultimate control over what's on the screen. This is one of those situations where Windows asserts its authority and overrides whatever the applications would prefer. So the best way to avoid the problem is to tell VP not to make this change in the first place, so that Windows doesn't feel the need to redo the whole screen layout every time VP exits.

If you really need to disable desktop composition in VP for performance reasons, you might have to live with the momentary taskbar appearance after game sessions. It's possible to disable desktop composition across your whole system in the Windows settings, so that Windows isn't constantly switching it on and off when switching programs - but doing so might prevent PinballY from displaying its graphics properly. So I don't recommend that.

Note that if you have Windows 8 or later, you should definitely un-check the option in VP, because it doesn't do anything anyway! Microsoft made desktop composition a core feature of the operating system starting in Windows 8, so applications can't disable it even if they try. VP will still try if you un-check the box, so un-checking the box might still cause the glitchy taskbar redrawing, but it won't have any performance benefit since Windows will otherwise ignore the attempt.

### Menu text (or other text) is missing

Symptom: When you press the Start button to bring up a menu, you just see a blank gray box with a blue highlight line, with no text anywhere to be seen. The game titles shown in the game wheel (for games without icon images) might also be missing.

If you're on Windows 7, this can be caused by some system video option settings. Check the following two settings:

- Open the Windows control panel, go to the Appearance and Personalization section, and click "change the theme". Make sure that one of the Aero themes is selected.
- Still in the Windows control panel, go to the Performance Information and Tools section. Select the Visual Effects tab.
  - If you're already using Custom, make sure Smooth edges of screen fonts is checked
  - If you've selected Adjust to best performance, switch to Custom, and check the checkbox labeled Smooth edges of screen fonts

The key appears to be that font-smoothing option. Apparently the Windows drawing functions that PinballY uses to construct the menu and other text graphics depend upon it.

Note that some Windows 7 users intentionally disable the Aero theme because of its performance impact, especially if you have a lower-end video card. If you need to disable Aero for acceptable game performance, you might be able to disable it on a game-by-game basis, instead of disabling it for the whole system. Look in the game player programs you're using for option settings. For example, Visual Pinball has an option in its Video/Graphics Options preference dialog called Enable desktop composition, which you can un-check to disable the Aero elements that affect performance.