Generic Wii Patcher

Discussion in 'Wii - Hacking' started by bailli, Mar 10, 2008.

  1. bailli
    OP

    bailli GBAtemp Regular

    Member
    187
    21
    Oct 16, 2006
    Gambia, The
    Hi,

    I wrote a small patcher (win32 GUI) that does combine some existing ones.
    For a feature list check out the readme. Please report any bugs/errors.

    Update: 1.2 available

    Attention: WGLPv2 features are still not implemented!
    But the new version features an untested patch for the #002 error!



    Readme:

    Wii Generic Patcher 1.2
    by b@iLLi

    Thanks to:
    - matsuken for the original video patch
    - Waninkoko for Wii Video Mode Changer
    - ReturnerS for the Wii Game Language Patcher
    - QLeap for the #002-fix


    Usage
    =====

    Before you can use any option you need to load a (main).dol file by
    pressing "Load" and select your desired file.
    After you applied the patches you have to press "Save". Otherwise no
    data will be written!

    Note: Always watch the log output for errors!

    At the moment there are four aspects that can be patched:

    1. The "Error 001" drive chip detection
    2. The console language detection can be overriden (Wii Game Language Patcher)
    3. The video modes can be changed (Wii Video Mode Changer)
    4. The "country strings" or whatever you want to all them can be edited
    (e.g. These are the strings you need to get cooking mama working)

    a) Error 001

    Just hit "Search" and let the program (hopefully) find the drive check.
    After that just hit "Remove 001".
    (The button will display "Restore 001" if the drive check is already disabled.
    Consequently pressing "Restore 001" ENABLES the drive check again!)

    b) Console language detection

    Again just hit search and wait for the search result.
    Just select the game's language from the dropdown list and and press
    "Patch to new language".

    c) Video Modes

    Start by pressing "Search" (again...). Now you have three options:
    You can either use the NTSC-2-PAL or PAL-2-NTSC button (essentially the
    same as the smart patcher from the Wii Video Mode Changer). Both automatically
    patch all video modes to PAL or NTSC (NTSC 480p -> PAL 480p and so on).
    The last option is the "Advanced" button. You will get a list with all
    video modes found in the file. You can edited them individually. Just right
    click on a video mode and a popup menu with all available modes will show up.
    If you checked the "Change all video modes" before the popup menu will change
    all video modes to the selected mode. If you messed up just press cancel and
    all changes are discarded. To apply your changes leave the video mode list by
    pressing "Save".

    d) Country Strings

    Let's start with something new: Press "Search"!
    After that you will see list with the current strings from the file.
    (Of course in the same order as they are in the file).
    To edit one string double click on the string. Keep in mind that these strings
    are always three characters long!


    The WiiP Patch File
    ==================

    This is my atempt to make the current patches somewhat better arranged.
    The changes applied to a file are saved as readable text in this format:

    Offset: OldData NewData

    Empty lines or lines starting with ":" are ignored.

    Example: NMH NTSC-2-PAL:

    CODE; #########################################
    ; # WiiP Patch for Wii *.dol executable #
    ; # generated by #
    ; # Wii Generic Patcher 1.10 #
    ; #########################################

    ; ### NTSC-2-PAL ###
    004C4453: 00 14
    004C448F: 02 16
    004C44CB: 08 04
    004C44CE: 01E001E0 02100210
    004C44D8: 01E0 0210

    a) Create a WiiP Patch

    If you want to create a WiiP Patch you just need to apply the patches as usual
    with patcher. Just hit "Save WiiP" instead of "Save" at the end and a .wip
    file will be generated in the same directory as the .dol

    b) Apply a WiiP Patch

    Open the *.dol you want to patch. Press "WiiP Patcher" and a new window will come up.
    Either write/paste a patch into the text field or load a .wip file from disk.
    Then press apply patch (or respectively undo patch if you want to undo).
    Finally you have to hit "Save" again to write the changes to the real file on the harddisk.



    Changelog:
    ==========

    1.2
    - Included #002-fix by QLeap - UNTESTED!

    1.11
    - Some small bugfixes
    - Better resolution patching (like VMC 2.3)
    - renamed WIP to WiiP (but file extension .wip stays...)

    1.10
    - improved byte pattern for 001-fix (WiiChess works now)
    - Added the option to create and apply WIP patches (see above)

    1.0
    - Initial release


    Download: Generic Wii Patcher 1.2
     


  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,514
    9,330
    Nov 21, 2005
    Nice work bailli
    Picture of it in action for those wondering.
    [​IMG]

    edit better picture:
    [​IMG]
     
  3. syn13

    syn13 Member

    Newcomer
    46
    0
    Dec 27, 2007
    thanks a lot for that, i've been using those tools recently too and this makes it much easier for me [​IMG].

    although could you explain to me what the country strings are for? thanks.
     
  4. bailli
    OP

    bailli GBAtemp Regular

    Member
    187
    21
    Oct 16, 2006
    Gambia, The
    I haven't really used these myself. But in the "nice and structured" modify und resign wii isos thread somebody mentions that you need to edit the first country string to JPN to make cooking mama (usa) work on jap wii
    (found it: http://gbatemp.net/index.php?s=&showto...t&p=1017083)

    EDIT: I have been thinking about this complete mess with patches to make game XY work on console Z.
    I don't know if somebody here has ever played around with Siemens mobiles, but for these phones there
    is an app around to patch their firmware. This software (V_KLay) uses readable files containing the patch information.
    (The structure goes like this: Offset: OldData NewData where olddata and newdata are the hexvalues as a string.)
    So you can add comments and post these files in boards and you just have to copy it and paste it into the patcher.

    Do you think it might be a good idea to implement something like this into my patcher?
     
  5. bosscolor

    bosscolor GBAtemp Fan

    Member
    469
    0
    Dec 4, 2007
    France
    Toulouse
    GR8 work from Bailli as always !

    Thx
     
  6. stev418

    stev418 GBAtemp Fan

    Member
    492
    10
    Sep 25, 2007
    tried the error #001 check on wii chess, but the app didnt pick up the offset
     
  7. Astrax

    Astrax Member

    Newcomer
    31
    0
    Jan 30, 2008
    United States
    Dunno
    Has anyone succesfully removed the drive check in brawl (US)?
     
  8. dweirdo

    dweirdo GBAtemp Regular

    Member
    224
    0
    Dec 6, 2007
    impressing [​IMG] nice work man thank you [​IMG]
     
  9. lombers

    lombers Advanced Member

    Newcomer
    56
    0
    Aug 30, 2007
    I think that would be a useful addition Bailli.

    Also wondering if it's worth adding your update.inf patcher to this program somehow? I think all of these patchers in the one program would make a great tool.
     
  10. djsika

    djsika Advanced Member

    Newcomer
    70
    0
    Mar 5, 2008
    United Kingdom
    removed drive check for a friend with ths tool on us brawl, it works great
     
  11. manias

    manias GBAtemp Maniac

    Member
    1,258
    0
    Aug 7, 2007
    Netherlands
    you should also add the update duplicate channel prevent hack really (tho that's not in main.dol)
     
  12. shadyboy

    shadyboy GBAtemp Regular

    Member
    123
    0
    Oct 31, 2007
    Norway
    Norway, Sandesjoen
    wow.... nice [​IMG]
     
  13. bailli
    OP

    bailli GBAtemp Regular

    Member
    187
    21
    Oct 16, 2006
    Gambia, The
    updated to v1.10.
    See first post.
     
  14. bubbleboy

    bubbleboy GBAtemp Regular

    Member
    272
    2
    Mar 2, 2008
    United States
    Great stuff.. if this had an update manager built it it would be The Must Have Wii App!
     
  15. pelago

    pelago Member

    Member
    999
    51
    Feb 20, 2006
    Nice. I'm not so sure about using the word 'WIP' for Wii Patch, as WIP normally means Work In Progress, often used for pre-release versions of apps, emulators etc.

    Is the source available?
     
  16. mrc2

    mrc2 Newbie

    Newcomer
    3
    0
    Mar 11, 2008
    United States
    hey, how do i get a (main).dol file for super smash bros, i don't know how to make one, i'm trying to get rid of that 001 error when i load the game. thanks for any info on this
     
  17. SleepyPrince

    SleepyPrince GBAtemp Regular

    Member
    173
    0
    Aug 9, 2007
    Hong Kong
  18. mrc2

    mrc2 Newbie

    Newcomer
    3
    0
    Mar 11, 2008
    United States
    thanks , i'll check it out [​IMG]

    Posts merged

    i'm kinda confused there, don't see anything on making the (main).dol file or getting the 001 error fixed, maybe i'm missing something can you please point out what it may be? i'm new to this and would appreciate any help, sorry to be a bother to anyone, but thanks again for any help here. sounds pretty simple if i can get past this .
     
  19. ganons

    ganons GBAtemp Addict

    Member
    2,216
    32
    Jun 12, 2005
    fantastic hope u keep updating when needed
     
  20. bosscolor

    bosscolor GBAtemp Fan

    Member
    469
    0
    Dec 4, 2007
    France
    Toulouse
    nice update