Installer unreal-tournament-2004-gog-dxwrapper

files:
- gogsetup: N/A:Please select the game's setup Windows exe file downloaded from GOG.
- wrapper: https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip
game:
  exe: drive_c/GOG Games/Unreal Tournament 2004/System/UT2004.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating wine prefix...
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
    file: gogsetup
    format: gog
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
    src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/__support/app
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
    src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/app
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System
    file: wrapper
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System
    src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Stub/d3d8.dll
- write_config:
    data:
      Compatibility:
        D3d8to9: 1
      d3d9:
        LimitPerFrameFPS: 60
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/dxwrapper.ini
- input_menu:
    description: 'Choose your game''s language:'
    id: LANG
    options:
    - int: English
    - frt: French
    - det: German
    - itt: Italian
    - est: Spanish
    preselect: int
- write_config:
    data:
      D3DDrv.D3DRenderDevice:
        ReduceMouseLag: true
      Engine.Engine:
        Language: $INPUT_LANG
        RenderDevice: D3DDrv.D3DRenderDevice
      FirstRun:
        FirstRun: 3369
      OpenGLDrv.OpenGLRenderDevice:
        ReduceMouseLag: true
      SDLDrv.SDLClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        TextureDetailLightmap: Higher
        TextureDetailPlayerSkin: Higher
        TextureDetailRenderMap: Higher
        TextureDetailTerrain: Higher
        TextureDetailWeaponSkin: Higher
        TextureDetailWorld: Higher
        WindowedColorBits: 32
        WindowedViewportX: $RESOLUTION_WIDTH
        WindowedViewportY: $RESOLUTION_HEIGHT
      WinDrv.WindowsClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        TextureDetailLightmap: Higher
        TextureDetailPlayerSkin: Higher
        TextureDetailRenderMap: Higher
        TextureDetailTerrain: Higher
        TextureDetailWeaponSkin: Higher
        TextureDetailWorld: Higher
        WindowedColorBits: 32
        WindowedViewportX: $RESOLUTION_WIDTH
        WindowedViewportY: $RESOLUTION_HEIGHT
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Default.ini
    merge: true
- write_config:
    data:
      Engine.PlayerController:
        DefaultFOV: 106.2602
        DesiredFOV: 106.2602
        FOVAngle: 106.2602
    file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/DefUser.ini
- task:
    arch: win64
    key: CDKey
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Unreal Technology\Installed Apps\UT2004
    type: REG_SZ
    value: 3QHVC-DHA9K-A84RE-KYRT4
- move:
    dst: $CACHE
    src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/User.ini
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System"; sed -i
      -e s/ut2004master1.epicgames.com/ut2004master.333networks.com/g -e s/ut2004master2.epicgames.com/ut2004master.errorist.eu/g
      Default.ini;
system:
  env:
    DXVK_FRAME_RATE: '60'
    DXVK_HUD: null
wine:
  overrides:
    d3d8: native
description: Play "Unreal Tournament 2004" provided by GOG on Linux!
game_slug: unreal-tournament-2004
gogslug: ultra_pack_deluxe_turbo_hd_remix_vol2
humblestoreid: ''
installer_slug: unreal-tournament-2004-gog-dxwrapper
name: Unreal Tournament 2004
notes: "- This script installer will automagically set the game to your desktop resolution\
  \ with widescreen mode\r\n- Depend your keyboard layout, press \"~\" (qwerty) or\
  \ \"\xF9\" (azerty) or ... key to show console\r\n- Multilingual: you will be able\
  \ to choose your preferred language for menus, subtitles and voices during installation\
  \ between English (default), French, German, Italian and Spanish\r\n- Play UT2004\
  \ online with 333networks masterserver\r\n- type \"preferences\" in console to access\
  \ advanced settings"
