Installer fallout-3-steam-1

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:
- wallpaper: https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/wallpaper-fallout3.tar.xz
- laa-patcher: https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/laa-patcher.tar.xz
- launchmenu: https://gist.github.com/daniel-j/8194c168cff79e57960eed7080e8516b/archive/master.tar.gz
- modpack: https://djazz.se/nas/games/fallout3/modpack.tar.xz
game:
  appid: 22300
  arch: win64
  prefix: $GAMEDIR/prefix
  run_without_steam: true
  steamless_binary: $GAMEDIR/launch.exe
installer:
- input_menu:
    description: Do you want to store saves in ~/Documents/My Games/Fallout3/Saves
      ?
    id: CONFIG_LOCATION
    options:
    - 'true': Yes, store them in home
    - 'false': No, store them inside the wineprefix
    preselect: 'true'
- task:
    arch: win64
    description: Creating 64-bit Wine prefix
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR/prefix
- task:
    arch: win64
    description: Disabling virtual desktop
    key: WineDesktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    prefix: $GAMEDIR/prefix
    value: ''
- task:
    app: win7 quartz
    arch: win64
    description: 'winetricks: win7 quartz'
    name: winetricks
    prefix: $GAMEDIR/prefix
- extract:
    dst: $GAMEDIR/prefix/drive_c
    file: wallpaper
- task:
    arch: win64
    description: Setting wallpaper
    key: Background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors
    prefix: $GAMEDIR/prefix
    value: 0 0 0
- task:
    arch: win64
    description: Setting wallpaper
    key: Wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop
    prefix: $GAMEDIR/prefix
    value: c:\\wallpaper.bmp
- task:
    arch: win64
    description: Enabling GrabFullscreen for Fallout3.exe
    key: GrabFullscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\Fallout3.exe\X11 Driver
    prefix: $GAMEDIR/prefix
    value: Y
- task:
    arch: win64
    description: Forcing Nvidia VideoPci
    key: VideoPciDeviceID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: '402'
- task:
    arch: win64
    description: Forcing Nvidia VideoPci
    key: VideoPciVendorID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: 10de
- task:
    arch: win64
    description: Disabling AlwaysOffscreen
    key: AlwaysOffscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR/prefix
    value: disabled
- task:
    arch: win64
    description: Configuring console
    key: ColorTable02
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: 202e0e
- task:
    arch: win64
    description: Configuring console
    key: ColorTable10
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: 74f014
- task:
    arch: win64
    description: Configuring console
    key: FaceName
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR/prefix
    value: Fixedsys
- task:
    arch: win64
    description: Configuring console
    key: ScreenColors
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: 2a
- task:
    arch: win64
    description: Configuring console
    key: FontWeight
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR/prefix
    type: REG_DWORD
    value: 0190
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseThreadedAI
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iNumHWThreads
    section: General
    value: 2
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseThreadedBlood
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseThreadedMorpher
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseThreadedTempEffects
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseThreadedParticleSystem
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseMultiThreadedFaceGen
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bUseMultiThreadedTrees
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iPreloadSizeLimit
    section: General
    value: 104857600
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fDefaultFOV
    section: Display
    value: 85
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fDefaultWorldFOV
    section: Display
    value: 85
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fDefault1stPersonFOV
    section: Display
    value: 65
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fPipboy1stPersonFOV
    section: Display
    value: 50
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iPresentInterval
    section: Display
    value: 0
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bFull Screen
    section: Display
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bMultiThreadAudio
    section: Audio
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bEnableAudioCache
    section: Audio
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iAudioCacheSize
    section: Audio
    value: 4096
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iMaxSizeForCachedSound
    section: Audio
    value: 256
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: iRadioUpdateInterval
    section: Audio
    value: 1024
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fForegroundMouseMult
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fForegroundMouseAccelBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fForegroundMouseAccelTop
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: fForegroundMouseBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bBackground Mouse
    section: Controls
    value: 1
- write_config:
    file: $GAMEDIR/Fallout_default.ini
    key: bInvalidateOlderFiles
    section: Archive
    value: 1
