Installer fallout-new-vegas-gog

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:
- install: N/A:Select the Windows setup file downloaded from GOG
- wallpaper: https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/wallpaper-falloutnv.tar.xz
game:
  arch: win64
  exe: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/FalloutNVLauncher.exe
  gogid: 1312824873
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating 64-bit Wine prefix
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Disabling virtual desktop
    key: WineDesktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    prefix: $GAMEDIR
    value: ''
- task:
    app: win7
    arch: win64
    description: 'winetricks: win7'
    name: winetricks
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c
    file: wallpaper
- task:
    arch: win64
    description: Setting wallpaper
    key: Background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors
    prefix: $GAMEDIR
    value: 0 0 0
- task:
    arch: win64
    description: Setting wallpaper
    key: Wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop
    prefix: $GAMEDIR
    value: c:\\wallpaper.bmp
- task:
    arch: win64
    description: Enabling GrabFullscreen for FalloutNV.exe
    key: GrabFullscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\FalloutNV.exe\X11 Driver
    prefix: $GAMEDIR
    value: Y
- task:
    arch: win64
    description: Disabling AlwaysOffscreen
    key: AlwaysOffscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    value: disabled
- task:
    arch: win64
    description: Configuring console
    key: ColorTable06
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 0d2433
- task:
    arch: win64
    description: Configuring console
    key: ColorTable14
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 42b6ff
- task:
    arch: win64
    description: Configuring console
    key: ScreenColors
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 6e
- task:
    arch: win64
    description: Configuring console
    key: FaceName
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    value: Fixedsys
- task:
    arch: win64
    description: Configuring console
    key: FontWeight
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 0190
- task:
    arch: win64
    description: Installing the game
    executable: install
    name: wineexec
    prefix: $GAMEDIR
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseThreadedAI
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iNumHWThreads
    section: General
    value: 2
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseThreadedBlood
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseThreadedMorpher
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseThreadedTempEffects
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseThreadedParticleSystem
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseMultiThreadedFaceGen
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bUseMultiThreadedTrees
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iPreloadSizeLimit
    section: General
    value: 104857600
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fDefaultFOV
    section: Display
    value: 80
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fDefaultWorldFOV
    section: Display
    value: 85
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fDefault1stPersonFOV
    section: Display
    value: 65
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fPipboy1stPersonFOV
    section: Display
    value: 50
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iPresentInterval
    section: Display
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bFull Screen
    section: Display
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bMultiThreadAudio
    section: Audio
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bEnableAudioCache
    section: Audio
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iAudioCacheSize
    section: Audio
    value: 4096
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iMaxSizeForCachedSound
    section: Audio
    value: 256
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: iRadioUpdateInterval
    section: Audio
    value: 1024
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fForegroundMouseMult
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fForegroundMouseAccelBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fForegroundMouseAccelTop
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: fForegroundMouseBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini
    key: bBackground Mouse
    section: Controls
    value: 1
- task:
    arch: win64
    description: Enabling virtual desktop
    key: WineDesktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    prefix: $GAMEDIR
    value: 1280x720
- task:
    arch: win64
    description: Enabling virtual desktop
    key: Desktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer
    prefix: $GAMEDIR
    value: WineDesktop
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    __GL_SHADER_DISK_CACHE: '1'
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
    __GL_THREADED_OPTIMIZATIONS: '1'
    mesa_glthread: 'true'
wine:
  Desktop: true
  WineDesktop: 1280x720
  overrides:
    quartz: builtin
    winegstreamer: disabled
{
  "files": [
    {
      "install": "N/A:Select the Windows setup file downloaded from GOG"
    },
    {
      "wallpaper": "https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/wallpaper-falloutnv.tar.xz"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/FalloutNVLauncher.exe",
    "gogid": 1312824873,
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "description": "Creating 64-bit Wine prefix",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Disabling virtual desktop",
        "key": "WineDesktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
        "prefix": "$GAMEDIR",
        "value": ""
      }
    },
    {
      "task": {
        "app": "win7",
        "arch": "win64",
        "description": "winetricks: win7",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c",
        "file": "wallpaper"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Setting wallpaper",
        "key": "Background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors",
        "prefix": "$GAMEDIR",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Setting wallpaper",
        "key": "Wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop",
        "prefix": "$GAMEDIR",
        "value": "c:\\\\wallpaper.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling GrabFullscreen for FalloutNV.exe",
        "key": "GrabFullscreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\FalloutNV.exe\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "Y"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Disabling AlwaysOffscreen",
        "key": "AlwaysOffscreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "prefix": "$GAMEDIR",
        "value": "disabled"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ColorTable06",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "0d2433"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ColorTable14",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "42b6ff"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ScreenColors",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "6e"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "FaceName",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR",
        "value": "Fixedsys"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "FontWeight",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "0190"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Installing the game",
        "executable": "install",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseThreadedAI",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iNumHWThreads",
        "section": "General",
        "value": 2
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseThreadedBlood",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseThreadedMorpher",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseThreadedTempEffects",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseThreadedParticleSystem",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseMultiThreadedFaceGen",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bUseMultiThreadedTrees",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iPreloadSizeLimit",
        "section": "General",
        "value": 104857600
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fDefaultFOV",
        "section": "Display",
        "value": 80
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fDefaultWorldFOV",
        "section": "Display",
        "value": 85
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fDefault1stPersonFOV",
        "section": "Display",
        "value": 65
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fPipboy1stPersonFOV",
        "section": "Display",
        "value": 50
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iPresentInterval",
        "section": "Display",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bFull Screen",
        "section": "Display",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bMultiThreadAudio",
        "section": "Audio",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bEnableAudioCache",
        "section": "Audio",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iAudioCacheSize",
        "section": "Audio",
        "value": 4096
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iMaxSizeForCachedSound",
        "section": "Audio",
        "value": 256
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "iRadioUpdateInterval",
        "section": "Audio",
        "value": 1024
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fForegroundMouseMult",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fForegroundMouseAccelBase",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fForegroundMouseAccelTop",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "fForegroundMouseBase",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Fallout New Vegas/Fallout_default.ini",
        "key": "bBackground Mouse",
        "section": "Controls",
        "value": 1
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling virtual desktop",
        "key": "WineDesktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
        "prefix": "$GAMEDIR",
        "value": "1280x720"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling virtual desktop",
        "key": "Desktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer",
        "prefix": "$GAMEDIR",
        "value": "WineDesktop"
      }
    },
    {
      "task": {
        "arch": "win64",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "__GL_SHADER_DISK_CACHE": "1",
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
      "__GL_THREADED_OPTIMIZATIONS": "1",
      "mesa_glthread": "true"
    }
  },
  "wine": {
    "Desktop": true,
    "WineDesktop": "1280x720",
    "overrides": {
      "quartz": "builtin",
      "winegstreamer": "disabled"
    }
  }
}
Back to game