New wad packing tool

Discussion in 'Wii - Hacking' started by trent_fox, May 30, 2008.

  1. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    I spent all night coding this up, let me know what you think.

    [​IMG]
    Download: http://foxingworth.com/wii/tf_wad_packer.zip

    All you need to do is stick common-key.bin into the wadtools folder (don't ask me where to get this file). Insert a SD card that has a filesystem dump on it and start the program. It'll read through your dump and list available channels. Click Pack WAD when you find what you want and it'll automatically find the appropitate files and make you your wad.

    Try it out and let me know how it works.

    Update 5:
    Fixed a bug that gave ticket errors for some people.

    Update 4:
    More robust name detection.

    Update 3:
    Added a debug mode so those having problems can send me a log to help squash bugs.

    Update 2:
    The program no longer uses a database for looking up the names. It now examines the files and figures out the title on it's own. No more unknown titles, however some names come out funny (ie. "Defend Your CastleXGen Studios").

    It also makes sure channel content is present when adding to the list. The old version listed a channel if the ticket was present, which doesn't neccesarily mean the channel exists.

    Update:
    Well it turns out that the KiKe wadpacker is rubbish, so I switched to one that makes valid tickets. This app now uses the BFGR Wadtools to do the actual packing, which will hopefully work out better.
     
  2. skawo96

    skawo96 GBAtemp Advanced Maniac

    Member
    1,925
    2
    May 22, 2008
    Promising, promising. But what that mean: you must have a dump of system to run this? [​IMG]
     
  3. JKR Firefox

    JKR Firefox Back.

    Member
    1,130
    1
    Nov 18, 2006
    Canada
    Canada
    Great work!

    I'm going to try this out as soon as I get home. I'll give my impressions later.
     
  4. Sir VG

    Sir VG GBAtemp Advanced Fan

    Member
    847
    2
    Jun 26, 2004
    United States
    It means you have to do a File System dump of the Wii's internal flash contents, just like with any other WAD packing program.
     
  5. jayparadox

    jayparadox GBAtemp Fan

    Member
    352
    0
    Oct 14, 2007
    Spain
    If it's Kike, it'll use his stupid ticket signing?
    Those tools are bad and make bad WAD's if you based this tool on them.

    EDIT: I'll explain better.
    Kike's tools sign the ticket with a bad title-key. The WAD will install, but it's a BAD ticket, and could cause problems.
     
  6. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    You need to run the file system dump application by Waninkoko on your Wii. That dumps the contents of your Wii's NAND onto your SD card, which this application then reads to create the wads. It doesn't make the games out of thin air.
     
  7. Nunim

    Nunim Member

    Newcomer
    16
    0
    Jan 16, 2006
    This is just what we needed, another way for people to make bad tickets.
     
  8. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    Hmm, didn't know his tool made bad tickets. What's bad about them and/or which tool should I look into that makes better wads?
     
  9. Sonic4Ever

    Sonic4Ever GBAtemp Regular

    Member
    249
    29
    Apr 21, 2008
    France
    O.M.G.
     
  10. jayparadox

    jayparadox GBAtemp Fan

    Member
    352
    0
    Oct 14, 2007
    Spain
    I use those BRBG(or what ever they are called) for Windows, and Marcans tools under Linux.

    PD: It's a good app that you have made, just based on the wrong tools. I'm sure it'll be "easy" to change and use the good tools [​IMG]
     
  11. Arakon

    Arakon GBAtemp Fan

    Member
    312
    3
    Apr 24, 2008
    Gambia, The
    change it to use the wadtools wadpacker or the blaze wadpacker. both create good tickets.

    the "bad" tickets kike's tool creates are basically entirely fake tickets with a message inside, they work but are easy to detect/disable.
     
  12. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    Looking into the new tools right now, I hope to have a better version out later today.

    EDIT: Ok, switched the BFGR wadtools.
     
  13. Soubi

    Soubi Newbie

    Newcomer
    2
    0
    May 30, 2008
    Angola
    Please release the source code. I would like to try adding detection of the channel name directly from the channel itself instead of from an internal database.

    Thanks!
     
  14. superrob

    superrob H4X H4X H4X!

    Member
    2,465
    3
    Apr 4, 2007
    GBATemp factory.
    Woho nice tool you made there!
    Will really become usefull to dumpers!
     
  15. arctic_flame

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    2,840
    0
    Nov 4, 2006
    England land
    What is it written in?

    (looks like VB...)
     
  16. Sir VG

    Sir VG GBAtemp Advanced Fan

    Member
    847
    2
    Jun 26, 2004
    United States
    Or at least make the database external, so it can be edited. Most people that would be using this know what serials equal which channels.
     
  17. deadrabbit

    deadrabbit Advanced Member

    Newcomer
    92
    0
    Aug 8, 2007
    Good work, looking forward to using it with pro tickets!
    Itll be good to dump PAL wiiware.
     
  18. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    Added another update. I figured out how the names were stored in the files and did away with the database.

    And for whoever asked, yes this is coded in Visual Basic. As much as I'd want to use a "real" language, VB is just too damn easy to pump out apps in.
     
  19. Sir VG

    Sir VG GBAtemp Advanced Fan

    Member
    847
    2
    Jun 26, 2004
    United States
    Not bad, but there is one issue I still see with file listing.
    [​IMG]

    Granted I should know what it is, but I don't...and there's no way to identify it anymore.

    Yes, I have remembered what it is, but there should be a way to program that if it's unknown, that it uses the serial. Being that it's QAPJ (Rondo of Blood) it should at least be able to say it's a TG-16 game, since P and Q are always used for that system (P for cartridge games, Q for CD based games).
     
  20. trent_fox
    OP

    trent_fox GBAtemp Regular

    Member
    166
    0
    Apr 4, 2007
    United States
    I'll fix that up in the next version SirVG. I'll have to track down that game and see why it isn't detecting the name properly.

    The system detection is my fault. I didn't realize that both P and Q were used for TG-16 (I only have it checking for P).