Installer rollercoaster-tycoon-2-gog-openrct2-win64-b

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: RollerCoaster Tycoon 2 - GOG - OpenRCT2 win64 bits
files:
- orct2win: https://github.com/OpenRCT2/OpenRCT2/releases/download/v0.3.1/OpenRCT2-0.3.1-windows-portable-x64.zip
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- rct2setup: N/A:Select the Windows installer downloaded from GOG
game:
  args: --user-data-path=config
  exe: drive_c/OpenRCT2/openrct2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Preparing wineprefix...
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    src: inno
- execute:
    args: -d "$CACHE" "$rct2setup"
    file: $CACHE/innoextract
- merge:
    dst: $GAMEDIR/drive_c/RCT2
    src: $CACHE/app
- extract:
    dst: $GAMEDIR/drive_c/OpenRCT2/
    src: orct2win
- 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
- write_config:
    data:
      general:
        drawing_engine: OPENGL
        fullscreen_height: $RESOLUTION_HEIGHT
        fullscreen_mode: 1
        fullscreen_width: $RESOLUTION_WIDTH
        game_path: C:\\RCT2
        window_height: $RESOLUTION_HEIGHT
        window_width: $RESOLUTION_WIDTH
    file: $CACHE/config.ini
- merge:
    dst: $GAMEDIR/drive_c/OpenRCT2/config
    src: $CACHE/config.ini
- execute:
    command: cd $GAMEDIR/drive_c/RCT2/ ; rm -f -r __support/ gog* webcache.zip RCT2.EXE
wine:
  Desktop: true
{
  "custom-name": "RollerCoaster Tycoon 2 - GOG - OpenRCT2 win64 bits",
  "files": [
    {
      "orct2win": "https://github.com/OpenRCT2/OpenRCT2/releases/download/v0.3.1/OpenRCT2-0.3.1-windows-portable-x64.zip"
    },
    {
      "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "rct2setup": "N/A:Select the Windows installer downloaded from GOG"
    }
  ],
  "game": {
    "args": "--user-data-path=config",
    "exe": "drive_c/OpenRCT2/openrct2.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "description": "Preparing wineprefix...",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "src": "inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$rct2setup\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/RCT2",
        "src": "$CACHE/app"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/OpenRCT2/",
        "src": "orct2win"
      }
    },
    {
      "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"
      }
    },
    {
      "write_config": {
        "data": {
          "general": {
            "drawing_engine": "OPENGL",
            "fullscreen_height": "$RESOLUTION_HEIGHT",
            "fullscreen_mode": 1,
            "fullscreen_width": "$RESOLUTION_WIDTH",
            "game_path": "C:\\\\RCT2",
            "window_height": "$RESOLUTION_HEIGHT",
            "window_width": "$RESOLUTION_WIDTH"
          }
        },
        "file": "$CACHE/config.ini"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/OpenRCT2/config",
        "src": "$CACHE/config.ini"
      }
    },
    {
      "execute": {
        "command": "cd $GAMEDIR/drive_c/RCT2/ ; rm -f -r __support/ gog* webcache.zip RCT2.EXE"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game