Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-03-08 18:34:06

Paprika
New member
Registered: 2012-03-08
Post 1/5

Yellow: Changing Trainer Backsprite, Trainer Card Sprite

I want to replace the trainer backsprite and the trainer card sprite in Pokemon Yellow with some sprites I've created, but I'm not sure how to go about doing it. How can I replace both of these? If it is not possible on yellow, I'm willing to work with R/B. I know that the backsprite is compressed, but I don't know it's offset or how to handle the compression. Is the trainer card backsprite compressed as well?

Sorry for the noobish questions, I'm new to gen I hacking.

Thank you for your time.

Offline

#2 2012-03-08 21:00:51

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

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

It doesn't hurt to ask questions you know :D

Anyway, you could try out this tool for instance: http://hax.iimarck.us/topic/613/
I remember someone (stag probably ?) making a better compression tool as well but not sure where to find it because I haven't really hacked RBY myself.

Offline

#3 2012-03-08 22:08:17

stag019
Idea Killer
Registered: 2011-01-05
Post 146/630

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

I'm on my Nintendo 3DS right now, so it's difficult to post, but it's one of the first threads in the tools forum.


You can try to hide yourself in this world of pretend; when the paper's crumpled up, it can't be perfect again.

Offline

#4 2012-03-08 23:05:40

Paprika
New member
Registered: 2012-03-08
Post 2/5

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

Thanks for the replies.

How can I convert an image to .2bpp format? I currently have a .gif with a 4 color indexed palette that's 56x56.

Also, does anyone know that offsets for the trainer backsprite or trainer card sprite so I can create a IPS patch with stag's tool?

Offline

#5 2012-03-08 23:25:48

stag019
Idea Killer
Registered: 2011-01-05
Post 147/630

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

Paprika wrote:

Thanks for the replies.

How can I convert an image to .2bpp format? I currently have a .gif with a 4 color indexed palette that's 56x56.

Also, does anyone know that offsets for the trainer backsprite or trainer card sprite so I can create a IPS patch with stag's tool?

Miksy is right in that it doesn't hurt to ask questions, but it also doesn't hurt to look around. In the thread he posted is an explanation on how to convert the graphics into a 2 bit per pixel image format, on my post here. Also, I have a list of all sprites (and their size, remember if your compressed size is bigger than the size there, the following data will be corrupted) here (warning, decompression is done on the fly and so it takes a while for the page to load).


You can try to hide yourself in this world of pretend; when the paper's crumpled up, it can't be perfect again.

Offline

#6 2012-03-09 00:34:32

Paprika
New member
Registered: 2012-03-08
Post 3/5

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

I really appreciate it. I looked around, but I should have given it more than a cursory glance.

Thanks again.

Offline

#7 2012-05-10 00:12:59

Paprika
New member
Registered: 2012-03-08
Post 4/5

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

My apologies if reviving a thread like this is frowned upon, but after a long hiatus, I have successfully changed the trainer backsprite in yellow. However, I am currently having difficulty with the trainer card sprite. I know that the offset for this in Pokemon Red/Blue is 0x12EDE, as per stag019's page, but this is not the case for Yellow. I opened unedited Red and Yellow ROMs in my hex editor and tried to search for the hex values from 0x12EDE, in Red, in Pokemon Yellow. This technique worked wonderfully for the backsprite when the offsets were not the same in Red/Yellow; I was able to find the location of the backsprite in Yellow despite the offsets being different, by searching for the hex from Red. But, I am not having the same success with this trainer sprite. Not only is the offset different in Yellow, but after locating the hex values in Red and searching for them in Yellow, I return no matches. Is the trainer card sprite in Yellow actually compressed differently? Or am I missing a key piece of information pertaining to what I need to do? If anyone knows the offset for the trainer sprite in Yellow, it would really help me; I really need this to complete this small graphics edit. I have patched another Red ROM with my replacement sprite at offset 0x12EDE and plan on copying this data to the appropriate offset in Yellow.

Offline

#8 2012-05-10 00:43:31

468/700

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

The player pic in Yellow is different from Red and Blue; it has more hair and different clothing. That may be why your hex search failed.

red1.pngyellow1.png

#9 2012-05-10 02:13:36

Paprika
New member
Registered: 2012-03-08
Post 5/5

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

Thank you, IIMarckus. I really overlooked that...it explains so much. Unfortunately, now I am unsure about how to proceed; there are no real ROM maps for Yellow and I am faced with my original problem of finding the offset for the sprite. I think that it may be at 0x11A8A, can anyone verify this?

Offline

#10 2012-05-10 19:08:26

Tauwasser
Member
Registered: 2010-10-16
Post 275/448

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

Why don't you just write something there and see if it corrupts the sprite?

Or put a break point there and debug the ROM?

cYa,

Tauwasser

Offline

#11 2012-05-10 22:14:56

stag019
Idea Killer
Registered: 2011-01-05
Post 165/630

Re: Yellow: Changing Trainer Backsprite, Trainer Card Sprite

And then when you're done doing that, it's at 0x11A97 (reference).


You can try to hide yourself in this world of pretend; when the paper's crumpled up, it can't be perfect again.

Offline

Board footer

Powered by FluxBB