News: 11 March 2016 - Forum Rules

Author Topic: Game Genie Guy!  (Read 56132 times)

southbird

  • Jr. Member
  • **
  • Posts: 32
  • Super Mario Bros. 3Mix
    • View Profile
    • Sonic Epoch, also home of 3Mix
Re: Game Genie Guy!
« Reply #20 on: July 23, 2014, 02:40:08 pm »
Is there a utility for this, or any other way of doing so easily? I want to combine some 6 digit codes for Metroid (NES) but can't do so without breaking the game.

First, what do you mean by "combine some 6 digit codes"? Also, given what I was just talking about, 6 digit codes actually effect the same address on the ROM irrespective of the mapper's current setting (MMC1 for Metroid), which makes them somewhat complex to apply by utility.

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #21 on: July 23, 2014, 04:48:26 pm »
First, what do you mean by "combine some 6 digit codes"?

I mean I want to use four of them (SUPEAI, KAPGEI, SSAEAI, and EEXTTY) at once. I was hoping to make a rom that had them permanently hardwired. And I know they can all be used in conjunction because I've used them as a set many times. But trying to make them permanent using GGG or CCCGP results in a flawed rom where the starting room is full of blocks that shouldn't be there, and the game freezes when you move out of the room on either side.

southbird

  • Jr. Member
  • **
  • Posts: 32
  • Super Mario Bros. 3Mix
    • View Profile
    • Sonic Epoch, also home of 3Mix
Re: Game Genie Guy!
« Reply #22 on: July 24, 2014, 11:46:59 am »
I mean I want to use four of them (SUPEAI, KAPGEI, SSAEAI, and EEXTTY) at once. I was hoping to make a rom that had them permanently hardwired. And I know they can all be used in conjunction because I've used them as a set many times. But trying to make them permanent using GGG or CCCGP results in a flawed rom where the starting room is full of blocks that shouldn't be there, and the game freezes when you move out of the room on either side.

Yeah, that was the problem I was getting at. NES GG codes are somewhat unpredictable in that they are runtime dependent for any game using a mapper, 6 letter codes VERY much so. The only way any utility could apply them correctly in the permanent sense is if it knows what address each bank in the ROM runs at. I can't think of any way this information could be divined from the ROM just by examination, so it would either need a disassembly (which I think Metroid has at least partially) or just plain old runtime investigation to figure out what those addresses would be. That's what makes a utility that permanently applies them accurately almost a futile effort, unfortunately.

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #23 on: July 25, 2014, 06:26:07 am »
Is there a utility for this, or any other way of doing so easily? I want to combine some 6 digit codes for Metroid (NES) but can't do so without breaking the game.
Yes, if you have some patience you can do this without any real technical know-how. I'll do one so you can get the premise.

"Fire Up And You Fall Down Through The Floor Neutrino99 SUPEAI"

When we use this code we get a good amount of potential offsets in the output section.

SUPEAI - 1E5A8:6F:B5
SUPEAI - 1C5A8:6F:B5
SUPEAI - 1A5A8:6F:B5
SUPEAI - 185A8:6F:B5
SUPEAI - 165A8:6F:B5
SUPEAI - 145A8:6F:B5
SUPEAI - 125A8:6F:B5
SUPEAI - 105A8:6F:B5
SUPEAI - E5A8:6F:B5
SUPEAI - C5A8:6F:B5
SUPEAI - A5A8:6F:B5
SUPEAI - 85A8:6F:B5
SUPEAI - 65A8:6F:B5
SUPEAI - 45A8:6F:B5
SUPEAI - 25A8:6F:B5
SUPEAI - 5A8:6F:B5

Paste this to notepad and do a couple of find/replaces until your text looks like this (drop the SUPEAI - and the :6F).

1E5A8:B5
1C5A8:B5
1A5A8:B5
185A8:B5
165A8:B5
145A8:B5
125A8:B5
105A8:B5
E5A8:B5
C5A8:B5
A5A8:B5
85A8:B5
65A8:B5
45A8:B5
25A8:B5
5A8:B5

