Reduce Game Size - Mafia III Language Pack Cleaner

⭐ — (31 endorsements) 📥 1,226 downloads 📌 v1.0 📅 4/13/2024
⚪ Last updated 2024

By SGurjar · Utilities

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 4/13/2024 📅 Created: 4/13/2024

🔍 Analysis

  • 👍 2.5% endorsement rate — high engagement, a strong quality signal
  • 🏆 #5 of 7 Utilities mods in this game by downloads

📋 About This Mod

Free up 15+ GB in Mafia III: Definitive Edition with this script.

Credit: MCC on Steam guides.

(https://steamcommunity.com/sharedfiles/filedetails/?id=892820878)

This script was created for Mafia: Definitive Edition but works with Mafia III: Definitive Edition as they share the same audio folder structure.

How It Works:

1. Extract the downloaded zip archive to a convenient location on your computer.

2. Navigate to your game's root installation directory.

`Go to the Steam library, right-click on Mafia III: Definitive Edition, go to "Manage", then click on "Browse local files"`

3. Copy the extracted file into your game's root directory.

4. Run the script (00 Reduce Game Size.bat).

5. Follow the on-screen instructions to select the language you wish to keep.

Source Code:

00 Reduce Game Size.bat

setlocal enabledelayedexpansion

title Mafia III: Definitive Edition Reduce Game Size

echo Welcome %USERNAME%!

set "audioFolderPath=%~dp0\edit\audio\packages"

echo Validating language audio packs...

rem Check if the audio folder exists

if not exist "%audioFolderPath%" (

echo Error: The audio folder "%audioFolderPath%" does not exist.

timeout /nobreak /t 3 >nul

REM Dynamic folder enumeration and numbering

set "count=0"

echo Language folders available:

for /d %%i in ("%audioFolderPath%\") do (

set /a count+=1

set "folder[!count!]=%%~nxi"

rem Calculate folder size using PowerShell

for /f %%S in ('powershell "(Get-ChildItem '%%i' -Recurse | Measure-Object -Property Length -Sum). Sum"') do set "size=%%S"

rem Convert size to MB and GB

set /a sizeMB=size / 1024 / 1024

set /a sizeGB=size / 1024 / 1024 / 1024

if !sizeGB! gtr 0 (

set "sizeFormatted=!sizeGB!.!sizeMB:~0,2! GB"

) else if !sizeMB! gtr 0 (

set "sizeFormatted=!sizeMB!.!sizeKB:~0,2! MB"

set "sizeFormatted=!size! bytes"

echo [!count!] - %%~nxi       Size - !sizeFormatted!

echo Validation complete.

REM Read user input and delete all language folders except the selected one

set /p selectedNumber="Enter the number corresponding to the desired language folder: "

if not defined folder[%selectedNumber%] (

echo Invalid input! Please enter a valid number.

goto inputLoop

echo Deleting language folders...

for /d %%a in ("%audioFolderPath%\") do (

if /i "%%~nxa" neq "!folder[%selectedNumber%]!" (

if exist "%%a\*" (

echo Deleting folder and its contents: %%~nxa

rd /s /q "%%a" >nul 2>&1

if errorlevel 1 (

echo Failed to delete folder: %%~nxa

echo Deleted folder and its contents: %%~nxa

echo Folder is empty, skipping deletion: %%~nxa

echo Preserving selected language folder: %%~nxa

echo Selected language folder "!folder[%selectedNumber%]!" is preserved and others deleted.

📊 Mod Details

Game
Mafia3 Mods
Author
SGurjar
Version
1.0
Downloads
1,226
Endorsements
31
Category
Utilities
Created
4/13/2024
Updated
4/13/2024

🔧 How to Install Mafia III Mods

Install via a mod manager (Vortex or Mod Organizer 2). Most mods drop into the game folder.

📖 Full step-by-step install guide for Mafia III →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Mafia III commands, item IDs, and more.

Keep browsing — more Mafia III mods await

📋 All Mafia III Mods 🏆 Top 25 📂 More Utilities 👤 More by SGurjar 🔎 Similar Mods 🌐 Best Utilities (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods