User Avatar Image

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

posted by tremby on - last edited - Viewed by 4.5K 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
  • Could we perhaps get this thread stickied, so that if anyone comes nosing around for this info, they can find it?

  • User Avatar Image
    Seg

    [quote=demonfoo;83692](apparently the sound library used for the game has some Vista-specific features, and if the object for those Vista-specific bits isn't present, it just shuts audio off entirely)[/quote]
    I suspect this is due to Vista removing all hardware sound acceleration support for DirectX. You know, for 'security' reasons. :rolleyes:

  • @Seg said: I suspect this is due to Vista removing all hardware sound acceleration support for DirectX. You know, for 'security' reasons. :rolleyes:

    But this is in Wine, on Linux... and Sam and Max seasons 1 and 2 worked perfectly for me (in Vista compat mode). But anyway, it's mostly irrelevant, now that we've found the right incantations. ;)

  • User Avatar Image
    Seg

    I forgot to also note that we increased the minimum version of DirectX to 9.0c rev 27 - 29. What I suspect is that Wine hasn't been updated to support these later revisions.

    Pulling this out of a hat and likely wrong to why Wine is acting different. That is the tech difference with Strong Bad and the rest of the others.

  • @Seg said: I forgot to also note that we increased the minimum version of DirectX to 9.0c rev 27 - 29. What I suspect is that Wine hasn't been updated to support these later revisions.

    Pulling this out of a hat and likely wrong to why Wine is acting different. That is the tech difference with Strong Bad and the rest of the others.

    But then why would audio work fine when pretending to be XP and not Vista? As I mentioned in the previous thread, when running in Vista compat mode, it attempted to access an OLE object that, according to the research I did, was related to volume controls (I *think* per-app volume control, one of the new features in Vista), and after doing that, audio didn't work; it doesn't do that in XP compat mode, and audio plays perfectly. I think it's something in the sound engine you're using in the new game executables - just my own guess based on past experience.

  • User Avatar Image
    Seg

    * DOINK *

    Dua, I keep forgetting that Strong Bad is also our first Windows release using FMOD. We've done it for Sam & Max Wii, but this is the first publicly consumed Windows release.

    That's about all the lead I can give you. This is beyond my realm. :(

  • Oh well, whatever the case, the problem is solved, and I've played through the whole game successfully - the only problem is with losing the eye texture/decal images on a few characters, but it sounds like that's an issue for some people running Windows as well. So hopefully a fix will be found for that... but otherwise everything seems fine.

  • yeah, i got that briefly too -- it only lasted one scene for me, though.

  • User Avatar Image
    Seg

    In most cases, that "missing eye" bug is due to not having up do date DirectX 9 files, not really a game engine bug.

    Just so you know what's going on, we require the 'Aug 2005' DirectX package, but the eyes bug seems to be fixed for most people who have 'Dec 2006' or 'Feb 2006' packages in their installs. If you want the DLL file names:

    d3dx9_27.dll - Aug 2005 - Required
    d3dx9_28.dll - Dec 2005
    d3dx9_29.dll - Feb 2006

    I have no idea what Wine allows you to go up to for DirectX 9, but hopefully this information helps. I should also note that no version of DirectX 10 will help as that's a completely different mode to run DirectX.

  • As long as the DirectX updater runs, the "d3dx9_27.dll" file gets installed in the main install directory ("C:\Program Files\Telltale Games\Strong Bad\Episode 1 - Homestar Ruiner", specifically). My initial attempts, where I said no to running the DirectX updater, didn't install that DLL, leaving the Wine PE loader unable to satisfy that runtime dependency. Nothing newer than that gets installed; dunno why specifically, of course...

Add Comment