Installer the-sims-4-origin-d9vk

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.

files:
- d9vk: https://github.com/Joshua-Ashton/d9vk/releases/download/0.13f/d9vk-0.13f.tar.gz
- client: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/OriginSetup.exe
- updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- extract:
    dst: $CACHE/dxvk-release/
    file: d9vk
- copy:
    dst: $HOME/.local/share/lutris/runtime/dxvk/d9vk-0.13f/
    src: $CACHE/dxvk-release/
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/nv-shaders"
- write_file:
    content: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
- task:
    app: nocrashdialog win7 arial faudio d3dcompiler_43 d3dx9
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin... Login window will pop-up and close.
    exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
      QtWebEngineProcess.exe
    executable: client
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: 0
    PULSE_LATENCY_MSEC: 60
    STAGING_SHARED_MEMORY: 0
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
  exclude_processes: QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe
wine:
  dxvk: true
  dxvk_version: d9vk-0.13f
  overrides:
    OriginThinSetupInternal.exe: disabled
    nvapi,nvapi64: disabled
  version: tkg-4.0-x86_64
{
  "game": {
    "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
    "arch": "win64",
    "prefix": "$GAMEDIR"
  },
  "files": [
    {
      "d9vk": "https://github.com/Joshua-Ashton/d9vk/releases/download/0.13f/d9vk-0.13f.tar.gz"
    },
    {
      "client": "https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/OriginSetup.exe"
    },
    {
      "updater": "https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh"
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/nv-shaders",
      "STAGING_SHARED_MEMORY": 0,
      "DXVK_HUD": 0,
      "PULSE_LATENCY_MSEC": 60
    },
    "exclude_processes": "QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE/dxvk-release/",
        "file": "d9vk"
      }
    },
    {
      "copy": {
        "dst": "$HOME/.local/share/lutris/runtime/dxvk/d9vk-0.13f/",
        "src": "$CACHE/dxvk-release/"
      }
    },
    {
      "task": {
        "description": "Creating Wine prefix",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "name": "create_prefix"
      }
    },
    {
      "execute": {
        "command": "mkdir \"$GAMEDIR/nv-shaders\""
      }
    },
    {
      "write_file": {
        "content": "dxgi.nvapiHack = False",
        "file": "$GAMEDIR/dxvk.conf"
      }
    },
    {
      "task": {
        "arch": "win64",
        "prefix": "$GAMEDIR",
        "name": "winetricks",
        "app": "nocrashdialog win7 arial faudio d3dcompiler_43 d3dx9"
      }
    },
    {
      "task": {
        "name": "wineexec",
        "args": "/silent",
        "description": "Installing Origin... Login window will pop-up and close.",
        "prefix": "$GAMEDIR",
        "executable": "client",
        "arch": "win64",
        "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
        "src": "updater"
      }
    }
  ],
  "wine": {
    "dxvk_version": "d9vk-0.13f",
    "overrides": {
      "OriginThinSetupInternal.exe": "disabled",
      "nvapi,nvapi64": "disabled"
    },
    "dxvk": true,
    "version": "tkg-4.0-x86_64"
  }
}
Back to game