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

The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow) - Page 1

The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2014-12-02 08:21:14
The 255 hours glitch is an effect where you change your play time to 255:59, documented by Paco81 in this video. I've seen it after going to map 254 too, but there is a simpler way to do it, shown in the video.

1) With the walking Pikachu, go to the Sea Route 20 Glitch City (via Safari Zone exit glitch).
2) Walk two steps down, Pikachu will still be trapped in the glitch tiles.
3) Walk all the way to the right up to a door and then walk left until you're one tile left of the left-most of two "H"s.
4) Repeat step 3 and your play time should become 255:59.

You can do steps 3 and 4 slightly differently and get the glitch to work.

As well as Yellow, I think I may have seen the 255 hours glitch occur on a Pokémon speedrunner's stream in Blue too.

Now, for something that may be completely undocumented. There is more to the walking Pikachu thing. While I was walking around, values were written to addresses D438 and onward! The more you walk, the more the values are corrupted; and the values depend on whether you walked north, east, south or west.

North=02
South=01
Right=04
Left=03

If you walk around for a while, you will corrupt Pikachu's happiness value (D46F). This is probably the origin of the myth that Glitch City "resets" Pikachu's happiness. If you walk around even more, you can get yourself trapped in the Glitch City.

I wonder what else we could corrupt with this.

Edit: Maybe the 255 hours glitch is just an effect of this direction based corruption, because I got it after walking around back and forth over short distances.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Ryccardo
Date: 2014-12-02 15:10:11
Dokokashira Lite confirmed?  :P

I (and others, hopefully) would like to know how Glitch City works after the setup ("warp 4 of previous area") part.
For all I figured out when emulating Pokemon was my full time summer activity, something is displayed on the screen which may or may not be related to how your character interacts with it, with the actual tiles being displayed when the menu is open (= the window layer is enabled?)

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2014-12-02 16:25:21
There are probably no warping effects, but then again I don't know much about the addresses past D438.

Earlier, it occurred to me that any glitch that makes Pikachu get 'lost' might do this. Hopefully if there's a way to do that out of a Glitch City, then you could activate the ledge walk through walls beforehand and walk around without getting trapped (or you could use arbitrary code execution). This would let you corrupt more addresses.

Edit: I got so close to corrupting box items (D539-D59E) with WTW but then the addresses stopped getting corrupted for some reason, corrupting up to D536. Such a shame, even though you might only be able to get Poké Balls (01-04). However, we now have a "super Glitch City" trick where the map looks really corrupted :). I wonder what else I corrupted.

[img]http://i4.minus.com/ibpw2VZscUaHDP.png[/img]


I (and others, hopefully) would like to know how Glitch City works after the setup ("warp 4 of previous area") part.
For all I figured out when emulating Pokemon was my full time summer activity, something is displayed on the screen which may or may not be related to how your character interacts with it, with the actual tiles being displayed when the menu is open (= the window layer is enabled?)


I think that gifhevexxin may have given the answer to that, here.


A warp entry is made up of a pointer and two coordinates, and this pointer is to the upper-left block visible on screen when you appear on the map. This was most likely to save calculations over simply knowing the address of the first block and advancing until there are blocks that can be drawn on screen. Now because of that shortcut - the fact that warps contain their own pointer - invalid warp entries will end up pointing to somewhere else in memory. This is why invalid warps aren't just "elsewhere" on the same map.


I don't fully understand it because I haven't played around with it myself, though.

Yes, there are tiles that look different when you open the menu.

Edit: In Japanese Yellow there's a glitch item (hex:6B) that makes Pikachu stay. To get it you can use 016BA2D2. Now, if you put Pikachu off the screen and walk around this same glitch will happen there. The happiness address in Japanese Yellow is D3EF and is corruptible.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: luckytyphlosion
Date: 2014-12-03 10:00:01
You could use the "easier wtw glitch" in yellow to activate wtw and access a glitch city similar to "out of bounds" glitch cities. Using Jack while with Pikachu causes Pikachu to wander off too.

I looked in the Disassembly; d438 is somewhere after "wDestinationWarpID", which I think it is used while in the middle of warping. There's no indication of what d438 is, as it's an unknown part in "ds 128" after "wDestinationWarpID".

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2014-12-03 16:31:39
*nods*. Yes, doing that and going to an out of bounds Glitch City or causing another 'instant' Glitch City sounds promising.

