Installer fallout-3-game-of-the-year-ed-gog

files:
- setup: N/A:Please select installer exe from GOG
- innoextract: http://constexpr.org/innoextract/files/innoextract-1.7/innoextract-1.7-linux.tar.xz
- 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:
  arch: win64
  exe: drive_c/Fallout 3/launch.bat
  prefix: $GAMEDIR
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
- 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: winxp quartz
    arch: win64
    description: 'winetricks: winxp quartz'
    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 Fallout3.exe
    key: GrabFullscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\Fallout3.exe\X11 Driver
    prefix: $GAMEDIR
    value: Y
- task:
    arch: win64
    description: Forcing Nvidia VideoPci
    key: VideoPciDeviceID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    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
    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
    value: disabled
- task:
    arch: win64
    description: Configuring console
    key: ColorTable02
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 202e0e
- task:
    arch: win64
    description: Configuring console
    key: ColorTable10
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 74f014
- 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: ScreenColors
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 2a
- task:
    arch: win64
    description: Configuring console
    key: FontWeight
    name: set_regedit
    path: HKEY_CURRENT_USER\Console
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 0190
- extract:
    dst: $CACHE/innoextract
    file: innoextract
- execute:
    command: mkdir -pv "$GAMEDIR/drive_c/Fallout 3" "$CACHE/extract"; ln -sv "$GAMEDIR/drive_c/Fallout
      3" "$CACHE/extract/app"
- execute:
    args: --gog --exclude-temp --output-dir "$CACHE/extract" "$setup"
    description: Extracting game files
    file: $CACHE/innoextract/innoextract
- write_file:
    content: 'REGEDIT4


      [HKEY_LOCAL_MACHINE\Software\Bethesda Softworks\Fallout3]

      "Installed Path"="C:\\Fallout 3\\"


      [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Fallout3]

      "Installed Path"="C:\\Fallout 3\\"

      '
    file: $CACHE/fallout3.reg
- task:
    arch: win64
    filename: $CACHE/fallout3.reg
    name: set_regedit_file
    prefix: $GAMEDIR
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseThreadedAI
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iNumHWThreads
    section: General
    value: 2
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseThreadedBlood
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseThreadedMorpher
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseThreadedTempEffects
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseThreadedParticleSystem
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseMultiThreadedFaceGen
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bUseMultiThreadedTrees
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iPreloadSizeLimit
    section: General
    value: 104857600
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fDefaultFOV
    section: Display
    value: 85
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fDefaultWorldFOV
    section: Display
    value: 85
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fDefault1stPersonFOV
    section: Display
    value: 65
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fPipboy1stPersonFOV
    section: Display
    value: 50
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iPresentInterval
    section: Display
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bFull Screen
    section: Display
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bMultiThreadAudio
    section: Audio
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bEnableAudioCache
    section: Audio
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iAudioCacheSize
    section: Audio
    value: 4096
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iMaxSizeForCachedSound
    section: Audio
    value: 256
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: iRadioUpdateInterval
    section: Audio
    value: 1024
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fForegroundMouseMult
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fForegroundMouseAccelBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fForegroundMouseAccelTop
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: fForegroundMouseBase
    section: Controls
    value: 0
- write_config:
    file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
    key: bBackground Mouse
    section: Controls
    value: 1
- extract:
    dst: $GAMEDIR/drive_c/Fallout 3
    file: modpack
- extract:
    dst: $GAMEDIR/drive_c/Fallout 3
    file: launchmenu
- 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
    working_dir: $GAMEDIR/drive_c/Fallout 3
- task:
    arch: win64
    args: --update --silent --game Fallout3
    description: Sorting modlist with BOSS
    executable: $GAMEDIR/drive_c/Fallout 3/boss.exe
    name: wineexec
    prefix: $GAMEDIR
- 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:
    name: winekill
    prefix: $GAMEDIR
- execute:
    command: 'rm -f "$GAMEDIR/drive_c/users/$USER/My Documents"

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

      rm -f "$GAMEDIR/data"; ln -svrT "$GAMEDIR/drive_c/Fallout 3/Data" "$GAMEDIR/data"

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

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

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

      '
