• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

[Other] Switching Sprites With Hex editing in Emerald

In my Emerald hack, I want to have Red and Leaf to be the players. I want to have their back sprites and front sprites in game without replacing Brendan and May Emerald sprites.
My question is can I use a Hex editor to switch the in game sprites to Red and Leaf sprites from FR/LG?
(In case you don't know, the FR/LG heroes sprites are in Emerald)
 


Just import the sprites of them with some tool from FRLG and then insert them into the emerald hack somewhere in empty rom space. Next, you can surely do the following step with a hex editor (because it can edit any kinds of data, including asm code), but you would have to locate the asm routine which picks up the image of player - basically, this is most likely where the pointer to the image is stored (in both cases, back and front sprites).


Once you have found the routine, you want to rewrite it with asm so that when certain bits are set (= "using Red", or "using Leaf") --> "use different trainer image".


That routine editing is actually rather simple. I have achieved doing this thing correctly in a GSC hack and it didn't involve that much editing to be done.
 

The poster above me made things way more difficult than they had to be. Red and Leaf are already in Emerald, just use OW Editor or NSE to switch them to where Brendan and May are. You might be lacking a fishing pose though.
 

Just import the sprites of them with some tool from FRLG and then insert them into the emerald hack somewhere in empty rom space. Next, you can surely do the following step with a hex editor (because it can edit any kinds of data, including asm code), but you would have to locate the asm routine which picks up the image of player - basically, this is most likely where the pointer to the image is stored (in both cases, back and front sprites).


Once you have found the routine, you want to rewrite it with asm so that when certain bits are set (= "using Red", or "using Leaf") --> "use different trainer image".


That routine editing is actually rather simple. I have achieved doing this thing correctly in a GSC hack and it didn't involve that much editing to be done.

Thanks for the info, is that similar to how DIA (creator of Crystal Dust) used for Gold/Ethan and Kris back sprites which have the same amount of frames as FireRed?
The poster above me made things way more difficult than they had to be. Red and Leaf are already in Emerald, just use OW Editor or NSE to switch them to where Brendan and May are. You might be lacking a fishing pose though.

For the over world sprites, I will just import them from FR. I just wanted to have all the back sprite frames similar to JPAN's Fire Red hacked engine examples when switching the player's back sprites with the old man's sprite.
 

Thanks for the info, is that similar to how DIA (creator of Crystal Dust) used for Gold/Ethan and Kris back sprites which have the same amount of frames as FireRed?
Not sure what you wanted to ask here really since I haven't even played Crystal Dust I think.
Anyway, you may want to check many times, "which backsprite to use", since there are many backsprites (or frames) when the player is about to use the first pokemon.
 

Back
Top