The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Switching Sprites With Hex editing in Emerald (https://www.pokecommunity.com/showthread.php?t=351915)

64smashmaster3ds July 8th, 2015 12:47 PM

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)

64smashmaster3ds July 10th, 2015 9:12 AM

Any Ideal?

miksy91 July 11th, 2015 9:25 PM

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.

HungLikeATauros July 12th, 2015 2:12 AM

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.

64smashmaster3ds July 15th, 2015 5:34 PM

Quote:

Originally Posted by miksy91 (Post 8842402)
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?
Quote:

Originally Posted by HungLikeATauros (Post 8842646)
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.

miksy91 July 15th, 2015 10:24 PM

Quote:

Originally Posted by 64smashmaster3ds (Post 8848085)
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.


All times are GMT -8. The time now is 2:29 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.