Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-11-11 02:18:40

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 103/649

Trainer data

I realized something when I started inserting my sprites for the E4. I can connect Bruno's room to Will's. And than Karen's as the third. Lance as the fourth. Now I've been wondering a few things. With an hex editor, could I change a trainer's data and it's song? Also, seeing how in my hack that Janine won't be a gym leader, is it possible to change her data in the hex editor to have her sprite linked to Koga? I'm finding it a bit difficult to think now because it's mind boggling. Koga isn't in the E4 in my hack, he'll be a Gym Leader. Now, I suppose that I could switch Koga and Janine's data now that I think about it can't I?

*Can I change the trainer data via hex editor to make it have a certain sprite and music data is what I'm wondering.

I don't want to insert sprites over existing ones and later on find out that I can't rearrange the data unless I know ASM.


Pokemon Blue DX is reborn!

Offline

#2 2011-11-11 04:37:05

Miksy91
Member
Registered: 2010-10-16
Post 594/2,311

Re: Trainer data

I don't know how to change what song is played during the fight but sure, you can do what you're asking. This time, I ain't helping though ;P

Figure out how to do it on your own, you should know how to.

P.S
Agixp is your friend

Offline

#3 2011-11-11 04:40:22

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 105/649

Re: Trainer data

Well I can change sprites with AgiXp, as I have. But pointing battle data to a certain sprite is what I'm asking for. Where is the location for the battle data? I don't think the Rom Offsets thread has that.


Pokemon Blue DX is reborn!

Offline

#5 2011-11-11 05:10:19

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 106/649

Re: Trainer data

Ah! Thanks dude! I knew I sw that somewhere. You can get lost around here because it's so dark.

This should aid me. And hopefully, the music data can be changed(although the trainer data would probably dictate that anyway like 01 being for gym battles).

But it makes me wonder how the game distinguishes what music should be played. Since there are 8 leaders of each region both having their separate music data.

To answer the question about changing the trainer picture and such, that is in the trainer's script. It loads which trainer group, which trainer in that group, and the text when seen, beaten, and such like that. If you want to add more trainers to a particular group, you would have to repoint the start of the Rocket Grunts data so you can add more to the end. You cannot however just change a lass from being "LASS DANA" to "ROCKET DANA" for example.

Just found this post. So in ways, this answers my question.

Last edited by tysonrss (2011-11-11 05:59:47)


Pokemon Blue DX is reborn!

Offline

#6 2011-11-11 07:22:05

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 109/649

Re: Trainer data

Now I'm confused. I've spent an hour trying to figure things out about the Trainers, but now it's getting difficult. I know where the Gym leaders start. I understand their data of what pokemon they have, the levels, attacks. But what I don't get is how can I make more or less without screwing anything up? I imagine I have to make new Trainer data, but I don't know what offset I should put that at. I was thinking if using space somewhre that's free, but I bet it has to be in the same area.

I found the Trainer class area in the hex that's 43. I assume that means, 43 Trainer classes altogether? Now, the part comes, where do I change the name of these classes? What area do I insert my trainer data?

I'm trying to figure it out alone, but I can't. The compendium doesn't tell of this, only scripting details. And the tutorials don't get much into that.

EDIT: Found free space after grunt for Trainer battles. Now if someone could tell me how to change a class I'd be fine and dandy for awhile. Also, I basically understand the trainer battle thing now as far as scripting goes(only important battles, the minor ones are confusing). But when the load trainer activates, I have a hard time figuring out what area it is reaching to pull that data. Where is TrRAM1 and TrRAM2 located in the hex editor?(sorry for all these questions).

Last edited by tysonrss (2011-11-11 07:55:37)


Pokemon Blue DX is reborn!

Offline

#7 2011-11-12 06:15:08

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 119/649

Re: Trainer data

Okay! I'm starting to understand more and more. And I've found out how to add more trainers to a trainer gruop! I noticed each trainer Group, i.e important Group have 01 after the first byte. So increasing that would give me more data! And going to the area after the grunt locations, I could add data for another Falkner if I wanted to!, for like Mateo once stated, rematches!

I'm thinking of adding time-based events for rematches in my hack. That would be a breakthrough for the matal Generation.

Thanks to all who have helped me thus far.

Btw Miksy, I get what you mean by using AgiXp. The current positions of the trainer classes in the hex editor are in the same order as it appears in AgiXp. I wonder if it could go beyond if I was to add in another..or even repoint the whole area to add new trainer classes..

Last edited by tysonrss (2011-11-12 06:32:35)


Pokemon Blue DX is reborn!

Offline

Board footer

Powered by FluxBB