Menu
User Avatar Image

howto: get SBCG4AP 101 (demo and full game) running on Linux

posted by tremby on - last edited - Viewed by 5.1K users

Strong Bad's Cool Game for Attractive People episodes 101 and 102 howto: get them running in Linux
by demonfoo and tremby

the commands in this howto (and some of the files linked) are specific to Ubuntu Hardy Heron. a similar procedure should work for other distros, though.

[list=1]
[*] install Wine 1.1.3 or later
[list=1]
[*] if you haven't already, add WineHQ's repository to your package manager. (instructions from WineHQ)
[list=1]
[*] add the repository's key so packages can be authenticated by running
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
[*] add the repository to the list of sources by running
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
[*] refresh your package list by running
sudo apt-get update
[/list]
[*] install or upgrade Wine by running
sudo apt-get install wine
[/list]
[*] install IEs4Linux
[list=1]
[*] first we need cabextract and tar. we'll get the MS fonts while we're at it. install them by running
sudo apt-get install cabextract tar msttcorefonts
[*] then download and extract IEs4Linux by running
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz -O- | tar zx
[*] move into the IEs4Linux directory by running
cd ies4linux-*
[*] load the installer by running
./ies4linux
it'll complain on the command line that you're running an old version of Wine, but it's lying.
[*] install it. the default options are fine for the purposes of this howto, but since i'm a web developer i install IE7 too by clicking "advanced" and then checking IE7's box. close the installer when it's done.
[*] move back out of the IEs4Linux directory by running
cd ..
[/list]
[*] set up Wine for SBCG4AP and install the game
[list=1]
[*] copy the WINEPREFIX ("drive C") for IE6 to make one for SBCG4AP which has IE6 installed by running
cp -a ~/.ies4linux/ie6 ~/.wine_sbcg4ap
[*] download the Homestar Ruiner demo installer with your browser (i'll assume to your desktop) or by running
wget http://www.telltalegames.com/demo/homestarruiner -O ~/Desktop/homestarruinerdemo.exe
[*] start the installer by running
env WINEPREFIX=$HOME/.wine_sbcg4ap WINEDLLOVERRIDES=\"rpcrt4,ole32,d3d9=b\" wine ~/Desktop/homestarruinerdemo.exe
[*] follow its instructions. the default paths are fine, and be sure to answer "yes" to the question about installing DirectX. uncheck "Play now" when it's done and click "Finish". then you can delete the installer if you like by selecting it and hitting delete or running
rm ~/Desktop/homestarruinerdemo.exe
[*] set up Wine for this WINEPREFIX (and therefore the game)
[list=1]
[*] run the Wine config tool with the game's WINEPREFIX by running
env WINEPREFIX=$HOME/.wine_sbcg4ap winecfg
[*] on the "Applications" tab, set the Windows version to Windows XP
[*] on the Audio tab, say OK to the box telling you to edit your audio settings and it will set some defaults. check they make sense.
[*] add DLL overrides. to do this, go to the "Libraries" tab and add each of the following:
[list]
[*] d3d9
[*] ole32
[*] rpcrt4
[/list]
by choosing from the list (or typing) and then clicking add, for each.
[*] for each of the overrides above, click its entry in the list of "Existing overrides" and click "Edit". choose "Built-in (Wine)" from the menu and click OK.
[*] optional (do this if you're having problems with the game screen or just want to run in a window): on the "Graphics" tab, check "Emulate a virtual desktop" and enter the resolution you want.
[*] click "Apply" and then "Close"
[/list]
[/list]
[*] start the game
double click the launcher, enter your My Telltale login information (if asked) and then click on the green area at right about the level of Strong Bad's feet; unfortunately the image that should be there doesn't appear.
[/list]

to install the second episode, make sure you run the installer in your SBCG4AP environment: env WINEPREFIX=$HOME/.wine_sbcg4ap wine ~/Desktop/Strong_Badia_the_Free_setup.exe
this time, you can say no to the DirectX question. if you do, you need to put a link to the DLL which the DirectX installer would have added (already in the Episode 1 directory) for Episode 2 after installing by running ln -s \"../Episode 1 - Homestar Ruiner/d3dx9_27.dll\" ~/.wine_sbcg4ap/drive_c/\"Program Files/Telltale Games/Strong Bad/Episode 2 - Strong Badia the Free/\"
then the launcher the game puts on your desktop should work just fine.

to install the third, do the same stuff as for the second, but the link command will be a tad different:
ln -s \"../Episode 1 - Homestar Ruiner/d3dx9_27.dll\" ~/.wine_sbcg4ap/drive_c/\"Program Files/Telltale Games/Strong Bad/Episode 3 - Baddest of the Bands/\"

96 Comments - Linear Discussion: Classic Style
  • Right you are tremby! Appears to be an old, lingering bug with nvidia drivers. Just added my user to the "video" group to solve. Sorry to bug you, given that it wasn't a SBCG4AP specific issue.

    Now here's hoping I can get audio and video to run smoothly...

    Thx

  • what you're looking for (all sorts of Linux forums worth trying) is a way to get direct rendering working. good luck!

  • I get tons of messages when actually launching the game from the launcher (which I managed to get working without a hitch). I also have working Direct Rendering and everything else using GL seems to work fine:


    libGL error: drmMap of framebuffer failed (Cannot allocate memory)
    libGL error: reverting to (slow) indirect rendering

    ...

    fixme:d3d:debug_d3dformat Unrecognized 909200449 (as fourcc: AL16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909200449 (as fourcc: AL16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909200449 (as fourcc: AL16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909200449 (as fourcc: AL16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
    err:d3d:CheckTextureCapability Unhandled format=unrecognized
    fixme:d3d:IWineD3DDeviceImpl_EvictManagedResources (0x63b29d0) : stub

    And then, only a black, smaller screen, with music playing.

  • hmm, can you confirm that glxinfo | grep direct gives "direct rendering: Yes"?

    what graphics card do you have, and which driver is it using?

  • Geez that's a lotta work. Too bad it doesn't work automagically with crossover games natively.

  • I got some free time today and tried the install again on a Mepis 8 box. I am using wine 1.1.9 and the installations went off without a hitch. Something must have definitely been wrong with my Mepis 7 installation. I upgraded most of my files to the Debian Lenny repository and that got rid of a lot of problems for me. Perhaps that and the fresh wine install did it for me. Kudos for the detailed instructions and thanks for all the previous help.

  • glad to hear it!

    i haven't tried episode 5 yet -- haven't finished playing 4 yet! that's a job for tonight, perhaps.

  • @Ninja said: Geez that's a lotta work. Too bad it doesn't work automagically with crossover games natively.

    Maybe the next version of Crossover Games will include a 1.0.x or 1.1.x Wine release; unfortunately in the meanwhile, this is your best option. :) I've got all 5 episodes going on my Linux workstation, so I know it definitely works, and you only need to do it one time for all episodes to work.

  • Direct rendering is on and glxgears work fine. However, the game crashes when I launch it (main version or demo.) I always wind up having to hard-reset. No screenshots available, because my Canon point-n-click is out of batteries at the moment. :p However, I was successfully able to run the game from the command line, piping stderr to a log file.


    I am running WINE version 1.1.14.

    The attached zip file contains
    [LIST]
    [*]"User.reg" from .wine_sbcg4ap (user.reg.sbcg4ap)
    [*]"User.reg" from normal .wine (user.reg.normal)
    [*]The log file I mentioned earlier (sbdb.log)
    [/LIST]

    All provided in the hope that it will be useful diagnostic information.

  • Can you provide the output of glxinfo? From looking at the output from the logfile you provided, it *looks* like it's using software vertex processing. Are you sure that the graphics chip in the system has hardware vertex support? I mean, it shouldn't cause a crash, but based on the output, it does look like software vertex code may be in use. Is hardware vertex support enabled in winecfg?

Add Comment