Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-07-19 17:17:28

Cristi-Chan
New member
Registered: 2016-07-19
Post 1/3

Danny-E33's larger backsprite routine?

I began to hack a Pokémon Red ROM, and I wanted to have that routine. Where I can find it to install it?

Offline

#2 2016-07-20 02:22:07

Danny-E 33
Administrator
Registered: 2012-06-09
Post 964/1,021

Re: Danny-E33's larger backsprite routine?

Unfortunately, there is a not a single routine you can add that will allow for 48x48 back sprites, instead of the original 32x32.
There are a few routines that need slight modifications.

Specifically, there are three routines that all need to be modified
LoadMonBackPic at 0f:7103, for player's Pokemon back sprite in battle
LoadPlayerBackPic at 0f:6c92 for the player's back sprite in battle
and HoFLoadPlayerPics at 1c:433e for the player's back sprite in the Hall of Fame

You can read a lot of discussion on this problem here.

Are you hex editing your hack or are you using the disassembly?


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#3 2016-07-21 21:53:35

Cristi-Chan
New member
Registered: 2016-07-19
Post 2/3

Re: Danny-E33's larger backsprite routine?

I'm using the disassembly.

Last edited by Cristi-Chan (2016-07-21 21:54:53)

Offline

#4 2016-07-22 04:49:19

Danny-E 33
Administrator
Registered: 2012-06-09
Post 965/1,021

Re: Danny-E33's larger backsprite routine?

I know the thread I linked you to is hard to read, because so much of it refers to addresses.

To make it simple, you have to make a very small function, called LoadBackSpriteUnzoomed, and in the three functions I mentioned above, replace the calls to ScaleSpriteByTwo and InterlaceMergeSpriteBuffers with a call to this new function.

In LoadBackSpriteUnzoomed, the routine ends by jumping into the middle of another function - the function used for loading front sprites, LoadMonFrontSprite.
You can do this by creating a new label in the middle of LoadMonFrontSprite, called LoadUncompressedBackSprite, and jump to that label at the end of LoadBackSpriteUnzoomed.

Here is what I mean. (of course, in LoadBackSpriteUnzoomed, use $66 (or whatever dimensions your back pics are) instead of $44 like I did in this example)


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#5 2016-07-23 17:23:00

Cristi-Chan
New member
Registered: 2016-07-19
Post 3/3

Re: Danny-E33's larger backsprite routine?

I understad now. Thank you so much ^^

Offline

Board footer

Powered by FluxBB