Created
January 3, 2022 17:54
-
-
Save sayotte/1d6cdc6a2eb23fa2bd9d9ebfd73a2631 to your computer and use it in GitHub Desktop.
Setup UORenaissance on Ubuntu 20.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Tested on Ubuntu 20.04 on 03 January 2022 | |
# Purge Ubuntu-provided wine packages | |
sudo apt remove -y wine wine32 wine64 winetricks libwine | |
sudo apt autoremove -y | |
# Setup WineHQ apt repo | |
sudo dpkg --add-architecture i386 | |
wget -nc https://dl.winehq.org/wine-builds/winehq.key | |
gpg --no-default-keyring --keyring=winehq.key.gpg --import winehq.key | |
sudo install -m 644 -o root -g root winehq.key.gpg /usr/share/keyrings/ | |
printf 'deb [signed-by=/usr/share/keyrings/winehq.key.gpg] https://dl.winehq.org/wine-builds/ubuntu/ focal main\n' | sudo tee /etc/apt/sources.list.d/winehq.list | |
sudo apt update | |
# Install Wine / winetricks from WineHQ | |
sudo apt install --install-recommends winehq-stable | |
# Create a WINEPREFIX; if the install gets horked you can blow this away and | |
# start over without trashing your other WINEPREFIXes | |
mkdir ~/ultima | |
cd ~/ultima | |
export WINEPREFIX=`pwd` | |
# Download and unpack the installer | |
mkdir -p drive_c/unzip | |
pushd drive_c/unzip | |
wget http://www.uorenaissance.com/downloads/launcher/UORLauncherLite.zip | |
unzip UORLauncherLite.zip | |
# Run the UORLauncher | |
wine UORLauncherLite.exe | |
# NOTE: the installer will complain about wine-mono being missing, and offer to | |
# install it for you. Click "Install". It'll also do this for Gecko (an HTML | |
# rendering engine), click "Install" for that too. | |
# | |
# The Launcher window may not pop up after those installs, even though they | |
# complete successfully. Run it again, and it should come up. | |
# | |
# Click the "Install/Verify" button and let it download UO:R. | |
## Run the OSI client | |
#popd | |
#pushd drive_c/UORenaissance | |
#wine client_noenc.exe | |
## The client runs! | |
# | |
## Run the CUO client | |
#popd | |
#pushd drive_c/UORenaissance/ClassicUO | |
#bash ClassicUO | |
## The client runs, but complains about an invalid client config | |
## (it can't find client.exe, probably because it's not in the canonical location?). | |
## This can be overcome by hand-editing settings.json, which would probably yield a | |
## working Wine install, but I chose to push towards getting everything working | |
## with native mono ... see below | |
# Download latest ClassicUO | |
wget https://www.classicuo.eu/launcher/linux-x64/ClassicUOLauncher-linux-x64-release.zip | |
unzip ClassicUOLauncher-linux-x64-release.zip | |
./ClassicUOLauncher | |
# Create a profile with path to UltimaOnline as: /home/USERNAME/ultima/drive_c/UORenaissance/ | |
# Exit the ClassicUOLauncher | |
# Download Razor | |
wget https://github.com/markdwags/Razor/releases/download/v1.7.2.25/Razor-v1.7.2.25.zip | |
mkdir -p ClassicUO/Data/Plugins/Razor | |
pushd ClassicUO/Data/Plugins/Razor | |
unzip ~/ultima/Razor-v1.7.2.25.zip | |
popd | |
# Re-run ClassicUOLauncher | |
# Click the gear icon next to the profile selector to edit the profile | |
# Select the previously created profile in the left-bar of the profile-editor dialog | |
# Select the "Plugins" tab at the top of the right-pane | |
# Check the box next to "Razor/Razor.exe" | |
# Click "Save profile" | |
# Click "BACK" | |
# Click "PLAY!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment