Language…
12 users online: Batata Douce, CalHal, crocodileman94,  Deeke, dubiousdinobot, Dzing, Edu X, Hammerer, MegacesarCG,  Saphros,  shovda, StarWolf3000 - Guests: 268 - Bots: 297
Users: 64,795 (2,378 active)
Latest user: mathew

Hex Editing Values

A while back, I found a page here detailing how to change certain properties using a hex editor. It has been a while since I tried it and have forgotten how.

I want to change the graphics for the piranha plant (sprite 1A) and bat ceiling (sprite E4), and the layer 3 cage. There was a simple way to do this by changing specific values in the hex without having to use ExGFX and it worked perfectly.
Not sure if it matters, but the recommended editor (and the one I currently have) is called Frhed.

Also listed were things like making a mega mole pass through Mario as it walked instead of hurting him. I can't find that tutorial anywhere and these fixes don't seem to be listed in the ROM Map either. I have no idea how to know what the new values should be to make everything display properly and where to find the addresses for these properties.
Yeah Hex edits used to be the way to remap graphics but now STEAR is the way to go for that and SMW Customizer can be used to edit the Mega Mole.
I'm trying to avoid other programs as none of them have ever worked. When I open up STEAR (or anything else for that matter) it is not connected to the ROM at all. Nothing is selectable, and although there is a cursor, I am unable to type anything in.

There are no instructions or tutorials on how to use it. Interestingly enough, I see this quote in the readme:
"In addition, this program cannot change how sprites look in Lunar Magic. You must do that yourself; see the readme for more information on that if necessary."

If anyone has the hex values, please let me know. That is the only thing that has ever been successful for me.
Thank you.
Originally posted by giu
I'm trying to avoid other programs as none of them have ever worked. When I open up STEAR (or anything else for that matter) it is not connected to the ROM at all. Nothing is selectable, and although there is a cursor, I am unable to type anything in.

You have tried "File --> Open ROM" I assume? You can load your ROM, make changes in STEAR, then save them back to the ROM.

Originally posted by giu
There are no instructions or tutorials on how to use it. Interestingly enough, I see this quote in the readme:
"In addition, this program cannot change how sprites look in Lunar Magic. You must do that yourself; see the readme for more information on that if necessary."

That just means the changes won't be visible in the editor but will be in-game. (If you do want them to be visible in the editor, though that seems unrelated, the readme was probably talking about this tutorial.)

If you do need the raw hex edits, what have you tried searching for in the ROM Map?


 
My apologies for being such a noob, but I feel I have tried everything. I was able to see the sprites in STEAR, but only the same as they appear in lunar magic. I still do not know how to change them.

I have looked extensively through the ROM Map, but have been unable to locate the sprites in question. So then I tried to edit something that was in the map (in this case the speed of Morton koopa), but the address does not exist in the ROM when I open the hex editor.

The tutorial you linked comes with a wonderful video demonstration, which I watched only to find out the the boom boom sprite he works with for the entire video is nowhere to be found either.

I am obviously missing something, but I know for a fact that there is a simple way to just change a value and have it appear properly. Thus far, I have not been able to insert custom sprites blocks, music, etc. I have tried multipe editors, yychr, smw customizer, you name it. There is a step somewhere along the way that I seem to be blind to.


Here is how to use Stear:



1) Find the sprite in one of the circled boxes. Piranha plants are under "standard sprites" while the bat ceiling is under "cluster sprites".
2) Select the tile you want to edit/remap in the circled box.
3) Change the palette, X/Y flip, or tile size in the box on the right, and select the tile to use on the left.
Then save your ROM (you may want to back up the original first, just in case something went wrong).

For example, for the death bat ceiling, find the death bat under the "cluster sprites" box. Choose the messed up frame ("Flying 2"), then correct the tile selection in the big window on the left. You can also change the palette to the normal bat palette if you want (palette 13). The other three frames will automatically update their palette too, because the same palette value is shared by all four of them.

Also, worth noting that for the piranha plant in particular, you'll need to also apply this patch. The original plant has a bug in its code that can potentially cause it to mess up the properties of tiles used by other sprites.


And on one final note:

Originally posted by giu
but the address does not exist in the ROM when I open the hex editor.

This may be because of the kind of addresses the ROM map lists. The ROM map lists what are referred to as SNES addresses, while hex editors are typically designed for editing PC addresses. PC addresses indicate the byte's position within the actual file, while SNES addresses refer to the actual place in the cartridge the SNES would map that byte to. It's a bit annoying to do the address conversion manually, but thankfully there is one hex editor (SHex) that supports SNES addressing.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Also if you have a preferred Hex editor you want to use you can also download Lunar Address from FuSoYa's site which allows you to enter a SNES address and get the PC address. It's more work but another option.
Thank you everyone for your help.
Once I download the patch, how do I apply it?
Originally posted by giu
Thank you everyone for your help.
Once I download the patch, how do I apply it?

Floating IPS

Subscribe to My Youtube Channel!
Where's my lasaga, Jon?


Originally posted by Koop the Koopa
Floating IPS

Floating IPS is for IPS/BPS patches, not ASM patches. You should use apply it with Asar instead.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer