Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-01-19 13:30:19

Torchickens
Member
Registered: 2011-01-02
Post 13/44

'Cop Guard?'

I was having a brief look through your disassembly of Pokémon Red just as a way of learning some of the offsets in Red and Blue, and love how thorough and comprehensive it is so far even though I don't understand ASM (Z80?) code. I noticed that there was an unused overworld sprite-set entry annotated "Sprite Cop_Guard" (0x32), located just after the real guard (i.e. Cerulean City, Badges Check gate) at (0x31). When I first saw 'Sprite_Cop_Guard', it made me speculate whether it was once related to the Trainer class 'Chief'. Do you happen to know anything about it, or is it actually just the female officer who appears in Vermilion City when you adopt Squirtle in Pokémon Yellow? I noticed that the data for each NPC was stored this way: (NPC#) , then Y coordinate, then X coordinate, then walking pattern, then turning, text. I tried replacing the guard in Cerulean City but he just turned into a character with invalid sprite data.

I know that some NPCs are exclusive to different maps, for instance it's not possible to add Snorlax to Viridian City this way - are there any maps in which the "Cop Guard" character shows up if the sprite remains unused?

Offline

#2 2012-01-19 16:14:59

429/700

Re: 'Cop Guard?'

Torchickens wrote:

I was having a brief look through your disassembly of Pokémon Red just as a way of learning some of the offsets in Red and Blue, and love how thorough and comprehensive it is so far even though I don't understand ASM (Z80?) code. I noticed that there was an unused overworld sprite-set entry annotated "Sprite Cop_Guard" (0x32), located just after the real guard (i.e. Cerulean City, Badges Check gate) at (0x31). When I first saw 'Sprite_Cop_Guard', it made me speculate whether it was once related to the Trainer class 'Chief'.

There is no relation, or at least no way to prove such a relation.

Torchickens wrote:

Do you happen to know anything about it, or is it actually just the female officer who appears in Vermilion City when you adopt Squirtle in Pokémon Yellow?

That sprite only exists in Yellow. (In fact, it replaces the cop in Cerulean City as well, IIRC.)

#3 2012-01-19 20:29:25

Torchickens
Member
Registered: 2011-01-02
Post 14/44

Re: 'Cop Guard?'

IIMarckus wrote:
Torchickens wrote:

I was having a brief look through your disassembly of Pokémon Red just as a way of learning some of the offsets in Red and Blue, and love how thorough and comprehensive it is so far even though I don't understand ASM (Z80?) code. I noticed that there was an unused overworld sprite-set entry annotated "Sprite Cop_Guard" (0x32), located just after the real guard (i.e. Cerulean City, Badges Check gate) at (0x31). When I first saw 'Sprite_Cop_Guard', it made me speculate whether it was once related to the Trainer class 'Chief'.

There is no relation, or at least no way to prove such a relation.

Torchickens wrote:

Do you happen to know anything about it, or is it actually just the female officer who appears in Vermilion City when you adopt Squirtle in Pokémon Yellow?

That sprite only exists in Yellow. (In fact, it replaces the cop in Cerulean City as well, IIRC.)

That's true. I just searched for the Cerulean City cop in English Yellow, found the equivalent location at 0x18808 and apparently the sprite-set used for the female cop is 0x3E, although in Pokémon Yellow the ordering for the sprite-sets are different for some reason, and there's also the addition of Pikachu at 0x3D. Hope you don't mind if I just ask whether sprite_cop_guard has a real sprite, or is it just a dummied out entry?

Offline

Board footer

Powered by FluxBB