﻿;;; Unique Landscapes Compatibility Patches Compilation BAIN Wizard Installation Script by Metallicow with additions by Vorians
;;; translated and customized by PlanB

;;; This is for German patches only! No English patches included.
;;; This document has No TAB characters in it. It uses 4 spaces for a tab character.

;;; Patches were obtained from these sources:
;;; http://www.tesnexus.com/downloads/file.php?id=13834        ;Unique Landscapes Compatibility Patches @TESNexus
;;; http://www.tesnexus.com/downloads/file.php?id=20218        ;New Roads and Bridges Revised @TESNexus
;;; http://www.tesnexus.com/downloads/file.php?id=32925        ;Open Cities Patches @TESNexus
;;; http://tes.nexusmods.com/downloads/file.php?id=37184       ;OWC-ND Patches @TESNexus

RequireVersions "1.2.0.416","","","294"

ResetAllEspmNames
DeSelectAll

SelectSubPackage "00 UL Patches Documentation"

; The boolean values here are not used anywhere, but are here for reference.

;===RELz===
bAncientRedwoods =       False   ;http://www.tesnexus.com/downloads/file.php?id=11163        ;"xulAncientRedwoods.esp"
bAncientYews =           False   ;http://www.tesnexus.com/downloads/file.php?id=11458        ;"xulAncientYews.esp"
bArriusCreek =           False   ;http://www.tesnexus.com/downloads/file.php?id=16818        ;"xulArriusCreek.esp"
bAspenWood =             False   ;http://www.tesnexus.com/downloads/file.php?id=28763        ;"xulAspenWood.esp"
bBlackwoodForest =       False   ;http://www.tesnexus.com/downloads/file.php?id=25799        ;"xulBlackwoodForest.esp"
bBravilBarrowfields =    False   ;http://www.tesnexus.com/downloads/file.php?id=20426        ;"xulBravilBarrowfields.esp"
bBrenaRiverRavine =      False   ;http://www.tesnexus.com/downloads/file.php?id=23573        ;"xulBrenaRiverRavine.esp"
bCheydinhalFalls =       False   ;http://www.tesnexus.com/downloads/file.php?id=27494        ;"xulCheydinhalFalls.esp"
bChorrolHinterland =     False   ;http://www.tesnexus.com/downloads/file.php?id=11189        ;"xulChorrolHinterland.esp"
bCliffsOfAnvil =         False   ;http://www.tesnexus.com/downloads/file.php?id=36139        ;"xulCliffsOfAnvil.esp"
bCloudtopMountains =     False   ;http://www.tesnexus.com/downloads/file.php?id=16677        ;"xulCloudtopMountains.esp"
bColovianHighlands =     False   ;http://www.tesnexus.com/downloads/file.php?id=15511        ;"xulColovianHighlands_EV.esp"
bDarkForest =            False   ;http://www.tesnexus.com/downloads/file.php?id=11162        ;"xulDarkForest.esp"
bEasternPeaks =          False   ;http://www.tesnexus.com/downloads/file.php?id=41050        ;"xulTheEasternPeaks.esp"
bEntiusGorge =           False   ;http://www.tesnexus.com/downloads/file.php?id=7037         ;"xulEntiusGorge.esp"
bFallenleafEverglade =   False   ;http://www.tesnexus.com/downloads/file.php?id=17562        ;"xulFallenleafEverglade.esp"
bHeath =                 False   ;http://www.tesnexus.com/downloads/file.php?id=11165        ;"xulTheHeath.esp"
bImperialIsle =          False   ;http://www.tesnexus.com/downloads/file.php?id=9531         ;"xulImperialIsle.esp"
bJerrallGlacier =        False   ;http://www.tesnexus.com/downloads/file.php?id=40731        ;"xulJerallGlacier.esp"
bLostCoast =             False   ;http://www.tesnexus.com/downloads/file.php?id=14720        ;"xulBeachesOfCyrodiilLostCoast.esp"
bLushWoodlands =         False   ;http://www.tesnexus.com/downloads/file.php?id=11164        ;"xulLushWoodlands.esp"
bPantherRiver =          False   ;http://www.tesnexus.com/downloads/file.php?id=20332        ;"xulPantherRiver.esp"
bRiverEthe =             False   ;http://www.tesnexus.com/downloads/file.php?id=17330        ;"xulRiverEthe.esp"
bRollingHills =          False   ;http://www.tesnexus.com/downloads/file.php?id=10768        ;"xulRollingHills_EV.esp" ;"xulRollingHills_EV_withoutWheat.esp"
bSilverfishRiverValley = False   ;http://www.tesnexus.com/downloads/file.php?id=38313        ;"xulSilverfishRiverValley.esp"
bSkingradOutskirts =     False   ;http://www.tesnexus.com/downloads/file.php?id=29948        ;"xulSkingradOutskirts.esp"
bSnowdale =              False   ;http://www.tesnexus.com/downloads/file.php?id=33125        ;"xulSnowdale.esp"
bStendarrValley =        False   ;http://www.tesnexus.com/downloads/file.php?id=7054         ;"xulStendarrValley.esp"

;===WIPz===
;bRiverStrid = False             ;

;===Options===
bRollingHillsNoWheatEsp =   False
bDarkForestLPGrass =        False

bAYACPatch =                False                                                            ;"xulPatch_AY_AC.esp"


;Select the Patches SubPackage and DeSelectAllEspms

SelectSubPackage "01 Patches"
DeSelectAllEspms

