mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
mkwiimm: support changing font
This commit is contained in:
parent
315e5326d3
commit
bd681fd235
@ -3,6 +3,7 @@ v4.99:
|
||||
not build (RMCP06 - RMCP24 were built "only")
|
||||
- mario kart wiimm items: backup the original common.szs on first
|
||||
customization of a game
|
||||
- mario kart wiimm fonts: support changing font in mario kart
|
||||
|
||||
v4.98:
|
||||
- mario kart wiimm: when building mario kart wiimm from scratch
|
||||
|
@ -115,6 +115,10 @@ case ${GAME} in
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm_items.sh
|
||||
;;
|
||||
|
||||
MKW5 | MkwiimmFonts )
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm_fonts.sh
|
||||
;;
|
||||
|
||||
KAW1 | Kirby )
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh
|
||||
;;
|
||||
|
@ -47,6 +47,7 @@ MKW1 Wiimfi Patcher. Patch Mario Kart to use Wiimm's server
|
||||
MKW2 Wiimfi Patcher. Patch WFC games to use Wiimm's server (exp)
|
||||
MKW3 Mario Kart Wiimm. Custom Mario Kart Distribution
|
||||
MKW4 Custom Items. Replace items in the game
|
||||
MKW5 Custom Font. Replace font in the game
|
||||
|
||||
<<<<<< Kirby's Adventure Wii >>>>>>
|
||||
KAW1 Change first player's character
|
||||
|
7
script.d/mkwiimm_fonts.db
Normal file
7
script.d/mkwiimm_fonts.db
Normal file
@ -0,0 +1,7 @@
|
||||
cbf.szs:Crash Bandicoot Font (black & white):Slawter
|
||||
cbc.szs:Crash Bandicoot Font (coloured):Slawter
|
||||
drk.szs:Darkness Font:Shadow
|
||||
dky.szs:Darky Font:DarkyBenji
|
||||
rpp.szs:Ripple Font:CaronHT
|
||||
mvb.szs:MV Boli Font:Jorge
|
||||
spp.szs:Space Patrol Font:Jorge
|
90
script.d/mkwiimm_fonts.sh
Normal file
90
script.d/mkwiimm_fonts.sh
Normal file
@ -0,0 +1,90 @@
|
||||
#!/bin/bash
|
||||
|
||||
GAME_TYPE="MKWIIMM"
|
||||
GAME_NAME="Mario Kart Wiimm"
|
||||
ITEMS_BASE="http://riivolution.nanolx.org/mkwiimm_fonts"
|
||||
FSZS="files/Scene/UI/Font.szs"
|
||||
|
||||
show_notes () {
|
||||
|
||||
echo -e \
|
||||
"************************************************
|
||||
${GAMENAME}
|
||||
|
||||
Custom Mario Kart Wii
|
||||
|
||||
Source: http://wiiki.wii-homebrew.com/Wiimms_Mario_Kart_Fun
|
||||
Base Image: Mario Kart Wii (RMC?01)
|
||||
Supported Versions: EUR, JAP, USA
|
||||
************************************************"
|
||||
|
||||
}
|
||||
|
||||
check_input_image_special () {
|
||||
|
||||
check_input_image_mkwiimm
|
||||
ask_input_image_mkwiimm ${IMAGE%/*}
|
||||
echo -e "type RMC???.wbfs:\n"
|
||||
read ID
|
||||
|
||||
if [[ ! -f ${IMAGE%/*}/${ID} ]]; then
|
||||
echo "wrong id from user-input given."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
download_wiimm () {
|
||||
|
||||
echo "Choose a font to use
|
||||
|
||||
orig Original Mario Kart Wii Font"
|
||||
|
||||
gawk -F \: '{print $1 "\t\t" $2}' < ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm_fonts.db
|
||||
|
||||
echo -e "\ntype ???.szs or orig"
|
||||
read FONT
|
||||
|
||||
if [[ ${FONT} != orig ]]; then
|
||||
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${FONT} ]]; then
|
||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/${FONT} \
|
||||
${ITEMS_BASE}/${FONT} &>/dev/null \
|
||||
|| (echo "download of ${FONT} failed." \
|
||||
&& rm ${PATCHIMAGE_RIIVOLUTION_DIR}/${FONT} \
|
||||
&& exit 57)
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
build_mkwiimm () {
|
||||
|
||||
rm -rf workdir
|
||||
echo "*** 5) extracting image"
|
||||
${WIT} extract ${IMAGE%/*}/${ID} workdir -q
|
||||
|
||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/Font.szs_${ID/.*} ]]; then
|
||||
echo "*** 6) this is the first run, so backing up font.szs
|
||||
(in ${PATCHIMAGE_RIIVOLUTION_DIR}) for future customizations"
|
||||
cp workdir/${FSZS} "${PATCHIMAGE_RIIVOLUTION_DIR}"/Font.szs_${ID/.*}
|
||||
else
|
||||
echo "*** 6) restoring original common.szs"
|
||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/Font.szs_${ID/.*} workdir/${FSZS}
|
||||
fi
|
||||
|
||||
echo "*** 7) replacing font"
|
||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/${FONT} workdir/${FSZS}
|
||||
|
||||
echo "*** 8) rebuilding game"
|
||||
echo " (storing game in ${PATCHIMAGE_GAME_DIR}/${ID})"
|
||||
${WIT} cp -o -q -B workdir ${PATCHIMAGE_GAME_DIR}/${ID} || exit 51
|
||||
|
||||
rm -rf workdir
|
||||
|
||||
}
|
||||
|
||||
patch_wiimm () {
|
||||
|
||||
build_mkwiimm
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user