Glitch City Laboratories Forums

Lab γ: Video Games and Glitches Discussion => Pokémon Glitch Discussion => Generation IV Glitch Discussion => Topic started by: RETIRE on April 22, 2019, 12:07:33 am

Title: Wrongwarping is now possible to any map
Post by: RETIRE on April 22, 2019, 12:07:33 am
Over the course of the last days the ledgecancel glitch has lead to many crazy discoveries. Here is a summary of what is now possible, and what lead to the possibility of wrongwarping to even indoor maps, or maps you aren't supposed to be able to use your menu's in.

First of all, a reminder of what ledgecanceling is.
In the void we can write tiles by changing our gfx set, like grasstiles and sandtiles. If we also have the correct ASLR, which is the randomisation of RAM initiated on booting the game, we can write a bikeledge in the void.

Interesting things about the bikeledge; the game doesn't actually disable your menu when on top of them, usually momentum does. And you should require momentum to enter the bikeledge under normal circumstances. But if you use the void you can write those tiles but they will update once you already stand on them. Therefore you won't have momentum!

So, we step onto this tile, the ledgetile moves the player left and we can now still open your sidemenu or use key items. This is known as ledgecanceling, even tho technically only the sidemenu stops the player from moving. This in itself can make loadlines move, causing custom tweaking areas, walk through walls and way more. But that's not what we're gonna be talking about right now.

What's important to know is that while opening the side menu, the game can still move you until the menu is actually on screen. This is a few frames, enough to move into another map id in the void. We call this Window Map Swapping.

Now this is where it gets interesting. The game assigns a Menu Id to you when opening a menu, and determines all functions based on that menu Id, not your current Map Id!
This means that if you open your sidemenu on the last frames of moving from an outdoor map into an indoor map, the menu will still allow you to fly, use bike and more importantly use Explorer Kit.

Explorer Kit, as some may know, writes your current Map Id and coordinates to [base]+1488 in RAM, which is also used by union room and allows us to wrongwarp to it. But since we can use Explorer Kit and any other outdoor function indoors, this means we can wrongwarp to the Map we moved into.

Next to that, Window Map Swapping also allows you to get NPC storage, which crashes the game after a few seconds, get a new error screen that saves the game but then puts you back into it without clearing RAM first, save inside maps that have mapscripts and the list goes on. I will make a video about all subglitches of ledgecanceling and Window Map Swapping soon!
Title: Re: Wrongwarping is now possible to any map
Post by: Princess Torchic Owl Lover ☽ ❤ on April 22, 2019, 05:32:45 am
Great work RETIRE! ^^ So umm.. am I right in thinking now would there be viable methods to visit all of the unused maps without a cheating device (I guess that by the impression of the title)? It's amazing how far Tweaking/void glitch has come. ✿
Title: Re: Wrongwarping is now possible to any map
Post by: RETIRE on April 22, 2019, 09:09:40 am
Great work RETIRE! ^^ So umm.. am I right in thinking now would there be viable methods to visit all of the unused maps without a cheating device (I guess that by the impression of the title)? It's amazing how far Tweaking/void glitch has come. ✿

Definitely! You can acces maps that dont allow you to use your menu usually with this. You could also use battletower voids for that, those allow you to open your menu in any map.