Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Use the dotnet runtime instead of the SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
PercentBoat4164 committed Jan 4, 2022
1 parent b345d48 commit 1625046
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
20 changes: 8 additions & 12 deletions HorizonZeroDawnDowngradeScript.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh

#todo Use snap for dotnet-runtime-60 instead of dotnet-sdk.
#todo Use above change to not require any root permissions (unless a package must be fetched).

HORIZON_ZERO_DAWN_DIRECTORY="$HOME/.steam/debian-installation/steamapps/common/Horizon Zero Dawn" # Default Horizon Zero Dawn install directory.
REQUIRED_APT_PACKAGES="wget unzip snapd" # Used to store all tools needed from apt
PACKAGES_TO_FETCH="" # Used to store all tools that need to be installed, used, then removed.
Expand All @@ -27,10 +24,10 @@ then
fi

# Install the dotnet-sdk to run the DepotDownloader.dll file if it is not already there.
DOTNET_SDK_INSTALLED=$(snap list | grep dotnet-sdk)
if [ -z "$DOTNET_SDK_INSTALLED" ]
DOTNET_RUNTIME_INSTALLED=$(snap list | grep dotnet-sdk)
if [ -z "$DOTNET_RUNTIME_INSTALLED" ]
then
sudo snap install dotnet-sdk --classic
sudo snap install dotnet-runtime-60 --classic
fi

# Download DepotDownloader
Expand Down Expand Up @@ -70,9 +67,8 @@ echo "Using directory $HORIZON_ZERO_DAWN_DIRECTORY as Horizon Zero Dawn install

# Perform downloads
clear
sudo dotnet depotDownloader/DepotDownloader.dll -app 1151640 -depot 1151642 -manifest 2110572734960666938 -username "$USERNAME" -password "$PASSWORD" -filelist 1151642.txt
sudo dotnet depotDownloader/DepotDownloader.dll -app 1151640 -depot 1151641 -manifest 8564283306590138028 -username "$USERNAME" -password "$PASSWORD" -filelist 1151641.txt
chmod 777 depots
dotnet-runtime-60.dotnet depotDownloader/DepotDownloader.dll -app 1151640 -depot 1151642 -manifest 2110572734960666938 -username "$USERNAME" -password "$PASSWORD" -filelist 1151642.txt
dotnet-runtime-60.dotnet depotDownloader/DepotDownloader.dll -app 1151640 -depot 1151641 -manifest 8564283306590138028 -username "$USERNAME" -password "$PASSWORD" -filelist 1151641.txt

# Copy files to Horizon Zero Dawn install directory
clear
Expand All @@ -86,16 +82,16 @@ clear
echo "Cleaning up..."

# Remove files that are no longer needed.
sudo rm -rf depotDownloader depots 1151641.txt 1151642.txt depotdownloader-2.4.5.zip
rm -rf depotDownloader depots 1151641.txt 1151642.txt depotdownloader-2.4.5.zip

# Uninstall packages that were installed by this script.
if [ -z "$PACKAGES_TO_FETCH" ]
then
sudo apt -y remove $PACKAGES_TO_FETCH
fi
if [ -z "$DOTNET_SDK_INSTALLED" ]
if [ -z "$DOTNET_RUNTIME_INSTALLED" ]
then
sudo snap remove dotnet-sdk
sudo snap remove dotnet-runtime-60
fi

# Finish
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ A bash shell script that downgrades Steam's Horizon Zero Dawn to the 1.10 Hotfix

### Running the script
To run this script:
1. Download the code, latest release file, or just the *.sh file.
2. Open a terminal and naviagte to the location that you saved the file.
3. Type in `bash HorizonZeroDawnDowngradeScript.sh`.
4. Follow the on-screen instructions from there.
1. Download the code, or the latest release file.
2. Extract the *.sh file.
3. Open a terminal and navigate to the location that you saved the file.
4. Type in `bash HorizonZeroDawnDowngradeScript.sh`.
5. Follow the on-screen instructions from there.

### Restoring Horizon Zero Dawn to the latest version
If you wish to restore Horizon Zero Dawn back to the latest version:
Expand Down

0 comments on commit 1625046

Please sign in to comment.