mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 01:59:20 +01:00
- improved Tokyo Mirage Sessions #FE Restoration Patcher:
- use 'Restoration' instead of 'Uncensored' as Name - more failsafe build-directory name - add support for downloading xdelta files with --download - check whether files have already been downloaded and use those - if you want to re-download the files regardless, simply use --download this will trigger re-download (unlike for Riivolution archives, where --download will not re-download if the file[s] were found) - for cpk file path support both the top level directory of the dump as well as the sub level directory which holds the cpk files, read: when your dump is in ChangeLog /home/test/TMSFE you were previously required to set the cpk path to ChangeLog /home/test/TMSFE/vol/content/Pack now using ChangeLog /home/test/TMSFE will work, too, as the script will look for the sub directory ChangeLog vol/content/Pack on it's own
This commit is contained in:
parent
c1972d75e5
commit
7cc29b4d0c
29
ChangeLog
29
ChangeLog
@ -1,4 +1,31 @@
|
|||||||
v7.3.1:
|
v7.4.0:
|
||||||
|
::misc. changes:
|
||||||
|
- use 'wget -nv' instead of 'wget -q'
|
||||||
|
- improved Tokyo Mirage Sessions #FE Restoration Patcher:
|
||||||
|
- use 'Restoration' instead of 'Uncensored' as Name
|
||||||
|
- more failsafe build-directory name
|
||||||
|
- add support for downloading xdelta files with --download
|
||||||
|
- check whether files have already been downloaded and use those
|
||||||
|
- if you want to re-download the files regardless, simply use --download
|
||||||
|
this will trigger re-download (unlike for Riivolution archives, where
|
||||||
|
--download will not re-download if the file[s] were found)
|
||||||
|
- for cpk file path support both the top level directory of the dump as well
|
||||||
|
as the sub level directory which holds the cpk files, read: when your dump
|
||||||
|
is in
|
||||||
|
/home/test/TMSFE
|
||||||
|
you were previously required to set the cpk path to
|
||||||
|
/home/test/TMSFE/vol/content/Pack
|
||||||
|
now using
|
||||||
|
/home/test/TMSFE
|
||||||
|
will work, too, as the script will look for the sub directory
|
||||||
|
vol/content/Pack
|
||||||
|
on it's own
|
||||||
|
|
||||||
|
v7.3.1.1 (20160829):
|
||||||
|
::bug fixes
|
||||||
|
- fixed brocken nsmb-helper script
|
||||||
|
|
||||||
|
v7.3.1 (20160828):
|
||||||
::bug fixes
|
::bug fixes
|
||||||
- fixed that --iso, --rom, --patch, --xdelta, --cpk and --riivolution command
|
- fixed that --iso, --rom, --patch, --xdelta, --cpk and --riivolution command
|
||||||
line flags failed when relative paths were given (regression from 7.2.2)
|
line flags failed when relative paths were given (regression from 7.2.2)
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
GAMENAME="Tokyo Mirage Sessions #FE Uncensored"
|
GAMENAME="Tokyo Mirage Sessions #FE Restoration"
|
||||||
GAME_TYPE=DELTA
|
GAME_TYPE=DELTA
|
||||||
|
|
||||||
PATCH_FILES=( 000_map 010_character 030_etc 031_message 050_movie 999_etc_om 999_lua )
|
PATCH_FILES=( 000_map 010_character 030_etc 031_message 050_movie 999_etc_om 999_lua )
|
||||||
|
|
||||||
|
DOWNLOAD_LINKS=( "patch_000_map.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZM0ViV2ZlQkFjSk0&export=download"
|
||||||
|
"patch_010_character.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZSzZzNVd4ejZYalE&export=download"
|
||||||
|
"patch_030_etc.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZNEZfN1hqOHVYZ0E&export=download"
|
||||||
|
"patch_031_message.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZTDlRdzlkUno3ZXM&export=download"
|
||||||
|
"patch_050_move.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZNU5kNlh2d1VRQzQ&export=download"
|
||||||
|
"patch_999_etc_om.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZN2VxTERFY2JPUFU&export=download"
|
||||||
|
"patch_999_lua.xdelta+https://drive.google.com/uc?id=0BxykxdPQq3oZUERRR0w2Nnl2YUk&export=download" )
|
||||||
|
|
||||||
show_notes () {
|
show_notes () {
|
||||||
|
|
||||||
echo -e \
|
echo -e \
|
||||||
@ -24,54 +32,93 @@ menu () {
|
|||||||
|
|
||||||
status=8
|
status=8
|
||||||
|
|
||||||
if [[ ! ${XDELTA_PATH} ]]; then
|
if [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} != TRUE ]]; then
|
||||||
echo -e "\nEnter path to the directory containing the delta patches:\n"
|
|
||||||
read -er XDELTA_PATH || exit 75
|
if [[ ! ${XDELTA_PATH} ]]; then
|
||||||
else status=9
|
if [[ -d ${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration ]]; then
|
||||||
|
XDELTA_PATH=${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration
|
||||||
|
else
|
||||||
|
echo -e "\nEnter path to the directory containing the delta patches:\n"
|
||||||
|
read -er XDELTA_PATH || exit 75
|
||||||
|
fi
|
||||||
|
else status=9
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d ${XDELTA_PATH} ]]; then
|
||||||
|
echo "PATH \"${XDELTA_PATH}\" does not exist!"
|
||||||
|
exit 21
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
echo -e "\nDownloading required files, ~1.9 Gigabyte. This will take a while.\n"
|
||||||
|
for delta in ${DOWNLOAD_LINKS[@]}; do
|
||||||
|
DL_NAME=${delta/+*}
|
||||||
|
DL_LINK=${delta/*+}
|
||||||
|
[[ ! -d ${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration ]] && \
|
||||||
|
mkdir ${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration
|
||||||
|
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME} ]]; then
|
||||||
|
${GDOWN} "${DL_LINK}" \
|
||||||
|
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp || \
|
||||||
|
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp && \
|
||||||
|
echo -e "\nDownload failed!" && exit 57 )
|
||||||
|
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"__tmp \
|
||||||
|
"${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration/${DL_NAME}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
XDELTA_PATH="${PATCHIMAGE_RIIVOLUTION_DIR}/TMSFE_Restoration"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for file in ${PATCH_FILES[@]}; do
|
||||||
|
if [[ ! -f ${XDELTA_PATH}/patch_${file}.xdelta ]]; then
|
||||||
|
echo "Patch file patch_${file}.xdelta does not exist!"
|
||||||
|
exit 75
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [[ ! ${CPK_PATH} ]]; then
|
if [[ ! ${CPK_PATH} ]]; then
|
||||||
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
|
echo -e "\nEnter path to the directory containing the game files (cpk):\n"
|
||||||
read -er CPK_PATH || exit 75
|
read -er CPK_PATH || exit 75
|
||||||
else status=9
|
else status=9
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d ${XDELTA_PATH} ]]; then
|
if [[ ! -d ${CPK_PATH} ]]; then
|
||||||
echo "PATH \"${XDELTA_PATH}\" does not exist!"
|
|
||||||
exit 21
|
|
||||||
elif [[ ! -f ${XDELTA_PATH}/patch_000_map.xdelta ]]; then
|
|
||||||
echo "PATH \"${XDELTA_PATH}\" does not contain the xdelta patches!"
|
|
||||||
exit 21
|
|
||||||
elif [[ ! -d ${CPK_PATH} ]]; then
|
|
||||||
echo "PATH \"${CPK_PATH}\" does not exist!"
|
echo "PATH \"${CPK_PATH}\" does not exist!"
|
||||||
exit 15
|
exit 15
|
||||||
elif [[ ! -f ${CPK_PATH}/pack_000_map.cpk ]]; then
|
|
||||||
echo "PATH \"${CPK_PATH}\" does not contain the game files (cpk)!"
|
|
||||||
exit 15
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ -f ${CPK_PATH}/pack_000_map.cpk ]] && CPK_PATH=${CPK_PATH}
|
||||||
|
[[ -f ${CPK_PATH}/vol/content/Pack/pack_000_map.cpk ]] && CPK_PATH=${CPK_PATH}/vol/content/Pack/
|
||||||
|
|
||||||
|
for file in ${PATCH_FILES[@]}; do
|
||||||
|
if [[ ! -f ${CPK_PATH}/pack_${file}.cpk ]]; then
|
||||||
|
echo "Original file pack_${file}.cpk does not exist!"
|
||||||
|
exit 75
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo ">>> status: ${status}"
|
echo ">>> status: ${status}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
patch () {
|
patch () {
|
||||||
|
|
||||||
if [[ -d ${PWD}/TMSxFE-Uncensored ]]; then
|
if [[ -d ${PWD}/TMSxFE-Restoration-Build ]]; then
|
||||||
echo -e "\nremoving old files"
|
echo -e "\nremoving old files"
|
||||||
rm -rf "${PWD}"/TMSxFE-Uncensored
|
rm -rf "${PWD}"/TMSxFE-Restoration-Build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
all=${#PATCH_FILES[@]}
|
all=${#PATCH_FILES[@]}
|
||||||
|
|
||||||
echo -e "\n> copying cpk files"
|
echo -e "\n> copying cpk files"
|
||||||
mkdir "${PWD}"/TMSxFE-Uncensored
|
mkdir "${PWD}"/TMSxFE-Restoration-Build
|
||||||
|
|
||||||
cur=0
|
cur=0
|
||||||
for file in "${PATCH_FILES[@]}"; do
|
for file in "${PATCH_FILES[@]}"; do
|
||||||
cur=$((cur+1))
|
cur=$((cur+1))
|
||||||
echo ">> [${cur}/${all}] pack_${file}.cpk"
|
echo ">> [${cur}/${all}] pack_${file}.cpk"
|
||||||
cp "${CPK_PATH}"/pack_"${file}".cpk \
|
cp "${CPK_PATH}"/pack_"${file}".cpk \
|
||||||
"${PWD}"/TMSxFE-Uncensored
|
"${PWD}"/TMSxFE-Restoration-Build
|
||||||
done
|
done
|
||||||
|
|
||||||
cur=0
|
cur=0
|
||||||
@ -79,17 +126,17 @@ patch () {
|
|||||||
for patch in "${PATCH_FILES[@]}"; do
|
for patch in "${PATCH_FILES[@]}"; do
|
||||||
cur=$((cur+1))
|
cur=$((cur+1))
|
||||||
echo ">> [${cur}/${all}] pack_${patch}.cpk"
|
echo ">> [${cur}/${all}] pack_${patch}.cpk"
|
||||||
"${XD3}" -d -f -s "${PWD}"/TMSxFE-Uncensored/pack_"${patch}".cpk \
|
"${XD3}" -d -f -s "${PWD}"/TMSxFE-Restoration-Build/pack_"${patch}".cpk \
|
||||||
"${XDELTA_PATH}"/patch_"${patch}".xdelta \
|
"${XDELTA_PATH}"/patch_"${patch}".xdelta \
|
||||||
"${PWD}"/TMSxFE-Uncensored/pack_"${patch}".cpk_new || exit 51
|
"${PWD}"/TMSxFE-Restoration-Build/pack_"${patch}".cpk_new || exit 51
|
||||||
|
|
||||||
mv "${PWD}"/TMSxFE-Uncensored/pack_"${patch}".cpk_new \
|
mv "${PWD}"/TMSxFE-Restoration-Build/pack_"${patch}".cpk_new \
|
||||||
"${PWD}"/TMSxFE-Uncensored/pack_"${patch}".cpk
|
"${PWD}"/TMSxFE-Restoration-Build/pack_"${patch}".cpk
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -e "\n< Done patching
|
echo -e "\n< Done patching
|
||||||
<< Find your modified cpk files in:
|
<< Find your modified cpk files in:
|
||||||
\n\t${PWD}/TMSxFE-Uncensored
|
\n\t${PWD}/TMSxFE-Restoration-Build
|
||||||
|
|
||||||
Copy your complete dump (content, code, meta folders) to your SD-Card in
|
Copy your complete dump (content, code, meta folders) to your SD-Card in
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user