Since GGGuy accepts values like this, it then becomes a matter of trying them individually. Start at the bottom - 5A8:B5 and try each of these, one at a time, until you hit the desired effect. If you see garbage obviously move to the next code.

Looks like the correct value is 45A8:B5. You can be done here if you want since GGGuy will accept codes like this. Scribble down the code and move on to the next.

If you would like to convert it back to an 8 digit GG code there's a little bit more but it's still nothing hard.

Open the ROM in a Hex Editor. I recommend HxD since it's free and the portable version doesn't require an install.
http://mh-nexus.de/downloads/HxDen.zip

Once you have it open do Ctrl+G for Goto. Enter your value from above (45A8). You'll see that the hex there is 30.

Download Game Genie Code Converter
http://www.romhacking.net/utilities/23/

Open it and click on the NES button. Enter your original code - SUPEAI. You'll see that there's a blank for the compare value. Enter in 30 from what we found above. Your new code will automagically appear - SUOEAIAL.

This should only take a few minutes per code once you get the hang of it.

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #24 on: July 25, 2014, 11:40:45 pm »
Thanks Kyle, that was enormously helpful. I now have my new rom in hand.

One question, re: transferring 6 digit codes to 8, are you referring to the original rom or the altered one?

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #25 on: July 26, 2014, 08:29:43 am »
In which statement? I'm confused.  :huh:

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #26 on: July 27, 2014, 01:28:42 am »
In which statement? I'm confused.  :huh:

Quote
If you would like to convert it back to an 8 digit GG code there's a little bit more but it's still nothing hard.

Open the ROM in a Hex Editor.

I'm wondering which "the ROM" this is :) I opened up an original/untouched copy, then wondered if it had to be a copy that had already had the codes patched in.

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #27 on: July 27, 2014, 09:14:00 am »
Gotcha. That's the original/unpatched for the hex editor. So you got all four codes going?

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #28 on: July 28, 2014, 02:47:09 am »
Yep, haven't tested my 8 digit codes but I have the rom I wanted. Perfect for exploring the "Secret Worlds" without having to input the codes every time. I also figured out the proper address for the fifth code often used, but I don't think I need it.

Thanks again.

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #29 on: August 11, 2014, 10:17:37 pm »
Hmmmm, so my new rom didn't work quite perfectly, but the results are curious and nonintuitive, to say the least. Namely, the four codes all work brilliantly in the first area, but when you take any elevator down into another zone, two of them stop working (and it looks like if I use the fifth code, it does the same thing, such that only two of the five work all over the map). This is unexpected behavior to say the least since all that should be changing is the room data associated with the new map layer. I'm going to play around with the codes some more and see if there are alternate hex addresses that also work and are not affected by this, but welcome any advice how to work around this.

Oddly, all three of the obviated hex codes start with 45XX:XX, while the two that continue to work do not.

August 11, 2014, 11:25:24 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
Hmmm, so I found a second set of addresses that each of those three codes also needs in order to function on the other side of an elevator. For SUPEAI, for example, you must enter not only 45A3:D5 but also 105A3:D5. The other two broken ones are similar. So now I'm wondering if there's a way to combine the two into a single GG code, or if it will just require two lines.

However, I also found that some complicated elevator trickery will eventually negate all three again, even with two codes entered for each function. I guess I'll have to see if the original 6 digit codes will even hold up to the same elevator madness, and if so, search for a third address for each one.

August 12, 2014, 11:56:54 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I figured it out--for the three codes in question, it turns out one code is required for each of the game's five areas. To use SUPEAI as an example again, all five of the following:

45A8:B5
85A8:B5
C5A8:B5
105A8:B5
145A8:B5

...must be used at once in order to enjoy the effect anywhere in the game. The other two (SSAEAI and SSPALI) follow exactly the same pattern. The ones that begin with 4 activate the codes in Brinstar (as you found originally), 8 in Norfair, C in Tourian, 10 in Kraid and 14 in Ridley. I still find this bizarre and difficult to explain, but at least my patched rom works like a charm everywhere now.