runner: wine
script:
  files:
  - gogsetup: N/A:Please select the game's setup Windows exe file downloaded from
      GOG.
  - wrapper: https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip
  game:
    exe: drive_c/GOG Games/Unreal Tournament 2004/System/UT2004.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating wine prefix...
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
      file: gogsetup
      format: gog
  - merge:
      dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
      src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/__support/app
  - merge:
      dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004
      src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/app
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System
      file: wrapper
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System
      src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Stub/d3d8.dll
  - write_config:
      data:
        Compatibility:
          D3d8to9: 1
        d3d9:
          LimitPerFrameFPS: 60
      file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/dxwrapper.ini
  - input_menu:
      description: 'Choose your game''s language:'
      id: LANG
      options:
      - int: English
      - frt: French
      - det: German
      - itt: Italian
      - est: Spanish
      preselect: int
  - write_config:
      data:
        D3DDrv.D3DRenderDevice:
          ReduceMouseLag: true
        Engine.Engine:
          Language: $INPUT_LANG
          RenderDevice: D3DDrv.D3DRenderDevice
        FirstRun:
          FirstRun: 3369
        OpenGLDrv.OpenGLRenderDevice:
          ReduceMouseLag: true
        SDLDrv.SDLClient:
          FullscreenColorBits: 32
          FullscreenViewportX: $RESOLUTION_WIDTH
          FullscreenViewportY: $RESOLUTION_HEIGHT
          TextureDetailLightmap: Higher
          TextureDetailPlayerSkin: Higher
          TextureDetailRenderMap: Higher
          TextureDetailTerrain: Higher
          TextureDetailWeaponSkin: Higher
          TextureDetailWorld: Higher
          WindowedColorBits: 32
          WindowedViewportX: $RESOLUTION_WIDTH
          WindowedViewportY: $RESOLUTION_HEIGHT
        WinDrv.WindowsClient:
          FullscreenColorBits: 32
          FullscreenViewportX: $RESOLUTION_WIDTH
          FullscreenViewportY: $RESOLUTION_HEIGHT
          TextureDetailLightmap: Higher
          TextureDetailPlayerSkin: Higher
          TextureDetailRenderMap: Higher
          TextureDetailTerrain: Higher
          TextureDetailWeaponSkin: Higher
          TextureDetailWorld: Higher
          WindowedColorBits: 32
          WindowedViewportX: $RESOLUTION_WIDTH
          WindowedViewportY: $RESOLUTION_HEIGHT
      file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Default.ini
      merge: true
  - write_config:
      data:
        Engine.PlayerController:
          DefaultFOV: 106.2602
          DesiredFOV: 106.2602
          FOVAngle: 106.2602
      file: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/DefUser.ini
  - task:
      arch: win64
      key: CDKey
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Unreal Technology\Installed Apps\UT2004
      type: REG_SZ
      value: 3QHVC-DHA9K-A84RE-KYRT4
  - move:
      dst: $CACHE
      src: $GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/User.ini
  - execute:
      command: cd "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System"; sed
        -i -e s/ut2004master1.epicgames.com/ut2004master.333networks.com/g -e s/ut2004master2.epicgames.com/ut2004master.errorist.eu/g
        Default.ini;
  system:
    env:
      DXVK_FRAME_RATE: '60'
      DXVK_HUD: null
  wine:
    overrides:
      d3d8: native