I found that you can get Pikachu to wander off with Lg- (hex:6E), but I didn't know you could use a Jack item, so thanks for that.

I found something else which I think is pretty cool. You can modify the address D49B to 01-04. This address controls special Pikachu emotions. You can make it do the winking emote (01) if you modify that address by stepping south, the fishing emote (02) if you step north, the confused emote if you step west (03), or the disapproval emote if you step east (04). Interestingly, there are glitch emotions for D49B, but you probably can't access them with this glitch.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: pokechu22
Date: 2014-12-04 23:38:22

However, we now have a "super Glitch City" trick where the map looks really corrupted :). I wonder what else I corrupted.

[img]http://i4.minus.com/ibpw2VZscUaHDP.png[/img]


Oh, I recognize that.  I've seen it while running around before.  Back when I was messing with ALL OLD stuff (see image).  I found that savestate.  Timestamp is 255:59.  I think I created these with gameshark codes "010160D3" and "010161D3", which lock your X and Y positions at 1 (but the map still scrolls). 

[img]http://i.imgur.com/TxhP99U.png[/img] [img]http://i.imgur.com/LRpyXDf.png[/img]

Opening and closing the menu changes the appearance a few times but it finally settles on something similar to above.

[img]http://i.imgur.com/mGvBva1.png[/img] [img]http://i.imgur.com/7hGftZ4.png[/img] [img]http://i.imgur.com/8McVmY9.png[/img] [img]http://i.imgur.com/3DXcjsw.png[/img] [img]http://i.imgur.com/DP1K0tk.png[/img]

I wish I could remember more about this though.  It's from a while ago.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2014-12-05 06:46:22
Cool. Perhaps you had Pikachu with you then, then.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: luckytyphlosion
Date: 2014-12-05 15:38:59
You can get the "locked position" if you toss items in sprite data with Item Underflow. This works on Red/Blue and Yellow.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Rena
Date: 2014-12-29 20:34:54

You could use the "easier wtw glitch" in yellow to activate wtw and access a glitch city similar to "out of bounds" glitch cities. Using Jack while with Pikachu causes Pikachu to wander off too.

I looked in the Disassembly; d438 is somewhere after "wDestinationWarpID", which I think it is used while in the middle of warping. There's no indication of what d438 is, as it's an unknown part in "ds 128" after "wDestinationWarpID".

I have a sneaking suspicion it's a list of steps for Pikachu to take, where one byte tells the direction and the other tells how many steps in that direction. Normally the game would be writing your actions into that buffer so that Pikachu will follow you on later frames. If Pikachu's stuck though, he won't follow, so that list of steps just keeps growing, overflowing the buffer and corrupting other things. I'd also guess that it only corrupts (256 - length of buffer) bytes, because the index to write the steps is only one byte.

I haven't tested any of this though.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2015-01-11 18:03:41
Breakthrough! It seems like Trainer mutation (a glitch previously only in Red/Green/Blue via a select glitch where you turn Trainers into Pokémon) is possible in localized Yellow.

I don't know if it is exclusive to the Spanish version though, and Addri has only found a few Pokémon that you can get with it.

Edit:

It works in English Yellow. I got a Kangaskhan and Clefairy to appear with it. How this works is exactly like the Japanese version Trainer mutation; the map stores Trainer IDs followed by a roster value for the current route, but if the "Trainer ID" becomes below C8 (200), it will become a Pokémon. One of these addresses is D508 (English version) for a Jr. Trainer Female, CE on this route. As for corrupting those addresses, with the Pikachu off-screen glitch, which corrupts addresses beginning from D438, you can corrupt it after taking 209 steps with Pikachu off screen. You don't necessarily have to walk through walls, because you can force Pikachu off-screen with the glitch item Lg- (hex:6E); however, that may mean that you only encounter Pokémon IDs 01-04 or Rhydon-Clefairy (Pokémon based on the direction of the 209th step you took); while doing something in a Glitch City seems to make it so that you can access more than 4 Pokémon. This raises a question; how could we make it so you can get rare Pokémon like Mew with the glitch, or glitch Pokémon/Trainers, or possibly adapt this for a Yellow 151 catch em all speedrun?


Edit 2:
In addition to Pokémon 01-04, I got an FF Trainer (non-ZZAZZ glitch Trainer roster FF), ZZAZZ glitch Trainer (Trainer FF roster 08) and level 255 Clefairy with this.

