Hacking WiiU VC game injection working on 5.3.2

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
try to replace header with anothet known working game. I curious to see what could happen.

While that might work with decent efficacy, I wouldn't know how to change the ROM's header at all, since the process is somewhat automated with Fix94's snesinject.ext :P How would I go about changing that? XD If it can be done, it could open up higher compatibility, and that might be what Nintendo is doing, why the compatibility varies between VC games.
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,604
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,281
Country
Canada
While that might work with decent efficacy, I wouldn't know how to change the ROM's header at all, since the process is somewhat automated with Fix94's snesinject.ext :P How would I go about changing that? XD If it can be done, it could open up higher compatibility, and that might be what Nintendo is doing, why the compatibility varies between VC games.
hex editors
 
  • Like
Reactions: the_randomizer

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
True, that would be the way to do so, but I assume you mean I would edit the ROM's header that I'm injecting, right? I wouldn't even know what addresses or offsets to edit, truth be told, and might need some assistance in doing so, heh.
The Header is noticeable almost immediately within the first 0x100 bytes or so, like in the image I posted.
It's the one that says POKEMON EMERAL with caps.
 

Attachments

  • Screenshot from 2015-09-11 11:34:33.png
    Screenshot from 2015-09-11 11:34:33.png
    37.7 KB · Views: 195

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
The Header is noticeable almost immediately within the first 0x100 bytes or so, like this:

Interesting, so now I know where to look, but what do I change, exactly? Something that identifies the ROM being HiROM or LoROM? I'd love to know just so I don't eff this up. Also, found this as well, that tell what
bytes do what

http://www.smwiki.net/wiki/Internal_ROM_Header
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
Interesting, so now I know where to look, but what do I change, exactly? Something that identifies the ROM being HiROM or LoROM? I'd love to know just so I don't eff this up. Also, found this as well, that tell what
bytes do what

http://www.smwiki.net/wiki/Internal_ROM_Header
Get two copies of the same game ROM, one for the japanese version and one for the USA version.
Open them both in a HEX editor, you will notice that they both have headers, although they have different strings of text.
Just copy the one from the japanese version to the USA one, ONLY the header string.

That's it
 

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
Get two copies of the same game ROM, one for the japanese version and one for the USA version.
Open them both in a HEX editor, you will notice that they both have headers, although they have different strings of text.
Just copy the one from the japanese version to the USA one, ONLY the header string.

That's it.

So just highlight those 100 bytes or so, copy from Japanese ROM to NA ROM like in the pic you posted? Simple enough, cool, okay then :D I'll let you know how it goes :P
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,604
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,281
Country
Canada
But I can't find the header in the Snes ROM, using HxD, I can't find it, where is it for Snes ROMs?
isn't it at the end of file? or am I thinking about something else?
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
@the_randomizer
Here's the one for EarthBound.
SNES ROMs either have header or not, if it has a header the name of the game or something similar should be within the first 300 bytes, if it doesn't then it should be within the first 50.

IMPORTANT:
Be SURE you only copy the NAME/HEADER of the game, not the whole starting section!
For example, with EarthBound you should only copy the bytes that create the word "EARTH BOUND", NOTHING else.
 

Attachments

  • Screenshot from 2015-09-11 11:52:40.png
    Screenshot from 2015-09-11 11:52:40.png
    30.6 KB · Views: 178
  • Like
Reactions: the_randomizer

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
isn't it at the end of file? or am I thinking about something else?

Nope, the only instance I found the title "STAR FOX" for NA and JPN versions were at offset 00007FC0 with byte such as as

The offsets in USA version
00007FC0 53 54 41 52 20 46 4F 58 20 20 20 20 20 20 20 20 STAR FOX
00007FD0 20 20 20 20 20 20 13 0A 00 01 01 00 46 09 B9 F6 ....F..o

The offsets in JPN version
00007FC0 53 54 41 52 20 46 4F 58 20 20 20 20 20 20 20 20 STAR FOX
00007FD0 20 20 20 20 20 20 13 0A 00 00 01 00 ED 54 12 AB. ....IT

I don't even think these are the headers in the ROM though.

@the_randomizer
Here's the one for EarthBound.
SNES ROMs either have header or not, if it has a header the name of the game or something similar should be within the first 300 bytes, if it doesn't then it should be within the first 50

Found them for both versions it seems (posted above your quote ^_^) Do I swap this 00007FD0 20 20 20 20 20 20 13 0A 00 01 01 00 46 09 B9 F6 for this
00007FD0 20 20 20 20 20 20 13 0A 00 00 01 00 ED 54 12 AB?

I know I sound like a noob, but I want to be sure I do this right, you know? How many addresses do headers go for? Two rows, three, four? I don't even know where it ends. XD

Edit: Just saw the update, will do .

Edit 2: Okay, only the line that creates the name
 

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
Found them for both versions it seems (posted above your quote ^_^) Do I swap this 00007FD0 20 20 20 20 20 20 13 0A 00 01 01 00 46 09 B9 F6 for this
00007FD0 20 20 20 20 20 20 13 0A 00 00 01 00 ED 54 12 AB?

I know I sound like a noob, but I want to be sure I do this right, you know? How many addresses do headers go for? Two rows, three, four? I don't even know where it ends. XD
They usually don't take more than 15 bytes, and for what I can see, it seems that both versions of the game share the same headers.
Let me check it out.
 
  • Like
Reactions: the_randomizer

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
They usually don't take more than 15 bytes, and for what I can see, it seems that both versions of the game share the same headers.
Let me check it out.

Ugh, dammit, this better not be the case for all USA and JPN games, if so, I'm screwed.

Edit: Nope,

A Link to the Past
00007FC0 54 48 45 20 4C 45 47 45 4E 44 20 4F 46 20 5A 45
00007FD0 4C 44 41

Zelda no Densetsu: Kamigami no Triforce
00007FC0 5A 45 4C 44 41 4E 4F 44 45 4E 53 45 54 53 55
 
  • Like
Reactions: ShadowOne333

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
Ugh, dammit, this better not be the case for all USA and JPN games, if so, I'm screwed.

Edit: Nope,

A Link to the Past
00007FC0 54 48 45 20 4C 45 47 45 4E 44 20 4F 46 20 5A 45
00007FD0 4C 44 41

Zelda no Densetsu: Kamigami no Triforce
00007FC0 5A 45 4C 44 41 4E 4F 44 45 4E 53 45 54 53 55
There you go!
With that you can try out swapping headers and see if you get different results. :)
 

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
There you go!
With that you can try out swapping headers and see if you get different results. :)

Any luck on your end for Star Fox? Also found them for Secret of Mana and Seiken Densetsu 2, curious to see if it'll work, heh.


Edit: Swapped Japanese header with US header on Secret of Mana, it worked.
 
  • Like
Reactions: VinsCool

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,272
Trophies
2
XP
35,328
Country
Mexico
Any luck on your end for Star Fox? Also found them for Secret of Mana and Seiken Densetsu 2, curious to see if it'll work, heh.


Edit: Swapped Japanese header with US header on Secret of Mana, it worked.
Yes, found a slight difference between the two.
As you mentioned, change the whole two rows from the USA to the Japanese ROM header like I selected them in the image.
 

Attachments

  • Screenshot from 2015-09-11 12:29:38.png
    Screenshot from 2015-09-11 12:29:38.png
    41 KB · Views: 173
  • Like
Reactions: the_randomizer

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Stop opening pms from @Psionic Roshambo