slug: unreal-tournament-2004-gog-dxwrapper
steamid: 13230
version: GOG + DxWrapper
year: 2004
{
  "game_slug": "unreal-tournament-2004",
  "version": "GOG + DxWrapper",
  "description": "Play \"Unreal Tournament 2004\" provided by GOG on Linux!",
  "notes": "- This script installer will automagically set the game to your desktop resolution with widescreen mode\r\n- Depend your keyboard layout, press \"~\" (qwerty) or \"\u00f9\" (azerty) or ... key to show console\r\n- Multilingual: you will be able to choose your preferred language for menus, subtitles and voices during installation between English (default), French, German, Italian and Spanish\r\n- Play UT2004 online with 333networks masterserver\r\n- type \"preferences\" in console to access advanced settings",
  "name": "Unreal Tournament 2004",
  "year": 2004,
  "steamid": 13230,
  "gogslug": "ultra_pack_deluxe_turbo_hd_remix_vol2",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "unreal-tournament-2004-gog-dxwrapper",
  "installer_slug": "unreal-tournament-2004-gog-dxwrapper",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the game's setup Windows exe file downloaded from GOG."
      },
      {
        "wrapper": "https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Unreal Tournament 2004/System/UT2004.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating wine prefix...",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004",
          "src": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/__support/app"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004",
          "src": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/app"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System",
          "file": "wrapper"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System",
          "src": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Stub/d3d8.dll"
        }
      },
      {
        "write_config": {
          "data": {
            "Compatibility": {
              "D3d8to9": 1
            },
            "d3d9": {
              "LimitPerFrameFPS": 60
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/dxwrapper.ini"
        }
      },
      {
        "input_menu": {
          "description": "Choose your game's language:",
          "id": "LANG",
          "options": [
            {
              "int": "English"
            },
            {
              "frt": "French"
            },
            {
              "det": "German"
            },
            {
              "itt": "Italian"
            },
            {
              "est": "Spanish"
            }
          ],
          "preselect": "int"
        }
      },
      {
        "write_config": {
          "data": {
            "D3DDrv.D3DRenderDevice": {
              "ReduceMouseLag": true
            },
            "Engine.Engine": {
              "Language": "$INPUT_LANG",
              "RenderDevice": "D3DDrv.D3DRenderDevice"
            },
            "FirstRun": {
              "FirstRun": 3369
            },
            "OpenGLDrv.OpenGLRenderDevice": {
              "ReduceMouseLag": true
            },
            "SDLDrv.SDLClient": {
              "FullscreenColorBits": 32,
              "FullscreenViewportX": "$RESOLUTION_WIDTH",
              "FullscreenViewportY": "$RESOLUTION_HEIGHT",
              "TextureDetailLightmap": "Higher",
              "TextureDetailPlayerSkin": "Higher",
              "TextureDetailRenderMap": "Higher",
              "TextureDetailTerrain": "Higher",
              "TextureDetailWeaponSkin": "Higher",
              "TextureDetailWorld": "Higher",
              "WindowedColorBits": 32,
              "WindowedViewportX": "$RESOLUTION_WIDTH",
              "WindowedViewportY": "$RESOLUTION_HEIGHT"
            },
            "WinDrv.WindowsClient": {
              "FullscreenColorBits": 32,
              "FullscreenViewportX": "$RESOLUTION_WIDTH",
              "FullscreenViewportY": "$RESOLUTION_HEIGHT",
              "TextureDetailLightmap": "Higher",
              "TextureDetailPlayerSkin": "Higher",
              "TextureDetailRenderMap": "Higher",
              "TextureDetailTerrain": "Higher",
              "TextureDetailWeaponSkin": "Higher",
              "TextureDetailWorld": "Higher",
              "WindowedColorBits": 32,
              "WindowedViewportX": "$RESOLUTION_WIDTH",
              "WindowedViewportY": "$RESOLUTION_HEIGHT"
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/Default.ini",
          "merge": true
        }
      },
      {
        "write_config": {
          "data": {
            "Engine.PlayerController": {
              "DefaultFOV": 106.2602,
              "DesiredFOV": 106.2602,
              "FOVAngle": 106.2602
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/DefUser.ini"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "CDKey",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Unreal Technology\\Installed Apps\\UT2004",
          "type": "REG_SZ",
          "value": "3QHVC-DHA9K-A84RE-KYRT4"
        }
      },
      {
        "move": {
          "dst": "$CACHE",
          "src": "$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System/User.ini"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/GOG Games/Unreal Tournament 2004/System\"; sed -i -e s/ut2004master1.epicgames.com/ut2004master.333networks.com/g -e s/ut2004master2.epicgames.com/ut2004master.errorist.eu/g Default.ini;"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "60",
        "DXVK_HUD": null
      }
    },
    "wine": {
      "overrides": {
        "d3d8": "native"
      }
    }
  }
}
Back to game