https://www.youtube.com/watch?v=eT8XfA3gUjg

Easiest Glitch City EVER!!! (Pokémon Yellow)

Posted by: Torchickens
Date: 2015-01-13 19:09:15
Somebody named Sally sent me a long email regarding the Pikachu off-screen glitch. Among a few other things, she found that under certain circumstances, the game sets the address D42F to 02, and this makes Pikachu stay.

This is done in normal gameplay for Pewter City's Pokémon Center's singing Jigglypuff, Bill's House (two times for the Bill as a Pokémon event), and the Pokémon Fan Club (Clefairy event) in Vermilion City.

If you make Pikachu go off the screen after Pikachu stays, then you can corrupt data from D438 and onward (each corrupted address is based on the step you take) by walking with Pikachu off the screen, and you can cause a Glitch City if you walk enough steps.

So this glitch previously thought to require a Glitch City and walk through walls or a glitch item (Lg-, Rival's effect item or 9F) is actually a 'natural glitch' because it requires no further glitches!

The Pewter Pokémon Center event can happen regardless of your progress in the game.

The Glitch City is ridiculously easy to achieve:

1) Go to Pewter City's Pokémon Center with the walking Pikachu and talk to Jigglypuff to make it stay.
2) Then don't talk to Pikachu again and walk right until Pikachu is off-screen.
3) Then just keep walking around without Pikachu on the screen, and a Glitch City will occur after 243 steps of Pikachu off the screen.

You can also use the other two locations where Pikachu is intended to stay to cause a Glitch City stay as there is enough space to put him off-screen.

I actually wonder if our Pokémon Yellow is based on Japanese Pokémon Yellow v1.0 and if a later Japanese version (rev A or rev B) fixed the glitch because it's such a silly mistake and it's very easy to replicate. Surprisingly no one seems to have documented it before, but I guess not many people would walk 243 steps for the corruption effects to be particularly noticeable.

Edit: No, it occurs in v1.0, rev A, rev B and the lesser known v1.3 too (supposedly DMG-APSJ-3).

Incidentally, V1.3 may actually be the third revision (the next one after rev A), because I did a code comparison with it and it had the most in common with rev A and had much more differences between v1.0 and rev B.

[img]http://i5.minus.com/ib1DBwThs6Y5iM.png[/img][img]http://i4.minus.com/iblOEyxtSMBRCG.png[/img][img]http://i.minus.com/jbnOkiORaiRA7j.png[/img][img]http://i2.minus.com/ikUvLlFSjsh54.png[/img][img]http://i4.minus.com/ibqnFOQyjEvZFz.png[/img]
[img]http://i3.minus.com/ibzwHqkjlSntTX.png[/img][img]http://i6.minus.com/ibjf514mG5qIQl.png[/img]

Sally also shared a new trick. I will document this and the "easiest Glitch City ever" in a new video.

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: camper
Date: 2015-01-14 04:00:50
This glitch seems to be able to permanently harm the save file. Triggering the Oak's Parcel event at the Mart after corruption on Route 1 turns the Mart into a glitch city after the dialogue. The door warp is still there if you don't open the start menu (which removes the door warp as well), and getting out of bounds of the original mart still makes the game crash. (which means coordinates aren't changed)

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Addri Trainer
Date: 2015-02-16 14:05:06
Ohh, The Super Glitch City. Yeah, I was here  :o
And this place may harm your game (I know this because I was happened), because this I recommend have a Pokémon with Fly (and no make in GBC).

Other gifs… :
[img]http://i1029.photobucket.com/albums/y352/Adrian_Lucas/Glitch%20City_zpsqdowf8kc.gif[/img]

GG

[img]http://i1029.photobucket.com/albums/y352/Adrian_Lucas/Glitch%20City-2_zpsd92ngjq5.gif[/img]

Well, any thing about this i'll post. Regards…

Re: The mysterious 255 hours glitch and other walking Pikachu glitches (Yellow)

Posted by: Torchickens
Date: 2015-03-01 07:27:53
Aw. I missed something amazing while I was away (off-screen arbitrary code execution). :(

https://www.youtube.com/watch?v=mcsKo4K7BNE - route in practice by Dabomstew

http://wiki.pokemonspeedruns.com/index.php/User:Stump/Yellow_NSC_Pikachu_Offscreen_Stat_XP_ACE_Route