-
Notifications
You must be signed in to change notification settings - Fork 1
/
patch_files.sh
executable file
·31 lines (26 loc) · 1.29 KB
/
patch_files.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
export WINEPREFIX=$HOME/.wine
GAMEPATH=$WINEPREFIX/drive_c/Program\ Files\ \(x86\)/Sony/EverQuest
P99FILE=P99Files57.zip
# Renaming files
mv -v "${GAMEPATH}/Resources/loadscreen.JPG" "${GAMEPATH}/Resources/loadscreen.jpg"
mv -v "${GAMEPATH}/DSETUP.dll" "${GAMEPATH}/dsetup.dll"
# Move post Velious musics in a new folder
mkdir -v "${GAMEPATH}/post-velious-musics"
mv -v "${GAMEPATH}/eqtheme.mp3 ${GAMEPATH}/combattheme1.mp3 ${GAMEPATH}/combattheme2.mp3 ${GAMEPATH}/deaththeme.mp3" -t "${GAMEPATH}/post-velious-musics/"
# Patching the game for Project1999
wget https://www.project1999.com/files/${P99FILE}
unzip -fov ${P99FILE} -d "${GAMEPATH}"
rm -vf ${P99FILE}
# compiling p99-login-middlemand and rewriting eqhost.txt to use it
git submodule init
git submodule update
make -C ./p99-login-middlemand
echo -e "[LoginServer]\nHost=localhost:5998" > ${GAMEPATH}/eqhost.txt
# Cool ascii-art because why not ?
echo -e "\n\033[0;36m _____ _ _ ___ ___ ___ ___ \033[0m"
echo -e "\033[0;36m| _ |___ ___ |_|___ ___| |_|_ | | . | . | . |\033[0m"
echo -e "\033[0;36m| __| _| . | | | -_| _| _|_| |_|_ |_ |_ |\033[0m"
echo -e "\033[0;36m|__| |_| |___|_| |___|___|_| |_____|___|___|___|\033[0m"
echo -e "\033[0;36m |___|\033[0m"
echo -e "\n\033[0;32mDONE !\033[0m"