- task:
    arch: win64
    description: 'Configure data files (DLCs), video settings and exit the launcher.

      Don''t forget to set your native resolution!

      '
    env:
      WINEDEBUG: -all
    exclude_processes: Fallout3.exe
    executable: $GAMEDIR/drive_c/Fallout 3/FalloutLauncher.exe
    name: wineexec
    prefix: $GAMEDIR
- 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:
    winegstreamer: disabled
description: Includes Fallout Script Extender and some essential fixes
game_slug: fallout-3-game-of-the-year-edition
gogslug: fallout_3_game_of_the_year_edition
humblestoreid: fallout-3-game-of-the-year-edition
installer_slug: fallout-3-game-of-the-year-ed-gog
name: 'Fallout 3: Game of the Year Edition'
notes: "<b>Features of this installer</b>\r\n* Don't run the game in windowed mode,\
  \ instead just change the resolution.\r\n* Some ini fixes for better performance.\r\
  \n* Fakes a Nvidia GPU for Intel support (gpu autodetect doesn't work here)\r\n\
  * Patches exe with 4GB/LAA support (if you want to play with HQ texture mods etc.)\r\
  \n* Includes FOSE, NVAC, Fallout Stutter Remover, BOSS, Unofficial Fallout 3 Patch\
  \ and a special launch menu.\r\n* Background image instead of the boring blue background\
  \ of Wine!"
runner: wine
script:
  files:
  - setup: N/A:Please select installer exe from GOG
  - innoextract: http://constexpr.org/innoextract/files/innoextract-1.7/innoextract-1.7-linux.tar.xz
  - 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:
    arch: win64
    exe: drive_c/Fallout 3/launch.bat
    prefix: $GAMEDIR
  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
  - 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: winxp quartz
      arch: win64
      description: 'winetricks: winxp quartz'
      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 Fallout3.exe
      key: GrabFullscreen
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\Fallout3.exe\X11 Driver
      prefix: $GAMEDIR
      value: Y
  - task:
      arch: win64
      description: Forcing Nvidia VideoPci
      key: VideoPciDeviceID
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\Direct3D
      prefix: $GAMEDIR
      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
      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
      value: disabled
  - task:
      arch: win64
      description: Configuring console
      key: ColorTable02
      name: set_regedit
      path: HKEY_CURRENT_USER\Console
      prefix: $GAMEDIR
      type: REG_DWORD
      value: 202e0e
  - task:
      arch: win64
      description: Configuring console
      key: ColorTable10
      name: set_regedit
      path: HKEY_CURRENT_USER\Console
      prefix: $GAMEDIR
      type: REG_DWORD
      value: 74f014
  - 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: ScreenColors
      name: set_regedit
      path: HKEY_CURRENT_USER\Console
      prefix: $GAMEDIR
      type: REG_DWORD
      value: 2a
  - task:
      arch: win64
      description: Configuring console
      key: FontWeight
      name: set_regedit
      path: HKEY_CURRENT_USER\Console
      prefix: $GAMEDIR
      type: REG_DWORD
      value: 0190
  - extract:
      dst: $CACHE/innoextract
      file: innoextract
  - execute:
      command: mkdir -pv "$GAMEDIR/drive_c/Fallout 3" "$CACHE/extract"; ln -sv "$GAMEDIR/drive_c/Fallout
        3" "$CACHE/extract/app"
  - execute:
      args: --gog --exclude-temp --output-dir "$CACHE/extract" "$setup"
      description: Extracting game files
      file: $CACHE/innoextract/innoextract
  - write_file:
      content: 'REGEDIT4


        [HKEY_LOCAL_MACHINE\Software\Bethesda Softworks\Fallout3]

        "Installed Path"="C:\\Fallout 3\\"


        [HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Fallout3]

        "Installed Path"="C:\\Fallout 3\\"

        '
      file: $CACHE/fallout3.reg
  - task:
      arch: win64
      filename: $CACHE/fallout3.reg
      name: set_regedit_file
      prefix: $GAMEDIR
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseThreadedAI
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iNumHWThreads
      section: General
      value: 2
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseThreadedBlood
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseThreadedMorpher
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseThreadedTempEffects
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseThreadedParticleSystem
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseMultiThreadedFaceGen
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bUseMultiThreadedTrees
      section: General
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iPreloadSizeLimit
      section: General
      value: 104857600
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fDefaultFOV
      section: Display
      value: 85
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fDefaultWorldFOV
      section: Display
      value: 85
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fDefault1stPersonFOV
      section: Display
      value: 65
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fPipboy1stPersonFOV
      section: Display
      value: 50
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iPresentInterval
      section: Display
      value: 0
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bFull Screen
      section: Display
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bMultiThreadAudio
      section: Audio
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bEnableAudioCache
      section: Audio
      value: 1
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iAudioCacheSize
      section: Audio
      value: 4096
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iMaxSizeForCachedSound
      section: Audio
      value: 256
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: iRadioUpdateInterval
      section: Audio
      value: 1024
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fForegroundMouseMult
      section: Controls
      value: 0
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fForegroundMouseAccelBase
      section: Controls
      value: 0
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fForegroundMouseAccelTop
      section: Controls
      value: 0
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: fForegroundMouseBase
      section: Controls
      value: 0
  - write_config:
      file: $GAMEDIR/drive_c/Fallout 3/Fallout_default.ini
      key: bBackground Mouse
      section: Controls
      value: 1
  - extract:
      dst: $GAMEDIR/drive_c/Fallout 3
      file: modpack
  - extract:
      dst: $GAMEDIR/drive_c/Fallout 3
      file: launchmenu
  - 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
      working_dir: $GAMEDIR/drive_c/Fallout 3
  - task:
      arch: win64
      args: --update --silent --game Fallout3
      description: Sorting modlist with BOSS
      executable: $GAMEDIR/drive_c/Fallout 3/boss.exe
      name: wineexec
      prefix: $GAMEDIR
  - 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:
      name: winekill
      prefix: $GAMEDIR
  - execute:
      command: 'rm -f "$GAMEDIR/drive_c/users/$USER/My Documents"

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

        rm -f "$GAMEDIR/data"; ln -svrT "$GAMEDIR/drive_c/Fallout 3/Data" "$GAMEDIR/data"

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

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

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

        '
  - task:
      arch: win64
      description: 'Configure data files (DLCs), video settings and exit the launcher.

        Don''t forget to set your native resolution!

        '
      env:
        WINEDEBUG: -all
      exclude_processes: Fallout3.exe
      executable: $GAMEDIR/drive_c/Fallout 3/FalloutLauncher.exe
      name: wineexec
      prefix: $GAMEDIR
  - 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:
      winegstreamer: disabled
