Installer far-cry-3-ubisoft-connect-stan

files:
- ubisetup: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
- game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Far%20Cry%203/GamerProfile.xml
game:
  args: uplay://launch/46/0
  exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- write_file:
    content: "overlay:\n  enabled: false\n  forceunhookgame: false\n  fps_enabled:\
      \ false\n  warning_enabled: false\nuser:\n  closebehavior: CloseBehavior_Close"
    file: $GAMEDIR/drive_c/users/$USER/AppData/Local/Ubisoft Game Launcher/settings.yaml
- task:
    app: arial
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /S
    executable: ubisetup
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3
    src: game_cfg
- execute:
    command: cd "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3";  sed
      -i -e 's/ResolutionX="1280"/ResolutionX="$RESOLUTION_WIDTH"/g' -e 's/ResolutionY="720"/ResolutionY="$RESOLUTION_HEIGHT"/g'
      GamerProfile.xml ;
system:
  env:
    DXVK_FRAME_RATE: '60'
    DXVK_HUD: null
description: Play "Far Cry 3" provided by Ubisoft Connect on Linux!
game_slug: far-cry-3
gogslug: ''
humblestoreid: ''
installer_slug: far-cry-3-ubisoft-connect-stan
name: Far Cry 3
notes: "- \"Ubisoft Connect\" overlay is inactivated by default in this script, it\
  \ could crash the game\r\n- if FC3 does not launch, change DXVK version or set the\
  \ game to use Directx 9 (change UseD3D11=\"1\" to UseD3D11=\"0\" in \"drive_c/users/$USER/Documents/My\
  \ Games/Far Cry 3/GamerProfile.xml\" file"
runner: wine
script:
  files:
  - ubisetup: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
  - game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Far%20Cry%203/GamerProfile.xml
  game:
    args: uplay://launch/46/0
    exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - write_file:
      content: "overlay:\n  enabled: false\n  forceunhookgame: false\n  fps_enabled:\
        \ false\n  warning_enabled: false\nuser:\n  closebehavior: CloseBehavior_Close"
      file: $GAMEDIR/drive_c/users/$USER/AppData/Local/Ubisoft Game Launcher/settings.yaml
  - task:
      app: arial
      name: winetricks
      prefix: $GAMEDIR
  - task:
      args: /S
      executable: ubisetup
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3
      src: game_cfg
  - execute:
      command: cd "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3";  sed
        -i -e 's/ResolutionX="1280"/ResolutionX="$RESOLUTION_WIDTH"/g' -e 's/ResolutionY="720"/ResolutionY="$RESOLUTION_HEIGHT"/g'
        GamerProfile.xml ;
  system:
    env:
      DXVK_FRAME_RATE: '60'
      DXVK_HUD: null
slug: far-cry-3-ubisoft-connect-stan
steamid: 220240
version: Ubisoft Connect Standalone
year: 2012
{
  "game_slug": "far-cry-3",
  "version": "Ubisoft Connect Standalone",
  "description": "Play \"Far Cry 3\" provided by Ubisoft Connect on Linux!",
  "notes": "- \"Ubisoft Connect\" overlay is inactivated by default in this script, it could crash the game\r\n- if FC3 does not launch, change DXVK version or set the game to use Directx 9 (change UseD3D11=\"1\" to UseD3D11=\"0\" in \"drive_c/users/$USER/Documents/My Games/Far Cry 3/GamerProfile.xml\" file",
  "name": "Far Cry 3",
  "year": 2012,
  "steamid": 220240,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "far-cry-3-ubisoft-connect-stan",
  "installer_slug": "far-cry-3-ubisoft-connect-stan",
  "script": {
    "files": [
      {
        "ubisetup": "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe"
      },
      {
        "game_cfg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Far%20Cry%203/GamerProfile.xml"
      }
    ],
    "game": {
      "args": "uplay://launch/46/0",
      "exe": "drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "write_file": {
          "content": "overlay:\n  enabled: false\n  forceunhookgame: false\n  fps_enabled: false\n  warning_enabled: false\nuser:\n  closebehavior: CloseBehavior_Close",
          "file": "$GAMEDIR/drive_c/users/$USER/AppData/Local/Ubisoft Game Launcher/settings.yaml"
        }
      },
      {
        "task": {
          "app": "arial",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/S",
          "executable": "ubisetup",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3",
          "src": "game_cfg"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/users/$USER/Documents/My Games/Far Cry 3\";  sed -i -e 's/ResolutionX=\"1280\"/ResolutionX=\"$RESOLUTION_WIDTH\"/g' -e 's/ResolutionY=\"720\"/ResolutionY=\"$RESOLUTION_HEIGHT\"/g' GamerProfile.xml ;"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "60",
        "DXVK_HUD": null
      }
    }
  }
}
Back to game