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 VI Glitch Discussion

Invalid Pokémon in Gen 6 - Page 1

Invalid Pokémon in Gen 6

Posted by: Stackout
Date: 2015-01-30 14:25:02
So, thanks to the 9.x browser exploit, we're now in a position to research Gen 6.

I patched PKHex to allow for invalid moves, items and Pokémon. Above a certain point, when selecting an invalid Pokémon from the list, it will throw an exception, but you can just click continue and it'll work fine.

First thing to note is that invalid Pokémon (in Omega Ruby at least) seems to use Bulbasaur's sprite/texture, and have Normal type. I'm not sure how it gets the cry, one of them has Deoxys' cry. They do not learn any moves, and cannot be taught any TMs or HMs.

I first used some invalid Pokémon close to the last valid one, that don't error out, and got unremarkable Pokémon with bad stats. (14 Speed after Rare Candying to Level 100!)

I then tried 0x82B1, and it's pretty unstable, as I assume most will be. I had to use Withdraw Pokémon, withdraw 0x82B1 then press B straight away to avoid a freeze. I tried to use a Rare Candy on it and the game froze, probably trying to recalculate stats. It has no cry, and Pokédex number ?55 (convert 0x82B1 to decimal to see why that is!)

No screenshots yet, (I'm obviously doing this on real hardware and I don't have any decent way to take them) but the glitch Pokémon I tried (not 0x82B1 yet!) worked fine in battles and in contests. As said by someone else, species names seem to be dynamic. Sometimes they are blank, in summary screens it's their dex number and so on.

When I get home, I'll provide a download link to the modded PkHex. That is if Torchickens hasn't uploaded it (I already gave it to him). It's a .NET exe so you *should* be able to run it on non-Windows platforms using mono.

Apologies for any typos, etc in this post, I made it on my Android tablet.

Re: Invalid Pokémon in Gen 6

Posted by: Torchickens
Date: 2015-01-30 14:31:01
Yes. I uploaded it but it wasn't that easy to notice because I added it as an edit for an existing post. Here it is. https://mega.co.nz/#!Et9CUDRQ!SOpnOhYMW3HE5tC4umU0JATZDsGzFiA7P3ZZqs-Dw9Y

Re: Invalid Pokémon in Gen 6

Posted by: Stackout
Date: 2015-01-30 15:00:14
OK. The reason I got a freeze with 715 initially was because I saved the Pokémon instead of the entire save. Probably because it was late and I was tired.

Re: Invalid Pokémon in Gen 6

Posted by: Kraust
Date: 2015-01-31 06:01:47
It might be worth asking Kaphotics if he can release a version of PKHeX that gives all variables for a specific parameter and not just the valid ones.

I've also been using it, and I noticed that in one of the tabs there's a debug register thing where it gives offsets and values:
[img]http://puu.sh/fh7J1.png[/img]

But it's the only part of the program with anything like this. You can't even give Pokemon invalid abilities.

Re: Invalid Pokémon in Gen 6

Posted by: Spoink
Date: 2015-01-31 08:00:23
Why does it say "fuck you Japan"?

Re: Invalid Pokémon in Gen 6

Posted by: Torchickens
Date: 2015-01-31 10:07:19
Probably because people needed Cyber Gadget (a Japanese tool that only works on Japanese 3DSes) for a lot of memory hacking stuff (unless you somehow did it without like how smea found the event Pokémon), and apparently you can't do that much with Action Replay Powersaves, but I don't know.

Re: Invalid Pokémon in Gen 6

Posted by: Kraust
Date: 2015-01-31 19:22:38

Why does it say "f**k you Japan"?


I wanted to be quite edgy and I Was wonder trading 6IV Shiny Dittos.
I didn't notice that it was there until I posted. Sorry <_<.

Re: Invalid Pokémon in Gen 6

Posted by: Stackout
Date: 2015-02-01 04:52:53


Yes. I uploaded it but it wasn't that easy to notice because I added it as an edit for an existing post. Here it is. https://mega.co.nz/#!Et9CUDRQ!SOpnOhYMW3HE5tC4umU0JATZDsGzFiA7P3ZZqs-Dw9Y


Umm, it won't start up here, it just keeps loading forever (strangely enough its Properties doesn't have Compatibility tab while the official one does). After a while, I got a BSoD.  :o


It takes a while to load, it loads in 3 minutes for me. But I'm using a Core i7 with 8GB RAM (and I know it uses around ~15% CPU while loading).