- extract:
    description: Patching Fallout3.exe with Large Address Aware support
    dst: $CACHE/laa-patcher
    file: laa-patcher
- task:
    arch: win64
    args: /LARGEADDRESSAWARE Fallout3.exe
    description: Patching Fallout3.exe with Large Address Aware support
    executable: $CACHE/laa-patcher/EDITBIN.EXE
    name: wineexec
    prefix: $GAMEDIR/prefix
    working_dir: $GAMEDIR
- extract:
    dst: $GAMEDIR
    file: modpack
- extract:
    dst: $GAMEDIR
    file: launchmenu
- execute:
    command: 'rm -f "$GAMEDIR/prefix/drive_c/users/$USER/My Documents"

      mkdir -pv "$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3"

      rm -f "$GAMEDIR/config"; ln -svrT "$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My
      Games/Fallout3" "$GAMEDIR/config"

      rm -f "$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3/Saves"

      $INPUT_CONFIG_LOCATION && (mkdir -pv "$HOME/Documents/My Games/Fallout3/Saves"
      "$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3"; ln -svT
      "$HOME/Documents/My Games/Fallout3/Saves" "$GAMEDIR/prefix/drive_c/users/$USER/My
      Documents/My Games/Fallout3/Saves")

      ln -svfT "$HOME/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program
      Files (x86)" "$GAMEDIR/prefix/dosdevices/s:"

      '
- task:
    arch: win64
    args: /i "$GAMEDIR/GFWLive/xliveredist.msi" /passive
    description: Installing Games for Windows Live
    env:
      WINEDEBUG: -all
    executable: msiexec
    name: wineexec
    prefix: $GAMEDIR/prefix
- task:
    arch: win64
    args: /E "$CACHE/steam.reg" 'HKEY_CURRENT_USER\Software\Valve\Steam'
    description: Exporting Steam registry
    executable: regedit
    name: wineexec
    prefix: $HOME/.local/share/lutris/runners/winesteam/prefix64
- task:
    arch: win64
    description: Importing Steam registry
    filename: $CACHE/steam.reg
    name: set_regedit_file
    prefix: $GAMEDIR/prefix
- task:
    arch: win64
    description: Enabling virtual desktop
    key: WineDesktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    prefix: $GAMEDIR/prefix
    value: 1280x720
- task:
    arch: win64
    description: Enabling virtual desktop
    key: Desktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer
    prefix: $GAMEDIR/prefix
    value: WineDesktop
- task:
    name: wine.winekill
    prefix: $GAMEDIR/prefix
- write_file:
    content: "\"InstallScript\"\n{\n  \"Registry\"\n  {\n    \"HKEY_LOCAL_MACHINE\\\
      \\SOFTWARE\\\\Bethesda Softworks\\\\Fallout 3\\\\1.00.0000\"\n    {\n    }\n\
      \    \"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Bethesda Softworks\\\\Fallout3\"\n\
      \    {\n      \"string\"\n      {\n        \"Installed Path\"    \"%INSTALLDIR%\\\
      \\\"\n      }\n    }\n  }\n  \"Run Process\"\n  {\n  }\n  \"Copy Folders\"\n\
      \  {\n    \"Fallout 3\"\n    {\n      \"SrcFolder 1\"   \"%INSTALLDIR%\\\\Fallout3\"\
      \n      \"DstFolder 1\"   \"%USER_MYDOCS%\\\\My Games\\\\Fallout3\"\n    }\n\
      \  }\n}\n"
    file: $GAMEDIR/installscript.vdf
- write_file:
    content: "@ECHO OFF\n\nREG DELETE \"HKEY_CURRENT_USER\\Software\\Valve\\Steam\\\
      Apps\\22370\" /v Name /f >nul\nREG DELETE \"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\\
      Bethesda Softworks\\Fallout3\" /v \"Installed Path\" /f >nul\n\nSTART \"\" S:\\\
      Steam\\Steam.exe -no-cef-sandbox -applaunch 22370\n\nREM This is to keep Lutris\
      \ from stopping Steam before the game is installed\nREM by running other processes\
      \ until FalloutLauncher.exe starts\n:Check_Key\nping 127.0.0.1 -n 5 >NUL\n\n\
      REG QUERY \"HKEY_CURRENT_USER\\Software\\Valve\\Steam\\Apps\\22370\" /v Name\
      \ >nul 2>&1\n(\n    if %errorlevel% equ 0 ( ) else ( GOTO Check_Key )\n)\n\n\
      REG QUERY \"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\\
      Fallout3\" /v \"Installed Path\" >nul 2>&1\n(\n    if %errorlevel% equ 0 ( )\
      \ else ( GOTO Check_Key )\n)\n\nping 127.0.0.1 -n 5 >NUL\nECHO Exit the launcher\
      \ to complete installation.\n"
    file: $GAMEDIR/install.bat
- task:
    arch: win64
    description: 'Configure video settings and enable data files (DLCs).

      Exit the Fallout launcher and Steam to complete installation.

      '
    env:
      WINEDEBUG: -all
    exclude_processes: Fallout3.exe Steam.exe steamwebhelper.exe wineconsole wineserver
    executable: $GAMEDIR/install.bat
    name: wineexec
    overrides:
      Fallout3.exe: disabled
    prefix: $GAMEDIR/prefix
- task:
    arch: win64
    args: /c S:\\Steam\\Steam.exe -shutdown
    description: Closing Steam...
    env:
      WINEDEBUG: -all
    exclude_processes: Fallout3.exe
    executable: cmd
    include_processes: Steam.exe
    name: wineexec
    overrides:
      Fallout3.exe: disabled
    prefix: $GAMEDIR/prefix
system:
  env:
    __GL_SHADER_DISK_CACHE: '1'
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/prefix
    __GL_THREADED_OPTIMIZATIONS: '1'
    mesa_glthread: 'true'
winesteam:
  Desktop: true
  WineDesktop: 1280x720
  overrides:
    gameoverlayrenderer: disabled
    winegstreamer: disabled
  run_without_steam: true
{
  "files": [
    {
      "wallpaper": "https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/wallpaper-fallout3.tar.xz"
    },
    {
      "laa-patcher": "https://gist.github.com/daniel-j/28c6d207c5393aa64c3a9d8ee26d1425/raw/laa-patcher.tar.xz"
    },
    {
      "launchmenu": "https://gist.github.com/daniel-j/8194c168cff79e57960eed7080e8516b/archive/master.tar.gz"
    },
    {
      "modpack": "https://djazz.se/nas/games/fallout3/modpack.tar.xz"
    }
  ],
  "game": {
    "appid": 22300,
    "arch": "win64",
    "prefix": "$GAMEDIR/prefix",
    "run_without_steam": true,
    "steamless_binary": "$GAMEDIR/launch.exe"
  },
  "installer": [
    {
      "input_menu": {
        "description": "Do you want to store saves in ~/Documents/My Games/Fallout3/Saves ?",
        "id": "CONFIG_LOCATION",
        "options": [
          {
            "true": "Yes, store them in home"
          },
          {
            "false": "No, store them inside the wineprefix"
          }
        ],
        "preselect": "true"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Creating 64-bit Wine prefix",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Disabling virtual desktop",
        "key": "WineDesktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
        "prefix": "$GAMEDIR/prefix",
        "value": ""
      }
    },
    {
      "task": {
        "app": "win7 quartz",
        "arch": "win64",
        "description": "winetricks: win7 quartz",
        "name": "winetricks",
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/prefix/drive_c",
        "file": "wallpaper"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Setting wallpaper",
        "key": "Background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors",
        "prefix": "$GAMEDIR/prefix",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Setting wallpaper",
        "key": "Wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop",
        "prefix": "$GAMEDIR/prefix",
        "value": "c:\\\\wallpaper.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling GrabFullscreen for Fallout3.exe",
        "key": "GrabFullscreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\Fallout3.exe\\X11 Driver",
        "prefix": "$GAMEDIR/prefix",
        "value": "Y"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Forcing Nvidia VideoPci",
        "key": "VideoPciDeviceID",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "402"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Forcing Nvidia VideoPci",
        "key": "VideoPciVendorID",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "10de"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Disabling AlwaysOffscreen",
        "key": "AlwaysOffscreen",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "prefix": "$GAMEDIR/prefix",
        "value": "disabled"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ColorTable02",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "202e0e"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ColorTable10",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "74f014"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "FaceName",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR/prefix",
        "value": "Fixedsys"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "ScreenColors",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "2a"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configuring console",
        "key": "FontWeight",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Console",
        "prefix": "$GAMEDIR/prefix",
        "type": "REG_DWORD",
        "value": "0190"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseThreadedAI",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iNumHWThreads",
        "section": "General",
        "value": 2
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseThreadedBlood",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseThreadedMorpher",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseThreadedTempEffects",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseThreadedParticleSystem",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseMultiThreadedFaceGen",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bUseMultiThreadedTrees",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iPreloadSizeLimit",
        "section": "General",
        "value": 104857600
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fDefaultFOV",
        "section": "Display",
        "value": 85
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fDefaultWorldFOV",
        "section": "Display",
        "value": 85
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fDefault1stPersonFOV",
        "section": "Display",
        "value": 65
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fPipboy1stPersonFOV",
        "section": "Display",
        "value": 50
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iPresentInterval",
        "section": "Display",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bFull Screen",
        "section": "Display",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bMultiThreadAudio",
        "section": "Audio",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bEnableAudioCache",
        "section": "Audio",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iAudioCacheSize",
        "section": "Audio",
        "value": 4096
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iMaxSizeForCachedSound",
        "section": "Audio",
        "value": 256
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "iRadioUpdateInterval",
        "section": "Audio",
        "value": 1024
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fForegroundMouseMult",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fForegroundMouseAccelBase",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fForegroundMouseAccelTop",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "fForegroundMouseBase",
        "section": "Controls",
        "value": 0
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bBackground Mouse",
        "section": "Controls",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/Fallout_default.ini",
        "key": "bInvalidateOlderFiles",
        "section": "Archive",
        "value": 1
      }
    },
    {
      "extract": {
        "description": "Patching Fallout3.exe with Large Address Aware support",
        "dst": "$CACHE/laa-patcher",
        "file": "laa-patcher"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/LARGEADDRESSAWARE Fallout3.exe",
        "description": "Patching Fallout3.exe with Large Address Aware support",
        "executable": "$CACHE/laa-patcher/EDITBIN.EXE",
        "name": "wineexec",
        "prefix": "$GAMEDIR/prefix",
        "working_dir": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "modpack"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "launchmenu"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents\"\nmkdir -pv \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3\"\nrm -f \"$GAMEDIR/config\"; ln -svrT \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3\" \"$GAMEDIR/config\"\nrm -f \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3/Saves\"\n$INPUT_CONFIG_LOCATION && (mkdir -pv \"$HOME/Documents/My Games/Fallout3/Saves\" \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3\"; ln -svT \"$HOME/Documents/My Games/Fallout3/Saves\" \"$GAMEDIR/prefix/drive_c/users/$USER/My Documents/My Games/Fallout3/Saves\")\nln -svfT \"$HOME/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)\" \"$GAMEDIR/prefix/dosdevices/s:\"\n"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/i \"$GAMEDIR/GFWLive/xliveredist.msi\" /passive",
        "description": "Installing Games for Windows Live",
        "env": {
          "WINEDEBUG": "-all"
        },
        "executable": "msiexec",
        "name": "wineexec",
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/E \"$CACHE/steam.reg\" 'HKEY_CURRENT_USER\\Software\\Valve\\Steam'",
        "description": "Exporting Steam registry",
        "executable": "regedit",
        "name": "wineexec",
        "prefix": "$HOME/.local/share/lutris/runners/winesteam/prefix64"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Importing Steam registry",
        "filename": "$CACHE/steam.reg",
        "name": "set_regedit_file",
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling virtual desktop",
        "key": "WineDesktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
        "prefix": "$GAMEDIR/prefix",
        "value": "1280x720"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Enabling virtual desktop",
        "key": "Desktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer",
        "prefix": "$GAMEDIR/prefix",
        "value": "WineDesktop"
      }
    },
    {
      "task": {
        "name": "wine.winekill",
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "write_file": {
        "content": "\"InstallScript\"\n{\n  \"Registry\"\n  {\n    \"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Bethesda Softworks\\\\Fallout 3\\\\1.00.0000\"\n    {\n    }\n    \"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Bethesda Softworks\\\\Fallout3\"\n    {\n      \"string\"\n      {\n        \"Installed Path\"    \"%INSTALLDIR%\\\\\"\n      }\n    }\n  }\n  \"Run Process\"\n  {\n  }\n  \"Copy Folders\"\n  {\n    \"Fallout 3\"\n    {\n      \"SrcFolder 1\"   \"%INSTALLDIR%\\\\Fallout3\"\n      \"DstFolder 1\"   \"%USER_MYDOCS%\\\\My Games\\\\Fallout3\"\n    }\n  }\n}\n",
        "file": "$GAMEDIR/installscript.vdf"
      }
    },
    {
      "write_file": {
        "content": "@ECHO OFF\n\nREG DELETE \"HKEY_CURRENT_USER\\Software\\Valve\\Steam\\Apps\\22370\" /v Name /f >nul\nREG DELETE \"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout3\" /v \"Installed Path\" /f >nul\n\nSTART \"\" S:\\Steam\\Steam.exe -no-cef-sandbox -applaunch 22370\n\nREM This is to keep Lutris from stopping Steam before the game is installed\nREM by running other processes until FalloutLauncher.exe starts\n:Check_Key\nping 127.0.0.1 -n 5 >NUL\n\nREG QUERY \"HKEY_CURRENT_USER\\Software\\Valve\\Steam\\Apps\\22370\" /v Name >nul 2>&1\n(\n    if %errorlevel% equ 0 ( ) else ( GOTO Check_Key )\n)\n\nREG QUERY \"HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout3\" /v \"Installed Path\" >nul 2>&1\n(\n    if %errorlevel% equ 0 ( ) else ( GOTO Check_Key )\n)\n\nping 127.0.0.1 -n 5 >NUL\nECHO Exit the launcher to complete installation.\n",
        "file": "$GAMEDIR/install.bat"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Configure video settings and enable data files (DLCs).\nExit the Fallout launcher and Steam to complete installation.\n",
        "env": {
          "WINEDEBUG": "-all"
        },
        "exclude_processes": "Fallout3.exe Steam.exe steamwebhelper.exe wineconsole wineserver",
        "executable": "$GAMEDIR/install.bat",
        "name": "wineexec",
        "overrides": {
          "Fallout3.exe": "disabled"
        },
        "prefix": "$GAMEDIR/prefix"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/c S:\\\\Steam\\\\Steam.exe -shutdown",
        "description": "Closing Steam...",
        "env": {
          "WINEDEBUG": "-all"
        },
        "exclude_processes": "Fallout3.exe",
        "executable": "cmd",
        "include_processes": "Steam.exe",
        "name": "wineexec",
        "overrides": {
          "Fallout3.exe": "disabled"
        },
        "prefix": "$GAMEDIR/prefix"
      }
    }
  ],
  "system": {
    "env": {
      "__GL_SHADER_DISK_CACHE": "1",
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/prefix",
      "__GL_THREADED_OPTIMIZATIONS": "1",
      "mesa_glthread": "true"
    }
  },
  "winesteam": {
    "Desktop": true,
    "WineDesktop": "1280x720",
    "overrides": {
      "gameoverlayrenderer": "disabled",
      "winegstreamer": "disabled"
    },
    "run_without_steam": true
  }
}
Back to game