Newer Super Mario Bros. Wii is out now.

Discussion in 'Wii - Hacking' started by W hat, Jun 9, 2013.

  1. Rydian

    Rydian Resident Furvert™

    Member
    18
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    I don't suppose doing patches on the files inside the ISO (with a recursive script) would be better than the ISO itself? If feasible.
     
  2. JasonP27

    JasonP27 The Tile God

    Newcomer
    1
    Aug 5, 2010

    Create a PPF patch for the main.dol, and create a batch utility program or something that takes the files from the pack and copies them to the correct paths in the extracted FST of the ISO, and runs wit to compile an ISO.

    edit: once the main.dol is patched, it won't need updated. However if one would then wish to update their ISO to the new version of Newer, one could re-extract their working iso, and use the batch utility to simply overwrite the old files with the files from the new pack.
     
  3. damysteryman

    damysteryman I am too busy IRL these days...

    Member
    6
    Oct 4, 2007
    Yeah, thanks for the suggestions guys :)
    I was thinking about the main.dol ppf, but now I will have to look into writing a batch file that would do that. As simple as batch files seem, it is something that I have not done before, apart from a simple list of things to do via command line, no actual logic.

    EDIT: wow shit, computer just finishined generating a ppf, and it came out to be bigger than the iso itself, screw that! Even uploading the ISO itself on teh interwebs would be easier than that... (but not legal)

    Looks like main.dol + file replacement and recompilation will have to be the way.
     
  4. Wiimm

    Wiimm Developer

    Member
    7
    Aug 11, 2009
    Germany
    Germany
    For clearness:
    You have patched main.dol following my suggestions and added a text section with the unmodified content of loader.bin?

    I use always a 'K' for alternative savegames. K is not used and I can remember it very good: "K like Klone" ;)

    As batch file?!

    End user instructions:
    1. Load newer and extract it.
    2. Create a subdirectory in newer named 'CONVERT'
    3. Load DAMYSTERYMAN.zip and etract it to 'CONVERT'
    4. Copy a wbfs image of NSMB into 'CONVERT' named nsmb.wbfs
    5. Enter directory 'CONVERT'
    6. Call batch file convert.bat
    DAMYSTERYMAN.zip contains:
    * wit and some needed DLLs
    * batch file convert.bat
    * main.dol (see below)

    The batch files looks like this:
    Code:
    @echo off
     
    :: extract image
    wit extract nsmb.wbfs nsmb.d --sel=data -vv
     
    :: many copy commands
    copy /B ..\newer\... nsmb.d\files\...
     
    :: patch or copy man.dol
    copy /B main.dol nsmb.d\sys\
     
    :: create new image
    wit copy nsmb.d newer-smb.wbfs -vv --id=K --name "NEWER SMB"
     
    :: wait to make errors visible
    pause
    
    The only legal issue is the main.dol. Instead of copying, patching is much better. A simple binary patcher should do it.
     
  5. damysteryman

    damysteryman I am too busy IRL these days...

    Member
    6
    Oct 4, 2007
    Hey Wiimm,

    Well yeah, that is what I did the very first time, however now I have actually modified the Loader.bin to move it away from 0x80001800 in memory. The other method would still work, but then it would become incompatible with Ocarina and Gecko Debugging (the Loader.bin would normally overwrite anything related to Gecko and Ocarina).

    And yeah, that makes sense, I use K the same way too :)

    And yeah, I was looking into it, but looks like you beat me to it :lol: Thanks for posting a base batch file though :)

    ---

    And now, I have a small package containing wit, a ppf patcher, and a .bat batch script to tie it all together. All you need is a NSMBW ISO and the Newer riivolution pack.

    Currently only for EURv1 of NSMBW at the time though, however, if I somehow had a way to look at the .dol files for ther versions of NSMBW, I could add support to them too........... :ninja:

    You download this pack, extract it, put in a EURv1 ISO of NSMBW along with the "NewerSMBW" folder from the Newer pack into thesame directory you extracted this to, then run the .bat file, and it will build the ISO for you :D

    Code:
    Unnofficial Automatic ISO Patcher Pack v1.00 for Newer SMBW
    Pack built by damysteryman/TeamDARK
     
    Thanks to Treeki for info on NSMBW dol patching and ISO building
    Thanks to Wiimm for Batch file info and assistance
    Credits also to Wiimm for WIT, included in this pack
    Credits to Icarus of Paradox for ApplyPPF3, included in this pack
     
    This will combine an ISO copy of New Super Mario Bros.
    Wii PAL/EUR v1.01 and NewerTeam's Riivolution-style Newer
    package to build an ISO version of Newer.
     
    Currently only works with EURv1 ISO of NSMBW at this time.
     
    HOWTO:
    1. Extract contents of this .zip file to a new working directory.
    Get your ISO of NSMBW EURv1, and copy it to the same directory as
    this README file.
    2. Rename your ISO to NSMBW_EURv1.iso.
    3. Copy the "NewerSMBW" folder from the NewerSMBW.zip package to the same
    directory as this README (you can download Newer from
    http://newerteam.com if you have not done so already already)
    4. Run Build_Newer_EURv1.bat and wait for it to build the Newer ISO.
    5. Use/run the newly built ISO however way you would :P
    6. Enjoy!
     
    Generated Newer ISO has Header GameID of SMNP02, and tmd/ticket ID of KMNP
    to keep savegame seperate from original game's one.
    Download the pack here:
    NewerISOPatcherPack_v1.00_dmm.zip

    Enjoy!
    And enjoy Newer too, NewerTeam did a great job!
     
  6. Hoowahman

    Hoowahman Member

    Newcomer
    2
    Sep 13, 2006


    Dude! You are awesome! Thank you so much for doing this and the work you put into it. Also for everyone helping to get it together.
     
  7. BIFFTAZ

    BIFFTAZ GBAtemp Advanced Fan

    Member
    6
    Jul 26, 2010

    Much appreciated dude !!! Thanks !!! Also thanks to the Newer Team for making this great custom remake !!!
     
  8. damysteryman

    damysteryman I am too busy IRL these days...

    Member
    6
    Oct 4, 2007
    No prob guys :)

    I wanted an ISO version for myself, and I wanted to make it easy for others too.
     
  9. markehmus

    markehmus GBAtemp Maniac

    Member
    6
    Jul 26, 2008
    Canada
    in the GAME
    thanks for doing all the work!
     
  10. Hoowahman

    Hoowahman Member

    Newcomer
    2
    Sep 13, 2006


    I second this! That would be really great!
     
  11. damysteryman

    damysteryman I am too busy IRL these days...

    Member
    6
    Oct 4, 2007
    No problem. :)

    Haha, maybe. Not right now though, maybe over the next few days or week perhaps?
    If I were provided with the riivolution .xml files, along with any extra needed mod code from the pack (such as anything similar to Loader.bin), I should be able to do it. This way saves me from eating up heaps of my internet just to get a few files.

    However, I only have one version of the game, and that is EUR version 1.01 (EURv1). (...well.... I have Taiwan version 1.00 too, but none of these hacks support it :P )
    So, for any other version (like USA, JPN, or EURv2), I would somehow have to acquire the main.dol files from these versions to make patches for them, and that is the hard part.
     
    joshuatm likes this.
  12. JasonP27

    JasonP27 The Tile God

    Newcomer
    1
    Aug 5, 2010
    I've been working on the Summer Sun patching all day today. I had missed the part about changing the pointer in the Loader.bin file and spent the 45 minute train ride home just staring at IDA and trying to figure out how I was supposed to get the numbers I needed lol... I'm not good at hex and such. I know where I'm placing the Loader.bin in main.dol, but I don't know how to translate that to a pointer in the Loader.bin :unsure:
     
  13. Panofsky

    Panofsky Newbie

    Newcomer
    1
    Jun 11, 2013
    Afghanistan
    Just registered to confirm that this works and to show my gratitude to you and the Newerteam. Used my original (Dutch) disc to compile it. As I softmodded my wii a long time ago, I wasn't looking forward to updating/installing Riivolution and risking problems.

    Can't wait to play, thanks!
     
  14. boomario

    boomario Nothing to say here.

    Member
    5
    Oct 31, 2012
    Brazil
    Congrats damysteryman, you did a awesome job! :lol:
    i wanted to play with riivolution but my drive broke,
    thanks anyway, count with me if you need a tester for something crazy :P
     
  15. Wiimm

    Wiimm Developer

    Member
    7
    Aug 11, 2009
    Germany
    Germany
    @damysteryman
    Good job, but I can't test it in the moment. Instead of testing I have some notes for you and all others:

    • wit itself needs only 1 dll: cygwin1.dll
      The others are needed for the environment and for setup.
      .
    • wit knows the option -o / --overwrite, so "del ..." is not necessary.
      .
    • If you use: wit extract -1 -n SMNP01 . nsmb.d --psel=DATA -vv
      wit search all images with the given ID (-n SMNP01), but use only the first image found (-1).
      With this you have a simple source image support with any filename and any format (wbfs, iso, ciso, wdf, ...)
      .
    • @all: If you have a wbfs file for example, rename it to "NSMBW_EURv1.iso". wit ignores file extensions here and will detect the file format automatically. Conversion is not needed.
      .
    • @all: If you want a wbfs as result, edit "Build_Newer_EURv1.bat" and replace
      Code:
      :: clean up old image if it exists for some reason
      del NewerSMBW_EURv1.iso
      >>>>>>>>>>          ^^^
      
      :: create new image
      wit\wit copy nsmb.d ../NewerSMBW_EURv1.iso -vv --disc-id=KMNP02 --ticket-id=K --tmd-id=K --name "Newer SMBW"
      >>>>>>>>>>                            ^^^
      
      by
      Code:
      :: clean up old image if it exists for some reason
      del NewerSMBW_EURv1.wbfs
      
      :: create new image
      wit\wit copy nsmb.d ../NewerSMBW_EURv1.wbfs -vv --disc-id=KMNP02 --ticket-id=K --tmd-id=K --name "Newer SMBW"
      
     
    Ayatus likes this.
  16. S95Sedan

    S95Sedan Newbie

    Newcomer
    1
    Jun 11, 2013
    Netherlands
    Thanks a bunch for the main.dol patch. Works great on both dolphin and wii.

    Game works aswell with all of the .LH files converted/decompressed and the original ones replaced. (Though its still 1.013Mb in size afterwards but cleans up the iso alot though)
     
  17. damysteryman

    damysteryman I am too busy IRL these days...

    Member
    6
    Oct 4, 2007
    OK, looks like I have gotten USAv1 (I think) dol and USA v2 dol, so I should be able to convert those within the next few days too.
    And thanks again @Wiimm, for all those tips and info about WIT, I really appreciate it :) I will definitely be able to refine my batch file better now, using your suggestions. :)

    EDIT: @S95Sedan:
    Actually, I did not modify any of the files themselves, apart from the main.dol. The Newer files are unaltered and most of them are actually new files that NSMBW did not have before, only a few are actually replacements for existing files.

    EDIT2: Ok, I am off for now, tis middle of night/early morning where I am atm, really need sleep :P
    Will be back later, night all.
     
    secretchaos1 likes this.
  18. S95Sedan

    S95Sedan Newbie

    Newcomer
    1
    Jun 11, 2013
    Netherlands
    Yeah noticed in the .bat aswell as in the main.dol after patching. Do know a bit myself but couldnt really figure out the loader.bin part and what to use with it. Adresses were easy though. Converting the .LH was mainly to remove double files since they are just making things a mess.
     
  19. pwsincd

    pwsincd Garage Flower

    Member
    12
    GBAtemp Patron
    pwsincd is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 4, 2011
    Manchester UK
    lol rydian you replied a hour after joostin and treeki with vitually the same info in regards to sickpuppy's post . Christ Read. Just sayin :P
     
  20. Rydian

    Rydian Resident Furvert™

    Member
    18
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    I open sets of tabs at a time and then run through them. :P
     
Quick Reply
Draft saved Draft deleted
Loading...