;==================================================================
; Against the Zealots of the Nine - Jerall Glacier patch by Vorians
If DataFileExists ("JolardHome.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "AgainstTheZealotsOfTheNine-JerallGlacier patch.esp"
    EndIf
EndIf
;=====================================================
; Akaviri Stronghold - The Lost Coast patch by Vorians
If DataFileExists ("300_Akaviri_Stronghold.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "AkaviriStronghold-LostCoast fix.esp"
    EndIf
EndIf
;=======================================================
; Amen'thalas Well House - Arrius Creek patch by Vorians
bATWH = False
If DataFileExists ("Amen'thalas Well House.esp")
   bATWH = True
EndIf
If DataFileExists ("Amen'thalas Well House for Cobl.esp")
   If bATWH ;= True
       Cancel "Es wurde Amen'thalas Well House.esp sowie auch Amen'thalas Well House for Cobl.esp erkannt! \nBitte entferne eine der beiden ESPs und versuche es erneut."
   EndIf
   bATWH = True
EndIf
If bATWH ;= True
   If DataFileExists ("xulArriusCreek.esp")
       If DataFileExists ("HeartOftheDead.esp")
           Cancel "Es wurde sowohl HeartOftheDead.esp als auch Amen'thalas Well House.esp erkannt! \nBitte deinstalliere eine der beiden Mods. Die Patches sind nicht kompatibel."
       EndIf
       If DataFileExists ("xulPatch_AY_AC.esp")
           SelectEspm "Amen'thalasWellHouse-xulPatch_AY_AC patch.esp"
       Else
           SelectEspm "Amen'thalasWellHouse-ArriusCreek patch.esp"
       EndIf
   EndIf
EndIf
;=======================================================
; Ancient Dwemer Ruins - Jerall Glacier patch by Vorians
If DataFileExists ("Ancient Dwemer Ruin.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "AncientDwemerRuins-JerallGlacier patch.esp"
    EndIf
EndIf
;=====================================================
; Ancient Source - Chorrol Hinterland patch by Vorians
If DataFileExists ("AncientSource.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "AncientSource-ChorrolHinterland patch.esp"
    EndIf
EndIf
;====================================================
; Ancient Towers - The Eastern Peaks patch by Vorians
If DataFileExists ("AncientTowers.esp")
    If DataFileExists ("xulTheEasternPeaks.esp")
        SelectEspm "AncientTowers-EasternPeaks patch.esp"
    EndIf
EndIf
;=================================================
; Apachii Heroes Store - Snowdale patch by Vorians
If DataFileExists ("Apachii_Heroes_Store.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "ApachiiHeroesStore-Snowdale patch.esp"
    EndIf
EndIf
;============================================
; Arcane Rising - Lost Coast patch by Vorians
If DataFileExists ("AR.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "ArcaneRising-LostCoast patch.esp"
    EndIf
EndIf
;============================================
; Arren/Baddy - Entius Gorge patch by Vorians
If DataFileExists ("xulEntiusGorge.esp")
    If DataFileExists ("Baddy.esp")
        If DataFileExists ("Arren.esp")
            Cancel "Es wurde Arren.esp sowie auch Baddy.esp erkannt. Bitte entferne eine der beiden ESPs und versuche es erneut."
        EndIf
    Else
        If DataFileExists ("Baddy.esp")
            SelectEspm "Baddy-EntiusGorge patch.esp"
        EndIf
        If DataFileExists ("Arren.esp")
            SelectEspm "Arren-EntiusGorge patch.esp"
        EndIf
    EndIf
EndIf
;========================================================
; Ayleid Ruins Expanded - Jerall Glacier patch by Vorians
If DataFileExists ("NNWAREAyleidDungeons_Serie1DV.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "AyleidRuinsExpanded-JerallGlacier patch.esp"
    EndIf
EndIf
;===========================================================
; Bandit Hideouts - Silverfish River Valley patch by Vorians
If DataFileExists ("Bandit Hideouts.esp")
    If DataFileExists ("xulSilverfishRiverValley.esp")
        SelectEspm "BanditHideouts-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;===============================================
; Belda Elysium - Rolling Hills patch by Vorians
If DataFileExists ("BeldaElysium.esp")
    If DataFileExists ("xulRollingHills_EV.esp")
        SelectEspm "BeldaElysium-RollingHills patch.esp"
    Elif DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "BeldaElysium-RollingHillsW patch.esp"
    EndIf
EndIf
;======================================================
; Berg Des Krieger - Cloudtop Mountain patch by Vorians
If DataFileExists ("Kriegerburg.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "BergDesKrieger-CloudtopMountain patch.esp"
    EndIf
EndIf
;=====================================================
; Better Cities - Bravil Barrowfields patch by Vorians
If DataFileExists ("xulBravilBarrowfields.esp")
    If DataFileExists ("Better Cities Full - B&M Edition.esp")
        SelectEspm "Better Cities B&M - Unique Landscape Barrowfields.esp"
    Elif DataFileExists ("Better Cities Full.esp")
        SelectEspm "Better Cities - Unique Landscape Barrowfields.esp"
    EndIf
EndIf
;==================================================
; Better Cities - Cheydinhal Falls patch by Vorians
If DataFileExists ("Better Cities Full - B&M Edition.esp") | DataFileExists ("Better Cities Full.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "Better Cities - Unique Landscape Cheydinhal Falls.esp"
    EndIf
EndIf
;====================================================
; Better Cities - Chorrol Hinterland patch by Vorians
If DataFileExists ("Better Cities Full - B&M Edition.esp") | DataFileExists ("Better Cities Full.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "Better Cities - Unique Landscape Chorrol Hinterland.esp"
    EndIf
EndIf
;===============================================
; Better Cities - Imperial Isle patch by Vorians
If DataFileExists ("Better Cities IC Waterfront.esp") | DataFileExists ("Better Imperial City.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "Better Cities - Unique Landscape Imperial Isle.esp"
    EndIf
EndIf
;====================================================
; Better Cities - Skingrad Outskirts patch by Vorians
If DataFileExists ("Better Cities Full - B&M Edition.esp") | DataFileExists ("Better Cities Full.esp")
    If DataFileExists ("xulSkingradOutskirts.esp")
        SelectEspm "Better Cities - Unique Landscape Skingrad Outskirts.esp"
    EndIf
EndIf
;==============================================================
; Better Daedric Shrines - Unique Landscapes patches by Vorians
If DataFileExists ("better daedric shrines Meridia.esp")
    If DataFileExists ("xulRiverEthe.esp")
        SelectEspm "BetterDaedricShrinesMeridia-RiverEthe patch.esp"
    EndIf
EndIf
If DataFileExists ("Better daedric shrines Vaermina.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "BetterDaedricShrineVaermina-AncientYews patch.esp"
    EndIf
EndIf
If DataFileExists ("Better daedric shrines full.esp")
    If DataFileExists ("xulRiverEthe.esp")
        If DataFileExists ("xulAncientYews.esp")
            SelectEspm "BetterDaedricShrinesFull-UniqueLandscapes patch.esp"
        Else
            SelectEspm "BetterDaedricShrinesFull-RiverEthe patch.esp"
        EndIf
    Elif DataFileExists ("xulAncientYews.esp")
        SelectEspm "BetterDaedricShrinesFull-AncientYews patch.esp"
    EndIf
EndIf
;=================================================
; Billsburg - Unique Landscapes patches by Vorians
If DataFileExists ("English Billsburg_Rens_Hair_1.51.esp")
    If DataFileExists ("Billsburg.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    Elif DataFileExists ("English Billsburg v1.5.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    EndIf
Elif DataFileExists ("Billsburg.esp")
    If DataFileExists ("English Billsburg_Rens_Hair_1.51.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    Elif DataFileExists ("English Billsburg v1.5.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    EndIf
Elif DataFileExists ("English Billsburg v1.5.esp")
    If DataFileExists ("Billsburg.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    Elif DataFileExists ("English Billsburg_Rens_Hair_1.51.esp")
        Note "Es wurden mehrere Versionen von Billsburg erkannt! Bitte vergewissere dich, dass du nur eine Version verwendest."
    EndIf
EndIf

BillsburgVar = ""
If DataFileExists ("English Billsburg_Rens_Hair_1.51.esp")
    BillsburgVar = 1
EndIf
If DataFileExists ("Billsburg.esp")
    BillsburgVar = 2
EndIf
If DataFileExists ("English Billsburg v1.5.esp")
    BillsburgVar = 3
EndIf
If BillsburgVar == 1
    If DataFileExists ("xulColovianHighlands_EV.esp")
        If DataFileExists ("xulCloudtopMountains.esp")
            SelectEspm "Billsburg-UniqueLandscapes patch1.esp"
        EndIf
    Elif DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Billsburg-CloudtopMountains patch1.esp"
    Elif DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "Billsburg-ColovianHighlands patch.esp"
    EndIf
Elif BillsburgVar == 2
    If DataFileExists ("xulColovianHighlands_EV.esp")
        If DataFileExists ("xulCloudtopMountains.esp")
            SelectEspm "Billsburg-UniqueLandscapes patch2.esp"
        EndIf
    Elif DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Billsburg-CloudtopMountains patch2.esp"
    Elif DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "Billsburg-ColovianHighlands patch.esp"
    EndIf
Elif BillsburgVar == 3
    If DataFileExists ("xulColovianHighlands_EV.esp")
        If DataFileExists ("xulCloudtopMountains.esp")
            SelectEspm "Billsburg-UniqueLandscapes patch3.esp"
        EndIf
    Elif DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Billsburg-CloudtopMountains patch3.esp"
    Elif DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "Billsburg-ColovianHighlands patch.esp"
    EndIf
EndIf
;==============================================
; BlackMarsh Hall - River Ethe patch by Vorians
If DataFileExists ("BlackMarshHall.esp")
    If DataFileExists ("xulRiverEthe.esp")
        SelectEspm "BlackMarshHall-RiverEthe patch.esp"
    EndIf
EndIf
;=====================================================
; Blackrock Mountain - Jerall Glacier patch by Vorians
If DataFileExists ("Blackrock_Mountain-4489.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "BlackrockMountain-JerallGlacier patch.esp"
    EndIf
EndIf
;==============================================
; Blackscar Citadel - Aspen Wood patch by Chaky
If DataFileExists ("Blackscar Citadel.esp")
    If DataFileExists ("xulAspenWood.esp")
        SelectEspm "BlackscarCitadel-AspenWood patch.esp"
    EndIf
EndIf
;====================================================
; Blood & Mud - Bravil Barrowfields patch by Arthmoor
If DataFileExists ("Better Cities Full - B&M Edition.esp")
    ;Do nothing
Elif DataFileExists ("Blood&Mud.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "BarrowFields-Blood&Mud-Patch.esp"
    EndIf
EndIf
;================================================
; Blood & Mud - Cheydinhal Falls patch by Vorians
If DataFileExists ("Blood&Mud.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "Blood&Mud-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=============================================
; Blood & Mud - Panther River patch by Vorians
If DataFileExists ("Blood&Mud.esp")
    If DataFileExists ("xulPantherRiver.esp")
        SelectEspm "Blood&Mud-PantherRiver patch.esp"
    EndIf
EndIf
;==============================================================
; Bravil Bridge Cottage - Bravil Barrowfields patch by Arthmoor
If DataFileExists ("BravilBridgeCottage.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "BravilBridgeCottage + Barrowfields Patch.esp"
    EndIf
EndIf
;====================================================
; Bravil Docks - Bravil Barrowfields patch by Vorians
If DataFileExists ("Bravil Docks.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "BravilDocks-Barrowfields patch.esp"
    EndIf
EndIf
;===========================================
; Castle Dracula - Snowdale patch by Vorians
If DataFileExists ("CV - Castle Dracula.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "CastleDracula-Snowdale patch.esp"
    EndIf
EndIf
;====================================================
; Castle Dunkerlore - Blackwood Forest patch by Chaky
If DataFileExists ("Castle_Dunkerlore_V1.esp")
    If DataFileExists ("xulBlackwoodForest.esp")
        SelectEspm "CastleDunkerlore-BlackwoodForest patch.esp"
    EndIf
EndIf
;========================================================================
; Castle Veyond Dunkerlore Relocated - Bravil Barrowfields patch by Chaky
If DataFileExists ("Castle_Veyond.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "CastleVeyond-BravilBarrowfields patch.esp"
    EndIf
EndIf
;======================================================================
; The Fight for Castle Ravenpride - Cheydinhal Falls patches by Vorians
If DataFileExists ("Burg Rabenstolz.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "CastleRavenprideDV-CheydinhalFalls patch.esp"
    EndIf
EndIf
;==================================================
; Castle Seaview - The Lost Coast patch by Arthmoor
If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
    If DataFileExists ("Castle_Seaview.esp")
        SelectEspm "CastleSeaview+LostCoast Patch.esp"
    EndIf
EndIf
;=================================================================================
; Castle Seaview - Imperial City of Sutch Reborn - The Lost Coast patch by Vorians
If DataFileExists ("(DC) Sutch Reborn.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        If DataFileExists ("Castle_Seaview.esp")
            ;Imperial City of Sutch Reborn - Castle Seaview - The Lost Coast Patch by Vorians
            SelectEspm "CastleSeaview-SutchReborn-LostCoast patch.esp"
        Else
            SelectEspm "SutchReborn-LostCoast patch.esp"
        EndIf
    EndIf
EndIf
;==========================================================
;Imperial City of Sutch Reborn - The Heath patch by Vorians
If DataFileExists ("(DC) Sutch Reborn.esp")
    If DataFileExists ("xulTheHeath.esp")
        SelectEspm "SutchReborn-TheHeath patch.esp"
    EndIf
EndIf
;================================================
; CDM-Necromancy - Rolling Hills patch by Vorians
If DataFileExists ("CDM-Necromancy.esp")
    If DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "CDMNecromancy-RollingHills patch.esp"
    EndIf
EndIf
;=======================================================
; Chorrol Plateau - Unique Landscapes patches by Vorians
If DataFileExists ("ChorrolPlateau.esp")
    If DataFileExists ("xulChorrolHinterlands.esp") & DataFileExists ("xulRiverEthe.esp")
        SelectEspm "ChorrolPlateau-UniqueLandscapes patch.esp"
    Elif DataFileExists ("xulChorrolHinterlands.esp")
        SelectEspm "ChorrolPlateau-ChorrolHinterland patch.esp"
    Elif DataFileExists ("xulRiverEthe.esp")
        SelectEspm "ChorrolPlateau-RiverEthe patch.esp"
    EndIf
EndIf
;==========================================
; Cigarettes - Rolling Hills patch by TodaY
If DataFileExists ("Cigarettes.esp")
    If DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "CigarettesRollingHillsFix.esp"
    EndIf
EndIf
;=============================================
; Country Home - Arrius Creek patch by Vorians
If DataFileExists ("CountryHome.esp")
    If DataFileExists ("xulArriusCreek.esp")
        SelectEspm "CountryHome-ArriusCreek patch.esp"
    EndIf
EndIf
;=====================================================
; County Sutch Owls Cove - Lost Coast patch by Vorians
If DataFileExists ("(DC) County Sutch - Owls Cove.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "CountySutchOwlsCove-LostCoast patch.esp"
    EndIf
EndIf
;==============================================
; Curse of Hircine - Jerall Glacier patch by Vorians
If DataFileExists ("CurseOfHircine.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "CurseofHircine-JerallGlacier patch.esp"
    EndIf
EndIf
;============================================
; Cybiades - The Lost Coast patch by Arthmoor
If DataFileExists ("Cybiades.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "LostCoast + Cybiades Patch.esp"
    EndIf
EndIf
;===================================================================
; Dark Brotherhood Chronicles - Unique Landscapes patches by Vorians
If DataFileExists ("DarkBrotherhoodChronicles.esp")
    If DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulChorrolHinterland.esp") & DataFileExists ("xulLushWoodlands.esp") & DataFileExists ("xulTheHeath.esp")
        SelectEspm "DarkBrotherhoodChronicles-UniqueLandscapes Merged patch.esp"
    Else
	    If DataFileExists ("xulAncientYews.esp")
            SelectEspm "DarkBrotherhoodChronicles-AncientYews patch.esp"
		EndIf
        If DataFileExists ("xulChorrolHinterland.esp")
            SelectEspm "DarkBrotherhoodChronicles-ChorrolHinterland patch.esp"
		EndIf
        If DataFileExists ("xulLushWoodlands.esp")
            SelectEspm "DarkBrotherhoodChronicles-LushWoodlands patch.esp"
		EndIf
        If DataFileExists ("xulTheHeath.esp")
            SelectEspm "DarkBrotherhoodChronicles-TheHeath patch.esp"
		EndIf
    EndIf
EndIf
;===================================================================
; Dibella Temple Willow Lake Village - Entius Gorge patch by Vorians
If DataFileExists ("DibellaTempleWillowLakeVillagev1.esp")
    If DataFileExists ("xulEntiusGorge.esp")
        SelectEspm "DibellaTempleWillowLakeVillage-EntiusGorge patch.esp"
    EndIf
EndIf
;======================================================================
; Duke Patrick's SCA Combat Archery - The Lost Coast patch by weelillad
If DataFileExists ("Duke Patricks SCA Combat Archery.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "Duke Patrick's SCA Combat Archery patch for xulLostCoast.esp"
    EndIf
EndIf
;========================================================
; Dungeons of Ivellon - Cheydinhal Falls patch by Vorians
If DataFileExists ("Ivellon.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "DungeonsOfIvellon-CheydinhalFalls patch.esp"
    EndIf
EndIf
;===============================================================
; Dwarves of the Mountain - Unique Landscapes patches by Vorians
If DataFileExists ("Dwarven Mines.esp")
    If DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp") & DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "DwarvenMines-UniqueLandscapes Merged patch.esp"
    Elif DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "DwarvenMines-AncientYews patch.esp"
        SelectEspm "DwarvenMines-LostCoast patch.esp"
    Elif DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "DwarvenMines-AncientYews patch.esp"
        SelectEspm "DwarvenMines-ColovianHighlands patch.esp"
    Elif DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp") & DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "DwarvenMines-LostCoast patch.esp"
        SelectEspm "DwarvenMines-ColovianHighlands patch.esp"
    Elif DataFileExists ("xulAncientYews.esp")
        SelectEspm "DwarvenMines-AncientYews patch.esp"
    Elif DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "DwarvenMines-LostCoast patch.esp"
    Elif DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "DwarvenMines-ColovianHighlands patch.esp"
    EndIf
EndIf
;=============================================
; Eagles Rest - Lost Coast patches by Arthmoor
If DataFileExists ("EaglesRest.esp")
   If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
       If DataFileExists ("Castle_Seaview.esp")
           SelectEspm "EaglesRest+LostCoast+CastleSeaview Patch.esp"
           DeSelectEspm "CastleSeaview+LostCoast Patch.esp"
       Else
           SelectEspm "EaglesRest+LostCoast Patch.esp"
       EndIf
   EndIf
EndIf
;=====================================================
; Eastbrink - Silverfish River Valley patch by Vorians
If DataFileExists ("EastbrinkBasic.esp")
    If DataFileExists ("xulSilverfishRiverValley.esp")
        SelectEspm "EastbrinkBasic-SliverfishRiverValley patch.esp"
    EndIf
EndIf
;==========================================================
; Elsweyr Anequina - Fallenleaf Everglade patch by Arthmoor
If DataFileExists ("ElsweyrAnequina.esp")
    If DataFileExists ("xulFallenleafEverglade.esp")
        SelectEspm "Anequina-Fallenleaf-Patch.esp"
    EndIf
EndIf
;=======================================================
; Et in Arkay Ego - Unique Landscapes patches by Vorians
If DataFileExists ("EiAmod.esp")
    If DataFileExists ("xulBravilBarrowfields.esp") & DataFileExists ("xulColovianHighlands_EV.esp") & DataFileExists ("xulCheydinhalFalls.esp") & DataFileExists ("xulAspenWood.esp")
        SelectEspm "EtInArkay-UniqueLandscapes Merged patch.esp"
    Else
        If DataFileExists ("xulBravilBarrowfields.esp")
            SelectEspm "EtInArkay-BravilBarrowfields patch.esp"
        EndIf
        If DataFileExists ("xulColovianHighlands_EV.esp")
            SelectEspm "EtInArkay-ColovianHighlands patch.esp"
        EndIf
        If DataFileExists ("xulCheydinhalFalls.esp")
            SelectEspm "EtInArkay-CheydinhalFalls patch.esp"
        EndIf
        If DataFileExists ("xulAspenWood.esp")
            SelectEspm "EtInArkay-AspenWood patch.esp"
        EndIf
    EndIf
EndIf
;======================================
; Feldscar - Snowdale patch by Arthmoor
If DataFileExists ("Feldscar.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "Feldscar+Snowdale Patch.esp"
    EndIf
EndIf
;=================================================
; Fishermans Cottage - Lost Coast patch by Vorians
If DataFileExists ("FishermansCottage.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "FishermansCottage-LostCoast patch.esp"
    EndIf
EndIf
;========================================================
; The Temple of Five Lanterns - Stendarr patch by Vorians
If DataFileExists ("LanternMonastery.esp")
    If DataFileExists ("xulStendarrValley.esp")
        SelectEspm "FiveLanterns-StendarrValley patch.esp"
    EndIf
EndIf
;=============================================
; Forgotten Tomb - Lost Coast patch by Vorians
If DataFileExists ("Forgotten Tomb.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "ForgottenTomb-LostCoast patch.esp"
    EndIf
EndIf
;===============================================
; Fort Ferrion - Jerall Glacier patch by Vorians
If DataFileExists ("Fort Ferrion.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "FortFerrion-JerallGlacier patch.esp"
    EndIf
EndIf
;=========================================================
; Fran's More Wilderness Life - The Heath patch by Vorians
If DataFileExists ("Francesco's More Wilderness Life.esp")
    If DataFileExists ("xulTheHeath.esp")
        SelectEspm "FranMWL-TheHeath patch.esp"
    EndIf
EndIf
;==================================================
; Frostcrag Reborn - Snowdale patch by Thomas Kaira
If DataFileExists ("DLCFrostcrag.esp")
    If DataFileExists ("Meshes\\FrostcragReborn\\FRDarkTower.nif")
        If DataFileExists ("xulSnowdale.esp")
            SelectEspm "FrostcragReborn-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;=====================================================
; Fuse's Snail Racing - Imperial Isle patch by Vorians
If DataFileExists ("FuseSnailRacing.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "FuseSnailRacing-ImperialIsle patch.esp"
    EndIf
EndIf
;==================================================
; Gaelendryll - Brena River Ravine patch by Vorians
If DataFileExists ("Gaelendryl.esp")
    If DataFileExists ("xulBrenaRiverRavine.esp")
        SelectEspm "Gaelendryll-BrenaRiver patch.esp"
    EndIf
EndIf
;================================================================
; Gates to Aesgaard Episode One - Jerall Glacier patch by Vorians
If DataFileExists ("GTAesgaard.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "GatesToAesgaardEp1-JerallGlacier patch.esp"
    EndIf
EndIf
;==========================================================
; Gates to Aesgaard Episode Two - Snowdale patch by Vorians
If DataFileExists ("GTAesgaard_2.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "GatesToAesgaardEp2-Snowdale patch.esp"
    EndIf
EndIf
;=====================================================
; Gift of Kynareth - Cheydinhal Falls patch by Vorians
If DataFileExists ("Gift of Kynareth.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "GiftOfKynareth-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Goblinwatch Keep- Unique Landscapes patches by Vorians
If DataFileExists ("GoblinwatchKeep.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "GoblinwatchKeep-CloudtopMountains patch.esp"
    EndIf
    If DataFileExists ("xulStendarrValley.esp")
        SelectEspm "GoblinwatchKeep-StendarrValley patch.esp"
    EndIf
EndIf
;===========================================================
; Golden Arrow Archers Shop - Rolling Hills patch by Vorians
If DataFileExists ("goldenarrowarcheryshop.esp")
    If DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "goldenarchery-rollinghills fix.esp"
    EndIf
EndIf
;====================================================
; Golden Crest - Unique Landscapes patches by Vorians
If DataFileExists ("GoldenCrest.esp")
    If DataFileExists ("xulBravilBarrowfields.esp") & DataFileExists ("xulCloudtopMountains.esp") & DataFileExists ("xulSnowdale.esp")
        SelectEspm "GoldenCrest-UniqueLandscapes Merged patch.esp"
    Else
        If DataFileExists ("xulBravilBarrowfields.esp")
            SelectEspm "GoldenCrest-BravilBarrowfields patch.esp"
        EndIf
        If DataFileExists ("xulCloudtopMountains.esp")
            SelectEspm "GoldenCrest-CloudtopMountains patch.esp"
        EndIf
        If DataFileExists ("xulSnowdale.esp")
            SelectEspm "GoldenCrest-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;===================================================
; Grow Plants! - Chorrol Hinterland patch by Vorians
If DataFileExists ("LE_GrowPlants.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "GrowPlants-ChorrolHinterland patch.esp"
    EndIf
EndIf
;===============================================================
; Guards of Cyrodiil Redux - Chorrol Hinterland patch by Vorians
If DataFileExists ("GuardsofCyrodiilRedux.esp")
    If DataFileExists ("xulSilverfishRiverValley.esp")
        SelectEspm "GuardsOfCyrodiilRedux-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;=============================================================
; Hammerfell - Unique Landscapes patches by Arthmoor & Vorians
If DataFileExists ("HammerfellBorders.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "Hammerfell+UL Lost Coast Patch.esp"
    EndIf
    If DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "Hammerfell-ColovianHighlands patch.esp"
    EndIf
EndIf
;====================================================
; Haunted House Quest - Ancient Yews patch by Vorians
If DataFileExists ("Haunted_House_v1.5.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "HauntedHouseQuest-AncientYews patch.esp"
    EndIf
EndIf
;==================================================
; Heart of the Dead - Arrius Creek patch by Vorians
If DataFileExists ("HeartOftheDead.esp")
    If DataFileExists ("xulArriusCreek.esp")
        SelectEspm "HeartoftheDead-ArriusCreek patch.esp"
    EndIf
EndIf
;===========================================
; Helms Deep - Arrius Creek patch by Vorians
If DataFileExists ("01_Helms_Deep.esp")
    If DataFileExists ("02_Helms_Deep.esp")
        If DataFileExists ("03_Helms_Deep.esp")
            If DataFileExists ("xulArriusCreek.esp")
                SelectEspm "HelmsDeep-ArriusCreek patch.esp"
            EndIf
        EndIf
    EndIf
EndIf
;======================================================
; Hentai Lovely House 2 - Ancient Yews patch by Vorians
If DataFileExists ("HentaiLovelyHouse.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "HentaiLovelyHouse2-AncientYews patch.esp"
    EndIf
EndIf
;===============================================
; Hero's Retreat - Lush Woodlands patch by Chaky
If DataFileExists ("Hero's Retreat v1.2.esp")
    If DataFileExists ("xulLushWoodlands.esp")
        SelectEspm "HerosRetreat-LushWoodlands patch.esp"
    EndIf
EndIf
;===================================================
; Hoarfrost Castle - Lush Woodlands patch by Vorians
If DataFileExists ("HoarfrostCastle.esp")
    If DataFileExists ("xulLushWoodlands.esp")
        SelectEspm "HoarfrostCastle-LushWoodlands patch.esp"
    Else
        If DataFileExists ("xulChorrolHinterland.esp")
            ;Hoarfrost Castle - Chorrol Hinterland-only Patch by Vorians
            SelectEspm "HoarfrostCastle-ChorrolHinterland patch.esp"
        EndIf
    EndIf
EndIf
;==========================================================
; House On The Bluff v2.0 - The Lost Coast patch by Vorians
If DataFileExists ("House On The Bluff .V2.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "HouseOnTheBluff-LostCoast fix.esp"
    EndIf
EndIf
;=======================================================
; Imperial City Suburbs - Imperial Isle patch by Vorians
If DataFileExists ("Imperial City Suburbs.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "ImperialCitySuburbs-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================
; Imperial Manor - Imperial Isle patch by Chaky
If DataFileExists ("ImperialManor.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "ImperialManor-ImperialIsle patch.esp"
    EndIf
EndIf
;=============================================================
; Imperial Imperial Infrastructure - Snowdale patch by Vorians
If DataFileExists ("Improved Imperial Infrastructure.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "ImprovedImperialInfrastructure-Snowdale patch.esp"
    EndIf
EndIf
;=============================================
; Integration - Snowdale patch by Thomas Kaira
If DataFileExists ("bgIntegrationEV.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "Silverfish&bgIntegrationPatch.esp"
    EndIf
EndIf
;=============================================================
; Kragenirs Death Quest - Unique Landscapes patches by Vorians
If DataFileExists ("Kragenir's Death Quest.esp")
    If DataFileExists ("xulCliffsOfAnvil.esp") & DataFileExists ("xulCloudtopMountains.esp") & DataFileExists ("xulRollingHills_EV.esp") & DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp") & DataFileExists ("xulTheEasternPeaks.esp")
        SelectEspm "KragenirsDeathQuest-UniqueLandscapes Merged patch.esp"
    Elif DataFileExists ("xulCliffsOfAnvil.esp") & DataFileExists ("xulCloudtopMountains.esp") & DataFileExists ("xulRollingHills_EV_withoutWheat.esp") & DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp") & DataFileExists ("xulTheEasternPeaks.esp")
        SelectEspm "KragenirsDeathQuest-UniqueLandscapes Merged patch.esp"
    Else
        If DataFileExists ("xulCliffsOfAnvil.esp")
            SelectEspm "KragenirsDeathQuest-CliffsOfAnvil patch.esp"
        EndIf
        If DataFileExists ("xulCloudtopMountains.esp")
            SelectEspm "KragenirsDeathQuest-CloudtopMountains patch.esp"
        EndIf
        If DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
            SelectEspm "KragenirsDeathQuest-RollingHills patch.esp"
        EndIf
        If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
            SelectEspm "KragenirsDeathQuest-LostCoast patch.esp"
        EndIf
        If DataFileExists ("xulTheEasternPeaks.esp")
            SelectEspm "KragenirsDeathQuest-EasternPeaks patch.esp"
        EndIf
    EndIf
EndIf
;======================================================
; Kvatch Aftermath v6.6 - Entius Gorge patch by Vorians
If DataFileExists ("KvatchAftermath.esp")
    If DataFileExists ("xulEntiusGorge.esp")
        SelectEspm "KvatchAftermath-EntiusGorge compatibility patch.esp"
    EndIf
EndIf
;===================================================
; Kvatch Rebuilt - Cheydinhal Falls patch by Vorians
If DataFileExists ("Kvatch Rebuilt.esm")
    If DataFileExists ("Kvatch Rebuilt.esp")
        If DataFileExists ("xulCheydinhalFalls.esp")
            SelectEspm "KvatchRebuilt-CheydinhalFalls patch.esp"
        EndIf
    EndIf
EndIf
;===========================================
; Lost Spires - Dark Forest patch by Vorians
If DataFileExists ("The Lost Spires.esp")
    If DataFileExists ("xulDarkForest.esp")
        SelectEspm "LostSpires-DarkForest patch.esp"
    EndIf
EndIf
;====================================================
; Lost Spires - Fallenleaf Everglade patch by Vorians
If DataFileExists ("The Lost Spires.esp")
    If DataFileExists ("xulFallenleafEverglade.esp")
        SelectEspm "LostSpires-Everglade patch.esp"
    EndIf
EndIf
;=========================================================================
; An-Arane Cey - Lost Sword of the Ayleids - Arrius Creek patch by Vorians
If DataFileExists ("LostSwordOfTheAylied.esp")
    If DataFileExists ("xulArriusCreek.esp")
        SelectEspm "LostSwordoftheAyleids-ArriusCreek patch.esp"
    EndIf
EndIf
;=======================================================
; Mad Mage's Tower - Cloudtop Mountains patch by Vorians
If DataFileExists ("MadMagesTower.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "MadMagesTower-CloudtopMountains patch.esp"
    EndIf
Elif DataFileExists ("MadMagesTowerBASIC.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "MadMagesTowerBASIC-CloudtopMountains patch.esp"
    EndIf
EndIf
;===============================================================
; Mannimarco Resurrection - Unique Landscapes patches by Vorians
If DataFileExists ("MannimarcoComplete.esp")
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "MannimarcoResurrection-CliffsOfAnvil patch.esp"
    EndIf
    If DataFileExists ("xulTheEasternPeaks.esp")
        SelectEspm "MannimarcoResurrection-EasternPeaks patch.esp"
    EndIf
EndIf
;================================================
; Marshal Manor - Blackwood Forest patch by Chaky
If DataFileExists ("Marshal Manor.esp")
    If DataFileExists ("xulBlackwoodForest.esp")
        SelectEspm "MarshalManor-BlackwoodForest patch.esp"
    EndIf
EndIf
;======================================================================
; Millstone Farm And Millstone Farm COBL - Ancient Yews patch by Korana
If DataFileExists ("Millstone_Farm.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "Millstone-AncientYews patch.esp"
    EndIf
Elif DataFileExists ("Millstone_Farm_COBL.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "MillstoneCOBL-AncientYews patch.esp"
    EndIf
EndIf
;================================================================================
; Mimics! or Ravenview Village & Cloudtop Mountains patches by Arthmoor & Vorians
If DataFileExists ("ShezriesTownsMaster.esp") & DataFileExists ("Mimics!.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Mimics+Ravenview+Cloudtop Patch.esp"
    EndIf
Elif DataFileExists ("ShezriesTownsMaster.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Ravenview-Cloudtop-Patch.esp"
    EndIf
Elif DataFileExists ("Mimics!.esp")
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "Mimics-CloudtopMountains patch.esp"
    EndIf
EndIf
;================================================
; MMM Dungeons - Cliffs Of Anvil patch by Vorians
If DataFileExists ("Mart's Monster Mod - Dungeons of MMM.esp")
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "MMMDungeons-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;========================================================================
; MTC Bravil River Shack & Village - Bravil Barrowfields patch by Vorians
If DataFileExists ("MTCRiverShackv1.2.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "MTCRiverShack-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=============================================================
; MTC Expanded Villages - Unique Landscapes patches by Vorians
If DataFileExists ("MTCExpandedVillages.esp")
    If DataFileExists ("xulAncientRedwoods.esp") & DataFileExists ("xulSnowdale.esp")
        SelectEspm "MTCExpandedVillages-UniqueLandscapes patch.esp"
    Elif DataFileExists ("xulAncientRedwoods.esp")
        SelectEspm "MTCExpandedVillages-AncientRedwoods patch.esp"
    Elif DataFileExists ("xulSnowdale.esp")
        SelectEspm "MTCExpandedVillages-Snowdale patch.esp"
    EndIf
EndIf
;=========================================================
; MTC Thieves Grotto - Colovian Highlands patch by Vorians
If DataFileExists ("MTCThievesGrottoV4.1.esp")
    If DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "ThievesGrotto-ColovianHighlands patch.esp"
    EndIf
EndIf
;=======================================================
; Myths & Legends 2 - The Eastern Peaks patch by Vorians
If DataFileExists ("mythsandlegends.esp")
    If DataFileExists ("xulTheEasternPeaks.esp")
        SelectEspm "MythsAndLegends2-EasternPeaks patch.esp"
    EndIf
EndIf
;=====================================================
; Naheema Player Home - Imperial Isle patch by Vorians
If DataFileExists ("PlayerHomeNaheema.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "PlayerHomeNaheema-ImperialIsle patch.esp"
    EndIf
EndIf
;==========================================================================================
; Dragon Captions' County Sutch: The Ancient City of New Haven - The Heath patch by Vorians
If DataFileExists ("(DC) County Sutch - New Haven.esp")
    If DataFileExists ("xulTheHeath.esp")
        SelectEspm "NewHaven-TheHeath patch.esp"
    EndIf
EndIf
;======================================================
; New Roads & Bridges - Imperial Isle patch by Arthmoor
If DataFileExists ("road+bridges.esp")
    If DataFileExists ("xulImperialIsle.esp")
        If DataFileExists ("LetThePeopleDrink.esp")
            If DataFileExists ("Open Cities Outer Districts.esp")
                ;Open Cities Outer Districts + New Roads & Bridges + Let the People Drink - Imperial Isle Patch by Arthmoor
                SelectEspm "NRB4+UL-II+LtPD+OCOD Patch.esp"
            Else
                ;New Roads & Bridges + Let The People Drink - Imperial Isle Patch by Arthmoor
                SelectEspm "NRB4+UL-II+LtPD Patch.esp"
            EndIf
        Else
            If DataFileExists ("Open Cities Outer Districts.esp")
                ;Open Cities Outer Districts + New Roads & Bridges - Imperial Isle Patch by Arthmoor
                SelectEspm "NRB4+UL-II+OCOD Patch.esp"
            Else
                ;New Roads & Bridges - Imperial Isle Patch by Arthmoor
                SelectEspm "NRB4+UL-II Patch.esp"
            EndIf
        EndIf
    EndIf
EndIf
;==============================================================
; Nic-V's Better Beggars - Bravil Barrowfields patch by Vorians
If DataFileExists ("NBB.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "NicVBetterBeggars-BravilBarrowfields patch.esp"
    EndIf
EndIf
;==================================================================================
; Oblivion Collectible Cards - Unique Landscapes patches by David Brasher & Vorians
If DataFileExists ("Oblivion Collectible Cards.esp")
    If DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulCheydinhalFalls.esp") & DataFileExists ("xulSnowdale.esp")
        SelectEspm "OblivionCollectibleCards-UniqueLandscapes Merged patch.esp"
    Else
        If DataFileExists ("xulAncientYews.esp")
            SelectEspm "OblivionCollectibleCards-AncientYews patch.esp"
        EndIf
        If DataFileExists ("xulCheydinhalFalls.esp")
            SelectEspm "Oblivion Collectible Cards UL Cheydinhal Falls Patch.esp"
        EndIf
        If DataFileExists ("xulSnowdale.esp")
            SelectEspm "OblivionCollectibleCards-Snowdale patch.esp"
        EndIf
    EndIf
EndIf
;============================================================================
; Oblivion War Cry - New Dimension - Unique Landscapes patches by nanonashorn
If DataFileExists ("OWC - New Dimension.esp")
    If DataFileExists ("xulColovianHighlands_EV.esp")
        SelectEspm "OWC - ND UL Colovian Highlands Patch.esp"
    EndIf
    If DataFileExists ("xulArriusCreek.esp")
        SelectEspm "OWCND - UL Arrius Creek Patch.esp"
    EndIf
EndIf
;==================================================
; Oblivion Wine Overhaul- River Ethe patch by Chaky
If DataFileExists ("xulRiverEthe.esp")
    If DataFileExists ("Wine Overhaul.esp")
        SelectEspm "WineOverhaul-RiverEthe patch.esp"
    EndIf
    If DataFileExists ("Wine Overhaul Better Cities Patch.esp")
        If DataFileExists ("Wine Overhaul.esp")
            Cancel "Es wurden sowohl Wine Overhaul.esp als auch Wine Overhaul Better Cities Patch.esp erkannt. Bitte entferne eines der beiden und versuche es erneut."
        EndIf
        SelectEspm "WineOverhaulBC-RiverEthe patch.esp"
    EndIf
EndIf
;===========================================================
; Open Cities Classic - Chorrol Hinterland patch by Arthmoor
If DataFileExists ("Open Cities Classic.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "OCC-ULCH-Patch.esp"
    EndIf
EndIf
;=========================================================
; Open Cities Classic - Cheydinhal Falls patch by Arthmoor
If DataFileExists ("Open Cities Classic.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "OCC+Cheydinhal Falls Patch.esp"
    EndIf
EndIf
;==============================================================================
; Open Cities Classic - Unique Landscapes: Skingrad Outskirts patch by Arthmoor
If DataFileExists ("Open Cities Classic.esp")
    If DataFileExists ("xulSkingradOutskirts.esp")
        SelectEspm "OC+ULSkingradOutskirts Patch.esp"
    EndIf
EndIf
;========================================================
; Open Cities Reborn - Blackwood Forest patch by Arthmoor
If DataFileExists ("Open Cities Reborn.esp")
   If DataFileExists ("xulBlackwoodForest.esp")
        SelectEspm "OCR+ULBWForest Patch.esp"
        SelectSubPackage "02 OCR + Blackwood Forest Resources"
   EndIf
EndIf
;========================================================
; Open Cities Reborn - Cheydinhal Falls patch by Arthmoor
If DataFileExists ("Open Cities Reborn.esp")
   If DataFileExists ("xulCheydinhalFalls.esp")
       SelectEspm "OCR+Cheydinhal Falls Patch.esp"
   EndIf
EndIf
;==========================================================
; Open Cities Reborn - Chorrol Hinterland patch by Arthmoor
If DataFileExists ("Open Cities Reborn.esp")
   If DataFileExists ("xulChorrolHinterland.esp")
       SelectEspm "OCR+ULCH Patch.esp"
   EndIf
EndIf
;==========================================================
; Open Cities Reborn - Skingrad Outskirts patch by Arthmoor
If DataFileExists ("Open Cities Reborn.esp")
   If DataFileExists ("xulSkingradOutskirts.esp")
       SelectEspm "OCR+ULSkingradOutskirts Patch.esp"
   EndIf
EndIf
;=========================================================
; Orden des Drachen - Unique Landscapes patches by Vorians
If DataFileExists ("Orden des Drachen.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "OrdenDesDrachen-JerallGlacier patch.esp"
    EndIf
EndIf
If DataFileExists ("Orden des Drachen.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "OrdenDesDrachen-Snowdale patch.esp"
    EndIf
EndIf
;==============================================
; ORE Christmas Mod - Snowdale patch by Vorians
If DataFileExists ("OREChristmasMod.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "OREChristmasMod-Snowdale patch.esp"
    EndIf
EndIf
;================================================================
; Oscuro's Oblivion Overhaul - Cliffs of Anvil patch by Prettyfly
If DataFileExists ("Oscuro's_Oblivion_Overhaul.esm")
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "OOO-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;=============================================================
; Oscuro's Oblivion Overhaul - Jerall Glacier patch by Vorians
If DataFileExists ("Oscuro's_Oblivion_Overhaul.esp") | DataFileExists ("OOO.esp")
    If DataFileExists ("xulJerallGlacier.esp")
        SelectEspm "OOO-JerallGlacier patch.esp"
    EndIf
EndIf
;============================================================
; Oscuro's Oblivion Overhaul - Snowdale patch by Thomas Kaira
If DataFileExists ("Oscuro's_Oblivion_Overhaul.esp") | DataFileExists ("OOO.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "OOO-Snowdale Patch.esp"
    EndIf
EndIf
;===============================================
; Pine Lodge - Ancient Redwoods patches by Chaky
If DataFileExists ("Pine Lodge.esp")
    If DataFileExists ("xulAncientRedwoods.esp")
        SelectEspm "PineLodge-AncientRedwoods patch.esp"
    EndIf
Elif DataFileExists ("Pine Lodge ver2.esp")
    If DataFileExists ("xulAncientRedwoods.esp")
        SelectEspm "PineLodge2-AncientRedwoods patch.esp"
    EndIf
EndIf
;=================================================
; Quelldorf - Bravil Barrowfields patch by Vorians
If DataFileExists ("Quelldorf 1.5.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "Quelldorf-BravilBarrowfields patch.esp"
    EndIf
EndIf
;==============================================================
; Quelldorf Without Ship - Bravil Barrowfields patch by Vorians
If DataFileExists ("Quelldorf ohne Schiff1.5.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "QuelldorfWithoutShip-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=============================================
; Real Swords Nord - Snowdale patch by Vorians
If DataFileExists ("RealSwords Nord LO.esp") | DataFileExists ("RealSwords Nord LO-SI.esp") | DataFileExists ("RealSwords Nord HI.esp") | DataFileExists ("RealSwords Nord HI-SI.esp") | DataFileExists ("RealSwords Nord LO-NPC.esp") | DataFileExists ("RealSwords Nord LO-NPC SI.esp") | DataFileExists ("RealSwords Nord HI-NPC.esp") | DataFileExists ("RealSwords Nord HI-NPC SI.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "RealSwordsNord-Snowdale patch.esp"
    EndIf
EndIf
;=============================================================
; Reaper's Necomancer Tower - Cliffs of Anvil patch by Vorians
If DataFileExists ("Reaper's The Necromancer's Tower.esp")
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "ReapersNecomancerTower-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;===============================================================
; Reaper's The Dark Tower - Bravil Barrowfields patch by Vorians
If DataFileExists ("Reaper's The Dark Tower.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "ReapersTheDarkTower-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=====================================================
; Reaper's Waterfront - Imperial Isle patch by Vorians
If DataFileExists ("Reaper's Waterfront.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "ReapersWaterfront-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================================
; Reclaiming Sancre Tor - Unique Landscapes patches by Arthmoor
If DataFileExists ("ReclaimSancreTor.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "RST+Cheydinhal Falls.esp"
    EndIf
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "RST+Cliffs of Anvil.esp"
    EndIf
    If DataFileExists ("xulCloudtopMountains.esp")
        SelectEspm "RST+Cloudtop Mountains.esp"
    EndIf
    If DataFileExists ("xulSkingradOutskirts.esp")
        SelectEspm "RST+Skingrad Outskirts.esp"
    EndIf
EndIf
;====================================================
; Red Headed Gang - Cheydinhal Falls patch by Vorians
If DataFileExists ("Comp_Cecilia.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "RedHeadedGang-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Redcourt Castle - Unique Landscapes patches by Vorians
If DataFileExists ("RedcourtCastle v1_25.esp") | DataFileExists ("RedcourtCastleFREE v1_25.esp")
    If DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulRollingHills_EV.esp")
        SelectEspm "RedcourtCastle-UniqueLandscapes Merged patch.esp"
    Elif DataFileExists ("xulAncientYews.esp") & DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "RedcourtCastle-UniqueLandscapes Merged patch.esp"
    Elif DataFileExists ("xulAncientYews.esp")
        SelectEspm "RedcourtCastle-AncientYews patch.esp"
    Elif DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "RedcourtCastle-RollingHills patch.esp"
    EndIf
EndIf
;=============================================================
; Region Revive - Lake Rumare - Imperial Isle patch by Vorians
If DataFileExists ("Region Revive - Lake Rumare.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "RegionReviveLakeRumare-ImperialIsle patch.esp"
    EndIf
EndIf
;==============================================
; Rise Of A Samurai - Snowdale patch by Vorians
If DataFileExists ("Rise Of A Samurai.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "RiseOfASamurai-Snowdale patch.esp"
    EndIf
EndIf
;==================================================================================
; Saphirias Romance And The Djinnis Chamber - Arrius Creek patch by Eddy Kaschinski
If DataFileExists ("Dschinni.esp")
    If DataFileExists ("xulArriusCreek.esp")
        SelectEspm "Dschinni - UL Arrius Creek Patch.esp"
    EndIf
EndIf
;=================================================
; Seawatch Abode - The Lost Coast patch by Vorians
If DataFileExists ("Seawatch Abode.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "SeawatchAbode-LostCoast patch.esp"
    EndIf
EndIf
;===================================================
; Sentient Weapon II - Ancient Yews patch by Vorians
If DataFileExists ("SentientWeapon.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "SentientWeaponII-AncientYews patch.esp"
    EndIf
EndIf
;==========================================================
; Shezrie's Towns (Lakewood) - Aspen Wood patch by Arthmoor
If DataFileExists ("ShezriesTownsMaster.esp")
    If DataFileExists ("xulAspenWood.esp")
        SelectEspm "Lakewood+AspenWood Patch.esp"
    EndIf
EndIf
;===========================================
; Shipwreck Home - Lost Coast patch by Chaky
If DataFileExists ("AR.esp")
   If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
       If DataFileExists ("(DC) Sutch Reborn.esp")
           SelectEspm "ShipwreckHome-LostCoast-SutchReborn patch.esp"
       Else
           SelectEspm "ShipwreckHome-LostCoast patch.esp"
       EndIf
   EndIf
EndIf
;=======================================================
; Shivering Store - Bravil Barrowfields patch by Vorians
If DataFileExists ("SSS_1.0.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "ShiveringStore-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=======================================================
; Sides Sailing Ships - Cliffs Of Anvil patch by Vorians
If DataFileExists ("Side's Sailing Ships.esp")
    If DataFileExists ("xulCliffsOfAnvil.esp")
        SelectEspm "SideSailingShips-CliffsOfAnvil patch.esp"
    EndIf
EndIf
;============================================
; Silverfish Rilver Valley patches by Vorians
If DataFileExists ("xulSilverfishRiverValley.esp")
    If DataFileExists ("The Lost Spires.esp")
        If DataFileExists ("ImpeREAL Empire - Unique Forts.esp")
            SelectEspm "ImpeREAL Forts + Lost Spires + Silverfish River Patch.esp"
        Else
            SelectEspm "Lost Spires + Silverfish River Patch.esp"
        EndIf
    Elif DataFileExists ("ImpeREAL Empire - Unique Forts.esp")
        SelectEspm "ImpeREAL Forts + Silverfish River Patch.esp"
    EndIf
EndIf
;==================================================
; Skingrad Market - The Lost Coast patch by Vorians
If DataFileExists ("Skingrad Market 1.0.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "SkingradMarket-LostCoast patch.esp"
    EndIf
Elif DataFileExists ("Skingrad Market - MoC 1.0.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "SkingradMarketMoC-LostCoast patch.esp"
    EndIf
EndIf
;============================================
; Snow Line Lodge - Snowdale patch by Vorians
If DataFileExists ("Snow Line Lodge.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "SnowLineLodge-Snowdale patch.esp"
    EndIf
EndIf
;==============================================
; Spirit's Edge - Entius Gorge patch by Vorians
If DataFileExists ("Spirit's Edge.esp")
    If DataFileExists ("xulEntiusGorge.esp")
        SelectEspm "SpiritsEdge-EntiusGorge patch.esp"
    EndIf
EndIf
;==============================================
; Suliin - Bravil Barrowfields patch by Vorians
If DataFileExists ("Suliin V1.2.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "Suliin-BravilBarrowfields patch.esp"
    EndIf
EndIf
;=================================================
; Sutch Village - The Lost Coast patch by Arthmoor
If DataFileExists ("Sutch Village.esp")
    If DataFileExists ("xulBeachesOfCyrodiilLostCoast.esp")
        SelectEspm "LostCoast + SutchVillage Patch.esp"
    EndIf
EndIf
;=================================================
; Talos Gatehouse - Imperial Isle patch by Vorians
If DataFileExists ("TalosBridgeGateHouse.esp")
    If DataFileExists ("xulImperialIsle.esp")
        SelectEspm "TalosGatehouse + ULImperialIsle.esp"
    EndIf
EndIf
;=======================================================
; Tears of the Fiend - Cheydinhal Falls patch by Vorians
If DataFileExists ("TOTF.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "TearsOfTheFiend-CheydinhalFalls patch.esp"
    EndIf
EndIf
;==========================================================
; The Elder Council - Fallenleaf Everglade patch by Vorians
If DataFileExists ("TheElderCouncil.esp")
    If DataFileExists ("xulFallenleafEverglade.esp")
        SelectEspm "TheElderCouncil-FallenleafEverglade patch.esp"
    EndIf
EndIf
;================================================
; The Necromancer - Entius Gorge patch by Vorians
If DataFileExists ("TheNecromancer.esp")
    If DataFileExists ("xulEntiusGorge.esp")
        SelectEspm "TheNecromancer-EntiusGorge patch.esp"
    EndIf
EndIf
;===========================================================
; The Order Of Nibenay - Chorrol Hinterland patch By Vorians
If DataFileExists ("SoT_TheOrderofNibenay.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "TheOrderofNibenay-Chorrol Hinterland patch.esp"
    EndIf
EndIf
;====================================================================
; Tollingbrook Hollow Home - Silverfish River Valley patch by Vorians
If DataFileExists ("tollingbrookhollowhome.esp")
    If DataFileExists ("xulSilverfishRiverValley.esp")
        SelectEspm "TollingbrookHollowHome-SilverfishRiverValley patch.esp"
    EndIf
EndIf
;=============================================================
; Tona Simple Dress-Armor - Bravil Barrowfields patch by Chaky
If DataFileExists ("tona_simple_dress-armor_ver3.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SelectEspm "TonaSimpleDressArmor-BravilBarrowfields patch.esp"
    EndIf
EndIf
;========================================================
; Trails Of Cyrodiil - Unique Landscapes patches by Chaky
SetVarTOCMP = False  ;"TrailsOfCyrodiil-UL merged patch.esp"
SetVarTOCMPW = False ;"TrailsOfCyrodiilWest-UL merged patch.esp"
SetVarTOCMPC = False ;"TrailsOfCyrodiilCentral-UL merged patch.esp"
SetVarTOCP11 = False ;"TrailsOfCyrodiil-BravilBarrowfields patch.esp"
SetVarTOCP12 = False ;"TrailsOfCyrodiil-FallenleafEverglade Patch.esp"
SetVarTOCP21 = False ;"TrailsOfCyrodiil-CheydinhalFalls patch.esp"
SetVarTOCP31 = False ;"TrailsOfCyrodiil-PantherRiver patch.esp"
SetVarTOCP41 = False ;"TrailsOfCyrodiil-ChorrolHinterland patch.esp"
SetVarTOCP42 = False ;"TrailsOfCyrodiil-RiverEthe patch.esp"
SetVarTOCP43 = False ;"TrailsOfCyrodiil-SkingradOutskirts patch.esp"
SetVarTOC1 = False ;"Trail  Central.esp"
SetVarTOC2 = False ;"Trail  EAST.esp"
SetVarTOC3 = False ;"Trail  South East.esp"
SetVarTOC4 = False ;"Trail  WEST.esp"

bCentral = False
bEast = False
bSouthEast = False
bWest = False
bEveryWhere = False

If DataFileExists ("Trail  Central.esp")
    If DataFileExists ("xulBravilBarrowfields.esp")
        SetVarTOCP11 = True
    EndIf
    If DataFileExists ("xulFallenleafEverglade.esp")
        SetVarTOCP12 = True
    EndIf
EndIf
If SetVarTOCP11 & SetVarTOCP12 ;= True
    bCentral = True
EndIf

If DataFileExists ("Trail  EAST.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SetVarTOCP21 = True
        bEast = True
    EndIf
EndIf

If DataFileExists ("Trail  South East.esp")
    If DataFileExists ("xulPantherRiver.esp")
        SetVarTOCP31 = True
        bSouthEast = True
    EndIf
EndIf

If DataFileExists ("Trail  WEST.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SetVarTOCP41 = True
    EndIf
    If DataFileExists ("xulRiverEthe.esp")
        SetVarTOCP42 = True
    EndIf
    If DataFileExists ("xulSkingradOutskirts.esp")
        SetVarTOCP43 = True
    EndIf
EndIf
If SetVarTOCP41 & SetVarTOCP42 & SetVarTOCP43 ;= True
    bWest = True
EndIf

If bCentral & bEast & bSouthEast & bWest ;= True
    bEveryWhere = True
EndIf

If bEveryWhere ;= True
    SelectEspm "TrailsOfCyrodiil-UL merged patch.esp"
Else
    If SetVarTOCP11 ;= True
        SelectEspm "TrailsOfCyrodiil-BravilBarrowfields patch.esp"
    EndIf
    If SetVarTOCP12 ;= True
        SelectEspm "TrailsOfCyrodiil-FallenleafEverglade Patch.esp"
    EndIf
    If SetVarTOCP21 ;= True
        SelectEspm "TrailsOfCyrodiil-CheydinhalFalls patch.esp"
    EndIf
    If SetVarTOCP31 ;= True
        SelectEspm "TrailsOfCyrodiil-PantherRiver patch.esp"
    EndIf
    If SetVarTOCP41 ;= True
        SelectEspm "TrailsOfCyrodiil-ChorrolHinterland patch.esp"
    EndIf
    If SetVarTOCP42 ;= True
        SelectEspm "TrailsOfCyrodiil-RiverEthe patch.esp"
    EndIf
    If SetVarTOCP43 ;= True
        SelectEspm "TrailsOfCyrodiil-SkingradOutskirts patch.esp"
    EndIf

    If bCentral ;= True
        DeSelectEspm "TrailsOfCyrodiil-BravilBarrowfields patch.esp"
        DeSelectEspm "TrailsOfCyrodiil-FallenleafEverglade Patch.esp"
        SelectEspm "TrailsOfCyrodiilCentral-UL merged patch.esp"
    EndIf
    If bWest ;= True
        DeSelectEspm "TrailsOfCyrodiil-ChorrolHinterland patch.esp"
        DeSelectEspm "TrailsOfCyrodiil-RiverEthe patch.esp"
        DeSelectEspm "TrailsOfCyrodiil-SkingradOutskirts patch.esp"
        SelectEspm "TrailsOfCyrodiilWest-UL merged patch.esp"
    EndIf
EndIf
;=============================================================
; Treasure Maps: Captus Demus - Rolling Hills patch by Vorians
If DataFileExists ("treasure maps captus demus.esp")
    If DataFileExists ("xulRollingHills_EV.esp") | DataFileExists ("xulRollingHills_EV_withoutWheat.esp")
        SelectEspm "TreasureMapsCaptusDemus-RollingHills patch.esp"
    EndIf
EndIf
;================================================
; Tree Home - Chorrol Hinterland patch by Vorians
If DataFileExists ("TreeHomeKielanai.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "TreeHome-ChorrolHinterland patch.esp"
    EndIf
Elif DataFileExists ("TreeHomeKnIntLight.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "TreeHomeIntLight-ChorrolHinterland patch.esp"
    EndIf
EndIf
;===========================================================
; The Lost Province of Zedar - Ancient Yews patch by Vorians
If DataFileExists ("Zedar.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "Zedar-AncientYews patch.esp"
    EndIf
EndIf
;===============================================================================
; Abandoned Village of Lily - Arrius Creek/Ancient Yews link patch by Vorians
If DataFileExists ("Village of Lily 2.0.esp")
    If DataFileExists ("xulAncientYews.esp")
        If DataFileExists ("xulArriusCreek.esp")
            SelectEspm "VillageOfLily-xulPatch_AYAC patch.esp"
        EndIf
    EndIf
EndIf
;===================================================
; Unholy Cathedral - Blackwood Forest patch by Chaky
If DataFileExists ("Unholy Cathedral.esp")
    If DataFileExists ("xulBlackwoodForest.esp")
        SelectEspm "UnholyChatedral-BlackwoodForest patch.esp"
    EndIf
EndIf
;=============================================
; Villages - Cheydinhal Falls patch by Vorians
If DataFileExists ("Villages1.1.esp")
    If DataFileExists ("xulCheydinhalFalls.esp")
        SelectEspm "Villages-CheydinhalFalls patch.esp"
    EndIf
EndIf
;=======================================================
; Weynon Retreat - Chorrol Hinterland patch1 by Arthmoor
If DataFileExists ("WeynonRetreat.esp")
    If DataFileExists ("xulChorrolHinterland.esp")
        SelectEspm "WeynonRetreat-ChorrolHinterland-Patch.esp"
    EndIf
EndIf
;=============================================
; White Rose Lodge - Snowdale patch by Vorians
If DataFileExists ("WhiteRoseLodgev2.0.esp")
    If DataFileExists ("xulSnowdale.esp")
        SelectEspm "WhiteRoseLodge-Snowdale patch.esp"
    EndIf
EndIf
;=================================================
; Valley View Estate - River Ethe patch by Vorians
If DataFileExists ("Valley_View_Estate.esp")
    If DataFileExists ("xulRiverEthe.esp")
        SelectEspm "ValleyViewEstate-RiverEthe patch.esp"
    EndIf
EndIf
;====================================================
; Waldnir's Woods - Ancient Redwoods patch by Vorians
If DataFileExists ("FF_WaldnirsWoods.esp")
    If DataFileExists ("xulAncientRedwoods.esp")
        SelectEspm "WaldnirsWoods-AncientRedwoods patch.esp"
    EndIf
EndIf
;===================================================
; Windspear Tower - Stendarr Valley patch by Vorians
If DataFileExists ("aaaWindSpear.esp")
    If DataFileExists ("xulStendarrValley.esp")
        SelectEspm "WindspearTower-StendarrValley compatibility patch.esp"
    EndIf
EndIf
;===================================================
; Z's Skeleton Horse - Ancient Yews patch by Vorians
If DataFileExists ("Z's Skeleton Horse.esp")
    If DataFileExists ("xulAncientYews.esp")
        SelectEspm "ZSkeletonHorse-AncientYews patch.esp"
    EndIf
EndIf
;;;=======================;;;
;;; Notes on Final Screen ;;;
;;;=======================;;;
Note "Sortiere deine Mods mit BOSS um sicherzustellen, dass die Patches in deiner Ladereihenfolge richtig platziert werden."
Note "Vergiss nicht, TES4LODGen auszuführen damit die korrekten LOD Objekte generiert werden."
Note "Die Readmes der einzelnen Patches findest du im Verzeichnis Oblivion\\Data\\Docs\\UL Patches Documentation."
Note "Aktiviere die beiden Kästchen unterhalb dieses Feldes und klicke auf Finish."
;End of Script