1 items

File information

Last updated

Original upload

Created by

Blorgg

Uploaded by

Blorgg

Virus scan

Safe to use

Tags for this mod

About this mod

This is a bash script for Linux users who manually install .esp mods and need to generate a Plugins.txt file.

Share
Permissions and credits
Using a mod manager is the way to go, but if you need or want to mod manually then this script may help.

For each .esm and .esp mod that you add you need to add a line to the Plugins.txt file. This file is located inside of the Data directory which also contains the .esp and .esm mod files. The Plugins.txt file should contain the vanilla Oblivion Remastered mods as well any mods that you manually add yourself. However there are two vanilla mods that should never be included in the Plugins.txt file.

This script takes care of all of this by generating a brand new Plugins.txt file that follows the above rules. Extract  WritePluginsTXT.sh from the zip file and place it in the Data directory e.g. steamapps/common/Oblivion Remastered/OblivionRemastered/Content/Dev/ObvData/Data

Make the script executable so you can run it. You can do this via the command prompt with: chmod +x WritePluginsTXT.sh
or by using the file manager that comes with your Linux installation. Usually it's right-click -> properties and go from there.

Then run the WritePluginsTXT.sh either by double clicking it and choosing: execute
Or use the command prompt and type: ./WritePluginsTXT.sh
Feel free to use and modify this script however you like. No need to ask for permission.

For convenience the entire contents of the WritePluginsTXT.sh is listed below:
#! /usr/bin/bash

# This scripts generates a Plugins.txt file for Oblivion Remastered based on which .esm en .esp files it detects.
# Run this script from inside the Data directory of Oblivion Remastered.
# e.g. steamapps/common/Oblivion Remastered/OblivionRemastered/Content/Dev/ObvData/Data

# remove Plugins.txt file if it exists. We always want to generate a fresh file.
if [ -f "Plugins.txt" ]; then
rm -f Plugins.txt
fi

# add the default Plugins.txt file
cat >> Plugins.txt<< EOF
Oblivion.esm
DLCBattlehornCastle.esp
DLCFrostcrag.esp
DLCHorseArmor.esp
DLCMehrunesRazor.esp
DLCOrrery.esp
DLCShiveringIsles.esp
DLCSpellTomes.esp
DLCThievesDen.esp
DLCVileLair.esp
Knights.esp
AltarESPMain.esp
AltarDeluxe.esp
AltarESPLocal.esp
EOF

# These vanilla Oblivion Remastered plugins should never be included in the Plugins.txt file
excluded=(AltarGymNavigation.esp TamrielLeveledRegion.esp)

# do directory listing and add plugins to the Plugins.txt file if they aren't already included.
# first .esm files.
for f in *.esm; do
if ! [[ ${excluded
  • } =~ (^|[[:space:]])$f($|[[:space:]]) ]]; then
      grep -qxF "$f" Plugins.txt || echo "$f" >> Plugins.txt
    fi
    done

    # then .esp files.
    for f in *.esp; do
    if ! [[ ${excluded
  • } =~ (^|[[:space:]])$f($|[[:space:]]) ]]; then


  grep -qxF "$f" Plugins.txt || echo "$f" >> Plugins.txt
fi
done

exit 1