Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Generation I Glitch Discussion

NPCs that can be removed by the Mew Glitch? - Page 2

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Dante
Date: 2016-05-11 17:34:06


I wonder if the cuttable trees are also missable objects? But you wouldn't be able to trainer-fly from route 9 without being able to get on route 9 in the first place.

Alternatively, there might be a way to get a fresh water/lemonade/soda pop without going to celadon city first. Then you could simply go right through saffron city to get to celadon and lavander. Actually, I'm sure there's a way, I just don't know it myself, and I don't recall seeing it posted anywhere. Maybe ask around a bit?

I know for sure that you can just trade the fresh water from Pokemon Stadium 2, but I cannot do that since I'm playing it on emulator.
I'll try to investigate more about that, thanks for the aid :)

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Ephraim225
Date: 2016-05-12 03:05:28
Have you shown Brock Through Walls yet? If that's not an option you could show Item Underflow and hope the RAM gives you one of the drinks, it's how I got the Surfboard :D

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Dante
Date: 2016-05-12 04:01:59

Have you shown Brock Through Walls yet? If that's not an option you could show Item Underflow and hope the RAM gives you one of the drinks, it's how I got the Surfboard :D


I couldn't ):
It is fixed in the Italian version (and also in the spanish I believe), you can't open the start menu after the youngster stops you.
I thought the same, but I want to use glitches that doesn't involve random result since I hope that the viewers able to reproduce the same glitches. That's also the reason why I don't want to corrupt the game too much, and also I have to pay attention to the emulation itself, since I read that some VBA version doesn't emulate VRAM reading correctly.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Krys3000
Date: 2016-05-12 06:00:09

I wonder if the cuttable trees are also missable objects? But you wouldn't be able to trainer-fly from route 9 without being able to get on route 9 in the first place.


Cuttable trees are tiles changing, as shown by the previous investigation on GC-based RAM maps. I am not sure if there is also a missable object for them, although the collision must be dealt somehow.

And yes indeed, the Pewter glitches (skipping brock, museum guy WTW, hooked dragonite etc.) are fixed in every european release, it's the same with the french game.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: ISSOtm
Date: 2016-05-13 04:06:24


I wonder if the cuttable trees are also missable objects? But you wouldn't be able to trainer-fly from route 9 without being able to get on route 9 in the first place.


Cuttable trees are tiles changing, as shown by the previous investigation on GC-based RAM maps. I am not sure if there is also a missable object for them, although the collision must be dealt somehow.

I don't exactly know how the game does this, but anyways.

When you try tou cut a tree, it checks whether you are facing a tree / grass tile, and if yes, it looks up in a table to replace the tree / grass tile with a normal earth tile while preserving three of its neighboring tiles (the game, for compression purposes, stores tiles in squares of 2x2 tiles). That's what we use for Glitch City RAM Manipulation.

Every time you enter a new map, the game actually copies the whole map from ROM to RAM, and applies modifications such as cutting trees, discovering the Casino's stairs, etc (nb : the reloading of these maps don't involve reloading the graphics, causing the Invisible Tree Glitch. These modifications don't involve any sprites at all.

tl;dr : nope, trees aren't missable objects. They are part of the map.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Dante
Date: 2016-05-13 04:36:11



I wonder if the cuttable trees are also missable objects? But you wouldn't be able to trainer-fly from route 9 without being able to get on route 9 in the first place.


Cuttable trees are tiles changing, as shown by the previous investigation on GC-based RAM maps. I am not sure if there is also a missable object for them, although the collision must be dealt somehow.

I don't exactly know how the game does this, but anyways.

When you try tou cut a tree, it checks whether you are facing a tree / grass tile, and if yes, it looks up in a table to replace the tree / grass tile with a normal earth tile while preserving three of its neighboring tiles (the game, for compression purposes, stores tiles in squares of 2x2 tiles). That's what we use for Glitch City RAM Manipulation.

Every time you enter a new map, the game actually copies the whole map from ROM to RAM, and applies modifications such as cutting trees, discovering the Casino's stairs, etc (nb : the reloading of these maps don't involve reloading the graphics, causing the Invisible Tree Glitch[/url). These modifications don't involve any sprites at all.

tl;dr : nope, trees aren't missable objects. They are part of the map.

