Hacking Rom Injector for VC Titles

  • Thread starter Thread starter creffca
  • Start date Start date
  • Views Views 63,540
  • Replies Replies 202
creffca said:
stev418 said:
yes, pretty much. For example the hex value for 00000005.app with size of 10,782,092 bytes is 00 00 00 00 00 A4 85 8C if I understand correctly?

So if i have a file size of say 12,323,098 for 00000005.app how would I arrive at the correct hex value? Just might be habdy to know, just might not be
smile.gif

If you want you can just use the windows calculator. Put it in view->Scientific mode, type your file size in dec, then click the hex radio button. 12,323,098=0xA4858C. That address space in .tmd is 8 bytes though, so it looks like 00 00 00 00 00 A4 85 8C.

Thanks kindly, most other stuff i worked out, just wanted to know this little bit
smile.gif
 
Here is my last version for a while(unless I completely broke something with this build). I've had a lot of fun working on it, but I think I'm at a stand-still until more information about wads become available. Thanks to everyone for all the great feedback, and my apologies to those it didn't work for.

CHANGES v2.3
-Even more protection against noobs, er I mean user error
-Command line option to force mode
-Command line option to automatically use the first entry found in wad

New usage:
*parameters in [] are optional
injectuwad [mode] [prompt]

mode: 1 = SNES
2 = N64
3 = TG16
4 = Homebrew(DOL)

prompt:y = yes
n = no

Download V2.3
 
trying to calculate hex value for 12,879,244 bytes, cant seem to find hex button.

when i typed 12,323,098 i didnt get the same value when i clicked on the only place i could see 'hex' i got BC091A ??

EDIT: its ok - figured it out
 
stev418 said:
trying to calculate hex value for 12,879,244 bytes, cant seem to find hex button.

when i typed 12,323,098 i didnt get the same value when i clicked on the only place i could see 'hex' i got BC091A ??

Yikes, I screwed up on my post. BC091A is the correct answer, sorry about that.
 
So I am trying to inject Dr. Mario 64 into Sin and Punishment. Following the instructions, it creates a wad called VC-drmario.z64.wad that is 242KB. Seeing as how the original rom is 4,096KB, that can't be right. It does complain about common-key not being found, but other posts say that if it wasn't found, the output would be only 4KB and that that error doesn't mean anything. common-key.bin and its renamed form: common-key are both in the same folder as injectuwad. It also says cannot open 00000100.app . When I renamed the .app files from 000000001.app to 00000100.app, 000000002.app to 00000200.app, etc. the wad file created became 658KB. I am working in c:\injectu because I know the wad tools have issues with spaces and characters.

The game is probably not compatible anyways, but I'd like to try, and it seems that even being not compatible, it should still make a valid wad. Any ideas?
 
creffca said:
stev418 said:
trying to calculate hex value for 12,879,244 bytes, cant seem to find hex button.

when i typed 12,323,098 i didnt get the same value when i clicked on the only place i could see 'hex' i got BC091A ??

Yikes, I screwed up on my post. BC091A is the correct answer, sorry about that.

no worries, anyhow - i sort of succeeded in what i wanted to do, i added a Larger rom file then DKC2 (Tales of Phantasia) and added the new file size hex value, the wad installed without a glitch - but black screen after classic controller screen, must have unsupported chip as well, same as star ocean (SDD-1 i think?). At least now we know how to inject Conkers bad fur day ?? yes?? have to go to bed, see if someone will try that one before me
wink.gif
 
Update:

Ok - No Success with changing the the game title in the Html. (to show the right game when you look at the Virtual Channel - underneath the game picture)
Aside from the fact that you need to insert strings for it to be correct.
I will give it another go without inserting strings to keep the byte size exact

it fails on #005 with a -1022 RETR

unsure.gif
 
stev418 said:
creffca said:
stev418 said:
trying to calculate hex value for 12,879,244 bytes, cant seem to find hex button.

when i typed 12,323,098 i didnt get the same value when i clicked on the only place i could see 'hex' i got BC091A ??

Yikes, I screwed up on my post. BC091A is the correct answer, sorry about that.

no worries, anyhow - i sort of succeeded in what i wanted to do, i added a Larger rom file then DKC2 (Tales of Phantasia) and added the new file size hex value, the wad installed without a glitch - but black screen after classic controller screen, much have unsupported chip as well. At least now we know how to inject Conkers bad fur day ?? yes?? have to go to bed, see if someone will try that one before me
wink.gif

If I'm not mistaken, enlarging the .app file requires a bit more than that. The .app file is actually a U8 archive file, which you can read about here http://wiibrew.org/index.php?title=U8_archive . When you increase the file size you have to update all the offset and size fields in the node data structures within the file.
 
krakenx said:
So I am trying to inject Dr. Mario 64 into Sin and Punishment. Following the instructions, it creates a wad called VC-drmario.z64.wad that is 242KB. Seeing as how the original rom is 4,096KB, that can't be right. It does complain about common-key not being found, but other posts say that if it wasn't found, the output would be only 4KB and that that error doesn't mean anything. common-key.bin and its renamed form: common-key are both in the same folder as injectuwad. It also says cannot open 00000100.app . When I renamed the .app files from 000000001.app to 00000100.app, 000000002.app to 00000200.app, etc. the wad file created became 658KB. I am working in c:\injectu because I know the wad tools have issues with spaces and characters.

