Installer the-sims-4-origin

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:
- 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:
- 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
    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:
    arch: win64
    description: Spoofing AMD RX 550...
    key: VideoPciVendorID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 1002
- task:
    arch: win64
    description: Spoofing AMD RX 550...
    key: VideoPciDeviceID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 699f
- 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
  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": [
    {
      "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": [
    {
      "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"
      }
    },
    {
      "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": {
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "value": 1002,
        "arch": "win64",
        "type": "REG_DWORD",
        "description": "Spoofing AMD RX 550...",
        "prefix": "$GAMEDIR",
        "key": "VideoPciVendorID"
      }
    },
    {
      "task": {
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "value": "699f",
        "arch": "win64",
        "type": "REG_DWORD",
        "description": "Spoofing AMD RX 550...",
        "prefix": "$GAMEDIR",
        "key": "VideoPciDeviceID"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
        "src": "updater"
      }
    }
  ],
  "wine": {
    "overrides": {
      "OriginThinSetupInternal.exe": "disabled",
      "nvapi,nvapi64": "disabled"
    },
    "dxvk": true,
    "version": "tkg-4.0-x86_64"
  }
}
Back to game