So I'm left with just a simple question: can five codes such as the list above be combined into a single Game Genie code that is any more specific than the original 6-digit code we started with?
« Last Edit: August 12, 2014, 11:56:54 pm by Entroper »

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #30 on: August 14, 2014, 07:07:52 am »
The 8 digit code I posted for it would hit all of those. You might go that route if you want to explore further.

SUOEAIAL - 145A8:30:B5
SUOEAIAL - 105A8:30:B5
SUOEAIAL - C5A8:30:B5
SUOEAIAL - 85A8:30:B5
SUOEAIAL - 45A8:30:B5

Entroper

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: Game Genie Guy!
« Reply #31 on: August 14, 2014, 06:59:11 pm »
Hmmm, now that you mention it, all of my generated 8 digit codes work properly everywhere. Apparently I misunderstood the step where they were being generated; I had thought the 8 digit code was specific to the one hex address I was working back from, and that this was why 8 digit codes are preferred.

Looks like my replacement code for SSAEAI (SSEEASTP) is similar to SUOEAIAL, and hits those five addresses and those five only, which is perfect. My replacement code for SSPALI (SSOALSNY) hits those five plus 25AX and 5AX though. But at least the extra two changes have no apparent ill effects.

Tivo6

  • Jr. Member
  • **
  • Posts: 35
    • View Profile
Re: Game Genie Guy!
« Reply #32 on: August 13, 2015, 09:28:03 am »
hey

does this program work with gameboy advance rom codes yet

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #33 on: August 13, 2015, 10:16:50 am »
It is not likely to happen. The codes work differently for it. Buy a flash cart with cheat support.

obscurumlux01

  • Full Member
  • ***
  • Posts: 168
    • View Profile
Re: Game Genie Guy!
« Reply #34 on: August 13, 2015, 04:25:23 pm »
Congratulations, you've just made a utility that duplicates the functionality in ZSNES, SNES9X, KEGA Fusion, Nesticle, and FCEUX.
You deserve a cheer  :woot!:

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #35 on: August 13, 2015, 06:44:16 pm »
U mad bro? :D




SunGodPortal

  • Hero Member
  • *****
  • Posts: 2939
  • 2 + 2 = 5
    • View Profile
Re: Game Genie Guy!
« Reply #36 on: August 13, 2015, 08:32:33 pm »
Emulators are for posers. 8)
Cigarettes, ice-cream, figurines of the Virgin Mary...

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 7208
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: Game Genie Guy!
« Reply #37 on: August 13, 2015, 09:39:17 pm »
U mad bro? :D


Let's see you make (not play) a ROM hack with your "emulators". :P

(okay, so I understand in the stone age they might have done that. Mostly anti-piracy cracks, though.)
"My watch says 30 chickens" Google, 2018

Kyle

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: Game Genie Guy!
« Reply #38 on: August 13, 2015, 09:59:52 pm »
Let's see you make (not play) a ROM hack with your "emulators". :P
Haha. This went to a weird place. I use emulators regularly to make to make codes. Emulators are fine.

I prefer gaming on real hardware. This utility is helpful in that scenario. I get that you may not want to drop $300 on an RGB modded NES or $100 for an Everdrive. I really do. But for some of us the expense is "worth it."
« Last Edit: August 13, 2015, 10:29:36 pm by Kyle »

SunGodPortal

  • Hero Member
  • *****
  • Posts: 2939
  • 2 + 2 = 5
    • View Profile
Re: Game Genie Guy!
« Reply #39 on: August 13, 2015, 11:50:24 pm »
Quote
Haha. This went to a weird place. I use emulators regularly to make to make codes. Emulators are fine.

heh I think that was my fault. I tend to only use emulators for hacking. Despite all the bells and whistles, playing NES and SNES games on a computer just feels like an inferior experience. But for real, anyone who doesn't own a real SNES is a poser. :P

Quote
I prefer gaming on real hardware. This utility is helpful in that scenario. I get that you may not want to drop $300 on an RGB modded NES or $100 for an Everdrive. I really do. But for some of us the expense is "worth it."

Exactly. I prefer playing these games on an old CRT. Just doesn't feel right playing them on a computer. On the other hand I do play games for portable systems on a comp because I don't really care for handheld gaming.
Cigarettes, ice-cream, figurines of the Virgin Mary...