The game is probably not compatible anyways, but I'd like to try, and it seems that even being not compatible, it should still make a valid wad. Any ideas?
It's definially not joining all the app files together for whatever reason.
Post the output on here or something so we can help you better.
 
Ok edited 005.app keeping the bytes in tact - No joy
frown.gif


It failed again on #005 with a -1022 RETR

Guess wait until someone finds a way to extract/reinsert the content from 005.app
 
Hey creffca, you're obviously a bit of an expert with these VC titles/.wad files. I was wondering if there was any way to 'ínject' other region channels into channel wad files. For example, injecting the NTSC-U region Wii Shop into the NTSC-J Wii Shop wad file? Or maybe inject the channels from games such as Mario Kart and Wii Fit so that they work on consoles from different regions? By the way, your freethewads application rocks, so good to play OoT in English rather than Japanese....

grog.gif
 
Cocytean said:
Hey creffca, you're obviously a bit of an expert with these VC titles/.wad files. I was wondering if there was any way to 'ínject' other region channels into channel wad files. For example, injecting the NTSC-U region Wii Shop into the NTSC-J Wii Shop wad file? Or maybe inject the channels from games such as Mario Kart and Wii Fit so that they work on consoles from different regions? By the way, your freethewads application rocks, so good to play OoT in English rather than Japanese....

grog.gif

kknn programmed freethewads, so you can thank him for the awesome region patcher. And sorry, I have no experience with injecting different regions.
 
I have no good news for people with -4100, just some statements...
Results using Chrono Trigger wad & Final Fantasy 3

Injecting using creffca's injectuwad - 4100 error
Injecting manually using stev's method and wad7.exe- 1022 error when installing content #0 (dunno why i have the same common-key as before)
Injecting using stev's method and Blaze wad packer - 2100 error @ title.tmd
Injecting using stev's method and using the wadpacker from creffca - 1022 error content #0

Any ideas on the 1022 error......
can i post a "hex" string from inside my common-key.bin or is that illegal (just to ensure its correct)

Creffca - Maybe I could pm you a compiled wad of mine so you can see the -4100 error and maybe what causes it? Though maybe its just wii based....
 
blu9987 said:
can i post a "hex" string from inside my common-key.bin or is that illegal (just to ensure its correct)
Considering all common-key.bin consists of is that one string of hex, I'd say it is illegal.
Just google the string and see what you get.
 
blu9987 said:
I have no good news for people with -4100, just some statements...
Results using Chrono Trigger wad & Final Fantasy 3

Injecting using creffca's injectuwad - 4100 error
Injecting manually using stev's method and wad7.exe- 1022 error when installing content #0 (dunno why i have the same common-key as before)
Injecting using stev's method and Blaze wad packer - 2100 error @ title.tmd
Injecting using stev's method and using the wadpacker from creffca - 1022 error content #0

Any ideas on the 1022 error......
can i post a "hex" string from inside my common-key.bin or is that illegal (just to ensure its correct)

Creffca - Maybe I could pm you a compiled wad of mine so you can see the -4100 error and maybe what causes it? Though maybe its just wii based....

If your getting error at content #0 it would appear that theres error in the sha1 hash for that file, if you changed the banner name, did you make sure you inserted the new sha1 hash for file 00000000.app in the correct place in the .tmd file? also quick recheck that no hex is typo'd.
 
does it matter what i put for bannedid and creator...
i normally put
Bannedid - FinalFantasy Creator @blu-
FinalFantasy3
FinalFantasy3
FinalFantasy3


and so on



Edit: I triple checked my work and I put in the SHA1 Hash exactly over the old SHA1 Hash value...... no typos...
Edit2: Just tried loading a rom that did NOT have the channel info changed, still same error. I DID change the ticket though...
 
creffca, I've been trying to get this injecting thing to work using your Injectuwad package for a while now.
I've had no luck so far.
I just downloaded your latest version 2.3, and still haven't got it working properly.
Before I go into detail about what I do and what goes wrong, let me submit a bug report on version 2.3:
The first character of the Ticket Name is now being changed to J every time, no matter what is set in injector.ini
For example, if I set it to TEST, the WAD Installer Channel reports it as JEST when installing.
When using randomticket=0 all the ticket names start with J as well.
This problem did not occur in the older version I was using before.
 
I've finally got this to work for me, it won't run properly on my actual PC but it creates valid WADs if I use a virtual PC! It also puts the des files in the folder one up from injectuwad, so I have to manually move them each time, but at least it works.
 
One pretty simple question:
I have installed a couple .wads that did not work, jet force Gemini, and banjo and kazooie (or however you spell it!!). Any ways, if I wanted to use to wad uninstaller, would it delete all the tickets from the channels I deleted even if I only use one channel to remove them? I am wondering because they all have the same tickets so shouldn't all the tickets be removed from just using one channel to uninstall? I would manually delete the channel itself.
 

Site & Scene News

Popular threads in this forum