Installer the-sims-2-wined3d-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:
- fixes: https://github.com/tannisroot/installer-fixes/raw/master/sims2_fixes.tar.xz
- origin: https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
game:
  arch: win32
  exe: drive_c/Program Files/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating Wine Prefix...
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win32
    description: Disabling crash dialogs...
    key: ShowCrashDialog
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\WineDbg
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 0
- 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'
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    app: vcrun2013
    arch: win32
    description: Installing Vcrun 2013
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: vcrun2010
    arch: win32
    description: Installing Vcrun 2010
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- 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

      boolProp   bumpMapping 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 Origin...
    exclude_processes: Origin.exe OriginClientService.exe
    executable: origin
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    WINE_LARGE_ADDRESS_AWARE: 1
wine:
  version: tkg-sims2-3.21-x86_64
{
  "installer": [
    {
      "task": {
        "description": "Creating Wine Prefix...",
        "name": "create_prefix",
        "prefix": "$GAMEDIR",
        "arch": "win32"
      }
    },
    {
      "task": {
        "type": "REG_DWORD",
        "key": "ShowCrashDialog",
        "value": 0,
        "name": "set_regedit",
        "description": "Disabling crash dialogs...",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\WineDbg",
        "arch": "win32",
        "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"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Installing Vcrun 2013",
        "arch": "win32",
        "name": "winetricks",
        "silent": true,
        "app": "vcrun2013",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Installing Vcrun 2010",
        "arch": "win32",
        "name": "winetricks",
        "silent": true,
        "app": "vcrun2010",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "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\nboolProp   bumpMapping 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 Origin...",
        "executable": "origin",
        "arch": "win32",
        "name": "wineexec",
        "exclude_processes": "Origin.exe OriginClientService.exe",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "game": {
    "arch": "win32",
    "prefix": "$GAMEDIR",
    "exe": "drive_c/Program Files/Origin/Origin.exe"
  },
  "system": {
    "env": {
      "WINE_LARGE_ADDRESS_AWARE": 1
    }
  },
  "wine": {
    "version": "tkg-sims2-3.21-x86_64"
  },
  "files": [
    {
      "fixes": "https://github.com/tannisroot/installer-fixes/raw/master/sims2_fixes.tar.xz"
    },
    {
      "origin": "https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe"
    }
  ]
}
Back to game