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 Trainer Battles freeze (Emerald) (https://www.pokecommunity.com/showthread.php?t=360888)

ByakuFubuki January 5th, 2016 3:13 PM

Trainer Battles freeze (Emerald)
 
Hi everyone and sorry for my noobness.

As the title says, some Trainer Battles in my hacked Emerald ROM make the game freeze. So far I edited every Trainer in Routes 102-104, 116, Rustboro City and Rusturf Tunnel including rematches and tested it until the Battle against my Rival in Rustboro. This issue occurs with three Trainers, always against a certain Pokémon and just after some turns (around four). If said Pokémon are defeated early, the game will proceed normally, though, so the bugged Trainers may be more. I tried to fix the Trainers by deleting the bugged Pokémon and re-creating it, but while it seemed to work on the first one, the second kept making my game freeze at every attempt.

Here's a list of the actions I take for editing each Trainer. It's pretty basic, but I guess the eye of someone who's more expert than me will notice what I do wrong.
Spoiler:
1. Open "Hopless Trainer Editor" and "Free Space Finder" and load my ROM in them.
2. Change the Trainer's name to the romanized version of the original.
3. Rise their AI to 255.
4. Add some Pokémon to their Team (usually 2 or 3).
5. Edit every Pokémon by
-a. Changing their species (eventually).
-b. Raising their Level.
-c. Raising their EVs to 255.
-d. Editing their moves.
6. Click "save" to see how much memory is needed, then close the pop-up.
7. Search for such value on Free Space Finder and copy the result.
8. Re-click "save" and paste the copied number after "0x" next to "Search from".
9. Select the first value, which coincides with the one found by the other tool.
10. Click "Ok".
Come to think about it, I changed the species of every Pokémon those three Trainers own. It's the only common trait I understood so far, I don't know if that means anything.

That's all I can say, I tried to be the most detailed I could (maybe even too much on the list, I felt totally dumb all the time by writing like that).

destinedjagold January 5th, 2016 11:22 PM

I don't really know how Hopeless Trainer Editor works because I don't use it, but if you increase the number of PKMN in a trainer's team, you're supposed to repoint it because that trainer's team data is bigger now than what it was previously. If you didn't repoint, then chances are you overwrote the next trainer's teams, and is probably why you're seeing this bug.

So yeah. What I am asking is if you repointed to an empty offset after increasing the number of PKMN a trainer has?

ByakuFubuki January 6th, 2016 1:47 AM

Yes, as I want to save, the Editor asks for a new offset which size depends on how many Pokémon the edited Trainer has (48 bytes for three Pokémon, 64 for 4, 80 for 5 and 96 for 6 if I remember it well), so I look for it with Free Space Finder, always beyond 0x800000 as of default, and copy-paste it on Hopeless Trainer Editor. It's the part of the process of which I'm most unsure, because I never felt that good with Free Space Finder.


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