Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-12-24 11:07:31

Thunungu
New member
Registered: 2017-12-23
Post 1/4

How to change the Trainers classes?

I want to change the names of the trainers classes but I don't know how to do that, any idea?

Offline

#2 2017-12-24 15:41:56

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 62/127
Website

Re: How to change the Trainers classes?

Go into:

data/trainers/trainer_class_names.asm

The rest is pretty self-explanatory.

If you want to edit them COMPLETELY, go into the following folders and click on these .asm files:

data/trainers/trainer_dvs.asm
data/trainers/trainer_attributes.asm
data/trainers/parties.asm
data/trainers/gendered_trainers.asm
data/trainers/party_pointers.asm
data/battle_tower.asm
constants/trainer_constants.asm

There is more, but it’s easy to navigate and find. Hope I can help! :)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#3 2017-12-24 15:48:22

Thunungu
New member
Registered: 2017-12-23
Post 2/4

Re: How to change the Trainers classes?

Ok I understand but how can I find these files?

Offline

#4 2017-12-24 15:57:53

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 63/127
Website

Re: How to change the Trainers classes?

Thunungu wrote:

Ok I understand but how can I find these files?

Go into your local PokéCrystal folder. “Data,” “Constants” and “Trainers” are all folders you can look into.

If you haven’t figured out how to .asm files yet, any text editor can be used to edit these files. The one I recommended you going with is Code::Blocks! Then again you can still edit files with Notepad, but it isn’t as reliable as editors like Notepad++.

If I still haven’t given you the info you needed, which part do I need to clarify more? Are you running into problems? What are you having trouble with? Thanks!


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#5 2017-12-24 16:55:05

Thunungu
New member
Registered: 2017-12-23
Post 3/4

Re: How to change the Trainers classes?

Is it the only way to do it? I've already started my Rom-hack by modifying a rom of Pokemon Gold.

Offline

#6 2017-12-24 17:16:12

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 64/127
Website

Re: How to change the Trainers classes?

Thunungu wrote:

Is it the only way to do it? I've already started my Rom-hack by modifying a rom of Pokemon Gold.

Oh! You’re modifying Pokémon Gold?

Also, what I got from this message is that you’re “actually” ROM hacking a clean Pokémon Gold ROM. I highly recommend you use the disassemblies instead. It’s a little complicated on the surface, but I can assure you the disassemblies are WAY easier to use! If you look up the user “pret” on GitHub, he has done a disassembly on Red and Blue, Yellow, Ruby and Sapphire, Emerald, Crystal, and Gold!

I can’t help you very much with the PokéGold disassembly since I don’t know anything about it. So I suggest you look into the PokéCrystal disassembly since I gave you all the info you needed.

The link is down below. If you want to know how to install it, look into INSTALL.md.

Disassembly:
https://github.com/pret/pokecrystal?files=1

INSTALL.md:
https://github.com/pret/pokecrystal/blo … INSTALL.md

Not very many people know about the disassemblies, so I can kinda see why you’re confused. Hope I can help!


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#7 2017-12-24 19:26:20

Ammako
Member
Registered: 2016-03-06
Post 133/158

Re: How to change the Trainers classes?

