Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2015-02-09 11:19:20

Rocket Grunt
Member
Registered: 2014-12-27
Post 22/75

Why some graphics glitch?

If you have tried to insert new Pokemon sprites into the game, there may be chances that the sprite get glitched. Does anyone one know why this happens?


Today I won't steal Pokemon

Offline

#2 2015-02-09 20:37:28

Miksy91
Member
Registered: 2010-10-16
Post 2,158/2,315

Re: Why some graphics glitch?

The front sizes can be of 3 different sizes (55, 66, 77 standing for 40x40, 48x48 and 56x56 pixels I think).
If you want to insert a new front sprite for some pokemon, you may have to edit the byte that tells the size of that pokemon's sprite. It's stored as part of the data of each pokemon (table starts at $51B0B with Bulbasaur).

32 bytes in total
1st: Pokemon number
2nd: Base HP
3rd: Base ATK
4th: Base DEF
5th: Base SPEED
6th: Base SPECIAL ATK
7th: Base SPECIAL DEF
8th: Type #1
9th: Type #2
10th: Capture rate
11th: EXP factor
12-13th: Items held in wild
14th: Gender
15-17th: Unknown (64 xx 05)
18th: Picture size
19-22th: Unused (00 00 00 00)
23th: EXP pattern
24-31th: TM learning
32th: Unknown (00 / 01)

Last edited by Miksy91 (2015-02-09 20:39:36)

Offline

#3 2015-02-10 08:33:22

Rocket Grunt
Member
Registered: 2014-12-27
Post 26/75

Re: Why some graphics glitch?

Miksy91 wrote:

The front sizes can be of 3 different sizes (55, 66, 77 standing for 40x40, 48x48 and 56x56 pixels I think).
If you want to insert a new front sprite for some pokemon, you may have to edit the byte that tells the size of that pokemon's sprite. It's stored as part of the data of each pokemon (table starts at $51B0B with Bulbasaur).

32 bytes in total
1st: Pokemon number
2nd: Base HP
3rd: Base ATK
4th: Base DEF
5th: Base SPEED
6th: Base SPECIAL ATK
7th: Base SPECIAL DEF
8th: Type #1
9th: Type #2
10th: Capture rate
11th: EXP factor
12-13th: Items held in wild
14th: Gender
15-17th: Unknown (64 xx 05)
18th: Picture size
19-22th: Unused (00 00 00 00)
23th: EXP pattern
24-31th: TM learning
32th: Unknown (00 / 01)

Wow thanks a lot, actually I only paid attention to bytes 1-14, because I had no idea what others are about. So yeah, thanks for that really.


Today I won't steal Pokemon

Offline

#4 2015-02-10 13:42:54

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

Re: Why some graphics glitch?

That should be

00   : PKMN Number
01   : Base HP
02   : Base ATK
03   : Base DEF
04   : Base SPEED
05   : Base S ATK
06   : Base S DEF
07   : Type #1
08   : Type #2
09   : Capture Rate
0A   : EXP Rate
0B   : Item #1
0C   : Item #2
0D   : Percent Female
0E   : 0x64
0F   : Egg Steps (/ 0x100)
10   : 0x05
11   : Picture Size
12-13: Front Pic Pointer (unused)
14-15: Back Pic Pointer (unused)
16   : EXP Curve
17   : Egg Group
18-1F: TM/HM compatibility (LSB to MSB, 1 bit each)

Notice how you were off by one in the TM/HMs.

cYa,

Tauwasser

Offline

#5 2015-03-01 12:15:32

Rocket Grunt
Member
Registered: 2014-12-27
Post 45/75

Re: Why some graphics glitch?

And there are many cases that the front pic size and the back pic size are different, and some cases that they are the same? I am just confused with that.


Today I won't steal Pokemon

Offline

#6 2015-03-01 16:19:55

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 250/432
Website

Re: Why some graphics glitch?

back sprites are always 40x40 iirc, so if the front sprite is 40x40, they will match, otherwise they won't.

Offline

#7 2015-03-01 22:52:07

Danny-E 33
Administrator
Registered: 2012-06-09
Post 863/1,031

Re: Why some graphics glitch?

No. Back sprites in gen 1 are always 32x32 (with the right four and bottom four rows/columns unused, so 28x28) and in gen 2 back sprites are always 48x48.


Red Hack: Pokémon Prototype

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

Offline

Board footer

Powered by FluxBB