Instant boxing glitch and first method to encounter an enemy DPbox
Posted by: RETIRE
Date: 2018-07-31 09:44:31
I'd like to thank Charmy for helping me researching the possibility of transfering glitchpokémon using this glitch,
he was a big help.
The instant boxing glitch makes use of mapscripts to trick the game into transfering migrated Pokémon without
actually ever capturing them in Pal Park.
To explain it, I made a video which goes very in depth:
https://youtu.be/WPIV0-SM4X4
For people unable to watch it, here's a technical explanation behind the glitch.
When we enter Pal Park outdoor's map a mapscript is ran that sets a couple of flags.
Pal Park indoor also runs mapscripts, with a check for one of the flags set in Pal Park.
If this flag is set, the game will then load a function that will make you able to box your Pokémon.
But, there are three different ways of leaving the Outdoor map with only a single one that should
allow the player to box the Pokémon.
When leaving with the Warp / RETIRE menu you shouldn't be able to box Pokémon,
for these two instances the flag is changed again.
When capturing all 6 the flag isn't altered, meaning you're allowed to box the Pokémon.
We can exploit this, since in the void you can enter Outdoor Pal Park (sets flag) and then Indoor Pal Park
which will run the mapscript and allow you to box your pokémon without capturing them.
So what can this be used for?
1) -Encountering a DPbox on the enemy side
DPbox is a Pokémon usually only existing out of 00 bytes, and can be encountered on the ally side
using glitched Partnermode or pomeg glitch. If you've read my alt-RETIRE post, you know that we can write
grasstiles in the void. If you do the instant boxing glitch, the Pokémon are copied from a portion of RAM to boxes, leaving 00 bytes.
For some reason their location in the encountertable is NOT wiped. This is important since usually you can't encounter DPbox in Pal Park since it doesn't have an assigned location. Since the location of the migrated Pokémon isn't wiped, we can now encounter 6 DPbox in the void in Pal Park battles. We can even capture them, but they won't show up in your box.
2) Forced boxing with full boxes
If you have all your boxes filled you usually can't participate in the Pal Park minigame since it gives a warning that your boxes are full.
When using the instant boxing glitch you skip the warning, meaning you can box migrated Pokémon with full boxes. Where do they go?
Well, they dissapear entirely. This is most likely intentional behaviour to prevent overflows or crashes.
3) The possibility to transfer glitchpokémon and bad eggs.
When I discovered the glitch, Charmy was so kind to help me research the possibility to transfer glitchpokémon.
By now we've established that Pokémon indexes higher than intended don't have an assigned location (or in DPbox's case, index 00).
We also know that we can skip the capturing, so naturaly we had to test if we could box glitchpokémon using this.
And as expected, they were boxed without any issue, no encounters required.
The only issue is that we have no proof that you can transfer them via the migration proces, since we had no way to test this in an efficient manor ourselves. Instead we injected thrash into the Pal Park RAM directly, and these did get boxed.
All of what was listed above can be seen in the video too.