(Neat, I didn't know there was a G/S disassembly as well.)

Offline

#8 2017-12-24 19:28:25

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 65/127
Website

Re: How to change the Trainers classes?

Ammako wrote:

(Neat, I didn't know there was a G/S disassembly as well.)

I forgot it existed until today. It wasn’t pinned on Pret’s repositories, so I wasn’t aware of this either! By the looks of it, I don’t think it lasted very long...

Here’s a link to it:

https://github.com/pret/pokegold?files=1

Last edited by RadonUsedMimic (2017-12-24 19:36:00)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#9 2017-12-24 20:25:08

Thunungu
New member
Registered: 2017-12-23
Post 4/4

Re: How to change the Trainers classes?

RDNNHDA wrote:

Also, what I got from this message is that you’re “actually” ROM hacking a clean Pokémon Gold ROM. I highly recommend you use the disassemblies instead. It’s a little complicated on the surface, but I can assure you the disassemblies are WAY easier to use! If you look up the user “pret” on GitHub, he has done a disassembly on Red and Blue, Yellow, Ruby and Sapphire, Emerald, Crystal, and Gold!

Is it the only way for me to change the trainers classes? :/

Offline

#10 2017-12-24 20:37:47

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 66/127
Website

Re: How to change the Trainers classes?

Thunungu wrote:
RDNNHDA wrote:

Also, what I got from this message is that you’re “actually” ROM hacking a clean Pokémon Gold ROM. I highly recommend you use the disassemblies instead. It’s a little complicated on the surface, but I can assure you the disassemblies are WAY easier to use! If you look up the user “pret” on GitHub, he has done a disassembly on Red and Blue, Yellow, Ruby and Sapphire, Emerald, Crystal, and Gold!

Is it the only way for me to change the trainers classes? :/

Yup! PokéGold is a little bit confusing, and isn’t layed out the same as PokéCrystal. PokéCrystal is the only one I have info on.

If you want to know how to make your own local copy for PokéCrystal, I asked a similar question a while back but instead of PokéCrystal, I wanted to create a local copy of PokéRed. It was answered by Rangi, a PokéCrystal ROM hacker who is very experienced, so you’ll know pretty quickly! My question can be found here:

https://hax.iimarckus.org/topic/7246/

I still highly recommend you stick with the PokéCrystal repository, as it is more complete than PokéGold.

If none of this works out for you, there’s still two options:

1. Find a program for Gold that can change trainer class names.

2. Write a program yourself! You can try C coding or something like that. :)

Last edited by RadonUsedMimic (2017-12-24 20:41:37)


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#11 2017-12-24 21:57:20

Ammako
Member
Registered: 2016-03-06
Post 134/158

Re: How to change the Trainers classes?

Looks like this is the one.

https://github.com/pret/pokegold/blob/m … stants.asm

You can likely use this to find the rom addresses for trainer classes names by editing them into something else (say, "AAAAAA"), compiling the rom, and comparing with a clean rom to see which addresses have changed. Then you may be able to apply the same changes to your hex edited Gold rom, if you wish to stick to hex editing.

Keep in mind that if you change the length of any names in the .asm file, it will shift a lot of stuff around and likely also change pointers, which would make it hard to know exactly what actually changed. ;p

Last edited by Ammako (2017-12-24 22:32:17)

Offline

#12 2017-12-24 22:18:04

RadonUsedMimic
Member
From: Texas
Registered: 2016-11-22
Post 67/127
Website

Re: How to change the Trainers classes?

Ammako wrote:

Looks like this is the one.

https://github.com/pret/pokegold/blob/m … stants.asm

You can likely use this to find the rom addresses for trainer classes names by editing them into something else (say, "AAAAAA"), compiling the rom, and comparing with a clean rom to see which addresses have changed. Then you may be able to apply the same changes to your hex edited Gold rom, if you wish to stick to hex editing.

Keep in mind that if you change the length of any names in the .asm file, it will shift a lot of stuff around and likely also change pointers, which would make it hard to know exactly what actually changed. :p

I think that’s it. I swear there was more than that to edit trainer names, like “Joey,” or something. I don’t know for sure, since I don’t know much when it comes to Gold and Crystal hacking. I remember trying to hack Crystal with the disassembly before coming to the conclusion I would stick with PokéRed (and possibly Yellow) and it didn’t go well for me. Maybe I’ll try it again sometime.


Caramba! I hate it when there’s a lot of hair on the floor! Here, I’ll go clean up!
Woo! Feels good when the floor is clean, doesn’t it? Let’s groove.

Offline

#13 2018-02-21 13:18:28

Halfshadow
Member
From: Italy - Lucca
Registered: 2012-04-24
Post 236/283

Re: How to change the Trainers classes?

Trainers names could be changed also trough an hex editor, if you have the GBC charmap, you'll have only the character limits... What names you want to change? I don't remember if the classes structure follows the end byte to count the names, that is the way for the pokémon names, then you could do a longer name for your edited class but you'll have to move the finish byte after every name (0x50) and to cut a part of the name of the next class, otherwise maybe you could move a bit the pokémon names, erasing the last ????? entries after the EGG name regaining space and repointing only the first (Bulbasaur), that is enough to move the game pointer, I did the same in Crystal to set a structure to the ????? pokémons that started in the Bulbasaur name, and I had only to repoint Bulbasaur after the moving, 'cause the game follow the ending (0x50) byte to go to the next. In Gold the pokémon names pointer SHOULD be at the 0x35EE offset, is write with the bank 6C (if you move a bit the names data remain the same) and the 74-4B are the mirrored bytes, if you calculate the 0x1B0B74 with the gameboy pointer calculator you find 6C 4B 74, however if read from the bank you could move to another and then have all the space that you want to add trainers names, you don't need of install Cygwin and do it via ASM to do this...

Found also the pointer to the classes names:
The classes names starts at 0x1b0955 and the pointer is at the 0x3600 offset. Tried myself to edit the names, is like said above, you can also add a longer name, if you repoint will not have problems.

Last edited by Halfshadow (2018-02-21 16:10:46)


The italian Pokémon Green creator.

Offline

Board footer

Powered by FluxBB