I thought that the trees were actually sprites like in gen3 O_O

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Stackout
Date: 2016-05-13 06:27:52
ISSOtm, I edited your post to fix a BBCode issue ([tt][/tt] wasn't closed properly)

Re: NPCs that can be removed by the Mew Glitch?

Posted by: ISSOtm
Date: 2016-05-13 13:45:08

ISSOtm, I edited your post to fix a BBCode issue ([tt][/tt] wasn't closed properly)

Thanks ! Dante's quote also features the typo.



(…)

I don't exactly know how the game does this, but anyways.

When you try tou cut a tree, it checks whether you are facing a tree / grass tile, and if yes, it looks up in a table to replace the tree / grass tile with a normal earth tile while preserving three of its neighboring tiles (the game, for compression purposes, stores tiles in squares of 2x2 tiles). That's what we use for Glitch City RAM Manipulation.

Every time you enter a new map, the game actually copies the whole map from ROM to RAM, and applies modifications such as cutting trees, discovering the Casino's stairs, etc (nb : the reloading of these maps don't involve reloading the graphics, causing the Invisible Tree Glitch[/url). These modifications don't involve any sprites at all.

tl;dr : nope, trees aren't missable objects. They are part of the map.

I thought that the trees were actually sprites like in gen3 O_O

Nope, they are real terrain tiles. I believe it to be the same in gen II.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Dante
Date: 2016-05-13 13:51:42


ISSOtm, I edited your post to fix a BBCode issue ([tt][/tt] wasn't closed properly)

Thanks ! Dante's quote also features the typo.



(…)

I don't exactly know how the game does this, but anyways.

When you try tou cut a tree, it checks whether you are facing a tree / grass tile, and if yes, it looks up in a table to replace the tree / grass tile with a normal earth tile while preserving three of its neighboring tiles (the game, for compression purposes, stores tiles in squares of 2x2 tiles). That's what we use for Glitch City RAM Manipulation.

Every time you enter a new map, the game actually copies the whole map from ROM to RAM, and applies modifications such as cutting trees, discovering the Casino's stairs, etc (nb : the reloading of these maps don't involve reloading the graphics, causing the Invisible Tree Glitch[/url). These modifications don't involve any sprites at all.

tl;dr : nope, trees aren't missable objects. They are part of the map.

I thought that the trees were actually sprites like in gen3 O_O

Nope, they are real terrain tiles. I believe it to be the same in gen II.


And what about the rocks? Are they tiles too?

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Krys3000
Date: 2016-05-13 14:33:00
No, boulders are sprites. Actually, they are dealt in a funny way by the game, which allows us to perform a different version of the 'warp to any map' effect of the Doko-Kashira Door Glitch in american and european games.

This is a table of 4x4 tile blocks in european games where you can see what is part of the overworld tileset:
http://www.prama-initiative.com/RBJ/CTRAM1.png

BTW, I feel like I should mention that I am italian, so if you want to ask specifically something to me about anything I said, feel free to do it in our mother tongue  ;)

Re: NPCs that can be removed by the Mew Glitch?

Posted by: TwilightHakuryuu
Date: 2016-05-14 10:54:29
That's really too bad that the trees aren't missable objects.

I do recall reading all the content in the glitch city RAM-manipulation thread, but it has been a while.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Ephraim225
Date: 2016-05-17 04:25:20
Hey ZZAZZ, I noticed in your video you got the guard in front of Saffron Gym to disappear, could you tell how you did that? I don't know where in RAM the disappearing NPC list is ^^;

EDIT: I think I can figure this out if I knew what all the maps with only 2 vanishing objects were.

EDIT2: …THE HOOKED DRAGONITE.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: ISSOtm
Date: 2016-05-18 06:53:41
Here they are in the Pokéred disassembly :
https://github.com/pret/pokered/blob/6057f285ad1a930315d1a45fa3d1aa08efe6801d/wram.asm#L2619
and the entry I just added to Datacrystal :
http://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Red/Blue:RAM_map#Event_Flags

I'm currently researching what does each flag control.
This routine seems to be a good one to target.

Re: NPCs that can be removed by the Mew Glitch?

Posted by: Ephraim225
Date: 2016-05-18 21:31:47

Here they are in the Pokéred disassembly :
https://github.com/pret/pokered/blob/6057f285ad1a930315d1a45fa3d1aa08efe6801d/wram.asm#L2619
and the entry I just added to Datacrystal :
http://datacrystal.romhacking.net/wiki/Pok%C3%A9mon_Red/Blue:RAM_map#Event_Flags

I'm currently researching what does each flag control.
This routine seems to be a good one to target.


Thanks, but what I'm looking for is a way to trigger a Mew Glitch encounter on a map with only two disappearing NPCs. I figured the only way to accomplish that is a Hooked Dragonite in Pewter City but that just freezes the game, it seems.

EDIT: I know you could just write bytes into RAM with 8F but I prefer to avoid that :P

Re: NPCs that can be removed by the Mew Glitch?

Posted by: TheZZAZZGlitch
Date: 2016-05-19 03:33:14
Thanks, but what I'm looking for is a way to trigger a Mew Glitch encounter on a map with only two disappearing NPCs.


This is the list of all maps with only two missable objects:

Viridian City
Pewter City
Route 2
Route 22
Route 24
Viridian Gym
Pokemon Tower 6F
Cinnabar Mansion 1F
Fighting Dojo
Rocket Hideout B1F
Rocket Hideout B3F
Cinnabar Mansion 3F
Safari Zone North
Victory Road 1F

Unfortunately, all of these maps either don't have a long range trainer to start the Mew Glitch, or aren't accessible without going through a map with more than two missable objects.
You can use the RIVAL's effect to start a Mew Glitch on Victory Road 1F, and then return there by going through Viridian City, Route 22 and Route 23. But, if you have access to glitch items, you can just use RIVAL's to get past the object you want to get rid of…