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 Changing Steven's name in Tag Battle (https://www.pokecommunity.com/showthread.php?t=357301)

64smashmaster3ds October 19th, 2015 1:12 PM

Changing Steven's name in Tag Battle
 
In Emerald hacks such as Crystal Dust and Glazed, featured the Double Battle from Mossdeep and the partner trainer's name was changed. How do I change Steven's name in battle?

64smashmaster3ds October 21st, 2015 3:07 PM

Do I need to use an Hex editor and locate his name used in battle, or some how use advance text to edit?

miksy91 October 22nd, 2015 7:46 AM

Quote:

Originally Posted by 64smashmaster3ds (Post 8972708)
Do I need to use an Hex editor and locate his name used in battle, or some how use advance text to edit?

You can do both. I'd say that locating the name with a hex editor is simpler though since the name is not part of text data, but just stored as a name.
You can find the string 'Steven' by looking for the six bytes that refer to letters ('S', 't', 'e', 'v', 'e' and 'n') of that string/name.


Here is a table file you can use:
http://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Ruby_Sapphire_and_Emerald:_TBL


In other words, pick up the bytes for those letters from there (S = CD, t = E8, ...) and use 'Search' option of a hex editor to search for the name. It will find the first instance of 'Steven' in the rom that could be this one you're looking for or possibly some text where 'Steven' is mentioned.

C me October 22nd, 2015 12:29 PM

Just want to point out that in game it is written as STEVEN so the bytes will be CD CE BF D0 BF C8.

Just did a quick search and you can find STEVEN alone at 0x5EAD14 and 0x5EFB11. Might be another one.

Miksy91 what do you mean by 'is not part of text data'? AdvanceText will find the string of bytes corresponding to the word you type in. There is no difference whether it's in a script or a standalone bit of text.

miksy91 October 23rd, 2015 2:02 PM

Quote:

Originally Posted by C me (Post 8973434)
Miksy91 what do you mean by 'is not part of text data'? AdvanceText will find the string of bytes corresponding to the word you type in. There is no difference whether it's in a script or a standalone bit of text.

I haven't used AdvanceText since I don't hack gen III games. Anyway, if you look for a single text string such as this with a hex editor, you can easily find an instance that is "alone" like you described in your own post there. That's because the data next to that text string is most likely asm code related to the battle fought with him.

A-text might be as good for editing these kind of things though - depending on how it works. I personally hack gen II and whenever I have to edit a text string of this kind, it's far simpler to do it with a hex editor (along with possibility of having to repoint to string) than using a game-specific text editor (there is only Poketext out there for gen I and II).

Edit:
Also what I possibly meant there is that the data for a string like what is used for 'STEVEN' here can be written differently in the rom than for example the "same" text string you could make a person event say ("STEVEN"), and A-text may not be able to show the text data properly when the name is looked for and the right instance is found. Again, wouldn't work fine with Poketext for instance since the strings (1. what people events say, and 2. these kind of strings) have different "endings". Poketext for instance assumes that all text datas end with byte 57 or 58, and most self-alone strings are hardcoded with different ending byte for specific reasons.

C me October 24th, 2015 1:49 AM

Quote:

Originally Posted by miksy91 (Post 8974437)
Edit:
Also what I possibly meant there is that the data for a string like what is used for 'STEVEN' here can be written differently in the rom than for example the "same" text string you could make a person event say ("STEVEN"), and A-text may not be able to show the text data properly when the name is looked for and the right instance is found. Again, wouldn't work fine with Poketext for instance since the strings (1. what people events say, and 2. these kind of strings) have different "endings". Poketext for instance assumes that all text datas end with byte 57 or 58, and most self-alone strings are hardcoded with different ending byte for specific reasons.

In gen 3 afaik all text ends in FF so it's all the same. Everything is simpler on the GBA :)

Edit: Just as I suspected, the name and trainer class in the tag battle is the same as when you face him in Meteor falls. You can change either in a trainer editor (no 324 hex) and it affects both battles.


All times are GMT -8. The time now is 2:23 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.