frogsack

Author Topic: [Unofficial] Running Zafehouse: Diaries on Linux  (Read 2139 times)

Logan

  • Developer
  • Survivor
    • View Profile
[Unofficial] Running Zafehouse: Diaries on Linux
« on: August 19, 2014, 01:21:31 PM »
Important: Running Zafehouse: Diaries on operating systems other than those listed on the official website is unsupported by Screwfly Studios. We cannot provide technical help or troubleshooting.

Now, with that disclaimer out of the way, it turns out some enterprising players have managed to get Zafehouse: Diaries running on Linux through Wine. ZD was never designed to be run on operating systems other than Windows XP, Vista and 7, so expect to go through some hoops to get it going.

Everything you need to know can be found on the Wine app database page below:

https://appdb.winehq.org/objectManager.php?sClass=version&iId=28390

Note that it's the GOG version used here, but theoretically the process should be the same or similar with other distributions.

Again, we must stress that we can't provide support for users running the game on Linux. If you do manage to get it working though, please post about it here, along with any tips for other curious players.

runinlinux

  • Survivor
    • View Profile
Re: [Unofficial] Running Zafehouse: Diaries on Linux
« Reply #1 on: November 16, 2017, 12:04:04 AM »
Hi, every Linux users. I have a good news! I figured out how to make this game work under Wine.
I'm using Ubuntu MATE 17.04 64bit with Wine Staging (currently version 2.20). I'm not sure, that other version are work, because the Wine devs are somehow always manage to "put back" the exact same bugs, that are already fixed years ago in older versions...Anyway...


Here is the step-by-step solution how I managed to make the game run fine:

STEP 1: First we need to install Wine Staging.
 (If you don't want Wine Staging version or you already have Wine on your system and want to use that version, than you can jump to STEP 3.)
 In Ubuntu, the Wine Staging version is not in any repository, thus you can not install it from the software centre by default, so first you have to make sure
 that Ubuntu knows where to find the Staging version.

 Open a terminal and run these commands to add Wine Staging repository, so Ubuntu will know about it, and the software updater can update it:
 
 wget -nc https://repos.wine-staging.com/wine/Release.key
 sudo apt-key add Release.key
 (This will import the key for the WIne Staging repository)

 sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
 (This command will add the repository to your /etc/apt/sources.list file.)

 sudo apt-get update
 sudo apt-get install --install-recommends winehq-staging
 (This will update the package cache and actually install the latest Wine Staging version to your system.)

This first step is sponsored by the official Wine installation page: https://wine-staging.com/installation.html  ;D


STEP 2: Now we have to make a fresh and clean 32bit Wine prefix. (We need 32bit to be able to install the required rdistributables without errors!)
 In the terminal run this command:
 env WINEARCH=win32 WINEPREFIX=~/.wine32 wineboot

 The last part of the command tells the name and location of the folder of this 32bit Wine prefix. In this case it will be in your Home folder, inside a folder
 named ".wine32" . (You can change it if you like to put it elsewhere.)

STEP 3: After Wine is installed, we need the latest winetricks to install the redistributables that the game needed.
 In Ubuntu, as maybe you can already figured it out, Ubuntu by default using an outdated winetricks, and because of this many of those redistributables
 simply can not be installed. (Broken links used to download installers or other changes in winetricks.)
 So, it is recommended to ALWAYS use the latest winetricks, so you need to install it manually!

 Run these commands in terminal to do that:

 sudo apt-get remove winetricks
 (Make sure you don't have other versions of winetricks on your system, so first we remove it.)
 
 wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
 (Download it from Github.)

 chmod +x winetricks
 (Make it executable)

 sudo mv -v winetricks /usr/local/bin
 (Put it in the right place.)

STEP 4: Now that we have the latest Wine Staging and winetricks installed, we configure our Wine and install the redistributables using winetricks.
 
 Use your terminal to run these commands:

 env WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg

 It will open up the configurator window for your 32bit Wine installation located under the folder ".wine32".
 At the application tab set your Windows version to Windows XP. Click "Apply"  and then "OK".
 The window close and now you have a 32bit Windows XP to use.

 Now we ready to install the redistributables .NET and Visual C++ with winetricks.
 In terminal:
 
 env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks

 This opens the wintricks window. It is automatically already checked "Select the default wineprefix" so just click OK.
 At the next window it should be asking for sending reports to help the winetricks devs or something like that. Do whatever you like.
 At the next window choose "Install a Windows DLL or component" then click "OK".
 Now find and select both "dotnet35SP1" and "vcrun2010" and then click "OK".
 Now winetricks will download and install .NET 3.5 SP1 and Visual C++ 2010.
 If everything goes fine the installation will successful.

 (Now, if you like it, you can try to run the game, but mostly it will pop up errors about that something still not quite fine. Something about the audio, and
  that, it will be disabled in the game. If you lucky, you can continue the game without sounds. Some people managed to play it without sound, but for
  many people the game will not work.

STEP 5: Finally we will fix that sound issue. Actually after all those steps, this one is what makes the game run fine with sounds and everything!

 Now we have to install "DirectX End-User Runtimes (June 2010)" This is basically a DirectX 9 SDK.
 DON'T USE WINETRICKS to install DirectX 9!!! We  need the offical installation package from Microsoft, and use wine to install it!
 
 Visit this page and download the package from the official MS page: https://www.microsoft.com/en-us/download/details.aspx?id=8109
 I recommend to make a new folder and download it there, because this one is a self-extracting executable and you will need to extract it.
 After the download finish, navigate to the folder where you downloaded it, and open a terminal at that location and run this command:

 env WINEARCH=win32 WINEPREFIX=~/.wine32 wine directx_Jun2010_redist.exe

 The program will ask a path where to extract the files. If you follow my advice and downloaded it into a new empty folder, you don't have to bother
 selecting folder for the extracted files, they will be extracted in place. Just click OK.
 (Or if you want select the path you like, but you have to navigate there and open a terminal in that location.)

 After extraction, we install this DirectX 9 SDK:
 Like before, in terminal:

 env WINEARCH=win32 WINEPREFIX=~/.wine32 wine DXSETUP.exe


STEP 6: Of course, we have to install the game too, into this new 32bit wineprefix, that we prepared.

 This will be simple. Just navigate to the setup file for the game, open a terminal and use the same command as before, so it will be like this:

 env WINEARCH=win32 WINEPREFIX=~/.wine32 wine setup_zafehouse_diaries.exe (Or whatever is the filename for you.)


STEP 7: PLAY THE GAME!

 This is how I start it and it works fine.
 Navigate to the folder where the game is installed, open terminal and run:

 env WINEARCH=win32 WINEPREFIX=~/.wine32 wine ZafehouseDiaries.exe

 I always run the game with this command, to make it sure, the program using the right wineprefix, because I
 have a 64bit system, and multiply Wine installations. But you can make a link, script or use your favourite method to run the game. It's up to you
 how to run the game.
 What is really important is to configure your Wine properly.

 

archive
archive
archive
archive