Zork: Grand Inquisitor on Linux/WINE

This page is dedicated to preserve Zork: Grand Inquisitor demo for WINE Developers. Page also contains HOWTO document about running ZGI Demo and ZGI itself in Windows XP and WINE/Linux.

WINE is a Windows Compatibility framework designed to allow Windows applications and games to run on Linux.

To run both demo and the full game You need to run X in 15 or 16-bit depth (65535 colors), because Wine itself cannot switch between bpps (RandR does not implement depth switching :-( )!!!

ZGI Demo download

ZGI Demo HOWTO

  1. Untar the installation tarball into some temporary directory.
  2. Install the game using setup.exe, select C:\Games\ZGIDemo as an installation folder. Uncheck button 'Play the game now' - we need to do some fixes prior to running the game.
  3. Copy DATA/ directory with all its contents from installation tarball into C:\Games\ZGIDemo\
  4. Replace file inquis.zix with the one downloaded from this site.
  5. Run winecfg and set the following values:
    Applications / Windows version: Windows XP
    Graphics / Emulate a virtual desktop: 640x480 or higher (required, game doesn't start without this)
    Audio / OSS Driver (Important! ALSA isn't functional in Wine 0.9.24 for this game, from 0.9.35 ALSA works)
  6. Copy the following code snippet to file enable_graphics.reg and run regedit.exe enable_graphics.reg.
    REGEDIT4

    [HKEY_CURRENT_USER\Software\Wine\Direct3D]
    "DirectDrawRenderer"="opengl"
    "RenderTargetLockMode"="readdraw"
  7. Run the game wine ./zgidemo.exe

ZGI HOWTO

  1. Install the game into c:\games\zgi.
  2. Create folders c:\games\zgi\cd1, c:\games\zgi\cd2
  3. Copy the complete contents of each CD into its respective folder you've created in step 2.
  4. Modify file c:\games\zgi\inquis.zix to have following info at the head of file:
    007728
    0 c:\games\zgi\cd1 'Zork Grand Inquisitor Disk 1
    1 c:\games\zgi\cd2 'Zork Grand Inquisitor Disk 2
    ----------------------------
    DIR: .
    DIR: .\cursor.zfs
    DIR: .\scripts.zfs
    DIR: .\subtitle.zfs
    DIR: .\death.zfs
    DIR: .\zgi_mx
    DIR: .\cd1\zgi\zgi_mx
    DIR: .\cd1\zgi\zgi_mx\minmax
    DIR: .\cd1\zassets1\global
    DIR: .\cd1\zassets1\portfooz
    DIR: .\cd1\zassets1\jail
    DIR: .\cd1\zassets1\monast1
    DIR: .\cd1\zassets1\underg1
    DIR: .\cd1\zassets1\lucyqst
    DIR: .\cd1\zassets1\griffqst
    DIR: .\cd1\zassets1\castle
    DIR: .\cd2\zassets2\global
    DIR: .\cd2\zassets2\monast2
    DIR: .\cd2\zassets2\underg2
    DIR: .\cd2\zassets2\dmlair
    DIR: .\cd2\zassets2\grueqst
    DIR: .\cd2\zassets2\guetech
    DIR: .\cd2\zassets2\hades
    ----------------------------
    
  5. Run winecfg and set the following values:
    Applications / Windows version: Windows XP
    Graphics / Emulate a virtual desktop: 640x480 or higher (required, game doesn't start without this)
    Audio / OSS Driver (Important! ALSA isn't functional in Wine 0.9.24 for this game)
  6. Copy the following code snippet to file enable_graphics.reg and run regedit.exe enable_graphics.reg.
    REGEDIT4

    [HKEY_CURRENT_USER\Software\Wine\Direct3D]
    "DirectDrawRenderer"="opengl"
    "RenderTargetLockMode"="readdraw"
  7. Download and install the 1.2 patch
  8. Run the game wine ./zgiwin.exe