Installer unreal-ii-the-awakening-gog-1

files:
- bmp: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bmp
- script: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/clean.sh
- gogsetup: N/A:Please select the game's setup Windows exe file downloaded from GOG.
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
- menu: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bat
game:
  arch: win64
  args: c:\\unreal2.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating wine prefix...
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE/
    src: inno
- execute:
    args: -d "$GAMEDIR/drive_c/Unreal 2 - The Awakening" -g $gogsetup
    file: $CACHE/innoextract
- merge:
    dst: $GAMEDIR/drive_c/Unreal 2 - The Awakening
    src: $GAMEDIR/drive_c/Unreal 2 - The Awakening/__support/app
- chmodx: script
- execute:
    args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT Windows
    file: script
- move:
    dst: $GAMEDIR/drive_c/
    src: menu
- move:
    dst: $GAMEDIR/drive_c/
    src: bmp
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\unreal2.bmp
- 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: 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: 255 255 255
- task:
    arch: win64
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: InActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 255 255 255
- task:
    arch: win64
    key: GradientInActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
wine:
  Desktop: true
description: '"Unreal II: The Awakening" using Wine.'
game_slug: unreal-ii-the-awakening
gogslug: ''
humblestoreid: ''
installer_slug: unreal-ii-the-awakening-gog-1
name: 'Unreal II: The Awakening'
notes: "- Please report issue concerning this script on my GitHub page:\r\nhttps://github.com/wof8317/MyLutrisScripts"
runner: wine
script:
  files:
  - bmp: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bmp
  - script: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/clean.sh
  - gogsetup: N/A:Please select the game's setup Windows exe file downloaded from
      GOG.
  - inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
  - menu: https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bat
  game:
    arch: win64
    args: c:\\unreal2.bat
    exe: drive_c/windows/syswow64/wineconsole.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating wine prefix...
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE/
      src: inno
  - execute:
      args: -d "$GAMEDIR/drive_c/Unreal 2 - The Awakening" -g $gogsetup
      file: $CACHE/innoextract
  - merge:
      dst: $GAMEDIR/drive_c/Unreal 2 - The Awakening
      src: $GAMEDIR/drive_c/Unreal 2 - The Awakening/__support/app
  - chmodx: script
  - execute:
      args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT Windows
      file: script
  - move:
      dst: $GAMEDIR/drive_c/
      src: menu
  - move:
      dst: $GAMEDIR/drive_c/
      src: bmp
  - task:
      arch: win64
      key: wallpaper
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Desktop\
      prefix: $GAMEDIR
      type: REG_SZ
      value: c:\\unreal2.bmp
  - 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: 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: 255 255 255
  - task:
      arch: win64
      key: GradientActiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  - task:
      arch: win64
      key: InActiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 255 255 255
  - task:
      arch: win64
      key: GradientInActiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  wine:
    Desktop: true
slug: unreal-ii-the-awakening-gog-1
steamid: 13200
version: GOG
year: 2003
{
  "game_slug": "unreal-ii-the-awakening",
  "version": "GOG",
  "description": "\"Unreal II: The Awakening\" using Wine.",
  "notes": "- Please report issue concerning this script on my GitHub page:\r\nhttps://github.com/wof8317/MyLutrisScripts",
  "name": "Unreal II: The Awakening",
  "year": 2003,
  "steamid": 13200,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "unreal-ii-the-awakening-gog-1",
  "installer_slug": "unreal-ii-the-awakening-gog-1",
  "script": {
    "files": [
      {
        "bmp": "https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bmp"
      },
      {
        "script": "https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/clean.sh"
      },
      {
        "gogsetup": "N/A:Please select the game's setup Windows exe file downloaded from GOG."
      },
      {
        "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz"
      },
      {
        "menu": "https://github.com/wof8317/MyLutrisScripts/raw/main/Unreal2/unreal2.bat"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "c:\\\\unreal2.bat",
      "exe": "drive_c/windows/syswow64/wineconsole.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating wine prefix...",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/",
          "src": "inno"
        }
      },
      {
        "execute": {
          "args": "-d \"$GAMEDIR/drive_c/Unreal 2 - The Awakening\" -g $gogsetup",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Unreal 2 - The Awakening",
          "src": "$GAMEDIR/drive_c/Unreal 2 - The Awakening/__support/app"
        }
      },
      {
        "chmodx": "script"
      },
      {
        "execute": {
          "args": "$RESOLUTION_WIDTH $RESOLUTION_HEIGHT Windows",
          "file": "script"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/",
          "src": "menu"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/",
          "src": "bmp"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "wallpaper",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "c:\\\\unreal2.bmp"
        }
      },
      {
        "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": "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": "255 255 255"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "GradientActiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "InActiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "255 255 255"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "GradientInActiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      }
    ],
    "wine": {
      "Desktop": true
    }
  }
}
Back to game