# ============================================================================== # F76.WORLD - Windows 1-Click Optimizer & INI Deployer (PowerShell) # Target: Fallout 76 (Steam & PC Game Pass) # Game Update: Patch 70 "The Slasher" (v1.7.26.13) # ============================================================================== param( [switch]$DryRun, [switch]$Apply ) $Host.UI.RawUI.ForegroundColor = "Yellow" Write-Host @" ███████╗███████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ██╗ ██████╗ ██╔════╝╚════██║██╔════╝ ██║ ██║██╔═══██╗██╔══██╗██║ ██╔══██╗ █████╗ ██╔╝███████╗ ██║ █╗ ██║██║ ██║██████╔╝██║ ██║ ██║ ██╔══╝ ██╔╝ ██╔═══██╗ ██║███╗██║██║ ██║██╔══██╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝ ╚███╔███╔╝╚██████╔╝██║ ██║███████╗██████╔╝ ╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ "@ $Host.UI.RawUI.ForegroundColor = "Cyan" Write-Host " Appalachia Windows 1-Click Deployer • Patch 70 Ready" Write-Host " Authoritative Webhook: https://f76.world`n" $Host.UI.RawUI.ForegroundColor = "White" # Target Directory Resolution $docsPath = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyDocuments) $f76Dir = Join-Path $docsPath "My Games\Fallout 76" $targetIni = Join-Path $f76Dir "Fallout76Custom.ini" Write-Host "[*] Target Documents Directory: $f76Dir" -ForegroundColor DarkGray # Interactive Prompt if executed without flags if (-not $DryRun -and -not $Apply) { Write-Host "`nSelect execution mode:" -ForegroundColor Yellow Write-Host " [1] Dry-Run / Test Safe Run (Inspect paths & diff, ZERO disk changes)" -ForegroundColor Green Write-Host " [2] Apply Live Optimization (Backup existing INI & write new config)" -ForegroundColor Cyan $choice = Read-Host "Enter choice [1 or 2, default: 1]" if ($choice -ne "2") { $DryRun = $true } } $iniContent = @' ; ============================================================================== ; F76.WORLD OPTIMIZED PRESET - PATCH 70 (THE SLASHER) VERIFIED ; Engine Invariant: sResourceArchive2List handles client mods non-destructively ; ============================================================================== [Display] iPresentInterval = 0 bFull Screen = 0 bBorderless = 1 fSunUpdateThreshold = 0.5 [Controls] fMouseHeadingXScale = .021 fMouseHeadingYScale = .021 bMouseAcceleration = 0 fPitchSpeed = 0.0000 [Interface] fDefaultWorldFOV = 90.0 fDefault1stPersonFOV = 90.0 fSafeZoneX = 15.0 fSafeZoneY = 15.0 fSafeZoneXWide = 64.0 fSafeZoneXWide16x10 = 64.0 fSafeZoneYWide16x10 = 36.0 [General] sIntroSequence = uMainMenuDelayBeforeAllowSkip = 0 bAlwaysActive = 1 uMainMenuMusicAttnmB = 800 [Grass] iMinGrassSize = 40 bAllowCreateGrass = 1 [ImageSpace] bMBEnable = 0 bDoRadialBlur = 0 [Pipboy] fPipboyEffectColorR = 0.1000 fPipboyEffectColorG = 1.0000 fPipboyEffectColorB = 0.3000 fQuickboyEffectColorR = 0.1000 fQuickboyEffectColorG = 1.0000 fQuickboyEffectColorB = 0.3000 [Archive] bInvalidateOlderFiles = 1 sResourceDataDirsFinal = sResourceArchive2List = SeventySix - StaticMeshes.ba2 '@ if ($DryRun) { Write-Host "`n[DRY-RUN / TEST SAFE RUN ACTIVE]" -ForegroundColor Cyan Write-Host "The following configuration WOULD be written to: $targetIni`n" -ForegroundColor DarkGray Write-Host "--- PROPOSED Fallout76Custom.ini ---" -ForegroundColor Green Write-Host $iniContent -ForegroundColor Gray Write-Host "-------------------------------------`n" -ForegroundColor Green if (Test-Path $targetIni) { $timestamp = Get-Date -Format "yyyyMMddHHmmss" Write-Host "[i] Existing INI detected. A backup would be created at: $targetIni.bak.$timestamp" -ForegroundColor Yellow } else { Write-Host "[i] No existing INI file found. File would be created fresh." -ForegroundColor Yellow } Write-Host "`n✔ Dry-run complete. ZERO files modified on disk." -ForegroundColor Green Write-Host "To apply these changes, run with: irm https://f76.world/win | iex -ArgumentList '-Apply'`n" -ForegroundColor Cyan return } # Live Apply Write-Host "`n[⚡ APPLYING OPTIMIZATIONS LIVE]" -ForegroundColor Yellow if (-not (Test-Path $f76Dir)) { New-Item -ItemType Directory -Path $f76Dir -Force | Out-Null } if (Test-Path $targetIni) { $timestamp = Get-Date -Format "yyyyMMddHHmmss" $backupPath = "$targetIni.bak.$timestamp" Copy-Item -Path $targetIni -Destination $backupPath -Force Write-Host "✔ Created safety backup: $backupPath" -ForegroundColor Green } [System.IO.File]::WriteAllText($targetIni, $iniContent, [System.Text.Encoding]::UTF8) Write-Host "✔ Successfully installed optimized Fallout76Custom.ini!" -ForegroundColor Green Write-Host " Location: $targetIni" -ForegroundColor White Write-Host " Settings: 1:1 Mouse Fix • FPS Unlocked • Intro Skipped • FOV 90 • Safe sResourceArchive2List" -ForegroundColor DarkGray Write-Host "`nLaunch Fallout 76 to enjoy buttery-smooth wasteland exploration!`n" -ForegroundColor Cyan