Installer the-sims-2-wined3d-universal-dv

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:
- fixes: https://github.com/tannisroot/installer-fixes/raw/master/sims2_fixes.tar.xz
- script: https://raw.githubusercontent.com/tannisroot/installer-fixes/master/sims2fix.sh
- file: N/A:Select the game's setup file
game:
  arch: win32
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating Wine Prefix...
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: mfc42
    arch: win32
    description: Installing dependencies...
    name: winetricks
    prefix: $GAMEDIR
    silent: 'true'
- task:
    arch: win32
    description: Setting version to xp...
    key: Version
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine
    prefix: $GAMEDIR
    value: winxp
- task:
    arch: win32
    description: Setting Vertex Shader Model to 2...
    key: MaxShaderModelVS
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000002'
- task:
    arch: win32
    description: Setting Pixel Shader Model to 2...
    key: MaxShaderModelPS
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000002'
- copy:
    dst: $GAMEDIR
    src: script
- chmodx: $GAMEDIR/sims2fix.sh
- extract:
    dst: "$GAMEDIR/drive_c/users/$USER/My Documents/EA Games/The Sims\u2122 2 Ultimate\
      \ Collection/Downloads"
    file: fixes
- write_file:
    content: 'boolprop useshaders true

      boolProp   createNVidiaWorkaroundTexture false

      '
    file: "$GAMEDIR/drive_c/users/$USER/My Documents/EA Games/The Sims\u2122 2 Ultimate\
      \ Collection/Config/userstartup.cheat"
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win32
    description: Installing The Sims 2...
    executable: file
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    WINE_LARGE_ADDRESS_AWARE: 1
  prelaunch_command: $GAMEDIR/sims2fix.sh
wine:
  version: lutris-sims2-4.12.1-x86_64
{
  "installer": [
    {
      "task": {
        "description": "Creating Wine Prefix...",
        "name": "create_prefix",
        "prefix": "$GAMEDIR",
        "arch": "win32"
      }
    },
    {
      "task": {
        "description": "Installing dependencies...",
        "arch": "win32",
        "name": "winetricks",
        "silent": "true",
        "app": "mfc42",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Setting version to xp...",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine",
        "arch": "win32",
        "value": "winxp",
        "key": "Version",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "type": "REG_DWORD",
        "key": "MaxShaderModelVS",
        "value": "00000002",
        "name": "set_regedit",
        "description": "Setting Vertex Shader Model to 2...",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "arch": "win32",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "type": "REG_DWORD",
        "key": "MaxShaderModelPS",
        "value": "00000002",
        "name": "set_regedit",
        "description": "Setting Pixel Shader Model to 2...",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "arch": "win32",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "copy": {
        "src": "script",
        "dst": "$GAMEDIR"
      }
    },
    {
      "chmodx": "$GAMEDIR/sims2fix.sh"
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/users/$USER/My Documents/EA Games/The Sims\u2122 2 Ultimate Collection/Downloads",
        "file": "fixes"
      }
    },
    {
      "write_file": {
        "content": "boolprop useshaders true\nboolProp   createNVidiaWorkaroundTexture false\n",
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/EA Games/The Sims\u2122 2 Ultimate Collection/Config/userstartup.cheat"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Installing The Sims 2...",
        "name": "wineexec",
        "executable": "file",
        "prefix": "$GAMEDIR",
        "arch": "win32"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "game": {
    "prefix": "$GAMEDIR",
    "arch": "win32"
  },
  "system": {
    "env": {
      "WINE_LARGE_ADDRESS_AWARE": 1
    },
    "prelaunch_command": "$GAMEDIR/sims2fix.sh"
  },
  "wine": {
    "version": "lutris-sims2-4.12.1-x86_64"
  },
  "files": [
    {
      "fixes": "https://github.com/tannisroot/installer-fixes/raw/master/sims2_fixes.tar.xz"
    },
    {
      "script": "https://raw.githubusercontent.com/tannisroot/installer-fixes/master/sims2fix.sh"
    },
    {
      "file": "N/A:Select the game's setup file"
    }
  ]
}
Back to game