wwt+wit: Wiimms WBFS+ISO Tools

Discussion in 'Wii - Hacking' started by Wiimm, Sep 28, 2009.

  1. Wiimm
    OP

    Wiimm Developer

    Member
    2,172
    381
    Aug 11, 2009
    Gambia, The
    Germany
    What is the advantage of an unsigned image?
    However, technical the image is always signed, by random, null, fake sign or real sign.
     
  2. SuperrSonic

    SuperrSonic GBAtemp Advanced Fan

    Member
    663
    222
    Dec 9, 2011
    Puerto Rico
    I extracted SSBB with wit extract, now I'm trying to build it again but it's only copying the game partition.

    I used "wit copy (folder) --psel -update --split RSBE01.wbfs" also tried "--psel data,ptab1" to no avail.
     
  3. piratesephiroth

    piratesephiroth I wish I could read

    Member
    3,017
    1,622
    Sep 5, 2013
    Brazil
    why did you extract it?

    you can just use:
    Code:
    wit copy --source "path_to_old_iso" --dest "path_to_new_iso" --raw --psel DATA
     
    Last edited by piratesephiroth, Sep 5, 2017
  4. SuperrSonic

    SuperrSonic GBAtemp Advanced Fan

    Member
    663
    222
    Dec 9, 2011
    Puerto Rico
    For two reasons: remove the dummy files to save space, and to add a modified dol+brsar for dual audio. I've had this setup for a long time, I just want to fix the masterpieces.
     
  5. Wiimm
    OP

    Wiimm Developer

    Member
    2,172
    381
    Aug 11, 2009
    Gambia, The
    Germany
    try: wit copy FOLDER --split RSBE01.wbfs
    without --psel
     
  6. shadow256

    shadow256 Member

    Newcomer
    24
    1
    Sep 30, 2017
    France
    Helo,

    At first, I want to say a big thank you for this great set of very useful tools.

    I'm trying to use Wit in a batch script but I have a problem with accents. For example:

    Code:
    @echo off
    set gamepath=testé.iso
    IF EXIST "%gamepath%" wit DUMP "%gamepath%"
    pause
    
    I've tried with the --no-utf-8 option, I have tried to change the active code page with "chcp 65001" and "chcp 1252" but same error:

    Code:
    !! wit: ERROR #74 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#447
    !!      Can't open file: "testé.iso"
    
    I'm sure that the file exist and I'm also sure that the file haven't any problem because if I try to do the same thing with the same file but renamed to "test.iso", it works.

    I'm runing it on a french Windows 7 X64.

    Thanks for your help.

    PS: This problem also appears when there are accents in a dirrectory into the path. I don't know if this problem is on the destination path because I've only test this with source path.
     
    Last edited by shadow256, Nov 17, 2017
  7. Wiimm
    OP

    Wiimm Developer

    Member
    2,172
    381
    Aug 11, 2009
    Gambia, The
    Germany
    I know there are some issues at the Cygwin layer for exotic letters. Is the file itself UTF-8 (my first recommendation) or has it any other coding.
     
  8. shadow256

    shadow256 Member

    Newcomer
    24
    1
    Sep 30, 2017
    France
    I use the ANSI encoding file for my script but I've tried UTF-8 also to see if it's work and no, it doesn't.

    If I do something like that:

    Code:
    @echo off
    chcp 65001
    set /p gamepath=Enter the path of your game:
    IF EXIST "%gamepath%" wit DUMP "%gamepath%"
    pause
    
    If I enter "testé" in my keyboard into the path of the file, it doesn't work aloso, whatever is the encoding of the file or the chcp value. I've also tested to do this directly in the cmd:

    Code:
    chcp 65001
    wit DUMP "testé.iso"
    
    But the problem was the same, doesn't work.

    I've made some other tests:
    - Encoding the script to UTF-8: doesn't work.
    - Exporting the variable to a text file in UTF-8 and call it it to replace wit source path: doesn't work.
    - Try to change encoding of chcp: doesn't work.
    - Try to mix encoding of the script and the chcp: doesn't work.
    - Try to enter the unicode char for the "é" "é": doesn't work but the char could be converted to a real "é" if I set the chcp to 65001.
    - Differents combinations of these tests: doesn't work.
    I start to think that this is unsolvable. If you have something to suggest to me I'll listen because I have no more ideas for testing?

    Edit: I found that in a cmd console, if I try:
    Code:
    wit DUMP "testé.iso"
    
    it doesn't work but if I do that:
    Code:
    wit DUMP testé.iso
    
    it work and I don't need to enable UTF-8 with chcp. Now it's not a solution because I use a script witch require user entries and without the ("), the script will not work properly. I continue to search...
     
    Last edited by shadow256, Nov 18, 2017
  9. Wiimm
    OP

    Wiimm Developer

    Member
    2,172
    381
    Aug 11, 2009
    Gambia, The
    Germany
    I have tested it by myself and can confirm the issues. I've found some similar Cygwin problems and description how to fix it. For the moment it simply don't work .

    Workarounds for the moment:
    - use linux
    - rename the image
     
  10. shadow256

    shadow256 Member

    Newcomer
    24
    1
    Sep 30, 2017
    France
    OK, thanks. That's what I have done in my script, I temporarily copy the image to a location without accents.
     
  11. Wiimm
    OP

    Wiimm Developer

    Member
    2,172
    381
    Aug 11, 2009
    Gambia, The
    Germany
    [​IMG]

    WIT: Wiimms ISO Tools v3.01a - 2017-12-03
    A command line ISO+WBFS tool set for various os.

    WIT (Wiimms ISO Tools) is a set of command line tools to manipulate Wii ISO images and WBFS containers. The two main tools are called wit (Wiimms ISO Tool) and wwt (Wiimms WBFS Tool, the WBFS manager).

    Feature overview:
    Visit https://wit.wiimm.de/features.html for more details.

    Download of the current version:

    There are also some GUI available:

    Change log:

    Code:
    wit v3.01a r7464 - 2017-12-03
    
     - New option: --dsync: The option enables the usage of flag O_DSYNC when
       opening a partition at a hard drive. With activated flag, writing an image
       is some percent slower, but the progress counters are exact again.
    
    
    The source is published under the license of GPL2. Checkout the sources directly from the SVN repository or browse the source. Visit https://wit.wiimm.de/ for more information.
     
    bm123456 and markehmus like this.
  12. johnsanc

    johnsanc Member

    Newcomer
    15
    0
    Sep 27, 2016
    United States
    Maybe I’m doing something wrong... but how do you get wit MIX to create an ISO with the data partition starting at 0xf80000?
    When I use the mix function the memory maps show the data partition starts immediately after the update partition ends instead of having unused space between. I checked this by using wit DUMP on my mixed file with verbose logging.
     
    Last edited by johnsanc, Dec 10, 2017 at 3:04 PM