@echo off
echo Fixing mod issues...

REM Remove directories with spaces if they exist
if exist "specmaps\3 Tooth" (
    echo Removing duplicate directory with spaces: "3 Tooth"
    rmdir /s /q "specmaps\3 Tooth"
)

if exist "specmaps\4 Tooth" (
    echo Removing duplicate directory with spaces: "4 Tooth"
    rmdir /s /q "specmaps\4 Tooth"
)

if exist "specmaps\5 Tooth" (
    echo Removing duplicate directory with spaces: "5 Tooth"
    rmdir /s /q "specmaps\5 Tooth"
)

if exist "specmaps\6 Tooth" (
    echo Removing duplicate directory with spaces: "6 Tooth"
    rmdir /s /q "specmaps\6 Tooth"
)

if exist "ATC25_25TonBucketPack\specmaps\3 Tooth" (
    echo Removing duplicate directory with spaces: "ATC25_25TonBucketPack\specmaps\3 Tooth"
    rmdir /s /q "ATC25_25TonBucketPack\specmaps\3 Tooth"
)

if exist "ATC25_25TonBucketPack\specmaps\4 Tooth" (
    echo Removing duplicate directory with spaces: "ATC25_25TonBucketPack\specmaps\4 Tooth"
    rmdir /s /q "ATC25_25TonBucketPack\specmaps\4 Tooth"
)

if exist "ATC25_25TonBucketPack\specmaps\5 Tooth" (
    echo Removing duplicate directory with spaces: "ATC25_25TonBucketPack\specmaps\5 Tooth"
    rmdir /s /q "ATC25_25TonBucketPack\specmaps\5 Tooth"
)

if exist "ATC25_25TonBucketPack\specmaps\6 Tooth" (
    echo Removing duplicate directory with spaces: "ATC25_25TonBucketPack\specmaps\6 Tooth"
    rmdir /s /q "ATC25_25TonBucketPack\specmaps\6 Tooth"
)

if exist "ATC25_25TonBucketPack\specmaps\CleanOut" (
    echo Removing duplicate directory with spaces: "ATC25_25TonBucketPack\specmaps\CleanOut"
    rmdir /s /q "ATC25_25TonBucketPack\specmaps\CleanOut"
)

echo Cleanup complete!
echo.
echo Note: DDS files are 21.3MB each (exceeding 12MB limit).
echo You'll need to use DDS compression tools to reduce file sizes.
echo Consider using tools like:
echo - NVIDIA Texture Tools Exporter
echo - Intel Texture Works Plugin
echo - AMD Compressonator
echo.
echo Recommended DDS compression settings:
echo - Format: BC7 or BC3 (DXT5)
echo - Generate mipmaps: Yes
echo - Quality: High compression
echo.
pause