Installer dead-space-gog

files:
- gogsetup: 'N/A: Select GOG''s setup .exe file.'
game:
  exe: drive_c/GOG Games/Dead Space/Dead Space.exe
  gogid: 1312818781
  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
    file: gogsetup
    format: gog
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Dead Space
    src: $GAMEDIR/drive_c/GOG Games/game
- write_file:
    content: 'Window.Width = $RESOLUTION_WIDTH

      Window.Height = $RESOLUTION_HEIGHT

      Window.Fullscreen = true'
    file: $GAMEDIR/drive_c/users/$USER/AppData/Local/Electronic Arts/Dead Space/settings.txt
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - en_US: English
    - fr_FR: French
    - de_DE: German
    - it_IT: Italian
    - es_ES: Spanish
    preselect: en_US
- task:
    key: Locale
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Dead Space
    prefix: $GAMEDIR
    type: REG_SZ
    value: $INPUT_LANG
- execute:
    command: lang="$INPUT_LANG"; lang=${lang::2} ; cd "$GAMEDIR/drive_c/GOG Games/Dead
      Space/text_assets" ; ls; echo $INPUT_LANG $lang ; LD_LIBRARY_PATH=. cp "$lang/"*
      . ;
system:
  env:
    DXVK_FRAME_RATE: '60'
    DXVK_HUD: null
  gamescope: true
  gamescope_fps_limiter: '60'
  gamescope_game_res: $RESOLUTION
  gamescope_output_res: $RESOLUTION
description: Play "Dead Space" provided by GOG on Linux!
game_slug: dead-space
gogslug: dead_space
humblestoreid: ''
installer_slug: dead-space-gog
name: Dead Space
notes: "- multilingual: during installation, you can choose the language used for\
  \ menus and subtitles between English (default), French, German, Italian and Spanish\r\
  \n- This game does not support very well Alt+Tab. Workaround: use Gamescope\r\n\
  - if you get graphics malfunctions, use a version of DXVK lower than 2, for example\
  \ 1.9"
runner: wine
script:
  files:
  - gogsetup: 'N/A: Select GOG''s setup .exe file.'
  game:
    exe: drive_c/GOG Games/Dead Space/Dead Space.exe
    gogid: 1312818781
    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
      file: gogsetup
      format: gog
  - move:
      dst: $GAMEDIR/drive_c/GOG Games/Dead Space
      src: $GAMEDIR/drive_c/GOG Games/game
  - write_file:
      content: 'Window.Width = $RESOLUTION_WIDTH

        Window.Height = $RESOLUTION_HEIGHT

        Window.Fullscreen = true'
      file: $GAMEDIR/drive_c/users/$USER/AppData/Local/Electronic Arts/Dead Space/settings.txt
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - en_US: English
      - fr_FR: French
      - de_DE: German
      - it_IT: Italian
      - es_ES: Spanish
      preselect: en_US
  - task:
      key: Locale
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Dead Space
      prefix: $GAMEDIR
      type: REG_SZ
      value: $INPUT_LANG
  - execute:
      command: lang="$INPUT_LANG"; lang=${lang::2} ; cd "$GAMEDIR/drive_c/GOG Games/Dead
        Space/text_assets" ; ls; echo $INPUT_LANG $lang ; LD_LIBRARY_PATH=. cp "$lang/"*
        . ;
  system:
    env:
      DXVK_FRAME_RATE: '60'
      DXVK_HUD: null
    gamescope: true
    gamescope_fps_limiter: '60'
    gamescope_game_res: $RESOLUTION
    gamescope_output_res: $RESOLUTION
slug: dead-space-gog
steamid: 17470
version: GOG
year: 2008
{
  "game_slug": "dead-space",
  "version": "GOG",
  "description": "Play \"Dead Space\" provided by GOG on Linux!",
  "notes": "- multilingual: during installation, you can choose the language used for menus and subtitles between English (default), French, German, Italian and Spanish\r\n- This game does not support very well Alt+Tab. Workaround: use Gamescope\r\n- if you get graphics malfunctions, use a version of DXVK lower than 2, for example 1.9",
  "name": "Dead Space",
  "year": 2008,
  "steamid": 17470,
  "gogslug": "dead_space",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "dead-space-gog",
  "installer_slug": "dead-space-gog",
  "script": {
    "files": [
      {
        "gogsetup": "N/A: Select GOG's setup .exe file."
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Dead Space/Dead Space.exe",
      "gogid": 1312818781,
      "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",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Dead Space",
          "src": "$GAMEDIR/drive_c/GOG Games/game"
        }
      },
      {
        "write_file": {
          "content": "Window.Width = $RESOLUTION_WIDTH\nWindow.Height = $RESOLUTION_HEIGHT\nWindow.Fullscreen = true",
          "file": "$GAMEDIR/drive_c/users/$USER/AppData/Local/Electronic Arts/Dead Space/settings.txt"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "en_US": "English"
            },
            {
              "fr_FR": "French"
            },
            {
              "de_DE": "German"
            },
            {
              "it_IT": "Italian"
            },
            {
              "es_ES": "Spanish"
            }
          ],
          "preselect": "en_US"
        }
      },
      {
        "task": {
          "key": "Locale",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Electronic Arts\\Dead Space",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "$INPUT_LANG"
        }
      },
      {
        "execute": {
          "command": "lang=\"$INPUT_LANG\"; lang=${lang::2} ; cd \"$GAMEDIR/drive_c/GOG Games/Dead Space/text_assets\" ; ls; echo $INPUT_LANG $lang ; LD_LIBRARY_PATH=. cp \"$lang/\"* . ;"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "60",
        "DXVK_HUD": null
      },
      "gamescope": true,
      "gamescope_fps_limiter": "60",
      "gamescope_game_res": "$RESOLUTION",
      "gamescope_output_res": "$RESOLUTION"
    }
  }
}
Back to game