diff --git a/README.GAMEIDS b/README.GAMEIDS index fedfc76..b5e5bde 100644 --- a/README.GAMEIDS +++ b/README.GAMEIDS @@ -18,6 +18,7 @@ SMN?12 Awesomer Super Luigi Mini SMN?DU DarkUmbra Super Mario Bros: Anniversary Edition SMN?MI Midi's Super Mario Bros Wii - Just A Little Adventure SMN?RV RVLution Wii (NewSMB Mod) +SMN?YL Luigi's Super Yoshi Bros. SMN?ZA Newer Apocalypse SMN?ZY Super Mario Skyland SMM?02 Super Mario: Mushroom Adventure PLUS - Winter Moon diff --git a/patchimage.sh b/patchimage.sh index fe298e7..d3d30cd 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -111,6 +111,10 @@ case ${GAME} in source ${PATCHIMAGE_SCRIPT_DIR}/newerapocalypse.sh ;; + NSMB19 | LuigisSuperYoshiBros ) + source ${PATCHIMAGE_SCRIPT_DIR}/luigissuperyoshibros.sh + ;; + MKW1 | Wiimmfi ) source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh ;; diff --git a/script.d/common.sh b/script.d/common.sh index ef5f75e..93a3b34 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -21,7 +21,7 @@ ask_game () { echo -e \ "************************************************ -patchimage v5.2.0 +patchimage v5.3.0 Enter ID for the Game you want to create: @@ -44,6 +44,7 @@ NSMB15 RVLution Wii (NewSMB Mod) NSMB16 Midi's Super Mario Wii (Just A Little Adventure) NSMB17 DarkUmbra SMB Anniversary Edition NSMB18 Newer Apocalypse +NSMB19 Luigi's Super Yoshi Bros. <<<<<< Mario Kart Wii >>>>>> MKW1 Wiimfi Patcher. Patch Mario Kart to use Wiimm's server diff --git a/script.d/luigissuperyoshibros.sh b/script.d/luigissuperyoshibros.sh new file mode 100644 index 0000000..8265c4a --- /dev/null +++ b/script.d/luigissuperyoshibros.sh @@ -0,0 +1,90 @@ +#!/bin/bash + +WORKDIR=nsmb.d +DOL=${WORKDIR}/sys/main.dol +DOWNLOAD_LINK="https://www.dropbox.com/s/rw3iwa8vhj7o337/LSYB.zip?dl=0" +RIIVOLUTION_ZIP="LSYB.zip" +RIIVOLUTION_DIR="LSYB" +GAMENAME="Luigis Super Yoshi Bros." +XML_SOURCE="${RIIVOLUTION_DIR}" +XML_FILE="${RIIVOLUTION_DIR}"/LSYB +GAME_TYPE=RIIVOLUTION +BANNER_LOCATION=${WORKDIR}/files/opening.bnr + +show_notes () { + +echo -e \ +"************************************************ +${GAMENAME} + +Luigi's Super Yoshi Bros. is a mini NSMBW hack that features: +- Only 1 World +- Some Custom Tilesets + +Source: http://rvlution.net/thread/1967-luigi-s-super-yoshi-bros/ +Base Image: New Super Mario Bros. Wii (SMN?01) +Supported Versions: EURv1, EURv2, USAv1, USAv1, JPNv1 +************************************************" + +} + +check_input_image_special () { + + check_input_image_nsmb + +} + +detect_game_version () { + + nsmbw_version + GAMEID=SMN${REG_LETTER}YL + XML_FILE="${XML_FILE}"${REG_LETTER}.xml + +} + +place_files () { + + cp -r "${RIIVOLUTION_DIR}"/{Env,Layout,Object,Stage,WorldMap} ${WORKDIR}/files + + NEW_DIRS=( ${WORKDIR}/files/EU/NedEU/Message ) + for dir in ${NEW_DIRS[@]}; do + mkdir -p ${dir} + done + + case ${VERSION} in + EURv* ) + + LANGDIRS=( EngEU FraEU GerEU ItaEU SpaEU NedEU ) + for dir in ${LANGDIRS[@]}; do + cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/EU/${dir}/Message/ + done + cp "${RIIVOLUTION_DIR}"/OpeningP/* ${WORKDIR}/files/EU/Layout/openingTitle/ + + ;; + + USAv* ) + + LANGDIRS=( FraUS EngUS SpaUS ) + for dir in ${LANGDIRS[@]}; do + cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/US/${dir}/Message/ + done + cp "${RIIVOLUTION_DIR}"/OpeningE/* ${WORKDIR}/files/US/Layout/openingTitle/ + ;; + + JPNv* ) + cp "${RIIVOLUTION_DIR}"/MessageEN/* ${WORKDIR}/files/JP/Message/ + cp "${RIIVOLUTION_DIR}"/OpeningJ/* ${WORKDIR}/files/JP/Layout/openingTitle/ + ;; + esac + +} + +dolpatch() { + + ${WIT} dolpatch ${DOL} \ + "802F148C=53756D6D53756E#7769696D6A3264" \ + "802F118C=53756D6D53756E#7769696D6A3264" \ + "802F0F8C=53756D6D53756E#7769696D6A3264" \ + xml="${PATCHIMAGE_PATCH_DIR}/NSMBW_AP.xml" -q + +}