From 4c4387002ddf94718b575bdd414f1a502ced639e Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 17 May 2014 21:24:34 +0200 Subject: [PATCH] several fixups for mario kart wiimm --- ChangeLog | 7 +++++++ script.d/mkwiimm.sh | 38 ++++++++++++++++++++++++++++++-------- 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6274b4..cdfe00f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +v4.98: +- mario kart wiimm: when building mario kart wiimm from scratch + use the wiimmfi mario kart patcher, not wiimmfi generic. Also + some string changes and more detailed info on current step +- supply wit 2.29a and szs 1.35a +- always use supplied tools (don't fallback to system ones) + v4.97: - changed IDs in the game selection menu (old A..Z for Wii, 1..9 for ROMs / new 1....99 ; example: NSMB1, NSMB2, NSMB3) diff --git a/script.d/mkwiimm.sh b/script.d/mkwiimm.sh index 4a710d8..6eeb82d 100644 --- a/script.d/mkwiimm.sh +++ b/script.d/mkwiimm.sh @@ -2,6 +2,7 @@ GAME_TYPE="MKWIIMM" GAME_NAME="Mario Kart Wiimm" +DOWNLOAD_LINK="http://download.wiimm.de/wiimmfi/mkw-wiimmfi-patcher.7z" show_notes () { @@ -36,6 +37,26 @@ type in ALL or an ID" } +wiimmfi () { + + mkdir -p "${HOME}/.patchimage/tools/" + cd ${HOME}/.patchimage/tools + rm -rf wiimmfi-patcher/ *.7z* + wget "${DOWNLOAD_LINK}" >/dev/null + ${UNP} mkw-wiimmfi-patcher.7z >/dev/null + mv mkw-wiimmfi-patcher*/ wiimmfi-patcher + chmod +x wiimmfi-patcher/*.sh + rm *.7z + + ln -s "${1}" . + ./create-image.sh >/dev/null + echo "*** 9) storing game in ${PATCHIMAGE_GAME_DIR}/${1##*/}" + mv -v ./wiimmfi-images/${1##*/} "${PATCHIMAGE_GAME_DIR}"/ + + rm -rf ${HOME}/.patchimage/tools/wiimfi-patcher/ + +} + build_mkwiimm () { DIST=$(gawk -F \: "/^${1}/"'{print $2}' < ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm.db) @@ -50,11 +71,14 @@ build_mkwiimm () { rm -rf ${FILENAME/.7z} if [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ]]; then + echo "*** 5) extracting mkwiimm files" ${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null elif [[ -f ${PWD}/${FILENAME} ]]; then + echo "*** 5) extracting mkwiimm files" ${UNP} ${PWD}/${FILENAME} >/dev/null else - wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ${DOWNLOAD} + echo "*** 5) downloading extracting mkwiimm files" + wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ${DOWNLOAD} >/dev/null ${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null fi @@ -79,19 +103,17 @@ ISOMODE=wbfs SPLITISO= PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def - echo "creating >${DIST}<, stand by..." + echo "*** 6) creating >${DIST}<, stand by" ./create-image.sh -a --dest=${PWD}/RMC${REG}${ID}.wbfs >/dev/null else - echo "creating >${DIST}<" + echo "*** 7) creating >${DIST}<" ./create-image.sh --dest=${PWD}/RMC${REG}${ID}.wbfs fi - echo "patching >${DIST}< to use custom server..." - ${WIT} cp ${PWD}/RMC${REG}${ID}.wbfs --DEST \ - ${PATCHIMAGE_GAME_DIR}/RMC${REG}${ID}.wbfs \ - --update --psel=data --wiimmfi -q -o + echo "*** 8) patching >${DIST}< to use custom server" + wiimmfi ${PWD}/RMC${REG}${ID}.wbfs - echo "cleaning up workdir..." + echo "*** 10) cleaning up workdir" cd .. rm -rf ${FILENAME/.7z}