Hacking How do you convert GG codes to work with Snes9xGX?

DeadlyFoez

XFlak Fanboy
OP
Banned
Joined
Apr 12, 2009
Messages
5,920
Trophies
2
Website
DeadlyFoez.zzl.org
XP
2,920
Country
United States
I'm playing super metroid redesign right now and I'm getting hung up at one really tough spot. I've downloaded the cheat code zip pack from the Snes9xGX site but it does not contain this one specific cheat code in the super metroid.cht file that I need. So I pulled it open in a hex editor hoping that I could easily dump in my cheat code, but it isn't going to work that easily. Does anyone know of a tool that can manage .cht files and convert the game genie cheat codes into the format that Snes9xGX uses?

Thanks.
 

DeadlyFoez

XFlak Fanboy
OP
Banned
Joined
Apr 12, 2009
Messages
5,920
Trophies
2
Website
DeadlyFoez.zzl.org
XP
2,920
Country
United States
You need rename cht file same rom name. For example, super metroid design.cht for super metroid design.smc.
Yes, I've already done that and it has a bunch of cheats available but not the specific one that I need so I need to convert one from game genie format and put it in the cheat file that I already have. I guess I could have made that a little more clear.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
1
XP
213
Country
United States
the cheat format used for snes9x is one they seem to have come up with for themselves. its a binary format you can edit with a hex editor. basically you got a name, an offset, an optional compare value, and a replacement value. you can look at the source code for the exact format. they you get on your google machine and look for a gamegenie calculator. you plug in the GG codes and it will tell you the offset, new value, and optional compare value. then you just slap the new values into the .cht file for snes9x and hope for the best.

but be warned, there is a bug with the way cheats are handled in snes9x that have compare values. they are not applied every frame and give odd results. i brought up the issue to tantric and he pointed me to a bug report upstream in the official project for that very issue. id say that until it is fixed upstream, dont expect these codes to work as expected in the wii port.

if youre just bored and want to try it, i used a program called ggencoder as a base for converting game genie codes for punemu. its openy-sourcey and runs on all the PC platforms that support Qt.


http://games.technoplaza.net/ggencoder/qt/

from the snes9xgx svn,
Code:
struct SCheat
{
uint32  address;
uint8   byte;
uint8   saved_byte;
bool8   enabled;
bool8   saved;
char    name[22];
};
 

DeadlyFoez

XFlak Fanboy
OP
Banned
Joined
Apr 12, 2009
Messages
5,920
Trophies
2
Website
DeadlyFoez.zzl.org
XP
2,920
Country
United States
Thank you pune.

Now I can finally continue this uber hard hack of the game. I've been stuck at this one spot for about 8 hours and you have to do wall jumping up to a really high point. My freaking thumbs are all bruised from playing this game so rough for the past couple of days.

Anyone who is a Metroid fan would love this. It takes the game to a whole new level of 'whoop your ass' tough.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,795
Trophies
5
XP
28,571
Country
United Kingdom
Just thought I might also add you can hardpatch some cheats in if you do have GG codes (not aware of any cheat tools in the vein of gabsharky and GBAATM for the older consoles) with tools like CCCGP- http://crackerscrap.com/projects.php
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Sicklyboy, That sucks when the battery already begins to swell up. You considering on a desktop replacement, and if so, which one?
  • Sicklyboy @ Sicklyboy:
    @SylverReZ damn 15 is shockingly cheap for that. Even 30 feels like a good price just given what a bunch of other FiiO stuff costs. Granted, not familiar with what those were originally selling for, so who knows lol
    +1
  • Sicklyboy @ Sicklyboy:
    As far as a replacement for my BTR5, I don't really have my eyes set on anything specific yet but it'll likely be from either Fiio or Schiit Audio.
    +1
  • K3Nv3 @ K3Nv3:
    Better than tree fiddy
  • SylverReZ @ SylverReZ:
    @Sicklyboy, Originally when it came out, they sold for around $40 USD according to FiiO's news bulletin. https://www.fiio.com/newsinfo/54677.html
    +1
  • SylverReZ @ SylverReZ:
    @Sicklyboy, I would prefer FiiO as the better brand for a USB DAC.
    +1
  • K3Nv3 @ K3Nv3:
    I feel like headphones reached a peak even ones from ten years ago sound better than new ones
  • Sicklyboy @ Sicklyboy:
    @K3Nv3, all depends how much money you wanna spend. I had skullcandy headphones and shit way back when but I never liked anything as much as the headphones (and earbuds) I use nowadays
    +1
  • Sicklyboy @ Sicklyboy:
    @SylverReZ yeah fwiw I've been quite happy with my FiiO BTR5 so I don't have any specific reason to not a FiiO again. Just gotta see what's available and how much I'm trying to spend lol
    +1
  • realtimesave @ realtimesave:
    O GOD I see @BigOnYa
  • Jayro @ Jayro:
    I have the FiiO X1-ii, and love what it does, but the battery life is kinda ass and the sluggish, unresponsive menu makes me regret my purchase a little.
  • NinStar @ NinStar:
    has anyone here played botw randomizer for switch?
  • NinStar @ NinStar:
    (not the wii u version, specifically the switch version)
  • SylverReZ @ SylverReZ:
    Frankly not. That's like a 'cheat engine' for BoTW, right?
  • Skelletonike @ Skelletonike:
    good morrow
  • Skelletonike @ Skelletonike:
    I love Gundam but seed is not among my favourite series. Great gundams and soundtrack, but the characters... Ugh
  • Skelletonike @ Skelletonike:
    Still better than the latest trash like Witch of Mercury
  • Skelletonike @ Skelletonike:
    Damn, my play asia order will take a while.
  • Skelletonike @ Skelletonike:
    More dead kids?
  • Skelletonike @ Skelletonike:
    EU wants to tax all cheap purchases from Temu, Shein and so on an extra 2€ per purchase.
  • Skelletonike @ Skelletonike:
    Portuguese Textile companies find 2€ low and want to tax an extra

    20€ per purchase.
    Skelletonike @ Skelletonike: Portuguese Textile companies find 2€ low and want to tax an extra 20€ per purchase.