Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions PSBBN-Definitive-Patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,6 @@ check_dep(){
check_cmd bc
check_cmd rsync
check_cmd curl
check_cmd zip
check_cmd unzip
check_cmd wget
check_cmd ffmpeg
check_cmd lvm
check_cmd timeout
Expand All @@ -540,7 +537,7 @@ check_dep(){
check_cmd bchunk
check_cmd pkg-config
check_cmd ffmpegthumbnailer
check_cmd unrar-free
check_cmd bsdtar
check_cmd dmsetup

if ! pkg-config --exists icu-i18n 2>/dev/null; then
Expand Down Expand Up @@ -916,7 +913,7 @@ else
if [[ -n "$psbbn_version" || -n $osdmenu_version || -n "$LANG_VER" || -n "$CHAN_VER" ]]; then

HTML_FILE=$(mktemp)
timeout 20 wget -O "$HTML_FILE" "$URL" -o - >> "$LOG_FILE" 2>&1
curl -sSL -m 20 -o "$HTML_FILE" "$URL" >> "$LOG_FILE" 2>&1

if [[ -n "$psbbn_version" ]]; then
get_latest_file "psbbn-definitive-patch" "PSBBN Definitive Patch"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ For the best experience, a PS2 Fat model (SCPH-30000 to SCPH-55000 series) is re
The **PSBBN Definitive Project** requires an x86-64 or ARM64 PC for installation. Connect the HDD or SSD to the PC via SATA or a USB adapter.

## Installing on Linux
64-bit Debian-based distributions using `apt`, Arch-based distributions using `pacman`, and Fedora-based[*](#troubleshooting) distributions using `dnf` are supported. Nix-based systems are also supported via flakes. Recommended distributions are Linux Mint, Debian, and for Raspberry Pi, Raspberry Pi OS.
64-bit Debian-based distributions using `apt`, Arch-based distributions using `pacman`, Fedora-based[*](#troubleshooting) distributions using `dnf`, and Gentoo-based distributions using `emerge` are supported. Nix-based systems are also supported via flakes. Recommended distributions are Linux Mint, Debian, and for Raspberry Pi, Raspberry Pi OS.

**The PSBBN Definitive Project is a rolling release. To get automatic updates and the latest bug fixes, you must install the scripts using `git clone`.**

Expand Down Expand Up @@ -1153,7 +1153,7 @@ The full readme can be found [here](https://github.com/pcm720/OSDMenu/blob/main/
**Warning: Manually creating new APA partitions on your PS2 drive and exceeding the allocated space for APA will corrupt the drive.**

## Early (SCPH-10000–18000) and Slim (SCPH-700xx) Consoles
The **PSBBN Definitive Project** can be installed on PS2 Slim **SCPH-700xx** models with an [IDE Resurrector](https://gusse.in/shop/ps2-modding-parts/ide-resurrector-origami-v0-7-flex-cable-for-ps2-slim-spch700xx/) or similar hardware mod. Installing to an SD card is not supported on Windows. For PSBBN compatibility, an SATA adapter must be used, such as the [iFlash-Sata v10](https://www.iflash.xyz/store/iflash-sata-v10/).
The **PSBBN Definitive Project** can be installed on PS2 Slim **SCPH-700xx** models with an [IDE Resurrector](https://gusse.in/shop/ps2-modding-parts/ide-resurrector-origami-v0-7-flex-cable-for-ps2-slim-spch700xx/) or similar hardware mod. Installing to an SD card is not supported on Windows. For PSBBN compatibility, a SATA adapter must be used, such as the [iFlash-Sata v10](https://www.iflash.xyz/store/iflash-sata-v10/).

You must also download the [External HDD Drivers](https://israpps.github.io/FreeMcBoot-Installer/test/8_Downloads.html). Extract the files and place `hddload.irx`, `dev9.irx`, and `atad.irx` in the appropriate system folder for your region on an **official Sony PS2 Memory Card**:

Expand Down
6 changes: 3 additions & 3 deletions scripts/Extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1395,10 +1395,10 @@ option_three() {
if [ "$OS" = "PSBBN" ]; then
# Download the HTML of the page
HTML_FILE=$(mktemp)
timeout 20 wget -O "$HTML_FILE" "$URL" -o - >> "$LOG_FILE" 2>&1 &
WGET_PID=$!
curl -sSL -m 20 -o "$HTML_FILE" "$URL" >> "$LOG_FILE" 2>&1 &
CURL_PID=$!

spinner $WGET_PID "${UI_TEXT[CHANGE_LANGUAGE_10]}"
spinner $CURL_PID "${UI_TEXT[CHANGE_LANGUAGE_10]}"

get_latest_file "language-pak-$lang" "$LANG_DISPLAY ${UI_TEXT[CHANGE_LANGUAGE_11]}" || return 1
downoad_latest_file "language-pak-$lang" || return 1
Expand Down
49 changes: 23 additions & 26 deletions scripts/Game-Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,8 @@ process_psu_files() {
}

POPS_PATCH_DL() {
wget -O "$ASSETS_DIR/Hugopocked_POPStarter_Fixes.rar" "$(
wget -qO- 'https://www.mediafire.com/file/rznkr05pci45w5p/Hugopocked_POPStarter_Fixes_%25282023-08-11%2529.rar/file' \
| grep -o 'https://download[^"]*Hugopocked+POPStarter+Fixes+%282023-08-11%29.rar' | head -n1)"

unrar-free x "${ASSETS_DIR}/Hugopocked_POPStarter_Fixes.rar" "$ASSETS_DIR"
curl -sSL -o "$ASSETS_DIR/Hugopocked_POPStarter_Fixes.rar" "$(curl -sL 'https://www.mediafire.com/file/rznkr05pci45w5p/Hugopocked_POPStarter_Fixes_%25282023-08-11%2529.rar/file' | grep -oE 'https://download[^\"]+' | head -n1)"
bsdtar -xf "${ASSETS_DIR}/Hugopocked_POPStarter_Fixes.rar" -C "$ASSETS_DIR"
}

CREATE_PS1_VMC() {
Expand Down Expand Up @@ -920,7 +917,7 @@ install_pops() {
if [[ -f "${ASSETS_DIR}/POPS-binaries-main.zip" && ! -f "${ASSETS_DIR}/POPS-binaries-main.zip.st" ]]; then
echo | tee -a "${LOG_FILE}"
echo "POPS-binaries-main.zip found in ${ASSETS_DIR}. Extracting..." >> "${LOG_FILE}"
if ! unzip -o "${ASSETS_DIR}/POPS-binaries-main.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1; then
if ! bsdtar -xf "${ASSETS_DIR}/POPS-binaries-main.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1; then
echo "[!] Warning: Failed to extract POPS binaries." >> "${LOG_FILE}"
error_msg "Warning" "${UI_TEXT[WARN_INSTALL_POPS_1]}"
fi
Expand All @@ -932,7 +929,7 @@ install_pops() {
echo "[!] Warning: Failed to download POPS binaries." >> "${LOG_FILE}"
error_msg "Warning" "Failed to download POPS binaries."
fi
if ! unzip -o "${ASSETS_DIR}/POPS-binaries-main.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1; then
if ! bsdtar -xf "${ASSETS_DIR}/POPS-binaries-main.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1; then
error_msg "Warning" "${UI_TEXT[WARN_INSTALL_POPS_2]}"
fi
fi
Expand Down Expand Up @@ -1431,7 +1428,7 @@ APP_ART() {
echo "Created: ${SCRIPTS_DIR}/tmp/${pp_name}/jkt_001.png" >> "${LOG_FILE}"
elif [ ! -s "$png_file" ]; then
echo "Artwork not found locally for $APP_ID. Attempting to download from the PSBBN art database..." >> "${LOG_FILE}"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file" \
curl -s -m 10 --retry 3 -o "$png_file" \
"https://raw.githubusercontent.com/CosmicScale/psbbn-art-database/main/apps/${APP_ID}.png"

if [[ -s "$png_file" ]]; then
Expand Down Expand Up @@ -1706,15 +1703,15 @@ create_game_assets() {
if [[ -f "$png_file" ]]; then
echo "Artwork for $game_id already exists. Skipping download." >> "${LOG_FILE}"
else
# Attempt to download artwork using wget
# Attempt to download artwork using curl
echo -n "Artwork not found locally. Attempting to download from the PSBBN art database..." >> "${LOG_FILE}"
echo >> "${LOG_FILE}"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file" \
curl s -m 10 --retry 3 -o "$png_file" \
"https://raw.githubusercontent.com/CosmicScale/psbbn-art-database/main/art/${game_id}.png"
if [[ -s "$png_file" ]]; then
echo "[✓] Successfully downloaded artwork for $game_id" >> "${LOG_FILE}"
else
# If wget fails, run the art downloader
# If curl fails, run the art downloader
[[ -f "$png_file" ]] && rm -f "$png_file"
echo "Trying IGN for $game_id" >> "${LOG_FILE}"
"${HELPER_DIR}/art_downloader.py" "$game_id" 2>&1 >> "${LOG_FILE}"
Expand Down Expand Up @@ -1782,14 +1779,14 @@ create_game_assets() {
ico_file="${ICONS_DIR}/ico/$game_id.ico"

if [[ ! -s "$ico_file" ]]; then
# Attempt to download icon using wget
# Attempt to download icon using curl
echo -n "Icon not found locally for $game_id. Attempting to download from the HDD-OSD icon database..." >> "${LOG_FILE}"
wget --quiet --timeout=10 --tries=3 --output-document="$ico_file" \
curl -s -m 10 --retry 3 -o "$ico_file" \
"https://raw.githubusercontent.com/CosmicScale/HDD-OSD-Icon-Database/main/ico/${game_id}.ico"
if [[ -s "$ico_file" ]]; then
echo "[✓] Successfully downloaded icon for ${game_id}." >> "${LOG_FILE}"
else
# If wget fails, run the art downloader
# If curl fails, run the art downloader
[[ -f "$ico_file" ]] && rm -f "$ico_file"

png_file_cov="${TOOLKIT_PATH}/icons/ico/tmp/${game_id}_COV.png"
Expand All @@ -1803,18 +1800,18 @@ create_game_assets() {
fi

if [[ "$disc_type" == "POPS" || "$disc_type" == "__.POPS" || "$disc_type" == "SMB" ]]; then
wget --quiet --timeout=10 --tries=3 --output-document="${png_file_cov}" \
curl -s -m 10 --retry 3 -o "${png_file_cov}" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS1/${game_id}/${game_id}_COV.png"
if [[ -s "$png_file_cov" ]]; then
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_cov2" \
curl -s -m 10 --retry 3 -o "$png_file_cov2" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS1/${game_id}/${game_id}_COV2.png"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_lab" \
curl -s -m 10 --retry 3 -o "$png_file_lab" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS1/${game_id}/${game_id}_LAB.png"
fi
elif [[ -s "$png_file_cov" ]]; then
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_cov2" \
curl -s -m 10 --retry 3 -o "$png_file_cov2" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS2/${game_id}/${game_id}_COV2.png"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_lab" \
curl -s -m 10 --retry 3 -o "$png_file_lab" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS2/${game_id}/${game_id}_LAB.png"
fi

Expand Down Expand Up @@ -3012,11 +3009,11 @@ if [ -f "${PS2_LIST}" ]; then
if [[ -f "$png_file_cover" ]]; then
echo "OPL Artwork for $game_id already exists. Skipping download." >> "${LOG_FILE}"
else
# Attempt to download artwork using wget
# Attempt to download artwork using curl
echo "OPL Artwork not found locally for $game_id. Attempting to download from archive.org..." >> "${LOG_FILE}"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_cover" \
curl -s -m 10 --retry 3 -o "$png_file_cover" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS2/${game_id}/${game_id}_COV.png"
#wget --quiet --timeout=10 --tries=3 --output-document="$png_file_disc" \
#curl -s -m 10 --retry 3 -o "$png_file_disc" \
#"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS2/${game_id}/${game_id}_ICO.png"

missing_files=()
Expand Down Expand Up @@ -3069,9 +3066,9 @@ if [ -f "${ATA_POPS_LIST}" ]; then
if [[ -f "$png_file_cover" ]]; then
echo "POPSLoader Artwork for $filename already exists. Skipping download." >> "${LOG_FILE}"
else
# Attempt to download artwork using wget
# Attempt to download artwork using curl
echo "POPSLoader Artwork not found locally for $filename. Attempting to download from archive.org..." >> "${LOG_FILE}"
wget --quiet --timeout=10 --tries=3 --output-document="$png_file_cover" \
curl -s -m 10 --retry 3 -o "$png_file_cover" \
"https://archive.org/download/OPLM_ART_2024_09/OPLM_ART_2024_09.zip/PS1/${game_id}/${game_id}_COV.png"

missing_files=()
Expand Down Expand Up @@ -3943,9 +3940,9 @@ cp "${MISSING_ICON}" "${ICONS_DIR}/ico/tmp" >> "${LOG_FILE}" 2>&1

cd "${ICONS_DIR}/ico/tmp/"
rm *.png >/dev/null 2>&1
zip -r "${ARTWORK_DIR}/tmp/ico.zip" * >/dev/null 2>&1
bsdtar -acf "${ARTWORK_DIR}/tmp/ico.zip" * >/dev/null 2>&1
cd "${ARTWORK_DIR}/tmp/"
zip -r "${ARTWORK_DIR}/tmp/art.zip" * >/dev/null 2>&1
bsdtar -acf "${ARTWORK_DIR}/tmp/art.zip" * >/dev/null 2>&1

if [ -f "${ARTWORK_DIR}/tmp/art.zip" ]; then
echo "Contributing to the PSBBN art & HDD-OSD databases..." >> "${LOG_FILE}"
Expand Down
8 changes: 4 additions & 4 deletions scripts/HOSDMenu-Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ download_files() {
# Check if extras.zip exists
if [[ -f "${ASSETS_DIR}/extras.zip" && ! -f "${ASSETS_DIR}/extras.zip.st" ]]; then
echo "extras.zip found in ${ASSETS_DIR}. Extracting..." >> "${LOG_FILE}"
unzip -o "${ASSETS_DIR}/extras.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
bsdtar -xf "${ASSETS_DIR}/extras.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
else
echo "Downloading..." >> "${LOG_FILE}"
echo -n "${UI_TEXT[DOWNLOAD_LATEST_FILE_2]}..."
wget --quiet --timeout=10 --tries=3 -O "${ASSETS_DIR}/extras.zip" https://archive.org/download/psbbn-definitive-english-patch-v2/extras.zip
curl -s -m 10 --retry 3 -o "${ASSETS_DIR}/extras.zip" https://archive.org/download/psbbn-definitive-english-patch-v2/extras.zip
echo
if [[ -s "${ASSETS_DIR}/extras.zip" ]]; then
unzip -o "${ASSETS_DIR}/extras.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
bsdtar -xf "${ASSETS_DIR}/extras.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
else
rm "${ASSETS_DIR}/extras.zip"
echo "[X] Error: Download failed for HDD-OSD." >> "${LOG_FILE}" 2>&1
Expand Down Expand Up @@ -828,4 +828,4 @@ lsblk -p -o MODEL,NAME,SIZE,LABEL,MOUNTPOINT >> "${LOG_FILE}"
echo "[✓] ${UI_TEXT[HOSDMENU_SUCCESS]}" | tee -a "${LOG_FILE}"
echo
read -n 1 -s -r -p "${UI_TEXT[MENU_RETURN]}" </dev/tty
echo
echo
8 changes: 4 additions & 4 deletions scripts/Media-Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,14 +583,14 @@ download_ps2str() {
if [[ -f "${ASSETS_DIR}/ps2str_v1.08_2001.zip" ]]; then
echo "Found ${ASSETS_DIR}/ps2str_v1.08_2001.zip..." >> "${LOG_FILE}"
echo "${UI_TEXT[GET_LATEST_FILE_1]} ${ASSETS_DIR}/ps2str_v1.08_2001.zip..."
unzip -o "${ASSETS_DIR}/ps2str_v1.08_2001.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
bsdtar -xf "${ASSETS_DIR}/ps2str_v1.08_2001.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
else
echo "Downloading ps2str..." >> "${LOG_FILE}"
echo "${UI_TEXT[DOWNLOAD_REQUIRED]}"
wget --quiet --timeout=10 --tries=3 -O "${ASSETS_DIR}/ps2str_v1.08_2001.zip" https://archive.org/download/ps2str_v1.08_2001/ps2str_v1.08_2001.zip
curl -s -m 10 --retry 3 -o "${ASSETS_DIR}/ps2str_v1.08_2001.zip" https://archive.org/download/ps2str_v1.08_2001/ps2str_v1.08_2001.zip
echo
if [[ -s "${ASSETS_DIR}/ps2str_v1.08_2001.zip" ]]; then
unzip -o "${ASSETS_DIR}/ps2str_v1.08_2001.zip" -d "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
bsdtar -xf "${ASSETS_DIR}/ps2str_v1.08_2001.zip" -C "${ASSETS_DIR}" >> "${LOG_FILE}" 2>&1
fi
fi
}
Expand Down Expand Up @@ -1844,4 +1844,4 @@ while true; do
sleep 2
;;
esac
done
done
8 changes: 4 additions & 4 deletions scripts/PSBBN-Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,10 @@ fi
if [ "$OS" = "PSBBN" ]; then
# Download the HTML of the page
HTML_FILE=$(mktemp)
timeout 20 wget -O "$HTML_FILE" "$URL" -o - >> "$LOG_FILE" 2>&1 &
WGET_PID=$!
curl -sSL -m 20 -o "$HTML_FILE" "$URL" >> "$LOG_FILE" 2>&1 &
CURL_PID=$!

spinner $WGET_PID "${UI_TEXT[VERSION_CHECK_PSBBN]}"
spinner $CURL_PID "${UI_TEXT[VERSION_CHECK_PSBBN]}"

get_latest_file "psbbn-definitive-patch" "PSBBN Definitive Patch"

Expand Down Expand Up @@ -1936,4 +1936,4 @@ else
fi

read -n 1 -s -r -p "$text" </dev/tty
echo
echo
Loading