Installer unreal-gold-gog-gold-patch-227i

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 Gold 227i - GOG
files:
- gog: N/A:Select the EXE downloaded from GOG
- libs: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_libs_i386.tar.bz2
- patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_patch_227i_MULTI5.zip
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/defconfig.sh
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_gold.bat
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_gold.bmp
- gpr: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_gamepad_readme.html
- gpx360: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_x360.gamecontroller.amgp
- gpsc: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_steam.sccprofile
game:
  args: c:\\GOG Games\\Unreal Gold\\unreal_gold.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:
    args: /SP- /SUPPRESSMSGBOXES /SILENT
    description: Installing...
    executable: gog
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/libs
    src: libs
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/
    src: patch
- chmodx: $GAMEDIR/drive_c/GOG Games/Unreal Gold/System/UnrealLinux.bin
- input_menu:
    description: 'Choose your game''s language:'
    id: LANG
    options:
    - int: English
    - frt: French
    - det: German
    - itt: Italian
    - est: Spanish
    preselect: int
- chmodx: script
- execute:
    args: $INPUT_LANG $RESOLUTION_WIDTH $RESOLUTION_HEIGHT
    file: script
- write_file:
    content: '#!/bin/sh

      cd System

      MESA_EXTENSION_MAX_YEAR=1999

      #LD_LIBRARY_PATH=../lin_convenience_libs

      #export LD_LIBRARY_PATH

      #exec ./UnrealLinux.bin -log

      LD_LIBRARY_PATH=../libs ./UnrealLinux.bin -log'
    file: $GAMEDIR/drive_c/GOG Games/Unreal Gold/UnrealLinux.sh
- chmodx: $GAMEDIR/drive_c/GOG Games/Unreal Gold/UnrealLinux.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_gold.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: 255 179 102
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/
    src: menu
- copy:
    dst: $GAMEDIR/drive_c/
    src: wpp
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/
    src: gpr
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/
    src: gpx360
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/
    src: gpsc
wine:
  Desktop: true
{
  "custom-name": "Unreal Gold 227i - GOG",
  "files": [
    {
      "gog": "N/A:Select the EXE downloaded from GOG"
    },
    {
      "libs": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_libs_i386.tar.bz2"
    },
    {
      "patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_patch_227i_MULTI5.zip"
    },
    {
      "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/defconfig.sh"
    },
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_gold.bat"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/unreal_gold.bmp"
    },
    {
      "gpr": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_gamepad_readme.html"
    },
    {
      "gpx360": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_x360.gamecontroller.amgp"
    },
    {
      "gpsc": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Unreal/gamepad%20profiles/unreal_steam.sccprofile"
    }
  ],
  "game": {
    "args": "c:\\\\GOG Games\\\\Unreal Gold\\\\unreal_gold.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": {
        "args": "/SP- /SUPPRESSMSGBOXES /SILENT",
        "description": "Installing...",
        "executable": "gog",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/libs",
        "src": "libs"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/",
        "src": "patch"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/System/UnrealLinux.bin"
    },
    {
      "input_menu": {
        "description": "Choose your game's language:",
        "id": "LANG",
        "options": [
          {
            "int": "English"
          },
          {
            "frt": "French"
          },
          {
            "det": "German"
          },
          {
            "itt": "Italian"
          },
          {
            "est": "Spanish"
          }
        ],
        "preselect": "int"
      }
    },
    {
      "chmodx": "script"
    },
    {
      "execute": {
        "args": "$INPUT_LANG $RESOLUTION_WIDTH $RESOLUTION_HEIGHT",
        "file": "script"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/sh\ncd System\nMESA_EXTENSION_MAX_YEAR=1999\n#LD_LIBRARY_PATH=../lin_convenience_libs\n#export LD_LIBRARY_PATH\n#exec ./UnrealLinux.bin -log\nLD_LIBRARY_PATH=../libs ./UnrealLinux.bin -log",
        "file": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/UnrealLinux.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/UnrealLinux.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_gold.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": "255 179 102"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/",
        "src": "menu"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/",
        "src": "gpr"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/",
        "src": "gpx360"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Unreal Gold/gamepad profiles/",
        "src": "gpsc"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game