Re: Invalid Pokémon in Gen 6

Posted by: Zowayix
Date: 2015-02-01 05:02:09


Yes. I uploaded it but it wasn't that easy to notice because I added it as an edit for an existing post. Here it is. https://mega.co.nz/#!Et9CUDRQ!SOpnOhYMW3HE5tC4umU0JATZDsGzFiA7P3ZZqs-Dw9Y


Umm, it won't start up here, it just keeps loading forever (strangely enough its Properties doesn't have Compatibility tab while the official one does). After a while, I got a BSoD.  :o


BSoDs happen at the kernel layer so they can only be caused by either the OS itself, or some stupid driver who for some reason might get triggered by a .NET application doing something. Most likely the latter, because as much as Windows sucks, third party drivers suck more.

Good to know it's not just Mono who can't load it though. I take it from your wording of 'patched' that the original source code is not available and hence the source code for this version isn't, meaning I can't jump in and see what's going on without decompiling?

Re: Invalid Pokémon in Gen 6

Posted by: Stackout
Date: 2015-02-01 05:08:40



Yes. I uploaded it but it wasn't that easy to notice because I added it as an edit for an existing post. Here it is. https://mega.co.nz/#!Et9CUDRQ!SOpnOhYMW3HE5tC4umU0JATZDsGzFiA7P3ZZqs-Dw9Y


Umm, it won't start up here, it just keeps loading forever (strangely enough its Properties doesn't have Compatibility tab while the official one does). After a while, I got a BSoD.  :o


BSoDs happen at the kernel layer so they can only be caused by either the OS itself, or some stupid driver who for some reason might get triggered by a .NET application doing something. Most likely the latter, because as much as Windows sucks, third party drivers suck more.

Good to know it's not just Mono who can't load it though. I take it from your wording of 'patched' that the original source code is not available and hence the source code for this version isn't, meaning I can't jump in and see what's going on without decompiling?


Interestingly enough, I didn't even change the CIL bytecode whatsoever, only the managed resources.

Re: Invalid Pokémon in Gen 6

Posted by: Torchickens
Date: 2015-02-21 17:25:48
I have started recording these. Here is a screeny.

[img]http://i1.minus.com/ioairdntRtvzM.png[/img]

P.S. While Pokémon like 725 looked like Bulbasaur, 999 looked like Ivysaur. Weird.

Edit:
Pokémon 723 (not exactly Bad Egg! Bulbasaur's pic. It has an Egg mini-sprite though)
[img]http://i5.minus.com/ib1LabzeUWNol4.png[/img]

Pokémon 1000 (looked like Ivysaur)

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

Pokémon 5000, no picture game freezes when you try to view its summary or close the boxes when it's in your party.

[img]http://i6.minus.com/ijhjx3qYqZsC7.png[/img]

Re: Invalid Pokémon in Gen 6

Posted by: SatoMew
Date: 2015-02-21 17:38:48

I have started recording these. Here is a screeny.

[img]http://i1.minus.com/ioairdntRtvzM.png[/img]


Now set its caught location to the Mystery Zone :P

Re: Invalid Pokémon in Gen 6

Posted by: Tsukuu
Date: 2015-02-21 17:44:06
I left it loading for a longer while and it actually loaded. I was just too impatient lol. By the way, just tested and it's compatible with online injector, which can save quite some if you're doing one-by-one. You just drag mini-sprite directly from PKHeX (it's compatible with .pkx) to the square and scan it on the 3DS while the game is running. You can share the QRs too.

Re: Invalid Pokémon in Gen 6

Posted by: Torchickens
Date: 2015-02-21 17:48:20

I left it loading for a longer while and it actually loaded. I was just too impatient lol. By the way, just tested and it's compatible with online injector, which can save quite some if you're doing one-by-one. You just drag mini-sprite directly from PKHeX (it's compatible with .pkx) to the square and scan it on the 3DS while the game is running. You can share the QRs too.


Cool! So that's probably what a foreign language article I read warning people about scanning specific Pokémon QR codes was about.


Now set its caught location to the Mystery Zone :P


Yeah, I can do that. Lol.

Re: Invalid Pokémon in Gen 6

Posted by: SatoMew
Date: 2015-02-21 17:53:18

Cool! So that's probably what a foreign language article I read warning people about scanning specific Pokémon QR codes was about.


Interesting, that article talks about malicious QR codes that could give access to your whole save file.