From f3494d25d33c079159fb72a0ff8617e0254bc18e Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 19 Aug 2016 21:36:03 +0200 Subject: [PATCH] add support for Cliff Super Mario Bros. Wii --- ChangeLog | 8 ++++ README.GAMEIDS | 1 + database/scripts.db | 1 + scripts/messages.sh | 2 + scripts/nsmbw/cliffsmb.sh | 80 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 scripts/nsmbw/cliffsmb.sh diff --git a/ChangeLog b/ChangeLog index dda6d94..ec2d0f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,11 @@ v7.2.0: ::bug fixes - Pokemon Star Sapphire was accidently called Alpha Sapphire in the menu, also had wrong Short ID +- fixed that Opening Title for US version was applied to EU version in + MLG Super Mario Bros. Wii (fixes black screen on start) +- fixed regression from version 7.1.0 that made it impossible to patch + US version of New Super Mario Bros. Wii because it was looking for wrong + ID SMNU01 instead of correct ID SMNE01 ::command line parameters - add batch building short cuts for --game parameter: @@ -40,6 +45,9 @@ v7.2.0: ::game additions +:::New Super Mario Bros. Wii +- add support for Cliff Super Mario Bros. Wii (SCL[PUJ]01) + :::Pokemon - add support for Pokemon Red Ruby - supply HANS configuration files for Red Ruby diff --git a/README.GAMEIDS b/README.GAMEIDS index 412ddca..f33f552 100644 --- a/README.GAMEIDS +++ b/README.GAMEIDS @@ -12,6 +12,7 @@ b) ${PATCHIMAGE_WBFS_DIR} a) SMN?01.iso b) SMN?01.wbfs +SCL?01 Cliff Super Mario Bros. Wii SLB?01 MLG Super Luigi Bros. Wii SLF?01 NSMBW3: The Final Levels SMN?03 Newer Super Mario Bros. Wii diff --git a/database/scripts.db b/database/scripts.db index 7708d06..ca899c9 100644 --- a/database/scripts.db +++ b/database/scripts.db @@ -25,6 +25,7 @@ NSMB24:RemixedSuperMarioBros:nsmbw/remixedsupermariobroswii.sh NSMB25:GhostlySuperGhostBoos:nsmbw/ghostlysuperghostbooswii.sh NSMB26:RevisedSuperMarioBros:nsmbw/revisedsupermariobroswii.sh NSMB27:MLGSuperLuigi:nsmbw/mlgsuperluigibroswii.sh +NSMB28:Cliff:nsmbw/cliffsmb.sh NSMB99:NSMBWCharacters:nsmbw/nsmbw_characters.sh MKW1:Wiimmfi:mkwii/wiimmfi.sh MKW2:Wiimmpatch:wiimmfi_generic.sh diff --git a/scripts/messages.sh b/scripts/messages.sh index 8d3df32..ffa6fa8 100644 --- a/scripts/messages.sh +++ b/scripts/messages.sh @@ -33,6 +33,7 @@ NSMB24 RemixedSuperMarioBros Remixed Super Mario Bros. Wii NSMB25 GhostlySuperGhostBoos Ghostly Super Ghost Boos. Wii NSMB26 RevisedSuperMarioBros Revised Super Mario Bros. Wii NSMB27 MLGSuperLuigi MLG Super Luigi Bros. Wii +NSMB28 Cliff Cliff Super Mario Bros. Wii NSMB99 NSMBWCharacters Customize Characters @@ -134,6 +135,7 @@ NSMB24 RemixedSuperMarioBros Remixed v1.5.zi NSMB25 GhostlySuperGhostBoos GSGBW v1.0.2.zip NSMB26 RevisedSuperMarioBros RSMBW Version 1.0.zip NSMB27 MLGSuperLuigi MLGLuigiWii.zip +NSMB28 Cliff Cliff_Super_Mario_Brothers_Wiiv1.0b.zip NSMB99 NSMBWCharacters Alternative Character Files are supplied " diff --git a/scripts/nsmbw/cliffsmb.sh b/scripts/nsmbw/cliffsmb.sh new file mode 100644 index 0000000..e552d4e --- /dev/null +++ b/scripts/nsmbw/cliffsmb.sh @@ -0,0 +1,80 @@ +#!/bin/bash + +WORKDIR=nsmb.d +DOL=${WORKDIR}/sys/main.dol +DOWNLOAD_LINK="http://www.mediafire.com/download/tmjzbyf3q7v3u7f/Cliff_Super_Mario_Brothers_Wiiv1.0b.zip" +RIIVOLUTION_ZIP="Cliff_Super_Mario_Brothers_Wiiv1.0b.zip" +RIIVOLUTION_DIR="Cliff" +GAMENAME="Cliff Super Mario Bros. Wii" +XML_SOURCE="${RIIVOLUTION_DIR}" +XML_FILE="${RIIVOLUTION_DIR}"/../Cliff +GAME_TYPE=RIIVOLUTION +BANNER_LOCATION=${WORKDIR}/files/opening.bnr +WBFS_MASK="SMN[PEJ]01" + +show_notes () { + +echo -e \ +"************************************************ +${GAMENAME} + +Source: http://rvlution.net/thread/4042-cliff-super-mario-bros-wii/ +Base Image: New Super Mario Bros. Wii (SMN?01) +Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1 +************************************************" + +} + +detect_game_version () { + + nsmbw_version + GAMEID=SCL${REG_LETTER}01 + XML_FILE="${XML_FILE}"${REG_LETTER}.xml + +} + +place_files () { + + case ${VERSION} in + EUR* ) + LANGDIRS=( EngEU FraEU GerEU ItaEU SpaEU NedEU PolEU ) + for dir in "${LANGDIRS[@]}"; do + cp "${RIIVOLUTION_DIR}"/MessageEN/Message.arc "${WORKDIR}"/files/EU/"${dir}"/Message/Message.arc + done + cp -r "${RIIVOLUTION_DIR}"/OpeningP/openingTitle.arc "${WORKDIR}"/files/EU/Layout/openingTitle/ + ;; + + USAv* ) + LANGDIRS=( FraUS EngUS SpaUS ) + for dir in "${LANGDIRS[@]}"; do + cp "${RIIVOLUTION_DIR}"/MessageEN/Message.arc "${WORKDIR}"/files/US/"${dir}"/Message/Message.arc + done + cp -r "${RIIVOLUTION_DIR}"/OpeningE/openingTitle.arc "${WORKDIR}"/files/US/Layout/openingTitle/ + ;; + + JPNv1 ) + cp "${RIIVOLUTION_DIR}"/MessageEN/Message.arc "${WORKDIR}"/files/JP/Message/Message.arc + cp -r "${RIIVOLUTION_DIR}"/OpeningJ/openingTitle.arc "${WORKDIR}"/files/JP/Layout/openingTitle/ + ;; + esac + + cp -r "${RIIVOLUTION_DIR}"/Env "${WORKDIR}"/files/ + cp -r "${RIIVOLUTION_DIR}"/Layout "${WORKDIR}"/files/ + cp -r "${RIIVOLUTION_DIR}"/Object "${WORKDIR}"/files/ + cp "${RIIVOLUTION_DIR}"/Sound/stream/*.brstm "${WORKDIR}"/files/Sound/stream/ + cp "${RIIVOLUTION_DIR}"/Sound/*.brsar "${WORKDIR}"/files/Sound/ + cp "${RIIVOLUTION_DIR}"/Stage/*.arc "${WORKDIR}"/files/Stage/ + cp "${RIIVOLUTION_DIR}"/Stage/Texture/* "${WORKDIR}"/files/Stage/Texture/ + cp "${RIIVOLUTION_DIR}"/WorldMap/* "${WORKDIR}"/files/WorldMap/ + +} + +dolpatch() { + + ${WIT} dolpatch ${DOL} \ + "802F148C=53756D6D53756E#7769696D6A3264" \ + "802F118C=53756D6D53756E#7769696D6A3264" \ + "802F0F8C=53756D6D53756E#7769696D6A3264" \ + xml="${PATCHIMAGE_PATCH_DIR}/NSMBW_AP.xml" -q + +}