From fca2dcc548a24252b20b8f10c9ad9eb400a8402f Mon Sep 17 00:00:00 2001 From: sapphiria39 Date: Thu, 25 Apr 2024 23:29:20 -0500 Subject: [PATCH 1/2] Add Starfield support --- README.md | 1 + gamesinfo/starfield.sh | 12 ++++++++++++ step/download_external_resources.sh | 2 +- step/select_game.sh | 1 + workarounds/starfield.sh | 10 ++++++++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 gamesinfo/starfield.sh create mode 100644 workarounds/starfield.sh diff --git a/README.md b/README.md index dd08565..f6b4d1b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ The following is a small overview of the current state of each supported game: | Oblivion | working | [some plugins might require manual setup](https://github.com/rockerbacon/lutris-skyrimse-installers/issues/63#issuecomment-643690247) | not tested | | Skyrim | working | working | working | | Skyrim Special Edition | working | working | not tested | +| Starfield | working (Proton 9.0+) | working | not tested | For known bugs and necessary workarounds, please refer to the [issues page](https://github.com/rockerbacon/lutris-skyrimse-installers/issues?q=is:issue+is:open+label:bug+) diff --git a/gamesinfo/starfield.sh b/gamesinfo/starfield.sh new file mode 100644 index 0000000..f5f9ae5 --- /dev/null +++ b/gamesinfo/starfield.sh @@ -0,0 +1,12 @@ +game_steam_subdirectory="Starfield" +game_nexusid="starfield" +game_appid=1716740 +game_executable="Starfield.exe" +game_protontricks=("xaudio2_7=native") +game_scriptextender_url="https://sfse.silverlock.org/download/sfse_0_2_6.7z" +game_scriptextender_files=( \ + "sfse_0_2_6/sfse_1_10_32.dll" \ + "sfse_0_2_6/sfse_loader.exe" \ +) +game_mo2_url="https://github.com/ModOrganizer2/modorganizer/releases/download/v2.5.0/Mod.Organizer-2.5.0.7z" + diff --git a/step/download_external_resources.sh b/step/download_external_resources.sh index b6ef098..ebb689f 100644 --- a/step/download_external_resources.sh +++ b/step/download_external_resources.sh @@ -5,7 +5,7 @@ extract="$utils/extract.sh" jdk_url='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip' -mo2_url='https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z' +mo2_url="${game_mo2_url:-https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z}" winetricks_url='https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks' diff --git a/step/select_game.sh b/step/select_game.sh index 268e04a..5fa7ba5 100644 --- a/step/select_game.sh +++ b/step/select_game.sh @@ -27,6 +27,7 @@ selected_game=$( \ "skyrim" "Skyrim" \ "skyrimspecialedition" "Skyrim Special Edition" \ "skyrimvr" "Skyrim VR" \ + "starfield" "Starfield"\ ) if [ -z "$selected_game" ]; then diff --git a/workarounds/starfield.sh b/workarounds/starfield.sh new file mode 100644 index 0000000..1533275 --- /dev/null +++ b/workarounds/starfield.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +sfse_config_dir="$game_installation/Data/SFSE" + +mkdir -p "$sfse_config_dir" + +cat << EOT >> "$sfse_config_dir/SFSE.ini" +[Loader] +RuntimeName=_Starfield.exe +EOT From b5b8f331ab0d9324f03122aa61fb68ac7fa4f7b0 Mon Sep 17 00:00:00 2001 From: sapphiria39 Date: Sat, 11 May 2024 14:06:25 -0500 Subject: [PATCH 2/2] Reverted MO2 changes --- README.md | 2 +- gamesinfo/starfield.sh | 1 - step/download_external_resources.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f6b4d1b..e0f66d5 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ The following is a small overview of the current state of each supported game: | Oblivion | working | [some plugins might require manual setup](https://github.com/rockerbacon/lutris-skyrimse-installers/issues/63#issuecomment-643690247) | not tested | | Skyrim | working | working | working | | Skyrim Special Edition | working | working | not tested | -| Starfield | working (Proton 9.0+) | working | not tested | +| Starfield | working | working | not tested | For known bugs and necessary workarounds, please refer to the [issues page](https://github.com/rockerbacon/lutris-skyrimse-installers/issues?q=is:issue+is:open+label:bug+) diff --git a/gamesinfo/starfield.sh b/gamesinfo/starfield.sh index f5f9ae5..6bf211c 100644 --- a/gamesinfo/starfield.sh +++ b/gamesinfo/starfield.sh @@ -8,5 +8,4 @@ game_scriptextender_files=( \ "sfse_0_2_6/sfse_1_10_32.dll" \ "sfse_0_2_6/sfse_loader.exe" \ ) -game_mo2_url="https://github.com/ModOrganizer2/modorganizer/releases/download/v2.5.0/Mod.Organizer-2.5.0.7z" diff --git a/step/download_external_resources.sh b/step/download_external_resources.sh index ebb689f..b6ef098 100644 --- a/step/download_external_resources.sh +++ b/step/download_external_resources.sh @@ -5,7 +5,7 @@ extract="$utils/extract.sh" jdk_url='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u312-b07/OpenJDK8U-jre_x64_windows_hotspot_8u312b07.zip' -mo2_url="${game_mo2_url:-https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z}" +mo2_url='https://github.com/ModOrganizer2/modorganizer/releases/download/v2.4.4/Mod.Organizer-2.4.4.7z' winetricks_url='https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks'