• Tip Jar

Setting up Wine for Accessible Games

There are lots of accessible games that, until now, only work in Windows. Quite a lot of these games will work in Wine, an application that translates Windows applications so they can work in Linux. There are a few things that are necessary to get it up and running though. A lot of the Windows game use Sapi5 to present information in speech format. Thanks to the Open-Sapi project started by Thomas Lloyd, it is now easy to get sapi up and running in Wine with no sighted assistance. For more on the Open-Sapi project, visit http://code.google.com/p/open-sapi/. Now, Let’s get started setting up Wine so accessible games can be installed.

Installing Wine

Although some games work with the version of Wine that comes installed, things will work better, and more games will install and run correctly if you have the latest version of Wine. To do this, you will need to add the Wine repository. If you are not using a Debian based distribution of Linux, consult your distribution’s documentation or the Wine website for instructions. Ubuntu users type the following to add the Wine repository:
sudo add-apt-repository ppa:ubuntu-wine/ppa
Next, get updates and install Wine:
sudo apt-get update
sudo apt-get install wine1.3
You should now have the latest version of Wine installed.

Installing Open-Sapi

For this part, you will need to have subversion installed. If you do not have it, or if you are unsure, type the following command in terminal:
sudo apt-get install subversion
To create the open-sapi directory and download the files, in terminal, type:
svn checkout http://open-sapi.googlecode.com/svn/trunk/open-sapi
At this point, files will be downloaded and setup in the open-sapi directory. If you are not using Ubuntu or a Debian based distribution, you can install manually with the instructions from the Open-Sapi Wiki.
For Ubuntu or Debian users, type:
cd open-sapi/installer
chmod 700 osapi.run
./osapi.run
When it finishes, you will have open-sapi installed. Now games that use sapi will work, for the most part. You can also use Open-sapi with Orca through speech-dispatcher. For more information, refer to the Open-sapi project. I have only used it for Wine applications. When I installed it I did not allow it to overwrite my existing speech-dispatcher configuration.

Installing Klango

In order for Klango to have speech when it first loads you will need to have the open-sapi package installed. Download the Klango 3 package, right click it by selecting it and pressing shift+f10, and select extract here. You can place the folder anywhere you want. To launch the application, find the klango.exe application in the Klango 3 directory and select "open with Wine". If you are using Vinux you may have problems with laggy sound. If this is the case, open terminal and type:
sudo apt-get install alsa-oss
After alsa-oss has installed type:
winetricks
Down near the bottom of the list of check boxes is one that says set sound to oss check this box and tab to OK and press enter. If you try to open it with Wine now there will be no sound. The way to get it back is to select "open with other application", tab to the "use custom command", press enter, in the box type:
aoss wine
and press enter.
All users will need to install all of the DirectX options excluding the DirectX package itself which is marked as "not recommended". The ridge20 and ridge32 packages may also be necessary. You can install them easily with the winetricks package.

Installing A Game

For this example, you will need the Solitaire game from Gmagames. Click the games link, and find the "free games" link. Download the solitaire game. It will save to your desktop. When it has finished, select it and press shift-f10 and select open with wine windows program loader. Wait a few seconds then press alt-tab until you here "setup inaccessible". Orca, of course, does not work with Wine, so the installer is completely inaccessible. You have to know what key combination to press. In this case, press the following with a few seconds between each keypress to make sure the action has completed:
alt-y
alt-n
alt-y
alt-n
alt-n
alt-n
alt-n
alt-i
Wait about 10 seconds, then finish with alt-f.
When you arrow around on the Desktop, you should find 2 shortcuts. one will be "GMA Solitaire.lnk" you can delete this shortcut. The other one is the one you will need. Press enter on it. You will get a warning about untrusted application. Tab to the mark as trusted button and press enter. Now, the next time you press enter on the desktop shortcut the game will launch and will be self-voicing.

Getting Help

To access the help file, open applications, wine, program files, GMA Solitaire, read manual in text format. This will open the manual in Notepad. Orca will not read in notepad, but this isn’t really a problem. Just press control+a to select all, control+c to copy, then open text editor and paste with control+v. Now you can read the file with Orca.
Have fun, and keep checking back for more game installation instructions and reviews.

Bookmark the permalink.

10 Comments

  1. Thank you so much! I got this game working and a few others too. I have to point out that there is no shortcut created on the desktop when solitaire is installed. It is in the wine menu in programs. There are 3 options. You can play with Jaws Windowseyes, or sapi. Sapi is the 1 you need

  2. Thanks for the correction. I have changed the post to reflect this. I have been working with other games and forgot that there is no shortcut for Solitaire. Also, a few people have sent emails and I have changed accordingly. the main change is that the svn command creates the open-sapi directory, so I took out the command that creates it from the instructions. Now, there should be only one open-sapi directory instead of two.

  3. Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.

  4. Looking forward to trying the open-sapi and Klango/seems feasible.
    BTW-thanks for the recommendation/tips and extra help with TTYtter: maybe the only good option for full featured Twitter access for Linux users? (it may catch up with qwitter before Qwitter comes to penguin land)

  5. My cellie doesn’t display your page the way it should. For some reason I can see the text, but no photos. Any idea what the problem could be? It looks a lot better on my home computer!

  6. I am not sure why it wouldn’t display correctly. I don’t use any pictures in the posts though, so as long as you can read the text you are getting all the important stuff. Thanks for reading.

  7. I pressed the key combos listed for the Solitaire installation, but I have no listing for it under the Wine programs menu so have no idea if it even installed. I even waited a good 30 seconds between key presses. Any suggestions?

  8. In the latest Wine GMA Solitaire no longer speaks. I am not sure what has changed, but until the regression is fixed the game is unplayable as far as I know.

  9. Roger Alexanderson

    I have some problems….. i’ve configured and installed wine as described and done the same with open-sapi. The problem comes when i’m trying to find the directx and vb stuff. it’s nowhere to be found in winetricks… i’m using vinux 3.2.1 and i tried even with 3.0.2 but its the same problem. and when i’m trying to open klango.exe, i just recieve an error message and it stops. however, the sound works fine. any ideas? //roger

  10. I done’t do much with Wine these days. It seems to work less well now than in the past. That being said, however, try running winetricks like this:
    winetricks dlls
    That should list all the dlls so you can install them. Then, hopefully, everything will work for you.
    Good Luck

Comments are closed

  • Tip Jar