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

Wait just one second. - Page 1

Wait just one second.

Posted by: ravioli
Date: 2016-09-05 21:48:59
If there are 191 indexes for Pokemon, and since the select glitch lets us combine Pokemon with items, 255 items, that means that there can be 48,450 select glitch Pokemon PLUS the original 190, making there 48,640 Pokemon in total in Red and Green!

Best Generation 10/10!

Re: Wait just one second.

Posted by: Yeniaul
Date: 2016-09-05 22:17:30

If there are 191 indexes for Pokemon, and since the select glitch lets us combine Pokemon with items, 255 items, that means that there can be 48,450 select glitch Pokemon PLUS the original 190, making there 48,640 Pokemon in total in Red and Green!

Best Generation 10/10!
No… um… that's not how that works. If you have an item with index… oh,i don't know… 01 in hex, and it's swapped with a Pokémon, it'll be treated as the Pokémon with the index 01 in hex. Now, you know how trainers just kinda… start… after a bunch of Pokémon data? Trainers are written in the Pokémon Data AFTER Pokémon and that any Pokémon index larger than the first Trainer's index in ROM is treated as a Trainer.

tl;dr:
Trainers are in ROM directly after Pokémon so Game Freak didn't have to make a completely different list for Trainers. So, technically after slot 190 there are still Pokémon, but they're treated as trainers LATER. My thread, Project GStart, has a video showing what a few ZZAZZ trainers look like when forced to be Pokémon. Even though they are trainers, they're still within the 256-item list of Pokémon, and therefore ARE Pokémon.

Re: Wait just one second.

Posted by: ravioli
Date: 2016-09-05 22:23:30
woops guess im stupid :P

so then, how many Pokemon can exist in the game? would it just be the amount of trainers and pokemon plus the 255 items being played as pokemon?

Re: Wait just one second.

Posted by: Yeniaul
Date: 2016-09-05 22:28:39

woops guess im stupid :P

so then, how many Pokemon can exist in the game? would it just be the amount of trainers and pokemon plus the 255 items being played as pokemon?
each hex value is a specific item AND a specific Pokémon. So 256 Pokémon and 256 items. (Because 0 is the same as 256.)

Re: Wait just one second.

Posted by: ravioli
Date: 2016-09-05 22:37:23
So a measly 512 Pokemon.

But wait! What about.. [WARNING FOR DSI USERS, BULBAPEDIA INCOMING!]
http://bulbapedia.bulbagarden.net/wiki/Unstable_hybrid_Pokémon
Does this count as a "new pokemon?"

Re: Wait just one second.

Posted by: ISSOtm
Date: 2016-09-06 00:41:26
The thing is, a Pokémon is essentially its internal ID, which is a byte, which ranges from 0 to 255. The rest of its data is just attributes. So 256 Pokémon.

Hybrids come from a duplicate information that we desync.
Basically, the game has your party and your PC as two lists : a list of the Pokemon's IDs, and a list of the mon's data. HOWEVER, the Pokémon's data contains its ID, and the Q Trick as well as other glitches allow us to desync both memory addresses, and thus create "hybrids" (the name fits perfectly in my opinion).
Hybrids literally are a mix of two Pokémon, but not actual Pokémon. Does that makes sense ?

Re: Wait just one second.

Posted by: camper
Date: 2016-09-06 02:22:46
There are 256 items, but only 128 item effects since the game takes a modulo 128 before determining an item's effect.

Re: Wait just one second.

Posted by: ISSOtm
Date: 2016-09-06 03:08:38
It doesn't does modulo 2, it multiplies the item's ID by 2 ('cause pointers are 2 bytes large) but the ninth bit is discarded because of 1 byte arithmetics.
Effectively, item #n and item #(n+128) behave the same.