An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
Linux: Morrowind found in any Steam library, from libraryfolders.vdf
Alan Saunders5326ec590721
diff --git a/isowind/README.txt b/isowind/README.txtindex f3facd5..7b921ce 100644--- a/isowind/README.txt+++ b/isowind/README.txt@@ -28,9 +28,10 @@ On Linux, unpack the folder and use isowind.sh instead of Isowind.exe, from a te./isowind.sh new start a new character./isowind.sh host run a server in that terminal (it asks its settings first)./isowind.sh gui a launcher window like Isowind.exe (also what a file manager opens)- The first time it finds Morrowind in Steam's usual places and sets up OpenMW for it; otherwise run it as- MORROWIND=/path/to/Morrowind ./isowind.sh (the folder with "Data Files" in it). The pixel art look- needs Python 3; it fetches Pillow for itself if your system doesn't have it.+ The first time it finds Morrowind in your Steam libraries (other drives and a Steam Deck's SD card+ too) and sets up OpenMW for it; otherwise run it as MORROWIND=/path/to/Morrowind ./isowind.sh (the+ folder with "Data Files" in it). The pixel art look needs Python 3; it fetches Pillow for itself if+ your system doesn't have it.Your saves are shared with any normal OpenMW you have.diff --git a/isowind/linux/isowind-launcher.py b/isowind/linux/isowind-launcher.pyindex 85a5e69..be008da 100755--- a/isowind/linux/isowind-launcher.py+++ b/isowind/linux/isowind-launcher.py@@ -554,7 +554,7 @@ class Launcher(tk.Tk, Styled):character = self.remember_pick()self.launch(['join', address] + ([character['save']] if character else []))- # The Morrowind folder, for when it isn't where isowind.sh looks (Steam's usual places)+ # The Morrowind folder, for when it isn't where isowind.sh looks (Steam's libraries)def on_morrowind_folder(self):folder = filedialog.askdirectory(parent=self, title='The folder Morrowind is installed in (with "Data Files")',initialdir=read_file(MORROWIND_FILE) or os.path.expanduser('~'))diff --git a/isowind/linux/isowind.sh b/isowind/linux/isowind.shindex 94fed8c..17f1804 100755--- a/isowind/linux/isowind.sh+++ b/isowind/linux/isowind.sh@@ -15,8 +15,9 @@## The menus are made for a controller while one is used, and Morrowind's own while the mouse is: the game picks.#-# The first time, it finds Morrowind (Steam's usual places; otherwise run it as MORROWIND=/path/to/Morrowind-# ./isowind.sh, the folder with "Data Files" and Morrowind.ini) and sets up OpenMW for it, like OpenMW's wizard.+# The first time, it finds Morrowind (in Steam's libraries, those on other drives and a Steam Deck's SD card too;+# otherwise run it as MORROWIND=/path/to/Morrowind ./isowind.sh, the folder with "Data Files" and Morrowind.ini) and+# sets up OpenMW for it, like OpenMW's wizard.# The pixel art look builds its textures from your Morrowind files the first time (needs Python 3 with Pillow).set -eROOT=$(cd "$(dirname "$0")" && pwd)@@ -28,15 +29,34 @@ TEXTURES_MARKER="$ROOT/pixelart/textures/isowind-generated.txt"die() { echo "Isowind: $*" >&2; exit 1; }+# Steam's libraries, one a line: each Steam's own (native, Flatpak), then the others its libraryfolders.vdf lists, on+# other drives or a Steam Deck's SD card+steam_libraries() {+ for steam in "$HOME/.steam/steam" "$HOME/.local/share/Steam" \+ "$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam"; do+ echo "$steam"+ for vdf in "$steam/steamapps/libraryfolders.vdf" "$steam/config/libraryfolders.vdf"; do+ # Lines like "path" "/run/media/mmcblk0p1" (a backslash in a path is doubled)+ if [ -f "$vdf" ]; then+ sed -n 's/^[[:space:]]*"path"[[:space:]]*"\(.*\)"[[:space:]]*$/\1/p' "$vdf" | sed 's/\\\\/\\/g'+ fi+ done+ done+}+setup_morrowind() {grep -qix 'content=Morrowind.esm' "$CFG" 2>/dev/null && returnMW=""- for d in "$MORROWIND" \- "$HOME/.steam/steam/steamapps/common/Morrowind" \- "$HOME/.local/share/Steam/steamapps/common/Morrowind" \- "$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Morrowind"; do- if [ -n "$d" ] && [ -f "$d/Data Files/Morrowind.esm" ]; then MW=$d; break; fi- done+ if [ -n "$MORROWIND" ] && [ -f "$MORROWIND/Data Files/Morrowind.esm" ]; then+ MW=$MORROWIND+ else+ MW=$(steam_libraries | while IFS= read -r lib; do+ if [ -f "$lib/steamapps/common/Morrowind/Data Files/Morrowind.esm" ]; then+ echo "$lib/steamapps/common/Morrowind"+ break+ fi+ done)+ fi[ -n "$MW" ] || die "can't find Morrowind. Run again as: MORROWIND=/path/to/Morrowind $0(the folder that has 'Data Files' and Morrowind.ini in it)"echo "Setting up OpenMW for Morrowind in $MW"