mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-27 19:44:22 +01:00
for NSMBW character mods, Mario Kart Wii font, item and kart mods,
don't download the files from the interwebs, instead use files supplied and installed with patchimage
This commit is contained in:
parent
79e9767068
commit
ea0e6c921d
@ -40,6 +40,9 @@ v7.0.0:
|
|||||||
- when downloading covers for Wii games fail, retry with the US cover
|
- when downloading covers for Wii games fail, retry with the US cover
|
||||||
- don't re-download covers that already exist
|
- don't re-download covers that already exist
|
||||||
- don't re-download soundtracks that already exist
|
- don't re-download soundtracks that already exist
|
||||||
|
- for NSMBW character mods, Mario Kart Wii font, item and kart mods,
|
||||||
|
don't download the files from the interwebs, instead use files supplied
|
||||||
|
and installed with patchimage
|
||||||
|
|
||||||
::game additions
|
::game additions
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -4,7 +4,7 @@ all:
|
|||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)/usr/bin/
|
mkdir -p $(DESTDIR)/usr/bin/
|
||||||
mkdir -p $(DESTDIR)/usr/share/patchimage/
|
mkdir -p $(DESTDIR)/usr/share/patchimage/
|
||||||
cp -rv patches tools override script.d $(DESTDIR)/usr/share/patchimage/
|
cp -rv data database override patches script.d tools $(DESTDIR)/usr/share/patchimage/
|
||||||
install -m755 patchimage.sh $(DESTDIR)/usr/bin/patchimage
|
install -m755 patchimage.sh $(DESTDIR)/usr/bin/patchimage
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
GAME_TYPE="MKWIIMM"
|
GAME_TYPE="MKWIIMM"
|
||||||
GAME_NAME="Mario Kart Wiimm"
|
GAME_NAME="Mario Kart Wiimm"
|
||||||
ITEMS_BASE="http://riivolution.nanolx.org/mkwiimm_fonts"
|
|
||||||
FSZS="files/Scene/UI/Font.szs"
|
FSZS="files/Scene/UI/Font.szs"
|
||||||
|
|
||||||
show_notes () {
|
show_notes () {
|
||||||
@ -46,12 +45,9 @@ orig Original Mario Kart Wii Font"
|
|||||||
read FONT
|
read FONT
|
||||||
|
|
||||||
if [[ ${FONT} != orig ]]; then
|
if [[ ${FONT} != orig ]]; then
|
||||||
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_font_${FONT} ]]; then
|
if [[ ! -f ${PATCHIMAGE_DATA_DIR}/mkwiimm_fonts/${FONT} ]]; then
|
||||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_font_${FONT} \
|
echo "Font ${FONT} unknown"
|
||||||
${ITEMS_BASE}/${FONT} &>/dev/null \
|
exit 75
|
||||||
|| (echo "download of ${FONT} failed." \
|
|
||||||
&& rm ${PATCHIMAGE_RIIVOLUTION_DIR}/${FONT} \
|
|
||||||
&& exit 57)
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -73,7 +69,7 @@ build_mkwiimm () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "*** 7) replacing font"
|
echo "*** 7) replacing font"
|
||||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/mkwiimm_font_${FONT} workdir/${FSZS}
|
cp "${PATCHIMAGE_DATA_DIR}"/mkwiimm_fonts/${FONT} workdir/${FSZS}
|
||||||
|
|
||||||
echo "*** 8) rebuilding game"
|
echo "*** 8) rebuilding game"
|
||||||
echo " (storing game in ${PATCHIMAGE_GAME_DIR}/${ID})"
|
echo " (storing game in ${PATCHIMAGE_GAME_DIR}/${ID})"
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
GAME_TYPE="MKWIIMM"
|
GAME_TYPE="MKWIIMM"
|
||||||
GAME_NAME="Mario Kart Wiimm"
|
GAME_NAME="Mario Kart Wiimm"
|
||||||
ITEMS_BASE="http://riivolution.nanolx.org/mkwiimm_items"
|
|
||||||
CSZS="files/Race/Common.szs"
|
CSZS="files/Race/Common.szs"
|
||||||
CSZD="files/Race/Common.d"
|
CSZD="files/Race/Common.d"
|
||||||
|
|
||||||
@ -93,11 +92,9 @@ download_items () {
|
|||||||
|
|
||||||
for item in ${choosenitems[@]}; do
|
for item in ${choosenitems[@]}; do
|
||||||
id=${item/*:}
|
id=${item/*:}
|
||||||
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_item_${id} ]]; then
|
if [[ ! -f ${PATCHIMAGE_DATA_DIR}/mkwiimm_items/${id} ]]; then
|
||||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_item_${id} \
|
echo "unknown Item ${item}"
|
||||||
${ITEMS_BASE}/${id} &>/dev/null \
|
exit 75
|
||||||
|| (echo "download of ${id} failed." \
|
|
||||||
&& rm ${PATCHIMAGE_RIIVOLUTION_DIR}/${id})
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -132,10 +129,8 @@ build_mkwiimm () {
|
|||||||
for item in ${choosenitems[@]}; do
|
for item in ${choosenitems[@]}; do
|
||||||
slot=${item/:*}
|
slot=${item/:*}
|
||||||
newi=${item/*:}
|
newi=${item/*:}
|
||||||
if [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_item_${newi} ]]; then
|
cp ${PATCHIMAGE_DATA_DIR}/mkwiimm_items/${newi} \
|
||||||
cp ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_item_${newi} \
|
workdir/${CSZD}/${slot}
|
||||||
workdir/${CSZD}/${slot}
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
${SZS} create -o workdir/${CSZD} -q || \
|
${SZS} create -o workdir/${CSZD} -q || \
|
||||||
( echo "szs caught an error rebuilding common.szs" && exit 51 )
|
( echo "szs caught an error rebuilding common.szs" && exit 51 )
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
GAME_TYPE="MKWIIMM"
|
GAME_TYPE="MKWIIMM"
|
||||||
GAME_NAME="Mario Kart Wiimm"
|
GAME_NAME="Mario Kart Wiimm"
|
||||||
ITEMS_BASE="http://riivolution.nanolx.org/mkwiimm_karts"
|
|
||||||
|
|
||||||
show_notes () {
|
show_notes () {
|
||||||
|
|
||||||
@ -70,12 +69,9 @@ download_wiimm () {
|
|||||||
read KART
|
read KART
|
||||||
|
|
||||||
for kart in ${KART[@]}; do
|
for kart in ${KART[@]}; do
|
||||||
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_kart_${kart} ]]; then
|
if [[ ! -f ${PATCHIMAGE_DATA_DIR}/mkwiimm_karts/${kart} ]]; then
|
||||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/mkwiimm_kart_${kart} \
|
echo "unknown Kart ${kart}"
|
||||||
${ITEMS_BASE}/${kart} &>/dev/null \
|
exit 75
|
||||||
|| (echo "download of ${kart} failed." \
|
|
||||||
&& rm ${PATCHIMAGE_RIIVOLUTION_DIR}/${KART} \
|
|
||||||
&& exit 57)
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
ask_slot
|
ask_slot
|
||||||
@ -109,11 +105,11 @@ build_mkwiimm () {
|
|||||||
source=${kart/*:}
|
source=${kart/*:}
|
||||||
dest=${kart/:*}
|
dest=${kart/:*}
|
||||||
echo " old: ${dest}.szs new: ${source}"
|
echo " old: ${dest}.szs new: ${source}"
|
||||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/mkwiimm_kart_${source} \
|
cp "${PATCHIMAGE_DATA_DIR}"/mkwiimm_karts/${source} \
|
||||||
workdir/files/Race/Kart/${dest}.szs
|
workdir/files/Race/Kart/${dest}.szs
|
||||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/mkwiimm_kart_${source} \
|
cp "${PATCHIMAGE_DATA_DIR}"/mkwiimm_karts/${source} \
|
||||||
workdir/files/Race/Kart/${dest}_2.szs
|
workdir/files/Race/Kart/${dest}_2.szs
|
||||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/mkwiimm_kart_${source} \
|
cp "${PATCHIMAGE_DATA_DIR}"/mkwiimm_karts/${source} \
|
||||||
workdir/files/Race/Kart/${dest}_4.szs
|
workdir/files/Race/Kart/${dest}_4.szs
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
GAME_TYPE="WII_GENERIC"
|
GAME_TYPE="WII_GENERIC"
|
||||||
GAME_NAME="New Super Mario Bros. Wii"
|
GAME_NAME="New Super Mario Bros. Wii"
|
||||||
ITEMS_BASE="http://riivolution.nanolx.org/nsmbw_characters"
|
|
||||||
|
|
||||||
show_notes () {
|
show_notes () {
|
||||||
|
|
||||||
@ -56,12 +55,9 @@ pi_action () {
|
|||||||
read PLAYERS
|
read PLAYERS
|
||||||
|
|
||||||
for player in ${PLAYERS[@]}; do
|
for player in ${PLAYERS[@]}; do
|
||||||
if [[ ! -f ${PATCHIMAGE_RIIVOLUTION_DIR}/nsmbw_player_${player} ]]; then
|
if [[ ! -f "${PATCHIMAGE_DATA_DIR}"/nsmbw_characters/${player} ]]; then
|
||||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/nsmbw_player_${player} \
|
echo "unkown character ${player}"
|
||||||
${ITEMS_BASE}/${player} &>/dev/null \
|
exit 75
|
||||||
|| (echo "download of ${player} failed." \
|
|
||||||
&& rm ${PATCHIMAGE_RIIVOLUTION_DIR}/${player} \
|
|
||||||
&& exit 57)
|
|
||||||
fi
|
fi
|
||||||
slot=$(gawk -F \: "/^${player}/"'{print $2}' ${PATCHIMAGE_DATABASE_DIR}/nsmbw_characters.db)
|
slot=$(gawk -F \: "/^${player}/"'{print $2}' ${PATCHIMAGE_DATABASE_DIR}/nsmbw_characters.db)
|
||||||
choosenplayers=( ${choosenplayers[@]} ${player}:${slot} )
|
choosenplayers=( ${choosenplayers[@]} ${player}:${slot} )
|
||||||
@ -88,7 +84,7 @@ pi_action () {
|
|||||||
|
|
||||||
echo "*** 5) replacing characters"
|
echo "*** 5) replacing characters"
|
||||||
for player in ${choosenplayers[@]}; do
|
for player in ${choosenplayers[@]}; do
|
||||||
cp "${PATCHIMAGE_RIIVOLUTION_DIR}"/nsmbw_player_${player/:*} \
|
cp "${PATCHIMAGE_DATA_DIR}"/nsmbw_characters/${player/:*} \
|
||||||
workdir/files/Object/${player/*:}
|
workdir/files/Object/${player/*:}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user