slug: fallout-3-game-of-the-year-ed-gog
steamid: 22370
version: GOG
year: 2009
{
  "game_slug": "fallout-3-game-of-the-year-edition",
  "version": "GOG",
  "description": "Includes Fallout Script Extender and some essential fixes",
  "notes": "<b>Features of this installer</b>\r\n* Don't run the game in windowed mode, instead just change the resolution.\r\n* Some ini fixes for better performance.\r\n* Fakes a Nvidia GPU for Intel support (gpu autodetect doesn't work here)\r\n* Patches exe with 4GB/LAA support (if you want to play with HQ texture mods etc.)\r\n* Includes FOSE, NVAC, Fallout Stutter Remover, BOSS, Unofficial Fallout 3 Patch and a special launch menu.\r\n* Background image instead of the boring blue background of Wine!",
  "name": "Fallout 3: Game of the Year Edition",
  "year": 2009,
  "steamid": 22370,
  "gogslug": "fallout_3_game_of_the_year_edition",
  "humblestoreid": "fallout-3-game-of-the-year-edition",
  "runner": "wine",
  "slug": "fallout-3-game-of-the-year-ed-gog",
  "installer_slug": "fallout-3-game-of-the-year-ed-gog",
  "script": {
    "game": {
      "exe": "drive_c/Fallout 3/launch.bat",
      "arch": "win64",
      "prefix": "$GAMEDIR"
    },
    "wine": {
      "Desktop": true,
      "WineDesktop": "1280x720",
      "overrides": {
        "winegstreamer": "disabled"
      }
    },
    "system": {
      "env": {
        "__GL_THREADED_OPTIMIZATIONS": "1",
        "__GL_SHADER_DISK_CACHE": "1",
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
        "mesa_glthread": "true"
      }
    },
    "files": [
      {
        "setup": "N/A:Please select installer exe from GOG"
      },
      {
        "innoextract": "http://constexpr.org/innoextract/files/innoextract-1.7/innoextract-1.7-linux.tar.xz"
      },
      {
        "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"
      }
    ],
    "installer": [
      {
        "input_menu": {
          "id": "CONFIG_LOCATION",
          "description": "Do you want to store saves in ~/Documents/My Games/Fallout3/Saves ?",
          "options": [
            {
              "true": "Yes, store them in home"
            },
            {
              "false": "No, store them inside the wineprefix"
            }
          ],
          "preselect": "true"
        }
      },
      {
        "task": {
          "name": "create_prefix",
          "prefix": "$GAMEDIR",
          "arch": "win64",
          "description": "Creating 64-bit Wine prefix",
          "install_gecko": false,
          "install_mono": false
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Disabling virtual desktop",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
          "key": "WineDesktop",
          "value": "",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "winetricks",
          "app": "winxp quartz",
          "description": "winetricks: winxp quartz",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "extract": {
          "file": "wallpaper",
          "dst": "$GAMEDIR/drive_c"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Setting wallpaper",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors",
          "key": "Background",
          "value": "0 0 0",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Setting wallpaper",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop",
          "key": "Wallpaper",
          "value": "c:\\\\wallpaper.bmp",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Enabling GrabFullscreen for Fallout3.exe",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\Fallout3.exe\\X11 Driver",
          "key": "GrabFullscreen",
          "value": "Y",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Forcing Nvidia VideoPci",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
          "key": "VideoPciDeviceID",
          "value": "402",
          "type": "REG_DWORD",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Forcing Nvidia VideoPci",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
          "key": "VideoPciVendorID",
          "value": "10de",
          "type": "REG_DWORD",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Disabling AlwaysOffscreen",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
          "key": "AlwaysOffscreen",
          "value": "disabled",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Configuring console",
          "path": "HKEY_CURRENT_USER\\Console",
          "key": "ColorTable02",
          "type": "REG_DWORD",
          "value": "202e0e",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Configuring console",
          "path": "HKEY_CURRENT_USER\\Console",
          "key": "ColorTable10",
          "type": "REG_DWORD",
          "value": "74f014",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Configuring console",
          "path": "HKEY_CURRENT_USER\\Console",
          "key": "FaceName",
          "value": "Fixedsys",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Configuring console",
          "path": "HKEY_CURRENT_USER\\Console",
          "key": "ScreenColors",
          "type": "REG_DWORD",
          "value": "2a",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Configuring console",
          "path": "HKEY_CURRENT_USER\\Console",
          "key": "FontWeight",
          "type": "REG_DWORD",
          "value": "0190",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "extract": {
          "file": "innoextract",
          "dst": "$CACHE/innoextract"
        }
      },
      {
        "execute": {
          "command": "mkdir -pv \"$GAMEDIR/drive_c/Fallout 3\" \"$CACHE/extract\"; ln -sv \"$GAMEDIR/drive_c/Fallout 3\" \"$CACHE/extract/app\""
        }
      },
      {
        "execute": {
          "file": "$CACHE/innoextract/innoextract",
          "args": "--gog --exclude-temp --output-dir \"$CACHE/extract\" \"$setup\"",
          "description": "Extracting game files"
        }
      },
      {
        "write_file": {
          "content": "REGEDIT4\n\n[HKEY_LOCAL_MACHINE\\Software\\Bethesda Softworks\\Fallout3]\n\"Installed Path\"=\"C:\\\\Fallout 3\\\\\"\n\n[HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout3]\n\"Installed Path\"=\"C:\\\\Fallout 3\\\\\"\n",
          "file": "$CACHE/fallout3.reg"
        }
      },
      {
        "task": {
          "name": "set_regedit_file",
          "filename": "$CACHE/fallout3.reg",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseThreadedAI",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "iNumHWThreads",
          "value": 2
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseThreadedBlood",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseThreadedMorpher",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseThreadedTempEffects",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseThreadedParticleSystem",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseMultiThreadedFaceGen",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "bUseMultiThreadedTrees",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "General",
          "key": "iPreloadSizeLimit",
          "value": 104857600
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "fDefaultFOV",
          "value": 85
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "fDefaultWorldFOV",
          "value": 85
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "fDefault1stPersonFOV",
          "value": 65
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "fPipboy1stPersonFOV",
          "value": 50
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "iPresentInterval",
          "value": 0
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Display",
          "key": "bFull Screen",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Audio",
          "key": "bMultiThreadAudio",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Audio",
          "key": "bEnableAudioCache",
          "value": 1
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Audio",
          "key": "iAudioCacheSize",
          "value": 4096
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Audio",
          "key": "iMaxSizeForCachedSound",
          "value": 256
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Audio",
          "key": "iRadioUpdateInterval",
          "value": 1024
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Controls",
          "key": "fForegroundMouseMult",
          "value": 0
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Controls",
          "key": "fForegroundMouseAccelBase",
          "value": 0
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Controls",
          "key": "fForegroundMouseAccelTop",
          "value": 0
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Controls",
          "key": "fForegroundMouseBase",
          "value": 0
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/Fallout 3/Fallout_default.ini",
          "section": "Controls",
          "key": "bBackground Mouse",
          "value": 1
        }
      },
      {
        "extract": {
          "file": "modpack",
          "dst": "$GAMEDIR/drive_c/Fallout 3"
        }
      },
      {
        "extract": {
          "file": "launchmenu",
          "dst": "$GAMEDIR/drive_c/Fallout 3"
        }
      },
      {
        "extract": {
          "file": "laa-patcher",
          "dst": "$CACHE/laa-patcher",
          "description": "Patching Fallout3.exe with Large Address Aware support"
        }
      },
      {
        "task": {
          "name": "wineexec",
          "executable": "$CACHE/laa-patcher/EDITBIN.EXE",
          "args": "/LARGEADDRESSAWARE Fallout3.exe",
          "prefix": "$GAMEDIR",
          "arch": "win64",
          "working_dir": "$GAMEDIR/drive_c/Fallout 3",
          "description": "Patching Fallout3.exe with Large Address Aware support"
        }
      },
      {
        "task": {
          "name": "wineexec",
          "executable": "$GAMEDIR/drive_c/Fallout 3/boss.exe",
          "args": "--update --silent --game Fallout3",
          "prefix": "$GAMEDIR",
          "arch": "win64",
          "description": "Sorting modlist with BOSS"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Enabling virtual desktop",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
          "key": "WineDesktop",
          "value": "1280x720",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "set_regedit",
          "description": "Enabling virtual desktop",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer",
          "key": "Desktop",
          "value": "WineDesktop",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      },
      {
        "task": {
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "rm -f \"$GAMEDIR/drive_c/users/$USER/My Documents\"\nmkdir -pv \"$GAMEDIR/drive_c/users/$USER/My Documents/My Games/Fallout3\"\nrm -f \"$GAMEDIR/data\"; ln -svrT \"$GAMEDIR/drive_c/Fallout 3/Data\" \"$GAMEDIR/data\"\nrm -f \"$GAMEDIR/config\"; ln -svrT \"$GAMEDIR/drive_c/users/$USER/My Documents/My Games/Fallout3\" \"$GAMEDIR/config\"\nrm -f \"$GAMEDIR/drive_c/users/$USER/My Documents/My Games/Fallout3/Saves\"\n$INPUT_CONFIG_LOCATION && (mkdir -pv \"$HOME/Documents/My Games/Fallout3/Saves\" \"$GAMEDIR/drive_c/users/$USER/My Documents/My Games/Fallout3\"; ln -svT \"$HOME/Documents/My Games/Fallout3/Saves\" \"$GAMEDIR/drive_c/users/$USER/My Documents/My Games/Fallout3/Saves\")\n"
        }
      },
      {
        "task": {
          "name": "wineexec",
          "executable": "$GAMEDIR/drive_c/Fallout 3/FalloutLauncher.exe",
          "prefix": "$GAMEDIR",
          "arch": "win64",
          "description": "Configure data files (DLCs), video settings and exit the launcher.\nDon't forget to set your native resolution!\n",
          "exclude_processes": "Fallout3.exe",
          "env": {
            "WINEDEBUG": "-all"
          }
        }
      },
      {
        "task": {
          "name": "winekill",
          "prefix": "$GAMEDIR",
          "arch": "win64"
        }
      }
    ]
  }
}
Back to game