Re: Arbitrary code execution in Red/Blue using the "8F" item
Posted by: ISSOtm
Date: 2018-01-17 15:33:57
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.
(Note : if the D-Pad is already held when the setup is ran, it will fail.)
- can I change the Pokemons types, and remove it from the box, without it becoming a big ugly Rhydon.
- when it becomes a Rhydon, has it reset my progress in changing it's types, as it says rock/ground, and wondering if it's over writing my work.
Trying to make my first script, to change the Map ID to lavender town, but it seems to crash the game instead. Here's the script and items:
Item 1: HM01 (if i'm correct, the first and second items do not matter)
Item 2: 8F
Item 3: Lemonade (x4) (ld a,4)
Item 4: TM34 (x94) (ld ($D35E), a)
Item 5: TM11 (x201) (ret)
When I use 8F, the game simply crashes. Probably something very obvious that I'm missing, however I have no clue why this wouldn't work. Any advice?
Trying to make my first script, to change the Map ID to lavender town, but it seems to crash the game instead. Here's the script and items:
Item 1: HM01 (if i'm correct, the first and second items do not matter)
Item 2: 8F
Item 3: Lemonade (x4) (ld a,4)
Item 4: TM34 (x94) (ld ($D35E), a)
Item 5: TM11 (x201) (ret)
When I use 8F, the game simply crashes. Probably something very obvious that I'm missing, however I have no clue why this wouldn't work. Any advice?
Setting the current map to 118 will crash the game. That's the Hall of Fame's ID anyway, Lavendar town's ID is $04
Can anyone help me?
Is there any Arbitrary Code to control what DVs I want to change to a Pokemon? For example:
-15/15/15/15
-15/10/10/10
Ive been seen some videos but they just pust the neccesary items (and in different ways, so I cant find a pattern). Some examples:
https://www.youtube.com/watch?v=H8AgGp5cqPI&t=308s
https://www.youtube.com/watch?v=RCrzcqLEauQ
Ty.
Can anyone help me?
Is there any Arbitrary Code to control what DVs I want to change to a Pokemon? For example:
-15/15/15/15
-15/10/10/10
Ive been seen some videos but they just pust the neccesary items (and in different ways, so I cant find a pattern). Some examples:
https://www.youtube.com/watch?v=H8AgGp5cqPI&t=308s
https://www.youtube.com/watch?v=RCrzcqLEauQ
Ty.
The following codes are used to edit the DVs of box Pokemon 1.
You can use
8f
Any
Carbos x218 (hex:DA)
X Accuracy x178 (hex:B2)
Lemonade xDVOne
TM03 x55 (hex:37)
Elixer x71 (hex:47)
Awakening xDVTwo
Escape Rope x121 (hex:79)
Max Elixer x176 (hex:B0)
Ether x119 (hex:77)
TM01 x[Any qty]
To write to the Speed/Special IVS. Then, to write to attack/defense IVs, toss one X Accuracy.
Alternatively, you may also use this code, which writes to all DVs in one go. It takes a bit of math to use, however.
8f
Any
Thunderstone x177 (hex:B1)
TM18 x4 (hex:04)
Lemonade x#FirstNum
Water Stone x82 (hex:52)
Awakening x#SecondNum
Escape Rope x121 (hex:79)
Max Elixer x119 (hex:77)
TM01 x[Any qty]
To find the numbers, simply take the first DV * 16 + the second DV. For the second number, do this with the third and fourth DVs
So
15/10/10/10
…would be
Thunderstone x177 (hex:B1)
TM18 x4 (hex:04)
Lemonade x250 (hex:FA)
Water Stone x82 (hex:52)
Awakening x170 (hex:AA)
Escape Rope x121 (hex:79)
Max Elixer x119 (hex:77)
TM01 x[Any qty]
3E xx 26 xx 2E xx 04 77 26 D3 3E 00 2E 23 04 22 23 22 23 22 C9