Installer unreal-tournament-1999-gog-oldunreal-patchs

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

custom-name: Unreal Tournament (1999) - GOG and OldUnreal Patchs
files:
- patchws: https://github.com/OldUnreal/UnrealTournamentPatches/releases/download/v469a/OldUnreal-UTPatch469a-Windows.zip
- patchlx: https://github.com/OldUnreal/UnrealTournamentPatches/releases/download/v469a/OldUnreal-UTPatch469a-Linux.tar.bz2
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal%20Tournament%201999/unreal_tournament.bmp
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal%20Tournament%201999/unreal_tournament.bat
- gogsetup: N/A:Please select the Windows setup exe file downloaded from your GOG
    account
game:
  args: c:\\unreal_tournament.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    install_gecko: true
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /SILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES
    executable: gogsetup
    name: wineexec
    prefix: $GAMEDIR/
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY
    file: patchws
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY
    file: patchlx
    format: bz2
- write_config:
    data:
      Engine.Engine:
        AudioDevice: Cluster.ClusterAudioSubsystem
        GameRenderDevice: OpenGLDrv.OpenGLRenderDevice
      FirstRun:
        FirstRun: 469
      SDLDrv.SDLClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        StartupFullscreen: true
        UseRawHIDInput: true
      WinDrv.WindowsClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        StartupFullscreen: true
        UseRawHIDInput: true
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/Default.ini
- write_config:
    data:
      Engine.Engine:
        AudioDevice: Cluster.ClusterAudioSubsystem
        GameRenderDevice: OpenGLDrv.OpenGLRenderDevice
      FirstRun:
        FirstRun: 469
      SDLDrv.SDLClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        StartupFullscreen: true
        UseRawHIDInput: true
      WinDrv.WindowsClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        StartupFullscreen: true
        UseRawHIDInput: true
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/UnrealTournament.ini
- copy:
    dst: $GAMEDIR/drive_c/
    src: menu
- copy:
    dst: $GAMEDIR/drive_c/
    src: wpp
- write_file:
    content: '#!/bin/bash

      sed -i "s/ViewportManager=.*/ViewportManager=WinDrv.WindowsClient/g" UnrealTournament.ini

      '
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/modifyoptions.sh
- chmodx: $GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/modifyoptions.sh
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\unreal_tournament.bmp
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: ActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 117 7 16
wine:
  Desktop: true
{
  "custom-name": "Unreal Tournament (1999) - GOG and OldUnreal Patchs",
  "files": [
    {
      "patchws": "https://github.com/OldUnreal/UnrealTournamentPatches/releases/download/v469a/OldUnreal-UTPatch469a-Windows.zip"
    },
    {
      "patchlx": "https://github.com/OldUnreal/UnrealTournamentPatches/releases/download/v469a/OldUnreal-UTPatch469a-Linux.tar.bz2"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal%20Tournament%201999/unreal_tournament.bmp"
    },
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal%20Tournament%201999/unreal_tournament.bat"
    },
    {
      "gogsetup": "N/A:Please select the Windows setup exe file downloaded from your GOG account"
    }
  ],
  "game": {
    "args": "c:\\\\unreal_tournament.bat",
    "exe": "drive_c/windows/syswow64/wineconsole.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "install_gecko": true,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/SILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES",
        "executable": "gogsetup",
        "name": "wineexec",
        "prefix": "$GAMEDIR/"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY",
        "file": "patchws"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY",
        "file": "patchlx",
        "format": "bz2"
      }
    },
    {
      "write_config": {
        "data": {
          "Engine.Engine": {
            "AudioDevice": "Cluster.ClusterAudioSubsystem",
            "GameRenderDevice": "OpenGLDrv.OpenGLRenderDevice"
          },
          "FirstRun": {
            "FirstRun": 469
          },
          "SDLDrv.SDLClient": {
            "FullscreenColorBits": 32,
            "FullscreenViewportX": "$RESOLUTION_WIDTH",
            "FullscreenViewportY": "$RESOLUTION_HEIGHT",
            "StartupFullscreen": true,
            "UseRawHIDInput": true
          },
          "WinDrv.WindowsClient": {
            "FullscreenColorBits": 32,
            "FullscreenViewportX": "$RESOLUTION_WIDTH",
            "FullscreenViewportY": "$RESOLUTION_HEIGHT",
            "StartupFullscreen": true,
            "UseRawHIDInput": true
          }
        },
        "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/Default.ini"
      }
    },
    {
      "write_config": {
        "data": {
          "Engine.Engine": {
            "AudioDevice": "Cluster.ClusterAudioSubsystem",
            "GameRenderDevice": "OpenGLDrv.OpenGLRenderDevice"
          },
          "FirstRun": {
            "FirstRun": 469
          },
          "SDLDrv.SDLClient": {
            "FullscreenColorBits": 32,
            "FullscreenViewportX": "$RESOLUTION_WIDTH",
            "FullscreenViewportY": "$RESOLUTION_HEIGHT",
            "StartupFullscreen": true,
            "UseRawHIDInput": true
          },
          "WinDrv.WindowsClient": {
            "FullscreenColorBits": 32,
            "FullscreenViewportX": "$RESOLUTION_WIDTH",
            "FullscreenViewportY": "$RESOLUTION_HEIGHT",
            "StartupFullscreen": true,
            "UseRawHIDInput": true
          }
        },
        "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/UnrealTournament.ini"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "menu"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/bash\nsed -i \"s/ViewportManager=.*/ViewportManager=WinDrv.WindowsClient/g\" UnrealTournament.ini\n",
        "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/modifyoptions.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament GOTY/System/modifyoptions.sh"
    },
    {
      "task": {
        "arch": "win64",
        "key": "csmt",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\unreal_tournament.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "GradientActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "117 7 16"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game