add support for patching Tokyo Mirage Sessions #FE

add properly working titledmper (Wii U/ddd)
This commit is contained in:
Christopher Roy Bratusek 2016-07-01 20:07:53 +02:00
parent 632d8acef2
commit 96b0a3a5d5
6 changed files with 84 additions and 3 deletions

View File

@ -1,5 +1,7 @@
v6.2.0:
- code improvements for MKWiimm
- supply xdelta3 (32 and 64 bit versions)
- add support for Tokyo Mirage Sessions #FE US/EUR decensoring
- use ${WIT} instead of wit when checking image region for
MKWiimm and Kirbys Adventure Wii

View File

@ -171,6 +171,10 @@ case ${GAME} in
source ${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh
;;
TMS1 | TokyoMirageSessions )
source ${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh
;;
ZEL1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" )
source ${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh
;;
@ -279,4 +283,10 @@ case ${GAME_TYPE} in
fi
;;
"DELTA" )
show_notes
menu || exit 1
patch || exit 1
;;
esac

View File

@ -1,7 +1,7 @@
#!/bin/bash
PATCHIMAGE_VERSION=6.1.0
PATCHIMAGE_RELEASE=2016-05-16
PATCHIMAGE_VERSION=6.2.0
PATCHIMAGE_RELEASE=2016-07-01
setup_tools () {
@ -16,6 +16,7 @@ setup_tools () {
IPS=${PATCHIMAGE_TOOLS_DIR}/uips.${SUFFIX}
UNP=${PATCHIMAGE_TOOLS_DIR}/unp
SZS=${PATCHIMAGE_TOOLS_DIR}/wszst.${SUFFIX}
XD3=${PATCHIMAGE_TOOLS_DIR}/xdelta3.${SUFFIX}
GDOWN=${PATCHIMAGE_TOOLS_DIR}/gdown.pl
}
@ -68,6 +69,9 @@ MKW6 Custom Karts. Replace characters in the game
<<<<<< Kirby's Adventure Wii >>>>>>
KAW1 Change first player's character
<<<<<< Tokyo Mirage Sessions #FE >>>>>>
TMS1 Uncensor US/EUR version
<<<<<< ROMS >>>>>>
ZEL1 The Legend of Zelda: Parallel Worlds
@ -537,7 +541,7 @@ while [[ $xcount -lt $pcount ]]; do
--help | -h )
echo -e "patchimage ${PATCHIMAGE_VERSION} (${PATCHIMAGE_RELEASE})
(c) 2013-2014 Christopher Roy Bratusek <nano@jpberlin.de>
(c) 2013-2016 Christopher Roy Bratusek <nano@jpberlin.de>
patchimage creates wbfs images from riivolution patches.
--game=<gamename/gameletter> | specify game you want to create

View File

@ -0,0 +1,65 @@
#!/bin/bash
GAMENAME="Tokyo Mirage Sessions #FE Uncensored"
GAME_TYPE=DELTA
PATCH_FILES=( 000_map 010_character 030_etc 031_message 050_movie 999_lua )
show_notes () {
echo -e \
"************************************************
${GAMENAME}
Source: https://gbatemp.net/threads/tokyo-mirage-sessions-fe-restoration.429651/
Base Image: Tokyo Mirage Sessions #FE
Supported Versions: EUR, US
************************************************"
}
menu () {
echo -e "
Tokyo Mirage Sessions #FE restoration patcher
Enter path to the directory containing the delta patches:
"
read XDELTA_PATH
echo -e "
Enter path to the directory containing the game files (cpk):
"
read CPK_PATH
if [[ ! -d ${XDELTA_PATH} ]]; then
echo "PATH \"${XDELTA_PATH}\" does not exist!" || exit 1
elif [[ ! -f ${XDELTA_PATH}/patch_000_map.xdelta ]]; then
echo "PATH \"${XDELTA_PATH}\" does not contain the xdelta patches!" || exit 1
elif [[ ! -d ${CPK_PATH} ]]; then
echo "PATH \"${CPK_PATH}\" does not exist!" || exit 1
elif [[ ! -f ${CPK_PATH}/pack_000_map.cpk ]]; then
echo "PATH \"${CPK_PATH}\" does not contain the game files (cpk)!" || exit 1
fi
}
patch () {
echo -e "\n> Patching Files"
for patch in ${PATCH_FILES[@]}; do
echo ">> pack_${patch}.cpk"
${XD3} -d -f -s ${CPK_PATH}/pack_${patch}.cpk \
${XDELTA_PATH}/patch_${patch}.xdelta \
${CPK_PATH}/pack_${patch}.cpk_new || exit 1
mv ${CPK_PATH}/pack_${patch}.cpk_new \
${CPK_PATH}/pack_${patch}.cpk
done
echo -e "\n< Done!\n"
}

BIN
tools/titledumper.32 Executable file

Binary file not shown.

BIN
tools/titledumper.64 Executable file

Binary file not shown.